pax_global_header00006660000000000000000000000064145363640460014525gustar00rootroot0000000000000052 comment=12b5cfde901cc29a42bf09ae64307818f6cfd874 golang-k8s-api-0.29.0/000077500000000000000000000000001453636404600143365ustar00rootroot00000000000000golang-k8s-api-0.29.0/.github/000077500000000000000000000000001453636404600156765ustar00rootroot00000000000000golang-k8s-api-0.29.0/.github/PULL_REQUEST_TEMPLATE.md000066400000000000000000000002251453636404600214760ustar00rootroot00000000000000Sorry, we do not accept changes directly against this repository. Please see CONTRIBUTING.md for information on where and how to contribute instead. golang-k8s-api-0.29.0/CONTRIBUTING.md000066400000000000000000000013301453636404600165640ustar00rootroot00000000000000# 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 golang-k8s-api-0.29.0/LICENSE000066400000000000000000000261361453636404600153530ustar00rootroot00000000000000 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. golang-k8s-api-0.29.0/OWNERS000066400000000000000000000005131453636404600152750ustar00rootroot00000000000000# See the OWNERS docs at https://go.k8s.io/owners # Disable inheritance as this is an api owners file options: no_parent_owners: true filters: ".*": approvers: - api-approvers reviewers: - api-reviewers # only auto-label go file changes as kind/api-change "\\.go$": labels: - kind/api-change golang-k8s-api-0.29.0/README.md000066400000000000000000000036011453636404600156150ustar00rootroot00000000000000# 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. It is published separately to avoid diamond dependency problems for users who depend on more than one of `k8s.io/client-go`, `k8s.io/apimachinery`, `k8s.io/apiserver`... ## Recommended Use We recommend using the go types in this repo. You may serialize them directly to JSON. If you want to store or interact with proto-formatted Kubernetes API objects, we recommend using the "official" serialization stack in `k8s.io/apimachinery`. Directly serializing these types to proto will not result in data that matches the wire format or is compatible with other kubernetes ecosystem tools. The reason is that the wire format includes a magic prefix and an envelope proto. Please see: https://kubernetes.io/docs/reference/using-api/api-concepts/#protobuf-encoding For the same reason, we do not recommend embedding these proto objects within your own proto definitions. It is better to store Kubernetes objects as byte arrays, in the wire format, which is self-describing. This permits you to use either JSON or binary (proto) wire formats without code changes. It will be difficult for you to operate on both Custom Resources and built-in types otherwise. ## 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. golang-k8s-api-0.29.0/SECURITY_CONTACTS000066400000000000000000000010631453636404600170260ustar00rootroot00000000000000# 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 golang-k8s-api-0.29.0/admission/000077500000000000000000000000001453636404600163245ustar00rootroot00000000000000golang-k8s-api-0.29.0/admission/v1/000077500000000000000000000000001453636404600166525ustar00rootroot00000000000000golang-k8s-api-0.29.0/admission/v1/doc.go000066400000000000000000000013371453636404600177520ustar00rootroot00000000000000/* 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 "k8s.io/api/admission/v1" golang-k8s-api-0.29.0/admission/v1/generated.pb.go000066400000000000000000001342331453636404600215450ustar00rootroot00000000000000/* 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/k8s.io/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 "k8s.io/apimachinery/pkg/apis/meta/v1" math "math" math_bits "math/bits" reflect "reflect" strings "strings" k8s_io_apimachinery_pkg_types "k8s.io/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.GoGoProtoPackageIsVersion3 // 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/k8s.io/api/admission/v1/generated.proto", fileDescriptor_4b73421fd5edef9f) } var fileDescriptor_4b73421fd5edef9f = []byte{ // 921 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4f, 0x6f, 0x1b, 0x45, 0x14, 0xf7, 0xd6, 0x8e, 0xed, 0x1d, 0x87, 0xda, 0x9d, 0x82, 0xba, 0xf2, 0x61, 0x6d, 0x72, 0x40, 0x2e, 0x6a, 0x77, 0x49, 0x04, 0x55, 0x54, 0x81, 0xd4, 0x2c, 0xa9, 0x50, 0x40, 0x6a, 0xa2, 0x69, 0x03, 0x15, 0x07, 0xa4, 0xb1, 0x3d, 0xb5, 0x07, 0xdb, 0x33, 0xcb, 0xce, 0xac, 0x83, 0x6f, 0x9c, 0x38, 0xf3, 0x0d, 0x38, 0xf2, 0x19, 0xf8, 0x06, 0x39, 0xf6, 0xd8, 0x93, 0x45, 0xcc, 0xb7, 0xc8, 0x09, 0xcd, 0xec, 0xec, 0x9f, 0x26, 0xb1, 0x08, 0x0d, 0xa7, 0xec, 0xfb, 0xf3, 0xfb, 0xbd, 0x97, 0xdf, 0xdb, 0xf7, 0xd6, 0xe0, 0xc9, 0x64, 0x57, 0x78, 0x94, 0xfb, 0x93, 0xb8, 0x4f, 0x22, 0x46, 0x24, 0x11, 0xfe, 0x9c, 0xb0, 0x21, 0x8f, 0x7c, 0x13, 0xc0, 0x21, 0xf5, 0xf1, 0x70, 0x46, 0x85, 0xa0, 0x9c, 0xf9, 0xf3, 0x6d, 0x7f, 0x44, 0x18, 0x89, 0xb0, 0x24, 0x43, 0x2f, 0x8c, 0xb8, 0xe4, 0xf0, 0x5e, 0x92, 0xe8, 0xe1, 0x90, 0x7a, 0x59, 0xa2, 0x37, 0xdf, 0x6e, 0x3f, 0x1c, 0x51, 0x39, 0x8e, 0xfb, 0xde, 0x80, 0xcf, 0xfc, 0x11, 0x1f, 0x71, 0x5f, 0xe7, 0xf7, 0xe3, 0x57, 0xda, 0xd2, 0x86, 0x7e, 0x4a, 0x78, 0xda, 0x0f, 0x8a, 0x05, 0x63, 0x39, 0x26, 0x4c, 0xd2, 0x01, 0x96, 0x57, 0x57, 0x6d, 0x7f, 0x9a, 0x67, 0xcf, 0xf0, 0x60, 0x4c, 0x19, 0x89, 0x16, 0x7e, 0x38, 0x19, 0x29, 0x87, 0xf0, 0x67, 0x44, 0xe2, 0xab, 0x50, 0xfe, 0x3a, 0x54, 0x14, 0x33, 0x49, 0x67, 0xe4, 0x12, 0xe0, 0xd1, 0xbf, 0x01, 0xc4, 0x60, 0x4c, 0x66, 0xf8, 0x22, 0x6e, 0xeb, 0x77, 0x1b, 0xb4, 0xf6, 0x52, 0x31, 0x10, 0xf9, 0x29, 0x26, 0x42, 0xc2, 0x00, 0x94, 0x63, 0x3a, 0x74, 0xac, 0xae, 0xd5, 0xb3, 0x83, 0x4f, 0x4e, 0x97, 0x9d, 0xd2, 0x6a, 0xd9, 0x29, 0x1f, 0x1f, 0xec, 0x9f, 0x2f, 0x3b, 0x1f, 0xae, 0x2b, 0x24, 0x17, 0x21, 0x11, 0xde, 0xf1, 0xc1, 0x3e, 0x52, 0x60, 0xf8, 0x12, 0x54, 0x26, 0x94, 0x0d, 0x9d, 0x5b, 0x5d, 0xab, 0xd7, 0xd8, 0x79, 0xe4, 0xe5, 0xe2, 0x67, 0x30, 0x2f, 0x9c, 0x8c, 0x94, 0x43, 0x78, 0x4a, 0x06, 0x6f, 0xbe, 0xed, 0x7d, 0x15, 0xf1, 0x38, 0xfc, 0x96, 0x44, 0xaa, 0x99, 0x6f, 0x28, 0x1b, 0x06, 0x9b, 0xa6, 0x78, 0x45, 0x59, 0x48, 0x33, 0xc2, 0x31, 0xa8, 0x47, 0x44, 0xf0, 0x38, 0x1a, 0x10, 0xa7, 0xac, 0xd9, 0x1f, 0xff, 0x77, 0x76, 0x64, 0x18, 0x82, 0x96, 0xa9, 0x50, 0x4f, 0x3d, 0x28, 0x63, 0x87, 0x9f, 0x81, 0x86, 0x88, 0xfb, 0x69, 0xc0, 0xa9, 0x68, 0x3d, 0xee, 0x1a, 0x40, 0xe3, 0x79, 0x1e, 0x42, 0xc5, 0x3c, 0x48, 0x41, 0x23, 0x4a, 0x94, 0x54, 0x5d, 0x3b, 0xef, 0xdd, 0x48, 0x81, 0xa6, 0x2a, 0x85, 0x72, 0x3a, 0x54, 0xe4, 0x86, 0x0b, 0xd0, 0x34, 0x66, 0xd6, 0xe5, 0xed, 0x1b, 0x4b, 0x72, 0x77, 0xb5, 0xec, 0x34, 0xd1, 0xdb, 0xb4, 0xe8, 0x62, 0x1d, 0xf8, 0x35, 0x80, 0xc6, 0x55, 0x10, 0xc2, 0x69, 0x6a, 0x8d, 0xda, 0x46, 0x23, 0x88, 0x2e, 0x65, 0xa0, 0x2b, 0x50, 0xb0, 0x0b, 0x2a, 0x0c, 0xcf, 0x88, 0xb3, 0xa1, 0xd1, 0xd9, 0xd0, 0x9f, 0xe1, 0x19, 0x41, 0x3a, 0x02, 0x7d, 0x60, 0xab, 0xbf, 0x22, 0xc4, 0x03, 0xe2, 0x54, 0x75, 0xda, 0x1d, 0x93, 0x66, 0x3f, 0x4b, 0x03, 0x28, 0xcf, 0x81, 0x9f, 0x03, 0x9b, 0x87, 0xea, 0x55, 0xa7, 0x9c, 0x39, 0x35, 0x0d, 0x70, 0x53, 0xc0, 0x61, 0x1a, 0x38, 0x2f, 0x1a, 0x28, 0x07, 0xc0, 0x17, 0xa0, 0x1e, 0x0b, 0x12, 0x1d, 0xb0, 0x57, 0xdc, 0xa9, 0x6b, 0x41, 0x3f, 0xf2, 0x8a, 0xe7, 0xe3, 0xad, 0xb5, 0x57, 0x42, 0x1e, 0x9b, 0xec, 0xfc, 0x7d, 0x4a, 0x3d, 0x28, 0x63, 0x82, 0xc7, 0xa0, 0xca, 0xfb, 0x3f, 0x92, 0x81, 0x74, 0x6c, 0xcd, 0xf9, 0x70, 0xed, 0x90, 0xcc, 0xd6, 0x7a, 0x08, 0x9f, 0x3c, 0xfd, 0x59, 0x12, 0xa6, 0xe6, 0x13, 0xdc, 0x36, 0xd4, 0xd5, 0x43, 0x4d, 0x82, 0x0c, 0x19, 0xfc, 0x01, 0xd8, 0x7c, 0x3a, 0x4c, 0x9c, 0x0e, 0x78, 0x17, 0xe6, 0x4c, 0xca, 0xc3, 0x94, 0x07, 0xe5, 0x94, 0x70, 0x0b, 0x54, 0x87, 0xd1, 0x02, 0xc5, 0xcc, 0x69, 0x74, 0xad, 0x5e, 0x3d, 0x00, 0xaa, 0x87, 0x7d, 0xed, 0x41, 0x26, 0x02, 0x5f, 0x82, 0x1a, 0x0f, 0x95, 0x18, 0xc2, 0xd9, 0x7c, 0x97, 0x0e, 0x9a, 0xa6, 0x83, 0xda, 0x61, 0xc2, 0x82, 0x52, 0xba, 0xad, 0x3f, 0x2a, 0xe0, 0x4e, 0xe1, 0x42, 0x89, 0x90, 0x33, 0x41, 0xfe, 0x97, 0x13, 0x75, 0x1f, 0xd4, 0xf0, 0x74, 0xca, 0x4f, 0x48, 0x72, 0xa5, 0xea, 0x79, 0x13, 0x7b, 0x89, 0x1b, 0xa5, 0x71, 0x78, 0x04, 0xaa, 0x42, 0x62, 0x19, 0x0b, 0x73, 0x71, 0x1e, 0x5c, 0x6f, 0xbd, 0x9e, 0x6b, 0x4c, 0x22, 0x18, 0x22, 0x22, 0x9e, 0x4a, 0x64, 0x78, 0x60, 0x07, 0x6c, 0x84, 0x58, 0x0e, 0xc6, 0xfa, 0xaa, 0x6c, 0x06, 0xf6, 0x6a, 0xd9, 0xd9, 0x38, 0x52, 0x0e, 0x94, 0xf8, 0xe1, 0x2e, 0xb0, 0xf5, 0xc3, 0x8b, 0x45, 0x98, 0x2e, 0x46, 0x5b, 0x8d, 0xe8, 0x28, 0x75, 0x9e, 0x17, 0x0d, 0x94, 0x27, 0xc3, 0x5f, 0x2d, 0xd0, 0xc2, 0xf1, 0x90, 0xca, 0x3d, 0xc6, 0xb8, 0xc4, 0xc9, 0x54, 0xaa, 0xdd, 0x72, 0xaf, 0xb1, 0xf3, 0xc4, 0x5b, 0xf3, 0x11, 0xf4, 0x2e, 0x49, 0xec, 0xed, 0x5d, 0xa0, 0x78, 0xca, 0x64, 0xb4, 0x08, 0x1c, 0xa3, 0x51, 0xeb, 0x62, 0x18, 0x5d, 0xaa, 0x09, 0x7b, 0xa0, 0x7e, 0x82, 0x23, 0x46, 0xd9, 0x48, 0x38, 0xb5, 0x6e, 0x59, 0xad, 0xb6, 0xda, 0x8c, 0xef, 0x8c, 0x0f, 0x65, 0xd1, 0xf6, 0x97, 0xe0, 0x83, 0x2b, 0xcb, 0xc1, 0x16, 0x28, 0x4f, 0xc8, 0x22, 0x99, 0x33, 0x52, 0x8f, 0xf0, 0x7d, 0xb0, 0x31, 0xc7, 0xd3, 0x98, 0xe8, 0x99, 0xd9, 0x28, 0x31, 0x1e, 0xdf, 0xda, 0xb5, 0xb6, 0xfe, 0xb4, 0x40, 0xb3, 0xf0, 0x6f, 0xcc, 0x29, 0x39, 0x81, 0x47, 0xa0, 0x66, 0xee, 0x8d, 0xe6, 0x68, 0xec, 0xdc, 0xbf, 0x8e, 0x02, 0x1a, 0x10, 0x34, 0xd4, 0xab, 0x90, 0xde, 0xc1, 0x94, 0x46, 0x9d, 0x86, 0xc8, 0x48, 0x64, 0x3e, 0x6e, 0x1f, 0x5f, 0x5f, 0xd4, 0x44, 0x80, 0xd4, 0x42, 0x19, 0x53, 0xf0, 0xc5, 0xe9, 0x99, 0x5b, 0x7a, 0x7d, 0xe6, 0x96, 0xde, 0x9c, 0xb9, 0xa5, 0x5f, 0x56, 0xae, 0x75, 0xba, 0x72, 0xad, 0xd7, 0x2b, 0xd7, 0x7a, 0xb3, 0x72, 0xad, 0xbf, 0x56, 0xae, 0xf5, 0xdb, 0xdf, 0x6e, 0xe9, 0xfb, 0x7b, 0x6b, 0x7e, 0xeb, 0xfc, 0x13, 0x00, 0x00, 0xff, 0xff, 0x5e, 0xe0, 0xad, 0x0d, 0x1e, 0x09, 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.Warnings) > 0 { for iNdEx := len(m.Warnings) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Warnings[iNdEx]) copy(dAtA[i:], m.Warnings[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Warnings[iNdEx]))) i-- dAtA[i] = 0x3a } } 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)) } } if len(m.Warnings) > 0 { for _, s := range m.Warnings { l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } 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 + `,`, `Warnings:` + fmt.Sprintf("%v", this.Warnings) + `,`, `}`, }, "") 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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > postIndex { return io.ErrUnexpectedEOF } iNdEx += skippy } } m.AuditAnnotations[mapkey] = mapvalue iNdEx = postIndex case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Warnings", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Warnings = append(m.Warnings, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/admission/v1/generated.proto000066400000000000000000000201051453636404600216730ustar00rootroot00000000000000/* 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 "k8s.io/api/authentication/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/admission/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; // warnings is a list of warning messages to return to the requesting API client. // Warning messages describe a problem the client making the API request should correct or be aware of. // Limit warnings to 120 characters if possible. // Warnings over 256 characters and large numbers of warnings may be truncated. // +optional repeated string warnings = 7; } // 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; } golang-k8s-api-0.29.0/admission/v1/register.go000066400000000000000000000035211453636404600210260ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/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() } // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. var ( // SchemeBuilder points to a list of functions added to Scheme. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder // AddToScheme is a common registration function for mapping packaged scoped group & version keys to a scheme. 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 } golang-k8s-api-0.29.0/admission/v1/types.go000066400000000000000000000222451453636404600203520ustar00rootroot00000000000000/* 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 "k8s.io/api/authentication/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/types" ) // +k8s:deepcopy-gen:interfaces=k8s.io/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"` // warnings is a list of warning messages to return to the requesting API client. // Warning messages describe a problem the client making the API request should correct or be aware of. // Limit warnings to 120 characters if possible. // Warnings over 256 characters and large numbers of warnings may be truncated. // +optional Warnings []string `json:"warnings,omitempty" protobuf:"bytes,7,rep,name=warnings"` } // 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" ) golang-k8s-api-0.29.0/admission/v1/types_swagger_doc_generated.go000066400000000000000000000170371453636404600247370ustar00rootroot00000000000000/* 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-codegen.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.", "warnings": "warnings is a list of warning messages to return to the requesting API client. Warning messages describe a problem the client making the API request should correct or be aware of. Limit warnings to 120 characters if possible. Warnings over 256 characters and large numbers of warnings may be truncated.", } 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 golang-k8s-api-0.29.0/admission/v1/zz_generated.deepcopy.go000066400000000000000000000075531453636404600235030ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *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 } } if in.Warnings != nil { in, out := &in.Warnings, &out.Warnings *out = make([]string, len(*in)) copy(*out, *in) } 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 } golang-k8s-api-0.29.0/admission/v1beta1/000077500000000000000000000000001453636404600175675ustar00rootroot00000000000000golang-k8s-api-0.29.0/admission/v1beta1/doc.go000066400000000000000000000014171453636404600206660ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true // +groupName=admission.k8s.io package v1beta1 // import "k8s.io/api/admission/v1beta1" golang-k8s-api-0.29.0/admission/v1beta1/generated.pb.go000066400000000000000000001343501453636404600224620ustar00rootroot00000000000000/* 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/k8s.io/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 "k8s.io/apimachinery/pkg/apis/meta/v1" math "math" math_bits "math/bits" reflect "reflect" strings "strings" k8s_io_apimachinery_pkg_types "k8s.io/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.GoGoProtoPackageIsVersion3 // 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/k8s.io/api/admission/v1beta1/generated.proto", fileDescriptor_b87c2352de86eab9) } var fileDescriptor_b87c2352de86eab9 = []byte{ // 928 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcb, 0x6e, 0xdb, 0x46, 0x17, 0x16, 0x23, 0x59, 0x12, 0x47, 0xfe, 0x23, 0x65, 0xf2, 0x17, 0x20, 0x84, 0x80, 0x52, 0xbd, 0x28, 0x54, 0x20, 0x19, 0xd6, 0x46, 0x1b, 0x18, 0x41, 0x37, 0x66, 0x6d, 0x14, 0x6e, 0x81, 0xd8, 0x98, 0x44, 0x6d, 0xda, 0x45, 0x81, 0x91, 0x34, 0x91, 0x58, 0x49, 0x33, 0x2c, 0x67, 0x28, 0x57, 0xbb, 0xee, 0xbb, 0xe9, 0x1b, 0xf4, 0x05, 0xfa, 0x16, 0xdd, 0x78, 0x99, 0x65, 0x56, 0x42, 0xad, 0xbe, 0x85, 0x57, 0xc5, 0x0c, 0x87, 0x97, 0xc8, 0x76, 0x9a, 0x4b, 0x57, 0xe6, 0xb9, 0x7c, 0xdf, 0x39, 0xfe, 0x0e, 0xcf, 0xa1, 0xc0, 0xd1, 0x74, 0x5f, 0xa0, 0x80, 0x7b, 0xd3, 0x78, 0x40, 0x23, 0x46, 0x25, 0x15, 0xde, 0x82, 0xb2, 0x11, 0x8f, 0x3c, 0x13, 0x20, 0x61, 0xe0, 0x91, 0xd1, 0x3c, 0x10, 0x22, 0xe0, 0xcc, 0x5b, 0xec, 0x0e, 0xa8, 0x24, 0xbb, 0xde, 0x98, 0x32, 0x1a, 0x11, 0x49, 0x47, 0x28, 0x8c, 0xb8, 0xe4, 0xf0, 0x5e, 0x92, 0x8d, 0x48, 0x18, 0xa0, 0x2c, 0x1b, 0x99, 0xec, 0xf6, 0x83, 0x71, 0x20, 0x27, 0xf1, 0x00, 0x0d, 0xf9, 0xdc, 0x1b, 0xf3, 0x31, 0xf7, 0x34, 0x68, 0x10, 0x3f, 0xd7, 0x96, 0x36, 0xf4, 0x53, 0x42, 0xd6, 0xbe, 0x5f, 0x2c, 0x1d, 0xcb, 0x09, 0x65, 0x32, 0x18, 0x12, 0x99, 0xd4, 0xdf, 0x2c, 0xdd, 0xfe, 0x34, 0xcf, 0x9e, 0x93, 0xe1, 0x24, 0x60, 0x34, 0x5a, 0x7a, 0xe1, 0x74, 0xac, 0x1c, 0xc2, 0x9b, 0x53, 0x49, 0xae, 0x43, 0x79, 0x37, 0xa1, 0xa2, 0x98, 0xc9, 0x60, 0x4e, 0xaf, 0x00, 0x1e, 0xfe, 0x1b, 0x40, 0x0c, 0x27, 0x74, 0x4e, 0x36, 0x71, 0x3b, 0xbf, 0xdb, 0xa0, 0x75, 0x90, 0x2a, 0x82, 0xe9, 0x4f, 0x31, 0x15, 0x12, 0xfa, 0xa0, 0x1c, 0x07, 0x23, 0xc7, 0xea, 0x5a, 0x3d, 0xdb, 0xff, 0xe4, 0x7c, 0xd5, 0x29, 0xad, 0x57, 0x9d, 0x72, 0xff, 0xf8, 0xf0, 0x72, 0xd5, 0xf9, 0xf0, 0xa6, 0x42, 0x72, 0x19, 0x52, 0x81, 0xfa, 0xc7, 0x87, 0x58, 0x81, 0xe1, 0x33, 0x50, 0x99, 0x06, 0x6c, 0xe4, 0xdc, 0xea, 0x5a, 0xbd, 0xc6, 0xde, 0x43, 0x94, 0x4f, 0x20, 0x83, 0xa1, 0x70, 0x3a, 0x56, 0x0e, 0x81, 0x94, 0x0c, 0x68, 0xb1, 0x8b, 0xbe, 0x8c, 0x78, 0x1c, 0x7e, 0x43, 0x23, 0xd5, 0xcc, 0xd7, 0x01, 0x1b, 0xf9, 0xdb, 0xa6, 0x78, 0x45, 0x59, 0x58, 0x33, 0xc2, 0x09, 0xa8, 0x47, 0x54, 0xf0, 0x38, 0x1a, 0x52, 0xa7, 0xac, 0xd9, 0x1f, 0xbd, 0x3d, 0x3b, 0x36, 0x0c, 0x7e, 0xcb, 0x54, 0xa8, 0xa7, 0x1e, 0x9c, 0xb1, 0xc3, 0xcf, 0x40, 0x43, 0xc4, 0x83, 0x34, 0xe0, 0x54, 0xb4, 0x1e, 0x77, 0x0d, 0xa0, 0xf1, 0x24, 0x0f, 0xe1, 0x62, 0x1e, 0x0c, 0x40, 0x23, 0x4a, 0x94, 0x54, 0x5d, 0x3b, 0xff, 0x7b, 0x2f, 0x05, 0x9a, 0xaa, 0x14, 0xce, 0xe9, 0x70, 0x91, 0x1b, 0x2e, 0x41, 0xd3, 0x98, 0x59, 0x97, 0xb7, 0xdf, 0x5b, 0x92, 0xbb, 0xeb, 0x55, 0xa7, 0x89, 0x5f, 0xa5, 0xc5, 0x9b, 0x75, 0xe0, 0x57, 0x00, 0x1a, 0x57, 0x41, 0x08, 0xa7, 0xa9, 0x35, 0x6a, 0x1b, 0x8d, 0x20, 0xbe, 0x92, 0x81, 0xaf, 0x41, 0xc1, 0x2e, 0xa8, 0x30, 0x32, 0xa7, 0xce, 0x96, 0x46, 0x67, 0x43, 0x7f, 0x4c, 0xe6, 0x14, 0xeb, 0x08, 0xf4, 0x80, 0xad, 0xfe, 0x8a, 0x90, 0x0c, 0xa9, 0x53, 0xd5, 0x69, 0x77, 0x4c, 0x9a, 0xfd, 0x38, 0x0d, 0xe0, 0x3c, 0x07, 0x7e, 0x0e, 0x6c, 0x1e, 0xaa, 0x57, 0x3d, 0xe0, 0xcc, 0xa9, 0x69, 0x80, 0x9b, 0x02, 0x4e, 0xd2, 0xc0, 0x65, 0xd1, 0xc0, 0x39, 0x00, 0x3e, 0x05, 0xf5, 0x58, 0xd0, 0xe8, 0x98, 0x3d, 0xe7, 0x4e, 0x5d, 0x0b, 0xfa, 0x11, 0x2a, 0xde, 0x90, 0x57, 0xd6, 0x5e, 0x09, 0xd9, 0x37, 0xd9, 0xf9, 0xfb, 0x94, 0x7a, 0x70, 0xc6, 0x04, 0xfb, 0xa0, 0xca, 0x07, 0x3f, 0xd2, 0xa1, 0x74, 0x6c, 0xcd, 0xf9, 0xe0, 0xc6, 0x21, 0x99, 0xad, 0x45, 0x98, 0x9c, 0x1d, 0xfd, 0x2c, 0x29, 0x53, 0xf3, 0xf1, 0x6f, 0x1b, 0xea, 0xea, 0x89, 0x26, 0xc1, 0x86, 0x0c, 0xfe, 0x00, 0x6c, 0x3e, 0x1b, 0x25, 0x4e, 0x07, 0xbc, 0x0b, 0x73, 0x26, 0xe5, 0x49, 0xca, 0x83, 0x73, 0x4a, 0xb8, 0x03, 0xaa, 0xa3, 0x68, 0x89, 0x63, 0xe6, 0x34, 0xba, 0x56, 0xaf, 0xee, 0x03, 0xd5, 0xc3, 0xa1, 0xf6, 0x60, 0x13, 0x81, 0xcf, 0x40, 0x8d, 0x87, 0x4a, 0x0c, 0xe1, 0x6c, 0xbf, 0x4b, 0x07, 0x4d, 0xd3, 0x41, 0xed, 0x24, 0x61, 0xc1, 0x29, 0xdd, 0xce, 0x1f, 0x15, 0x70, 0xa7, 0x70, 0xa1, 0x44, 0xc8, 0x99, 0xa0, 0xff, 0xc9, 0x89, 0xfa, 0x18, 0xd4, 0xc8, 0x6c, 0xc6, 0xcf, 0x68, 0x72, 0xa5, 0xea, 0x79, 0x13, 0x07, 0x89, 0x1b, 0xa7, 0x71, 0x78, 0x0a, 0xaa, 0x42, 0x12, 0x19, 0x0b, 0x73, 0x71, 0xee, 0xbf, 0xd9, 0x7a, 0x3d, 0xd1, 0x98, 0x44, 0x30, 0x4c, 0x45, 0x3c, 0x93, 0xd8, 0xf0, 0xc0, 0x0e, 0xd8, 0x0a, 0x89, 0x1c, 0x4e, 0xf4, 0x55, 0xd9, 0xf6, 0xed, 0xf5, 0xaa, 0xb3, 0x75, 0xaa, 0x1c, 0x38, 0xf1, 0xc3, 0x7d, 0x60, 0xeb, 0x87, 0xa7, 0xcb, 0x30, 0x5d, 0x8c, 0xb6, 0x1a, 0xd1, 0x69, 0xea, 0xbc, 0x2c, 0x1a, 0x38, 0x4f, 0x86, 0xbf, 0x5a, 0xa0, 0x45, 0xe2, 0x51, 0x20, 0x0f, 0x18, 0xe3, 0x92, 0x24, 0x53, 0xa9, 0x76, 0xcb, 0xbd, 0xc6, 0xde, 0x11, 0x7a, 0xdd, 0x97, 0x10, 0x5d, 0xd1, 0x19, 0x1d, 0x6c, 0xf0, 0x1c, 0x31, 0x19, 0x2d, 0x7d, 0xc7, 0x08, 0xd5, 0xda, 0x0c, 0xe3, 0x2b, 0x85, 0x61, 0x0f, 0xd4, 0xcf, 0x48, 0xc4, 0x02, 0x36, 0x16, 0x4e, 0xad, 0x5b, 0x56, 0xfb, 0xad, 0xd6, 0xe3, 0x5b, 0xe3, 0xc3, 0x59, 0xb4, 0xfd, 0x05, 0xf8, 0xe0, 0xda, 0x72, 0xb0, 0x05, 0xca, 0x53, 0xba, 0x4c, 0x86, 0x8d, 0xd5, 0x23, 0xfc, 0x3f, 0xd8, 0x5a, 0x90, 0x59, 0x4c, 0xf5, 0xe0, 0x6c, 0x9c, 0x18, 0x8f, 0x6e, 0xed, 0x5b, 0x3b, 0x7f, 0x5a, 0xa0, 0x59, 0xf8, 0x37, 0x16, 0x01, 0x3d, 0x83, 0x7d, 0x50, 0x33, 0x47, 0x47, 0x73, 0x34, 0xf6, 0xd0, 0x1b, 0xcb, 0xa0, 0x51, 0x7e, 0x43, 0xbd, 0x14, 0xe9, 0x45, 0x4c, 0xb9, 0xe0, 0x77, 0xfa, 0x43, 0xa4, 0x75, 0x32, 0x9f, 0x39, 0xef, 0x2d, 0xe5, 0x4d, 0xa4, 0x48, 0x2d, 0x9c, 0xd1, 0xf9, 0xfe, 0xf9, 0x85, 0x5b, 0x7a, 0x71, 0xe1, 0x96, 0x5e, 0x5e, 0xb8, 0xa5, 0x5f, 0xd6, 0xae, 0x75, 0xbe, 0x76, 0xad, 0x17, 0x6b, 0xd7, 0x7a, 0xb9, 0x76, 0xad, 0xbf, 0xd6, 0xae, 0xf5, 0xdb, 0xdf, 0x6e, 0xe9, 0xfb, 0x7b, 0xaf, 0xfb, 0x11, 0xf4, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x69, 0x3c, 0x61, 0x0b, 0x3c, 0x09, 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.Warnings) > 0 { for iNdEx := len(m.Warnings) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Warnings[iNdEx]) copy(dAtA[i:], m.Warnings[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Warnings[iNdEx]))) i-- dAtA[i] = 0x3a } } 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)) } } if len(m.Warnings) > 0 { for _, s := range m.Warnings { l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } 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 + `,`, `Warnings:` + fmt.Sprintf("%v", this.Warnings) + `,`, `}`, }, "") 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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > postIndex { return io.ErrUnexpectedEOF } iNdEx += skippy } } m.AuditAnnotations[mapkey] = mapvalue iNdEx = postIndex case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Warnings", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Warnings = append(m.Warnings, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/admission/v1beta1/generated.proto000066400000000000000000000201211453636404600226060ustar00rootroot00000000000000/* 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 "k8s.io/api/authentication/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/admission/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; // warnings is a list of warning messages to return to the requesting API client. // Warning messages describe a problem the client making the API request should correct or be aware of. // Limit warnings to 120 characters if possible. // Warnings over 256 characters and large numbers of warnings may be truncated. // +optional repeated string warnings = 7; } // 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; } golang-k8s-api-0.29.0/admission/v1beta1/register.go000066400000000000000000000035331453636404600217460ustar00rootroot00000000000000/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package v1beta1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name 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() } // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. var ( // SchemeBuilder points to a list of functions added to Scheme. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder // AddToScheme is a common registration function for mapping packaged scoped group & version keys to a scheme. 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 } golang-k8s-api-0.29.0/admission/v1beta1/types.go000066400000000000000000000231061453636404600212640ustar00rootroot00000000000000/* 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 "k8s.io/api/authentication/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/types" ) // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.9 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // This API is never server served. It is used for outbound requests from apiservers. This will ensure it never gets served accidentally // and having the generator against this group will protect future APIs which may be served. // +k8s:prerelease-lifecycle-gen:replacement=admission.k8s.io,v1,AdmissionReview // 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"` // warnings is a list of warning messages to return to the requesting API client. // Warning messages describe a problem the client making the API request should correct or be aware of. // Limit warnings to 120 characters if possible. // Warnings over 256 characters and large numbers of warnings may be truncated. // +optional Warnings []string `json:"warnings,omitempty" protobuf:"bytes,7,rep,name=warnings"` } // 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" ) golang-k8s-api-0.29.0/admission/v1beta1/types_swagger_doc_generated.go000066400000000000000000000170461453636404600256540ustar00rootroot00000000000000/* 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-codegen.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.", "warnings": "warnings is a list of warning messages to return to the requesting API client. Warning messages describe a problem the client making the API request should correct or be aware of. Limit warnings to 120 characters if possible. Warnings over 256 characters and large numbers of warnings may be truncated.", } 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 golang-k8s-api-0.29.0/admission/v1beta1/zz_generated.deepcopy.go000066400000000000000000000075401453636404600244140ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *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 } } if in.Warnings != nil { in, out := &in.Warnings, &out.Warnings *out = make([]string, len(*in)) copy(*out, *in) } 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 } golang-k8s-api-0.29.0/admission/v1beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000044651453636404600266730ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta1 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *AdmissionReview) APILifecycleIntroduced() (major, minor int) { return 1, 9 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *AdmissionReview) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *AdmissionReview) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "admission.k8s.io", Version: "v1", Kind: "AdmissionReview"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *AdmissionReview) APILifecycleRemoved() (major, minor int) { return 1, 22 } golang-k8s-api-0.29.0/admissionregistration/000077500000000000000000000000001453636404600207575ustar00rootroot00000000000000golang-k8s-api-0.29.0/admissionregistration/v1/000077500000000000000000000000001453636404600213055ustar00rootroot00000000000000golang-k8s-api-0.29.0/admissionregistration/v1/doc.go000066400000000000000000000020171453636404600224010ustar00rootroot00000000000000/* 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 "k8s.io/api/admissionregistration/v1" golang-k8s-api-0.29.0/admissionregistration/v1/generated.pb.go000066400000000000000000002751701453636404600242060ustar00rootroot00000000000000/* 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/k8s.io/api/admissionregistration/v1/generated.proto package v1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *MatchCondition) Reset() { *m = MatchCondition{} } func (*MatchCondition) ProtoMessage() {} func (*MatchCondition) Descriptor() ([]byte, []int) { return fileDescriptor_aaac5994f79683e8, []int{0} } func (m *MatchCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *MatchCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *MatchCondition) XXX_Merge(src proto.Message) { xxx_messageInfo_MatchCondition.Merge(m, src) } func (m *MatchCondition) XXX_Size() int { return m.Size() } func (m *MatchCondition) XXX_DiscardUnknown() { xxx_messageInfo_MatchCondition.DiscardUnknown(m) } var xxx_messageInfo_MatchCondition proto.InternalMessageInfo func (m *MutatingWebhook) Reset() { *m = MutatingWebhook{} } func (*MutatingWebhook) ProtoMessage() {} func (*MutatingWebhook) Descriptor() ([]byte, []int) { return fileDescriptor_aaac5994f79683e8, []int{1} } 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{2} } 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{3} } 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{4} } 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{5} } 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{6} } 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{7} } 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{8} } 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{9} } 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{10} } 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((*MatchCondition)(nil), "k8s.io.api.admissionregistration.v1.MatchCondition") 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/k8s.io/api/admissionregistration/v1/generated.proto", fileDescriptor_aaac5994f79683e8) } var fileDescriptor_aaac5994f79683e8 = []byte{ // 1169 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0x4d, 0x6f, 0x1b, 0x45, 0x18, 0xce, 0xc6, 0x36, 0xb1, 0xc7, 0x4e, 0xd2, 0x0c, 0xd0, 0x2e, 0xa5, 0xf2, 0x5a, 0xae, 0x84, 0x82, 0x00, 0x6f, 0x9b, 0x96, 0x52, 0x71, 0x41, 0xb1, 0x29, 0x28, 0x22, 0x69, 0xa3, 0x49, 0x3f, 0x10, 0xea, 0xa1, 0xe3, 0xf5, 0xd8, 0x1e, 0x62, 0xef, 0xac, 0x66, 0x66, 0x4d, 0x7b, 0xe3, 0x27, 0xf0, 0x17, 0xe0, 0x4f, 0xc0, 0x95, 0x5b, 0x8f, 0xbd, 0x91, 0x03, 0x5a, 0x91, 0xe5, 0xc2, 0x81, 0x5f, 0x90, 0x13, 0x9a, 0xd9, 0xf5, 0xae, 0xbf, 0x12, 0x56, 0x39, 0xe4, 0x94, 0x5b, 0xe6, 0x79, 0xdf, 0xf7, 0x79, 0xe7, 0x19, 0xbf, 0x1f, 0xab, 0x80, 0xdd, 0xc3, 0xfb, 0xa2, 0x41, 0x99, 0x7d, 0xe8, 0xb7, 0x09, 0x77, 0x89, 0x24, 0xc2, 0x1e, 0x11, 0xb7, 0xc3, 0xb8, 0x1d, 0x1b, 0xb0, 0x47, 0x6d, 0xdc, 0x19, 0x52, 0x21, 0x28, 0x73, 0x39, 0xe9, 0x51, 0x21, 0x39, 0x96, 0x94, 0xb9, 0xf6, 0xe8, 0xb6, 0xdd, 0x23, 0x2e, 0xe1, 0x58, 0x92, 0x4e, 0xc3, 0xe3, 0x4c, 0x32, 0x78, 0x33, 0x0a, 0x6a, 0x60, 0x8f, 0x36, 0x16, 0x06, 0x35, 0x46, 0xb7, 0xaf, 0x7f, 0xd2, 0xa3, 0xb2, 0xef, 0xb7, 0x1b, 0x0e, 0x1b, 0xda, 0x3d, 0xd6, 0x63, 0xb6, 0x8e, 0x6d, 0xfb, 0x5d, 0x7d, 0xd2, 0x07, 0xfd, 0x57, 0xc4, 0x79, 0xfd, 0x6e, 0x7a, 0x91, 0x21, 0x76, 0xfa, 0xd4, 0x25, 0xfc, 0x95, 0xed, 0x1d, 0xf6, 0x14, 0x20, 0xec, 0x21, 0x91, 0x78, 0xc1, 0x4d, 0xae, 0xdb, 0xa7, 0x45, 0x71, 0xdf, 0x95, 0x74, 0x48, 0xe6, 0x02, 0xee, 0xfd, 0x5f, 0x80, 0x70, 0xfa, 0x64, 0x88, 0x67, 0xe3, 0xea, 0x5d, 0xb0, 0xb6, 0x87, 0xa5, 0xd3, 0x6f, 0x31, 0xb7, 0x43, 0x95, 0x44, 0x58, 0x03, 0x79, 0x17, 0x0f, 0x89, 0x69, 0xd4, 0x8c, 0xcd, 0x52, 0xb3, 0xf2, 0x3a, 0xb0, 0x96, 0xc2, 0xc0, 0xca, 0x3f, 0xc4, 0x43, 0x82, 0xb4, 0x05, 0x6e, 0x01, 0x40, 0x5e, 0x7a, 0x9c, 0xe8, 0xe7, 0x31, 0x97, 0xb5, 0x1f, 0x8c, 0xfd, 0xc0, 0x83, 0xc4, 0x82, 0x26, 0xbc, 0xea, 0xbf, 0x16, 0xc1, 0xfa, 0x9e, 0x2f, 0xb1, 0xa4, 0x6e, 0xef, 0x19, 0x69, 0xf7, 0x19, 0x3b, 0xcc, 0x90, 0x89, 0x83, 0x8a, 0x33, 0xa0, 0xc4, 0x95, 0x2d, 0xe6, 0x76, 0x69, 0x4f, 0xe7, 0x2a, 0x6f, 0xdd, 0x6f, 0x64, 0xf8, 0x9d, 0x1a, 0x71, 0x96, 0xd6, 0x44, 0x7c, 0xf3, 0x9d, 0x38, 0x47, 0x65, 0x12, 0x45, 0x53, 0x39, 0xe0, 0x73, 0x50, 0xe0, 0xfe, 0x80, 0x08, 0x33, 0x57, 0xcb, 0x6d, 0x96, 0xb7, 0x3e, 0xcb, 0x94, 0x0c, 0xf9, 0x03, 0xf2, 0x8c, 0xca, 0xfe, 0x23, 0x8f, 0x44, 0xa0, 0x68, 0xae, 0xc6, 0xb9, 0x0a, 0xca, 0x26, 0x50, 0x44, 0x0a, 0x77, 0xc1, 0x6a, 0x17, 0xd3, 0x81, 0xcf, 0xc9, 0x3e, 0x1b, 0x50, 0xe7, 0x95, 0x99, 0xd7, 0xe2, 0x3f, 0x08, 0x03, 0x6b, 0xf5, 0xab, 0x49, 0xc3, 0x49, 0x60, 0x6d, 0x4c, 0x01, 0x8f, 0x5f, 0x79, 0x04, 0x4d, 0x07, 0xc3, 0x2f, 0x41, 0x79, 0xa8, 0x7e, 0xbd, 0x98, 0xab, 0xa4, 0xb9, 0xea, 0x61, 0x60, 0x95, 0xf7, 0x52, 0xf8, 0x24, 0xb0, 0xd6, 0x27, 0x8e, 0x9a, 0x67, 0x32, 0x0c, 0xbe, 0x04, 0x1b, 0xea, 0xb5, 0x85, 0x87, 0x1d, 0x72, 0x40, 0x06, 0xc4, 0x91, 0x8c, 0x9b, 0x05, 0xfd, 0xd4, 0x77, 0x26, 0xd4, 0x27, 0x75, 0xd5, 0xf0, 0x0e, 0x7b, 0x0a, 0x10, 0x0d, 0x55, 0xbe, 0x4a, 0xfe, 0x2e, 0x6e, 0x93, 0xc1, 0x38, 0xb4, 0xf9, 0x6e, 0x18, 0x58, 0x1b, 0x0f, 0x67, 0x19, 0xd1, 0x7c, 0x12, 0xc8, 0xc0, 0x1a, 0x6b, 0x7f, 0x4f, 0x1c, 0x99, 0xa4, 0x2d, 0x9f, 0x3f, 0x2d, 0x0c, 0x03, 0x6b, 0xed, 0xd1, 0x14, 0x1d, 0x9a, 0xa1, 0x57, 0x0f, 0x26, 0x68, 0x87, 0x3c, 0xe8, 0x76, 0x89, 0x23, 0x85, 0xf9, 0x56, 0xfa, 0x60, 0x07, 0x29, 0xac, 0x1e, 0x2c, 0x3d, 0xb6, 0x06, 0x58, 0x08, 0x34, 0x19, 0x06, 0x3f, 0x07, 0x6b, 0xaa, 0xa7, 0x98, 0x2f, 0x0f, 0x88, 0xc3, 0xdc, 0x8e, 0x30, 0x57, 0x6a, 0xc6, 0x66, 0x21, 0xba, 0xc1, 0xe3, 0x29, 0x0b, 0x9a, 0xf1, 0x84, 0x4f, 0xc0, 0xb5, 0xa4, 0x8a, 0x10, 0x19, 0x51, 0xf2, 0xc3, 0x53, 0xc2, 0xd5, 0x41, 0x98, 0xc5, 0x5a, 0x6e, 0xb3, 0xd4, 0x7c, 0x3f, 0x0c, 0xac, 0x6b, 0xdb, 0x8b, 0x5d, 0xd0, 0x69, 0xb1, 0xf0, 0x05, 0x80, 0x9c, 0x50, 0x77, 0xc4, 0x1c, 0x5d, 0x7e, 0x71, 0x41, 0x00, 0xad, 0xef, 0x56, 0x18, 0x58, 0x10, 0xcd, 0x59, 0x4f, 0x02, 0xeb, 0xea, 0x3c, 0xaa, 0xcb, 0x63, 0x01, 0x17, 0x1c, 0x81, 0xf5, 0xe1, 0xd4, 0xa4, 0x10, 0x66, 0x45, 0x77, 0xc8, 0x9d, 0x4c, 0x1d, 0x32, 0x3d, 0x65, 0x9a, 0xd7, 0xe2, 0xee, 0x58, 0x9f, 0xc6, 0x05, 0x9a, 0x4d, 0x52, 0x3f, 0x32, 0xc0, 0x8d, 0x99, 0xc9, 0x11, 0x75, 0xaa, 0x1f, 0x91, 0xc3, 0x17, 0xa0, 0xa8, 0x0a, 0xa2, 0x83, 0x25, 0xd6, 0xa3, 0xa4, 0xbc, 0x75, 0x2b, 0x5b, 0xf9, 0x44, 0xb5, 0xb2, 0x47, 0x24, 0x4e, 0xc7, 0x57, 0x8a, 0xa1, 0x84, 0x15, 0x3e, 0x05, 0xc5, 0x38, 0xb3, 0x30, 0x97, 0xb5, 0xe6, 0xbb, 0xd9, 0x34, 0x4f, 0x5f, 0xbb, 0x99, 0x57, 0x59, 0x50, 0xc2, 0x55, 0xff, 0xc7, 0x00, 0xb5, 0xb3, 0xa4, 0xed, 0x52, 0x21, 0xe1, 0xf3, 0x39, 0x79, 0x8d, 0x8c, 0xdd, 0x41, 0x45, 0x24, 0xee, 0x4a, 0x2c, 0xae, 0x38, 0x46, 0x26, 0xa4, 0x75, 0x41, 0x81, 0x4a, 0x32, 0x1c, 0xeb, 0xda, 0x3e, 0x8f, 0xae, 0xa9, 0x3b, 0xa7, 0x73, 0x6f, 0x47, 0xf1, 0xa2, 0x88, 0xbe, 0xfe, 0xbb, 0x01, 0xf2, 0x6a, 0x10, 0xc2, 0x8f, 0x40, 0x09, 0x7b, 0xf4, 0x6b, 0xce, 0x7c, 0x4f, 0x98, 0x86, 0xae, 0xf8, 0xd5, 0x30, 0xb0, 0x4a, 0xdb, 0xfb, 0x3b, 0x11, 0x88, 0x52, 0x3b, 0xbc, 0x0d, 0xca, 0xd8, 0xa3, 0x49, 0x83, 0x2c, 0x6b, 0xf7, 0x75, 0xd5, 0xae, 0xdb, 0xfb, 0x3b, 0x49, 0x53, 0x4c, 0xfa, 0x28, 0x7e, 0x4e, 0x04, 0xf3, 0xb9, 0x13, 0x8f, 0xf0, 0x98, 0x1f, 0x8d, 0x41, 0x94, 0xda, 0xe1, 0xc7, 0xa0, 0x20, 0x1c, 0xe6, 0x91, 0x78, 0x0a, 0x5f, 0x55, 0xd7, 0x3e, 0x50, 0xc0, 0x49, 0x60, 0x95, 0xf4, 0x1f, 0xba, 0x1d, 0x22, 0xa7, 0xfa, 0x2f, 0x06, 0x80, 0xf3, 0x83, 0x1e, 0x7e, 0x01, 0x00, 0x4b, 0x4e, 0xb1, 0x24, 0x4b, 0xd7, 0x52, 0x82, 0x9e, 0x04, 0xd6, 0x6a, 0x72, 0xd2, 0x94, 0x13, 0x21, 0xf0, 0x1b, 0x90, 0x57, 0xcb, 0x21, 0xde, 0x6e, 0x1f, 0x66, 0x5e, 0x38, 0xe9, 0xca, 0x54, 0x27, 0xa4, 0x49, 0xea, 0x3f, 0x1b, 0xe0, 0xca, 0x01, 0xe1, 0x23, 0xea, 0x10, 0x44, 0xba, 0x84, 0x13, 0xd7, 0x21, 0xd0, 0x06, 0xa5, 0x64, 0xf8, 0xc6, 0xeb, 0x76, 0x23, 0x8e, 0x2d, 0x25, 0x83, 0x1a, 0xa5, 0x3e, 0xc9, 0x6a, 0x5e, 0x3e, 0x75, 0x35, 0xdf, 0x00, 0x79, 0x0f, 0xcb, 0xbe, 0x99, 0xd3, 0x1e, 0x45, 0x65, 0xdd, 0xc7, 0xb2, 0x8f, 0x34, 0xaa, 0xad, 0x8c, 0x4b, 0xfd, 0xae, 0x85, 0xd8, 0xca, 0xb8, 0x44, 0x1a, 0xad, 0xff, 0xb1, 0x02, 0x36, 0x9e, 0xe2, 0x01, 0xed, 0x5c, 0x7e, 0x0e, 0x5c, 0x7e, 0x0e, 0x9c, 0xf9, 0x39, 0x00, 0x2e, 0x3f, 0x07, 0xce, 0xf5, 0x39, 0xb0, 0x60, 0x59, 0x97, 0x2f, 0x62, 0x59, 0xff, 0x69, 0x80, 0xea, 0x5c, 0x67, 0x5f, 0xf4, 0xba, 0xfe, 0x76, 0x6e, 0x5d, 0xdf, 0xcb, 0xa4, 0x7a, 0xee, 0xe2, 0x73, 0x0b, 0xfb, 0x5f, 0x03, 0xd4, 0xcf, 0x96, 0x77, 0x01, 0x2b, 0xbb, 0x3f, 0xbd, 0xb2, 0x5b, 0xe7, 0xd3, 0x96, 0x65, 0x69, 0xff, 0x66, 0x80, 0xb7, 0x17, 0xcc, 0x4d, 0xf8, 0x1e, 0xc8, 0xf9, 0x7c, 0x10, 0x8f, 0xfe, 0x95, 0x30, 0xb0, 0x72, 0x4f, 0xd0, 0x2e, 0x52, 0x18, 0x7c, 0x0e, 0x56, 0x44, 0xb4, 0x7d, 0x62, 0xe5, 0x9f, 0x66, 0xba, 0xde, 0xec, 0xc6, 0x6a, 0x96, 0xc3, 0xc0, 0x5a, 0x19, 0xa3, 0x63, 0x4a, 0xb8, 0x09, 0x8a, 0x0e, 0x6e, 0xfa, 0x6e, 0x27, 0xde, 0x96, 0x95, 0x66, 0x45, 0x3d, 0x52, 0x6b, 0x3b, 0xc2, 0x50, 0x62, 0x6d, 0xee, 0xbc, 0x3e, 0xae, 0x2e, 0xbd, 0x39, 0xae, 0x2e, 0x1d, 0x1d, 0x57, 0x97, 0x7e, 0x0c, 0xab, 0xc6, 0xeb, 0xb0, 0x6a, 0xbc, 0x09, 0xab, 0xc6, 0x51, 0x58, 0x35, 0xfe, 0x0a, 0xab, 0xc6, 0x4f, 0x7f, 0x57, 0x97, 0xbe, 0xbb, 0x99, 0xe1, 0xbf, 0x04, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x7f, 0xe1, 0x3a, 0x73, 0x64, 0x10, 0x00, 0x00, } func (m *MatchCondition) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *MatchCondition) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *MatchCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.Expression) copy(dAtA[i:], m.Expression) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Expression))) 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 *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 len(m.MatchConditions) > 0 { for iNdEx := len(m.MatchConditions) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.MatchConditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x62 } } 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 len(m.MatchConditions) > 0 { for iNdEx := len(m.MatchConditions) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.MatchConditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x5a } } 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 *MatchCondition) 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.Expression) n += 1 + l + sovGenerated(uint64(l)) return n } 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)) } if len(m.MatchConditions) > 0 { for _, e := range m.MatchConditions { l = e.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)) } if len(m.MatchConditions) > 0 { for _, e := range m.MatchConditions { l = e.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 *MatchCondition) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&MatchCondition{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Expression:` + fmt.Sprintf("%v", this.Expression) + `,`, `}`, }, "") return s } 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 += "}" repeatedStringForMatchConditions := "[]MatchCondition{" for _, f := range this.MatchConditions { repeatedStringForMatchConditions += strings.Replace(strings.Replace(f.String(), "MatchCondition", "MatchCondition", 1), `&`, ``, 1) + "," } repeatedStringForMatchConditions += "}" 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) + `,`, `MatchConditions:` + repeatedStringForMatchConditions + `,`, `}`, }, "") 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 += "}" repeatedStringForMatchConditions := "[]MatchCondition{" for _, f := range this.MatchConditions { repeatedStringForMatchConditions += strings.Replace(strings.Replace(f.String(), "MatchCondition", "MatchCondition", 1), `&`, ``, 1) + "," } repeatedStringForMatchConditions += "}" 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) + `,`, `MatchConditions:` + repeatedStringForMatchConditions + `,`, `}`, }, "") 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 *MatchCondition) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: MatchCondition: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: MatchCondition: 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 Expression", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Expression = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } 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 case 12: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MatchConditions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.MatchConditions = append(m.MatchConditions, MatchCondition{}) if err := m.MatchConditions[len(m.MatchConditions)-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) || (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) || (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) || (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) || (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) || (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) || (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 case 11: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MatchConditions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.MatchConditions = append(m.MatchConditions, MatchCondition{}) if err := m.MatchConditions[len(m.MatchConditions)-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) || (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) || (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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/admissionregistration/v1/generated.proto000066400000000000000000000606441453636404600243420ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/admissionregistration/v1"; // MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook. message MatchCondition { // Name is an identifier for this match condition, used for strategic merging of MatchConditions, // as well as providing an identifier for logging purposes. A good name should be descriptive of // the associated expression. // Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and // must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or // '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an // optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') // // Required. optional string name = 1; // Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. // CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: // // 'object' - The object from the incoming request. The value is null for DELETE requests. // 'oldObject' - The existing object. The value is null for CREATE requests. // 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). // 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. // See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz // 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the // request resource. // Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ // // Required. optional string expression = 2; } // 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 chain 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; // MatchConditions is a list of conditions that must be met for a request to be sent to this // webhook. Match conditions filter requests that have already been matched by the rules, // namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. // There are a maximum of 64 match conditions allowed. // // The exact matching logic is (in order): // 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. // 2. If ALL matchConditions evaluate to TRUE, the webhook is called. // 3. If any matchCondition evaluates to an error (but none are FALSE): // - If failurePolicy=Fail, reject the request // - If failurePolicy=Ignore, the error is ignored and the webhook is skipped // // This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. // // +patchMergeKey=name // +patchStrategy=merge // +listType=map // +listMapKey=name // +featureGate=AdmissionWebhookMatchConditions // +optional repeated MatchCondition matchConditions = 12; } // 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. // +listType=atomic 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. // +listType=atomic 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. // +listType=atomic 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, DELETE, CONNECT or * // for all of those operations and any future admission operations that are added. // If '*' is present, the length of the slice must be one. // Required. // +listType=atomic 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 chain 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; // MatchConditions is a list of conditions that must be met for a request to be sent to this // webhook. Match conditions filter requests that have already been matched by the rules, // namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. // There are a maximum of 64 match conditions allowed. // // The exact matching logic is (in order): // 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. // 2. If ALL matchConditions evaluate to TRUE, the webhook is called. // 3. If any matchCondition evaluates to an error (but none are FALSE): // - If failurePolicy=Fail, reject the request // - If failurePolicy=Ignore, the error is ignored and the webhook is skipped // // This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. // // +patchMergeKey=name // +patchStrategy=merge // +listType=map // +listMapKey=name // +featureGate=AdmissionWebhookMatchConditions // +optional repeated MatchCondition matchConditions = 11; } // 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; } golang-k8s-api-0.29.0/admissionregistration/v1/register.go000066400000000000000000000037251453636404600234670ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name for this API. 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() } // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. var ( // SchemeBuilder points to a list of functions added to Scheme. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder // AddToScheme is a common registration function for mapping packaged scoped group & version keys to a scheme. 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 } golang-k8s-api-0.29.0/admissionregistration/v1/types.go000066400000000000000000000736441453636404600230160ustar00rootroot00000000000000/* 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 "k8s.io/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. // +listType=atomic 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. // +listType=atomic 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. // +listType=atomic 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"` } // ScopeType specifies a scope for a Rule. // +enum 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 = "*" ) // FailurePolicyType specifies a failure policy that defines how unrecognized errors from the admission endpoint are handled. // +enum 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. // +enum 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" ) // SideEffectClass specifies the types of side effects a webhook may have. // +enum 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=k8s.io/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=k8s.io/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=k8s.io/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=k8s.io/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 chain 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"` // MatchConditions is a list of conditions that must be met for a request to be sent to this // webhook. Match conditions filter requests that have already been matched by the rules, // namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. // There are a maximum of 64 match conditions allowed. // // The exact matching logic is (in order): // 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. // 2. If ALL matchConditions evaluate to TRUE, the webhook is called. // 3. If any matchCondition evaluates to an error (but none are FALSE): // - If failurePolicy=Fail, reject the request // - If failurePolicy=Ignore, the error is ignored and the webhook is skipped // // This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. // // +patchMergeKey=name // +patchStrategy=merge // +listType=map // +listMapKey=name // +featureGate=AdmissionWebhookMatchConditions // +optional MatchConditions []MatchCondition `json:"matchConditions,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,11,opt,name=matchConditions"` } // 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 chain 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"` // MatchConditions is a list of conditions that must be met for a request to be sent to this // webhook. Match conditions filter requests that have already been matched by the rules, // namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. // There are a maximum of 64 match conditions allowed. // // The exact matching logic is (in order): // 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. // 2. If ALL matchConditions evaluate to TRUE, the webhook is called. // 3. If any matchCondition evaluates to an error (but none are FALSE): // - If failurePolicy=Fail, reject the request // - If failurePolicy=Ignore, the error is ignored and the webhook is skipped // // This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. // // +patchMergeKey=name // +patchStrategy=merge // +listType=map // +listMapKey=name // +featureGate=AdmissionWebhookMatchConditions // +optional MatchConditions []MatchCondition `json:"matchConditions,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,12,opt,name=matchConditions"` } // ReinvocationPolicyType specifies what type of policy the admission hook uses. // +enum 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, DELETE, CONNECT or * // for all of those operations and any future admission operations that are added. // If '*' is present, the length of the slice must be one. // Required. // +listType=atomic 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"` } // OperationType specifies an operation for a request. // +enum 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"` } // MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook. type MatchCondition struct { // Name is an identifier for this match condition, used for strategic merging of MatchConditions, // as well as providing an identifier for logging purposes. A good name should be descriptive of // the associated expression. // Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and // must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or // '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an // optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') // // Required. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` // Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. // CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: // // 'object' - The object from the incoming request. The value is null for DELETE requests. // 'oldObject' - The existing object. The value is null for CREATE requests. // 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). // 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. // See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz // 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the // request resource. // Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ // // Required. Expression string `json:"expression" protobuf:"bytes,2,opt,name=expression"` } golang-k8s-api-0.29.0/admissionregistration/v1/types_swagger_doc_generated.go000066400000000000000000000553561453636404600274000ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_MatchCondition = map[string]string{ "": "MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.", "name": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", "expression": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", } func (MatchCondition) SwaggerDoc() map[string]string { return map_MatchCondition } 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 chain 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\".", "matchConditions": "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped\n\nThis is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate.", } 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, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. 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 chain 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.", "matchConditions": "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped\n\nThis is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate.", } 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 golang-k8s-api-0.29.0/admissionregistration/v1/zz_generated.deepcopy.go000066400000000000000000000277271453636404600261430ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MatchCondition) DeepCopyInto(out *MatchCondition) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchCondition. func (in *MatchCondition) DeepCopy() *MatchCondition { if in == nil { return nil } out := new(MatchCondition) in.DeepCopyInto(out) return out } // 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 } if in.MatchConditions != nil { in, out := &in.MatchConditions, &out.MatchConditions *out = make([]MatchCondition, len(*in)) copy(*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) } if in.MatchConditions != nil { in, out := &in.MatchConditions, &out.MatchConditions *out = make([]MatchCondition, 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 } golang-k8s-api-0.29.0/admissionregistration/v1alpha1/000077500000000000000000000000001453636404600223745ustar00rootroot00000000000000golang-k8s-api-0.29.0/admissionregistration/v1alpha1/doc.go000066400000000000000000000014711453636404600234730ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 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 v1alpha1 is the v1alpha1 version of the API. package v1alpha1 // import "k8s.io/api/admissionregistration/v1alpha1" golang-k8s-api-0.29.0/admissionregistration/v1alpha1/generated.pb.go000066400000000000000000003540711453636404600252730ustar00rootroot00000000000000/* 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/k8s.io/api/admissionregistration/v1alpha1/generated.proto package v1alpha1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *AuditAnnotation) Reset() { *m = AuditAnnotation{} } func (*AuditAnnotation) ProtoMessage() {} func (*AuditAnnotation) Descriptor() ([]byte, []int) { return fileDescriptor_c3be8d256e3ae3cf, []int{0} } func (m *AuditAnnotation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *AuditAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *AuditAnnotation) XXX_Merge(src proto.Message) { xxx_messageInfo_AuditAnnotation.Merge(m, src) } func (m *AuditAnnotation) XXX_Size() int { return m.Size() } func (m *AuditAnnotation) XXX_DiscardUnknown() { xxx_messageInfo_AuditAnnotation.DiscardUnknown(m) } var xxx_messageInfo_AuditAnnotation proto.InternalMessageInfo func (m *ExpressionWarning) Reset() { *m = ExpressionWarning{} } func (*ExpressionWarning) ProtoMessage() {} func (*ExpressionWarning) Descriptor() ([]byte, []int) { return fileDescriptor_c3be8d256e3ae3cf, []int{1} } func (m *ExpressionWarning) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ExpressionWarning) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ExpressionWarning) XXX_Merge(src proto.Message) { xxx_messageInfo_ExpressionWarning.Merge(m, src) } func (m *ExpressionWarning) XXX_Size() int { return m.Size() } func (m *ExpressionWarning) XXX_DiscardUnknown() { xxx_messageInfo_ExpressionWarning.DiscardUnknown(m) } var xxx_messageInfo_ExpressionWarning proto.InternalMessageInfo func (m *MatchCondition) Reset() { *m = MatchCondition{} } func (*MatchCondition) ProtoMessage() {} func (*MatchCondition) Descriptor() ([]byte, []int) { return fileDescriptor_c3be8d256e3ae3cf, []int{2} } func (m *MatchCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *MatchCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *MatchCondition) XXX_Merge(src proto.Message) { xxx_messageInfo_MatchCondition.Merge(m, src) } func (m *MatchCondition) XXX_Size() int { return m.Size() } func (m *MatchCondition) XXX_DiscardUnknown() { xxx_messageInfo_MatchCondition.DiscardUnknown(m) } var xxx_messageInfo_MatchCondition proto.InternalMessageInfo func (m *MatchResources) Reset() { *m = MatchResources{} } func (*MatchResources) ProtoMessage() {} func (*MatchResources) Descriptor() ([]byte, []int) { return fileDescriptor_c3be8d256e3ae3cf, []int{3} } func (m *MatchResources) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *MatchResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *MatchResources) XXX_Merge(src proto.Message) { xxx_messageInfo_MatchResources.Merge(m, src) } func (m *MatchResources) XXX_Size() int { return m.Size() } func (m *MatchResources) XXX_DiscardUnknown() { xxx_messageInfo_MatchResources.DiscardUnknown(m) } var xxx_messageInfo_MatchResources proto.InternalMessageInfo func (m *NamedRuleWithOperations) Reset() { *m = NamedRuleWithOperations{} } func (*NamedRuleWithOperations) ProtoMessage() {} func (*NamedRuleWithOperations) Descriptor() ([]byte, []int) { return fileDescriptor_c3be8d256e3ae3cf, []int{4} } func (m *NamedRuleWithOperations) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *NamedRuleWithOperations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *NamedRuleWithOperations) XXX_Merge(src proto.Message) { xxx_messageInfo_NamedRuleWithOperations.Merge(m, src) } func (m *NamedRuleWithOperations) XXX_Size() int { return m.Size() } func (m *NamedRuleWithOperations) XXX_DiscardUnknown() { xxx_messageInfo_NamedRuleWithOperations.DiscardUnknown(m) } var xxx_messageInfo_NamedRuleWithOperations proto.InternalMessageInfo func (m *ParamKind) Reset() { *m = ParamKind{} } func (*ParamKind) ProtoMessage() {} func (*ParamKind) Descriptor() ([]byte, []int) { return fileDescriptor_c3be8d256e3ae3cf, []int{5} } func (m *ParamKind) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ParamKind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ParamKind) XXX_Merge(src proto.Message) { xxx_messageInfo_ParamKind.Merge(m, src) } func (m *ParamKind) XXX_Size() int { return m.Size() } func (m *ParamKind) XXX_DiscardUnknown() { xxx_messageInfo_ParamKind.DiscardUnknown(m) } var xxx_messageInfo_ParamKind proto.InternalMessageInfo func (m *ParamRef) Reset() { *m = ParamRef{} } func (*ParamRef) ProtoMessage() {} func (*ParamRef) Descriptor() ([]byte, []int) { return fileDescriptor_c3be8d256e3ae3cf, []int{6} } func (m *ParamRef) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ParamRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ParamRef) XXX_Merge(src proto.Message) { xxx_messageInfo_ParamRef.Merge(m, src) } func (m *ParamRef) XXX_Size() int { return m.Size() } func (m *ParamRef) XXX_DiscardUnknown() { xxx_messageInfo_ParamRef.DiscardUnknown(m) } var xxx_messageInfo_ParamRef proto.InternalMessageInfo func (m *TypeChecking) Reset() { *m = TypeChecking{} } func (*TypeChecking) ProtoMessage() {} func (*TypeChecking) Descriptor() ([]byte, []int) { return fileDescriptor_c3be8d256e3ae3cf, []int{7} } func (m *TypeChecking) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *TypeChecking) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *TypeChecking) XXX_Merge(src proto.Message) { xxx_messageInfo_TypeChecking.Merge(m, src) } func (m *TypeChecking) XXX_Size() int { return m.Size() } func (m *TypeChecking) XXX_DiscardUnknown() { xxx_messageInfo_TypeChecking.DiscardUnknown(m) } var xxx_messageInfo_TypeChecking proto.InternalMessageInfo func (m *ValidatingAdmissionPolicy) Reset() { *m = ValidatingAdmissionPolicy{} } func (*ValidatingAdmissionPolicy) ProtoMessage() {} func (*ValidatingAdmissionPolicy) Descriptor() ([]byte, []int) { return fileDescriptor_c3be8d256e3ae3cf, []int{8} } func (m *ValidatingAdmissionPolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ValidatingAdmissionPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ValidatingAdmissionPolicy) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidatingAdmissionPolicy.Merge(m, src) } func (m *ValidatingAdmissionPolicy) XXX_Size() int { return m.Size() } func (m *ValidatingAdmissionPolicy) XXX_DiscardUnknown() { xxx_messageInfo_ValidatingAdmissionPolicy.DiscardUnknown(m) } var xxx_messageInfo_ValidatingAdmissionPolicy proto.InternalMessageInfo func (m *ValidatingAdmissionPolicyBinding) Reset() { *m = ValidatingAdmissionPolicyBinding{} } func (*ValidatingAdmissionPolicyBinding) ProtoMessage() {} func (*ValidatingAdmissionPolicyBinding) Descriptor() ([]byte, []int) { return fileDescriptor_c3be8d256e3ae3cf, []int{9} } func (m *ValidatingAdmissionPolicyBinding) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ValidatingAdmissionPolicyBinding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ValidatingAdmissionPolicyBinding) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidatingAdmissionPolicyBinding.Merge(m, src) } func (m *ValidatingAdmissionPolicyBinding) XXX_Size() int { return m.Size() } func (m *ValidatingAdmissionPolicyBinding) XXX_DiscardUnknown() { xxx_messageInfo_ValidatingAdmissionPolicyBinding.DiscardUnknown(m) } var xxx_messageInfo_ValidatingAdmissionPolicyBinding proto.InternalMessageInfo func (m *ValidatingAdmissionPolicyBindingList) Reset() { *m = ValidatingAdmissionPolicyBindingList{} } func (*ValidatingAdmissionPolicyBindingList) ProtoMessage() {} func (*ValidatingAdmissionPolicyBindingList) Descriptor() ([]byte, []int) { return fileDescriptor_c3be8d256e3ae3cf, []int{10} } func (m *ValidatingAdmissionPolicyBindingList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ValidatingAdmissionPolicyBindingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ValidatingAdmissionPolicyBindingList) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidatingAdmissionPolicyBindingList.Merge(m, src) } func (m *ValidatingAdmissionPolicyBindingList) XXX_Size() int { return m.Size() } func (m *ValidatingAdmissionPolicyBindingList) XXX_DiscardUnknown() { xxx_messageInfo_ValidatingAdmissionPolicyBindingList.DiscardUnknown(m) } var xxx_messageInfo_ValidatingAdmissionPolicyBindingList proto.InternalMessageInfo func (m *ValidatingAdmissionPolicyBindingSpec) Reset() { *m = ValidatingAdmissionPolicyBindingSpec{} } func (*ValidatingAdmissionPolicyBindingSpec) ProtoMessage() {} func (*ValidatingAdmissionPolicyBindingSpec) Descriptor() ([]byte, []int) { return fileDescriptor_c3be8d256e3ae3cf, []int{11} } func (m *ValidatingAdmissionPolicyBindingSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ValidatingAdmissionPolicyBindingSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ValidatingAdmissionPolicyBindingSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidatingAdmissionPolicyBindingSpec.Merge(m, src) } func (m *ValidatingAdmissionPolicyBindingSpec) XXX_Size() int { return m.Size() } func (m *ValidatingAdmissionPolicyBindingSpec) XXX_DiscardUnknown() { xxx_messageInfo_ValidatingAdmissionPolicyBindingSpec.DiscardUnknown(m) } var xxx_messageInfo_ValidatingAdmissionPolicyBindingSpec proto.InternalMessageInfo func (m *ValidatingAdmissionPolicyList) Reset() { *m = ValidatingAdmissionPolicyList{} } func (*ValidatingAdmissionPolicyList) ProtoMessage() {} func (*ValidatingAdmissionPolicyList) Descriptor() ([]byte, []int) { return fileDescriptor_c3be8d256e3ae3cf, []int{12} } func (m *ValidatingAdmissionPolicyList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ValidatingAdmissionPolicyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ValidatingAdmissionPolicyList) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidatingAdmissionPolicyList.Merge(m, src) } func (m *ValidatingAdmissionPolicyList) XXX_Size() int { return m.Size() } func (m *ValidatingAdmissionPolicyList) XXX_DiscardUnknown() { xxx_messageInfo_ValidatingAdmissionPolicyList.DiscardUnknown(m) } var xxx_messageInfo_ValidatingAdmissionPolicyList proto.InternalMessageInfo func (m *ValidatingAdmissionPolicySpec) Reset() { *m = ValidatingAdmissionPolicySpec{} } func (*ValidatingAdmissionPolicySpec) ProtoMessage() {} func (*ValidatingAdmissionPolicySpec) Descriptor() ([]byte, []int) { return fileDescriptor_c3be8d256e3ae3cf, []int{13} } func (m *ValidatingAdmissionPolicySpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ValidatingAdmissionPolicySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ValidatingAdmissionPolicySpec) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidatingAdmissionPolicySpec.Merge(m, src) } func (m *ValidatingAdmissionPolicySpec) XXX_Size() int { return m.Size() } func (m *ValidatingAdmissionPolicySpec) XXX_DiscardUnknown() { xxx_messageInfo_ValidatingAdmissionPolicySpec.DiscardUnknown(m) } var xxx_messageInfo_ValidatingAdmissionPolicySpec proto.InternalMessageInfo func (m *ValidatingAdmissionPolicyStatus) Reset() { *m = ValidatingAdmissionPolicyStatus{} } func (*ValidatingAdmissionPolicyStatus) ProtoMessage() {} func (*ValidatingAdmissionPolicyStatus) Descriptor() ([]byte, []int) { return fileDescriptor_c3be8d256e3ae3cf, []int{14} } func (m *ValidatingAdmissionPolicyStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ValidatingAdmissionPolicyStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ValidatingAdmissionPolicyStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidatingAdmissionPolicyStatus.Merge(m, src) } func (m *ValidatingAdmissionPolicyStatus) XXX_Size() int { return m.Size() } func (m *ValidatingAdmissionPolicyStatus) XXX_DiscardUnknown() { xxx_messageInfo_ValidatingAdmissionPolicyStatus.DiscardUnknown(m) } var xxx_messageInfo_ValidatingAdmissionPolicyStatus proto.InternalMessageInfo func (m *Validation) Reset() { *m = Validation{} } func (*Validation) ProtoMessage() {} func (*Validation) Descriptor() ([]byte, []int) { return fileDescriptor_c3be8d256e3ae3cf, []int{15} } func (m *Validation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Validation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *Validation) XXX_Merge(src proto.Message) { xxx_messageInfo_Validation.Merge(m, src) } func (m *Validation) XXX_Size() int { return m.Size() } func (m *Validation) XXX_DiscardUnknown() { xxx_messageInfo_Validation.DiscardUnknown(m) } var xxx_messageInfo_Validation proto.InternalMessageInfo func (m *Variable) Reset() { *m = Variable{} } func (*Variable) ProtoMessage() {} func (*Variable) Descriptor() ([]byte, []int) { return fileDescriptor_c3be8d256e3ae3cf, []int{16} } func (m *Variable) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Variable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *Variable) XXX_Merge(src proto.Message) { xxx_messageInfo_Variable.Merge(m, src) } func (m *Variable) XXX_Size() int { return m.Size() } func (m *Variable) XXX_DiscardUnknown() { xxx_messageInfo_Variable.DiscardUnknown(m) } var xxx_messageInfo_Variable proto.InternalMessageInfo func init() { proto.RegisterType((*AuditAnnotation)(nil), "k8s.io.api.admissionregistration.v1alpha1.AuditAnnotation") proto.RegisterType((*ExpressionWarning)(nil), "k8s.io.api.admissionregistration.v1alpha1.ExpressionWarning") proto.RegisterType((*MatchCondition)(nil), "k8s.io.api.admissionregistration.v1alpha1.MatchCondition") proto.RegisterType((*MatchResources)(nil), "k8s.io.api.admissionregistration.v1alpha1.MatchResources") proto.RegisterType((*NamedRuleWithOperations)(nil), "k8s.io.api.admissionregistration.v1alpha1.NamedRuleWithOperations") proto.RegisterType((*ParamKind)(nil), "k8s.io.api.admissionregistration.v1alpha1.ParamKind") proto.RegisterType((*ParamRef)(nil), "k8s.io.api.admissionregistration.v1alpha1.ParamRef") proto.RegisterType((*TypeChecking)(nil), "k8s.io.api.admissionregistration.v1alpha1.TypeChecking") proto.RegisterType((*ValidatingAdmissionPolicy)(nil), "k8s.io.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy") proto.RegisterType((*ValidatingAdmissionPolicyBinding)(nil), "k8s.io.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding") proto.RegisterType((*ValidatingAdmissionPolicyBindingList)(nil), "k8s.io.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList") proto.RegisterType((*ValidatingAdmissionPolicyBindingSpec)(nil), "k8s.io.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec") proto.RegisterType((*ValidatingAdmissionPolicyList)(nil), "k8s.io.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList") proto.RegisterType((*ValidatingAdmissionPolicySpec)(nil), "k8s.io.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec") proto.RegisterType((*ValidatingAdmissionPolicyStatus)(nil), "k8s.io.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyStatus") proto.RegisterType((*Validation)(nil), "k8s.io.api.admissionregistration.v1alpha1.Validation") proto.RegisterType((*Variable)(nil), "k8s.io.api.admissionregistration.v1alpha1.Variable") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/admissionregistration/v1alpha1/generated.proto", fileDescriptor_c3be8d256e3ae3cf) } var fileDescriptor_c3be8d256e3ae3cf = []byte{ // 1509 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcb, 0x6f, 0x1b, 0x45, 0x18, 0xcf, 0xc6, 0x6e, 0x12, 0x8f, 0xf3, 0xf2, 0xd0, 0x2a, 0x6e, 0xa0, 0xde, 0x68, 0x55, 0xa1, 0x46, 0x82, 0x35, 0x49, 0x0b, 0x85, 0x0a, 0x09, 0x65, 0xfb, 0xa2, 0x8f, 0x3c, 0x34, 0x45, 0x89, 0x84, 0x40, 0x62, 0xb2, 0x3b, 0x71, 0xa6, 0xf6, 0x3e, 0xd8, 0x59, 0x9b, 0x46, 0x20, 0x51, 0x89, 0x0b, 0xdc, 0x38, 0x70, 0xe1, 0xca, 0x9f, 0xc0, 0x7f, 0xc0, 0xad, 0xc7, 0x1e, 0xcb, 0x01, 0x8b, 0x9a, 0x0b, 0x7f, 0x01, 0x48, 0xb9, 0x80, 0x66, 0x76, 0xf6, 0x69, 0x9b, 0xd8, 0x25, 0x70, 0xf3, 0x7c, 0x8f, 0xdf, 0xf7, 0x98, 0xef, 0xfb, 0xf6, 0x1b, 0x03, 0xd4, 0x7c, 0x9b, 0xe9, 0xd4, 0xad, 0x37, 0xdb, 0xfb, 0xc4, 0x77, 0x48, 0x40, 0x58, 0xbd, 0x43, 0x1c, 0xcb, 0xf5, 0xeb, 0x92, 0x81, 0x3d, 0x5a, 0xc7, 0x96, 0x4d, 0x19, 0xa3, 0xae, 0xe3, 0x93, 0x06, 0x65, 0x81, 0x8f, 0x03, 0xea, 0x3a, 0xf5, 0xce, 0x1a, 0x6e, 0x79, 0x87, 0x78, 0xad, 0xde, 0x20, 0x0e, 0xf1, 0x71, 0x40, 0x2c, 0xdd, 0xf3, 0xdd, 0xc0, 0x85, 0xab, 0xa1, 0xaa, 0x8e, 0x3d, 0xaa, 0x0f, 0x54, 0xd5, 0x23, 0xd5, 0xe5, 0xd7, 0x1b, 0x34, 0x38, 0x6c, 0xef, 0xeb, 0xa6, 0x6b, 0xd7, 0x1b, 0x6e, 0xc3, 0xad, 0x0b, 0x84, 0xfd, 0xf6, 0x81, 0x38, 0x89, 0x83, 0xf8, 0x15, 0x22, 0x2f, 0x5f, 0x1e, 0xc1, 0xa9, 0xbc, 0x3b, 0xcb, 0x57, 0x12, 0x25, 0x1b, 0x9b, 0x87, 0xd4, 0x21, 0xfe, 0x51, 0xdd, 0x6b, 0x36, 0x38, 0x81, 0xd5, 0x6d, 0x12, 0xe0, 0x41, 0x5a, 0xf5, 0x61, 0x5a, 0x7e, 0xdb, 0x09, 0xa8, 0x4d, 0xfa, 0x14, 0xde, 0x3a, 0x49, 0x81, 0x99, 0x87, 0xc4, 0xc6, 0x79, 0x3d, 0x8d, 0x81, 0x85, 0x8d, 0xb6, 0x45, 0x83, 0x0d, 0xc7, 0x71, 0x03, 0x11, 0x04, 0xbc, 0x00, 0x0a, 0x4d, 0x72, 0x54, 0x55, 0x56, 0x94, 0x4b, 0x25, 0xa3, 0xfc, 0xa4, 0xab, 0x4e, 0xf4, 0xba, 0x6a, 0xe1, 0x1e, 0x39, 0x42, 0x9c, 0x0e, 0x37, 0xc0, 0x42, 0x07, 0xb7, 0xda, 0xe4, 0xe6, 0x23, 0xcf, 0x27, 0x22, 0x05, 0xd5, 0x49, 0x21, 0xba, 0x24, 0x45, 0x17, 0x76, 0xb3, 0x6c, 0x94, 0x97, 0xd7, 0x5a, 0xa0, 0x92, 0x9c, 0xf6, 0xb0, 0xef, 0x50, 0xa7, 0x01, 0x5f, 0x03, 0x33, 0x07, 0x94, 0xb4, 0x2c, 0x44, 0x0e, 0x24, 0xe0, 0xa2, 0x04, 0x9c, 0xb9, 0x25, 0xe9, 0x28, 0x96, 0x80, 0xab, 0x60, 0xfa, 0xb3, 0x50, 0xb1, 0x5a, 0x10, 0xc2, 0x0b, 0x52, 0x78, 0x5a, 0xe2, 0xa1, 0x88, 0xaf, 0x1d, 0x80, 0xf9, 0x4d, 0x1c, 0x98, 0x87, 0xd7, 0x5d, 0xc7, 0xa2, 0x22, 0xc2, 0x15, 0x50, 0x74, 0xb0, 0x4d, 0x64, 0x88, 0xb3, 0x52, 0xb3, 0xb8, 0x85, 0x6d, 0x82, 0x04, 0x07, 0xae, 0x03, 0x40, 0xf2, 0xf1, 0x41, 0x29, 0x07, 0x52, 0xa1, 0xa5, 0xa4, 0xb4, 0x9f, 0x8b, 0xd2, 0x10, 0x22, 0xcc, 0x6d, 0xfb, 0x26, 0x61, 0xf0, 0x11, 0xa8, 0x70, 0x38, 0xe6, 0x61, 0x93, 0x3c, 0x20, 0x2d, 0x62, 0x06, 0xae, 0x2f, 0xac, 0x96, 0xd7, 0x2f, 0xeb, 0x49, 0x9d, 0xc6, 0x37, 0xa6, 0x7b, 0xcd, 0x06, 0x27, 0x30, 0x9d, 0x17, 0x86, 0xde, 0x59, 0xd3, 0xef, 0xe3, 0x7d, 0xd2, 0x8a, 0x54, 0x8d, 0x73, 0xbd, 0xae, 0x5a, 0xd9, 0xca, 0x23, 0xa2, 0x7e, 0x23, 0xd0, 0x05, 0xf3, 0xee, 0xfe, 0x43, 0x62, 0x06, 0xb1, 0xd9, 0xc9, 0x17, 0x37, 0x0b, 0x7b, 0x5d, 0x75, 0x7e, 0x3b, 0x03, 0x87, 0x72, 0xf0, 0xf0, 0x4b, 0x30, 0xe7, 0xcb, 0xb8, 0x51, 0xbb, 0x45, 0x58, 0xb5, 0xb0, 0x52, 0xb8, 0x54, 0x5e, 0x37, 0xf4, 0x91, 0xdb, 0x51, 0xe7, 0x81, 0x59, 0x5c, 0x79, 0x8f, 0x06, 0x87, 0xdb, 0x1e, 0x09, 0xf9, 0xcc, 0x38, 0x27, 0x13, 0x3f, 0x87, 0xd2, 0x06, 0x50, 0xd6, 0x1e, 0xfc, 0x4e, 0x01, 0x67, 0xc9, 0x23, 0xb3, 0xd5, 0xb6, 0x48, 0x46, 0xae, 0x5a, 0x3c, 0x35, 0x47, 0x5e, 0x91, 0x8e, 0x9c, 0xbd, 0x39, 0xc0, 0x0e, 0x1a, 0x68, 0x1d, 0xde, 0x00, 0x65, 0x9b, 0x17, 0xc5, 0x8e, 0xdb, 0xa2, 0xe6, 0x51, 0x75, 0x5a, 0x94, 0x92, 0xd6, 0xeb, 0xaa, 0xe5, 0xcd, 0x84, 0x7c, 0xdc, 0x55, 0x17, 0x52, 0xc7, 0x0f, 0x8e, 0x3c, 0x82, 0xd2, 0x6a, 0xda, 0x33, 0x05, 0x2c, 0x0d, 0xf1, 0x0a, 0x5e, 0x4d, 0x32, 0x2f, 0x4a, 0xa3, 0xaa, 0xac, 0x14, 0x2e, 0x95, 0x8c, 0x4a, 0x3a, 0x63, 0x82, 0x81, 0xb2, 0x72, 0xf0, 0x2b, 0x05, 0x40, 0xbf, 0x0f, 0x4f, 0x16, 0xca, 0xd5, 0x51, 0xf2, 0xa5, 0x0f, 0x48, 0xd2, 0xb2, 0x4c, 0x12, 0xec, 0xe7, 0xa1, 0x01, 0xe6, 0x34, 0x0c, 0x4a, 0x3b, 0xd8, 0xc7, 0xf6, 0x3d, 0xea, 0x58, 0xbc, 0xef, 0xb0, 0x47, 0x77, 0x89, 0x2f, 0xfa, 0x4e, 0xc9, 0xf6, 0xdd, 0xc6, 0xce, 0x1d, 0xc9, 0x41, 0x29, 0x29, 0xde, 0xcd, 0x4d, 0xea, 0x58, 0xb2, 0x4b, 0xe3, 0x6e, 0xe6, 0x78, 0x48, 0x70, 0xb4, 0x1f, 0x27, 0xc1, 0x8c, 0xb0, 0xc1, 0x27, 0xc7, 0xc9, 0xcd, 0x5f, 0x07, 0xa5, 0xb8, 0xa1, 0x24, 0x6a, 0x45, 0x8a, 0x95, 0xe2, 0xe6, 0x43, 0x89, 0x0c, 0xfc, 0x18, 0xcc, 0xb0, 0xa8, 0xcd, 0x0a, 0x2f, 0xde, 0x66, 0xb3, 0x7c, 0xd6, 0xc5, 0x0d, 0x16, 0x43, 0xc2, 0x00, 0x2c, 0x79, 0xdc, 0x7b, 0x12, 0x10, 0x7f, 0xcb, 0x0d, 0x6e, 0xb9, 0x6d, 0xc7, 0xda, 0x30, 0x79, 0xf6, 0xaa, 0x45, 0xe1, 0xdd, 0xb5, 0x5e, 0x57, 0x5d, 0xda, 0x19, 0x2c, 0x72, 0xdc, 0x55, 0x5f, 0x1e, 0xc2, 0x12, 0x65, 0x36, 0x0c, 0x5a, 0xfb, 0x5e, 0x01, 0xb3, 0x5c, 0xe2, 0xfa, 0x21, 0x31, 0x9b, 0x7c, 0x40, 0x7f, 0xad, 0x00, 0x48, 0xf2, 0x63, 0x3b, 0xac, 0xb6, 0xf2, 0xfa, 0xbb, 0x63, 0xb4, 0x57, 0xdf, 0xec, 0x4f, 0x6a, 0xa6, 0x8f, 0xc5, 0xd0, 0x00, 0x9b, 0xda, 0x2f, 0x93, 0xe0, 0xfc, 0x2e, 0x6e, 0x51, 0x0b, 0x07, 0xd4, 0x69, 0x6c, 0x44, 0xe6, 0xc2, 0x66, 0x81, 0x9f, 0x80, 0x19, 0x9e, 0x60, 0x0b, 0x07, 0x58, 0x0e, 0xdb, 0x37, 0x46, 0xbb, 0x8e, 0x70, 0xc4, 0x6d, 0x92, 0x00, 0x27, 0x45, 0x97, 0xd0, 0x50, 0x8c, 0x0a, 0x1f, 0x82, 0x22, 0xf3, 0x88, 0x29, 0x5b, 0xe5, 0xfd, 0x31, 0x62, 0x1f, 0xea, 0xf5, 0x03, 0x8f, 0x98, 0x49, 0x35, 0xf2, 0x13, 0x12, 0x36, 0xa0, 0x0f, 0xa6, 0x58, 0x80, 0x83, 0x36, 0x93, 0xa5, 0x75, 0xf7, 0x54, 0xac, 0x09, 0x44, 0x63, 0x5e, 0xda, 0x9b, 0x0a, 0xcf, 0x48, 0x5a, 0xd2, 0xfe, 0x54, 0xc0, 0xca, 0x50, 0x5d, 0x83, 0x3a, 0x16, 0xaf, 0x87, 0xff, 0x3e, 0xcd, 0x9f, 0x66, 0xd2, 0xbc, 0x7d, 0x1a, 0x81, 0x4b, 0xe7, 0x87, 0x65, 0x5b, 0xfb, 0x43, 0x01, 0x17, 0x4f, 0x52, 0xbe, 0x4f, 0x59, 0x00, 0x3f, 0xea, 0x8b, 0x5e, 0x1f, 0xb1, 0xe7, 0x29, 0x0b, 0x63, 0x8f, 0xd7, 0x9b, 0x88, 0x92, 0x8a, 0xdc, 0x03, 0x67, 0x68, 0x40, 0x6c, 0x3e, 0x8c, 0x79, 0x77, 0xdd, 0x3b, 0xc5, 0xd0, 0x8d, 0x39, 0x69, 0xf7, 0xcc, 0x1d, 0x6e, 0x01, 0x85, 0x86, 0xb4, 0x6f, 0x0a, 0x27, 0x07, 0xce, 0xf3, 0xc4, 0x47, 0xb4, 0x27, 0x88, 0x5b, 0xc9, 0x14, 0x8d, 0xaf, 0x71, 0x27, 0xe6, 0xa0, 0x94, 0x14, 0x1f, 0x90, 0x9e, 0x9c, 0xbf, 0x03, 0xf6, 0x90, 0x93, 0x22, 0x8a, 0x46, 0x77, 0x38, 0x20, 0xa3, 0x13, 0x8a, 0x21, 0x61, 0x1b, 0xcc, 0xdb, 0x99, 0xc5, 0x4b, 0xb6, 0xca, 0x3b, 0x63, 0x18, 0xc9, 0x6e, 0x6e, 0xe1, 0xca, 0x93, 0xa5, 0xa1, 0x9c, 0x11, 0xb8, 0x07, 0x2a, 0x1d, 0x99, 0x31, 0xd7, 0x09, 0xa7, 0x66, 0xb8, 0x6d, 0x94, 0x8c, 0x55, 0xbe, 0xa8, 0xed, 0xe6, 0x99, 0xc7, 0x5d, 0x75, 0x31, 0x4f, 0x44, 0xfd, 0x18, 0xda, 0xef, 0x0a, 0xb8, 0x30, 0xf4, 0x2e, 0xfe, 0x87, 0xea, 0xa3, 0xd9, 0xea, 0xbb, 0x71, 0x2a, 0xd5, 0x37, 0xb8, 0xec, 0x7e, 0x98, 0xfa, 0x87, 0x50, 0x45, 0xbd, 0x61, 0x50, 0xf2, 0xa2, 0xfd, 0x40, 0xc6, 0x7a, 0x65, 0xdc, 0xe2, 0xe1, 0xba, 0xc6, 0x1c, 0xff, 0x7e, 0xc7, 0x47, 0x94, 0xa0, 0xc2, 0xcf, 0xc1, 0xa2, 0x2d, 0x5f, 0x08, 0x1c, 0x80, 0x3a, 0x41, 0xb4, 0x05, 0xfd, 0x8b, 0x0a, 0x3a, 0xdb, 0xeb, 0xaa, 0x8b, 0x9b, 0x39, 0x58, 0xd4, 0x67, 0x08, 0xb6, 0x40, 0x39, 0xa9, 0x80, 0x68, 0x6d, 0x7e, 0xf3, 0x05, 0x52, 0xee, 0x3a, 0xc6, 0x4b, 0x32, 0xc7, 0xe5, 0x84, 0xc6, 0x50, 0x1a, 0x1e, 0xde, 0x07, 0x73, 0x07, 0x98, 0xb6, 0xda, 0x3e, 0x91, 0x0b, 0x69, 0xb8, 0x41, 0xbc, 0xca, 0x97, 0xc5, 0x5b, 0x69, 0xc6, 0x71, 0x57, 0xad, 0x64, 0x08, 0x62, 0x5b, 0xc8, 0x2a, 0xc3, 0xc7, 0x0a, 0x58, 0xc4, 0xd9, 0xe7, 0x23, 0xab, 0x9e, 0x11, 0x11, 0x5c, 0x1b, 0x23, 0x82, 0xdc, 0x0b, 0xd4, 0xa8, 0xca, 0x30, 0x16, 0x73, 0x0c, 0x86, 0xfa, 0xac, 0xc1, 0x2f, 0xc0, 0x82, 0x9d, 0x79, 0xdd, 0xb1, 0xea, 0x94, 0x70, 0x60, 0xec, 0xab, 0x8b, 0x11, 0x92, 0x97, 0x6c, 0x96, 0xce, 0x50, 0xde, 0x14, 0xb4, 0x40, 0xa9, 0x83, 0x7d, 0x8a, 0xf7, 0xf9, 0x43, 0x63, 0x5a, 0xd8, 0xbd, 0x3c, 0xd6, 0xd5, 0x85, 0xba, 0xc9, 0x7e, 0x19, 0x51, 0x18, 0x4a, 0x80, 0xb5, 0x9f, 0x26, 0x81, 0x7a, 0xc2, 0xa7, 0x1c, 0xde, 0x05, 0xd0, 0xdd, 0x67, 0xc4, 0xef, 0x10, 0xeb, 0x76, 0xf8, 0xc6, 0x8f, 0x36, 0xe8, 0x42, 0xb2, 0x5e, 0x6d, 0xf7, 0x49, 0xa0, 0x01, 0x5a, 0xd0, 0x06, 0xb3, 0x41, 0x6a, 0xf3, 0x1b, 0xe7, 0x45, 0x20, 0x03, 0x4b, 0x2f, 0x8e, 0xc6, 0x62, 0xaf, 0xab, 0x66, 0x56, 0x49, 0x94, 0x81, 0x87, 0x26, 0x00, 0x66, 0x72, 0x7b, 0x61, 0x03, 0xd4, 0x47, 0x1b, 0x67, 0xc9, 0x9d, 0xc5, 0x9f, 0xa0, 0xd4, 0x75, 0xa5, 0x60, 0xb5, 0xbf, 0x14, 0x00, 0x92, 0xae, 0x80, 0x17, 0x41, 0xea, 0x19, 0x2f, 0xbf, 0x62, 0x45, 0x0e, 0x81, 0x52, 0x74, 0xb8, 0x0a, 0xa6, 0x6d, 0xc2, 0x18, 0x6e, 0x44, 0xef, 0x80, 0xf8, 0x5f, 0x86, 0xcd, 0x90, 0x8c, 0x22, 0x3e, 0xdc, 0x03, 0x53, 0x3e, 0xc1, 0xcc, 0x75, 0xe4, 0xff, 0x11, 0xef, 0xf1, 0xb5, 0x0a, 0x09, 0xca, 0x71, 0x57, 0x5d, 0x1b, 0xe5, 0x5f, 0x20, 0x5d, 0x6e, 0x61, 0x42, 0x09, 0x49, 0x38, 0x78, 0x1b, 0x54, 0xa4, 0x8d, 0x94, 0xc3, 0x61, 0xd7, 0x9e, 0x97, 0xde, 0x54, 0x36, 0xf3, 0x02, 0xa8, 0x5f, 0x47, 0xbb, 0x0b, 0x66, 0xa2, 0xea, 0x82, 0x55, 0x50, 0x4c, 0x7d, 0xbe, 0xc3, 0xc0, 0x05, 0x25, 0x97, 0x98, 0xc9, 0xc1, 0x89, 0x31, 0xb6, 0x9f, 0x3c, 0xaf, 0x4d, 0x3c, 0x7d, 0x5e, 0x9b, 0x78, 0xf6, 0xbc, 0x36, 0xf1, 0xb8, 0x57, 0x53, 0x9e, 0xf4, 0x6a, 0xca, 0xd3, 0x5e, 0x4d, 0x79, 0xd6, 0xab, 0x29, 0xbf, 0xf6, 0x6a, 0xca, 0xb7, 0xbf, 0xd5, 0x26, 0x3e, 0x5c, 0x1d, 0xf9, 0x5f, 0xbc, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xad, 0xe2, 0x61, 0x96, 0x0a, 0x14, 0x00, 0x00, } func (m *AuditAnnotation) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *AuditAnnotation) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *AuditAnnotation) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.ValueExpression) copy(dAtA[i:], m.ValueExpression) i = encodeVarintGenerated(dAtA, i, uint64(len(m.ValueExpression))) 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 *ExpressionWarning) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ExpressionWarning) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ExpressionWarning) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.Warning) copy(dAtA[i:], m.Warning) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Warning))) i-- dAtA[i] = 0x1a i -= len(m.FieldRef) copy(dAtA[i:], m.FieldRef) i = encodeVarintGenerated(dAtA, i, uint64(len(m.FieldRef))) i-- dAtA[i] = 0x12 return len(dAtA) - i, nil } func (m *MatchCondition) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *MatchCondition) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *MatchCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.Expression) copy(dAtA[i:], m.Expression) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Expression))) 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 *MatchResources) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *MatchResources) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *MatchResources) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.MatchPolicy != nil { i -= len(*m.MatchPolicy) copy(dAtA[i:], *m.MatchPolicy) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy))) i-- dAtA[i] = 0x3a } if len(m.ExcludeResourceRules) > 0 { for iNdEx := len(m.ExcludeResourceRules) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.ExcludeResourceRules[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.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] = 0x1a } } 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] = 0x12 } 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] = 0xa } return len(dAtA) - i, nil } func (m *NamedRuleWithOperations) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *NamedRuleWithOperations) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *NamedRuleWithOperations) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { size, err := m.RuleWithOperations.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 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] = 0xa } } return len(dAtA) - i, nil } func (m *ParamKind) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ParamKind) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ParamKind) 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 *ParamRef) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ParamRef) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ParamRef) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.ParameterNotFoundAction != nil { i -= len(*m.ParameterNotFoundAction) copy(dAtA[i:], *m.ParameterNotFoundAction) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ParameterNotFoundAction))) i-- dAtA[i] = 0x22 } 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 } 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 *TypeChecking) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *TypeChecking) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *TypeChecking) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.ExpressionWarnings) > 0 { for iNdEx := len(m.ExpressionWarnings) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.ExpressionWarnings[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 *ValidatingAdmissionPolicy) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ValidatingAdmissionPolicy) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ValidatingAdmissionPolicy) 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 *ValidatingAdmissionPolicyBinding) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ValidatingAdmissionPolicyBinding) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ValidatingAdmissionPolicyBinding) 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 *ValidatingAdmissionPolicyBindingList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ValidatingAdmissionPolicyBindingList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ValidatingAdmissionPolicyBindingList) 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 *ValidatingAdmissionPolicyBindingSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ValidatingAdmissionPolicyBindingSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ValidatingAdmissionPolicyBindingSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.ValidationActions) > 0 { for iNdEx := len(m.ValidationActions) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.ValidationActions[iNdEx]) copy(dAtA[i:], m.ValidationActions[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(m.ValidationActions[iNdEx]))) i-- dAtA[i] = 0x22 } } if m.MatchResources != nil { { size, err := m.MatchResources.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } if m.ParamRef != nil { { size, err := m.ParamRef.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } i -= len(m.PolicyName) copy(dAtA[i:], m.PolicyName) i = encodeVarintGenerated(dAtA, i, uint64(len(m.PolicyName))) i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *ValidatingAdmissionPolicyList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ValidatingAdmissionPolicyList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ValidatingAdmissionPolicyList) 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 *ValidatingAdmissionPolicySpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ValidatingAdmissionPolicySpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ValidatingAdmissionPolicySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Variables) > 0 { for iNdEx := len(m.Variables) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Variables[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.MatchConditions) > 0 { for iNdEx := len(m.MatchConditions) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.MatchConditions[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.AuditAnnotations) > 0 { for iNdEx := len(m.AuditAnnotations) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.AuditAnnotations[iNdEx].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.Validations) > 0 { for iNdEx := len(m.Validations) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Validations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } } if m.MatchConstraints != nil { { size, err := m.MatchConstraints.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } if m.ParamKind != nil { { size, err := m.ParamKind.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *ValidatingAdmissionPolicyStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ValidatingAdmissionPolicyStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ValidatingAdmissionPolicyStatus) 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] = 0x1a } } if m.TypeChecking != nil { { size, err := m.TypeChecking.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.ObservedGeneration)) i-- dAtA[i] = 0x8 return len(dAtA) - i, nil } func (m *Validation) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Validation) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Validation) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.MessageExpression) copy(dAtA[i:], m.MessageExpression) i = encodeVarintGenerated(dAtA, i, uint64(len(m.MessageExpression))) i-- dAtA[i] = 0x22 if m.Reason != nil { 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.Expression) copy(dAtA[i:], m.Expression) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Expression))) i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *Variable) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Variable) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Variable) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.Expression) copy(dAtA[i:], m.Expression) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Expression))) 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 *AuditAnnotation) 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.ValueExpression) n += 1 + l + sovGenerated(uint64(l)) return n } func (m *ExpressionWarning) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.FieldRef) n += 1 + l + sovGenerated(uint64(l)) l = len(m.Warning) n += 1 + l + sovGenerated(uint64(l)) return n } func (m *MatchCondition) 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.Expression) n += 1 + l + sovGenerated(uint64(l)) return n } func (m *MatchResources) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.NamespaceSelector != nil { l = m.NamespaceSelector.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.ObjectSelector != nil { l = m.ObjectSelector.Size() n += 1 + l + sovGenerated(uint64(l)) } if len(m.ResourceRules) > 0 { for _, e := range m.ResourceRules { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } if len(m.ExcludeResourceRules) > 0 { for _, e := range m.ExcludeResourceRules { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } if m.MatchPolicy != nil { l = len(*m.MatchPolicy) n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *NamedRuleWithOperations) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.ResourceNames) > 0 { for _, s := range m.ResourceNames { l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } l = m.RuleWithOperations.Size() n += 1 + l + sovGenerated(uint64(l)) return n } func (m *ParamKind) 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 *ParamRef) 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)) if m.Selector != nil { l = m.Selector.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.ParameterNotFoundAction != nil { l = len(*m.ParameterNotFoundAction) n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *TypeChecking) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.ExpressionWarnings) > 0 { for _, e := range m.ExpressionWarnings { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *ValidatingAdmissionPolicy) 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 *ValidatingAdmissionPolicyBinding) 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 *ValidatingAdmissionPolicyBindingList) 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 *ValidatingAdmissionPolicyBindingSpec) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.PolicyName) n += 1 + l + sovGenerated(uint64(l)) if m.ParamRef != nil { l = m.ParamRef.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.MatchResources != nil { l = m.MatchResources.Size() n += 1 + l + sovGenerated(uint64(l)) } if len(m.ValidationActions) > 0 { for _, s := range m.ValidationActions { l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *ValidatingAdmissionPolicyList) 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 *ValidatingAdmissionPolicySpec) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.ParamKind != nil { l = m.ParamKind.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.MatchConstraints != nil { l = m.MatchConstraints.Size() n += 1 + l + sovGenerated(uint64(l)) } if len(m.Validations) > 0 { for _, e := range m.Validations { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } if m.FailurePolicy != nil { l = len(*m.FailurePolicy) n += 1 + l + sovGenerated(uint64(l)) } if len(m.AuditAnnotations) > 0 { for _, e := range m.AuditAnnotations { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } if len(m.MatchConditions) > 0 { for _, e := range m.MatchConditions { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } if len(m.Variables) > 0 { for _, e := range m.Variables { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *ValidatingAdmissionPolicyStatus) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 1 + sovGenerated(uint64(m.ObservedGeneration)) if m.TypeChecking != nil { l = m.TypeChecking.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 *Validation) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Expression) n += 1 + l + sovGenerated(uint64(l)) l = len(m.Message) n += 1 + l + sovGenerated(uint64(l)) if m.Reason != nil { l = len(*m.Reason) n += 1 + l + sovGenerated(uint64(l)) } l = len(m.MessageExpression) n += 1 + l + sovGenerated(uint64(l)) return n } func (m *Variable) 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.Expression) 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 *AuditAnnotation) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&AuditAnnotation{`, `Key:` + fmt.Sprintf("%v", this.Key) + `,`, `ValueExpression:` + fmt.Sprintf("%v", this.ValueExpression) + `,`, `}`, }, "") return s } func (this *ExpressionWarning) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ExpressionWarning{`, `FieldRef:` + fmt.Sprintf("%v", this.FieldRef) + `,`, `Warning:` + fmt.Sprintf("%v", this.Warning) + `,`, `}`, }, "") return s } func (this *MatchCondition) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&MatchCondition{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Expression:` + fmt.Sprintf("%v", this.Expression) + `,`, `}`, }, "") return s } func (this *MatchResources) String() string { if this == nil { return "nil" } repeatedStringForResourceRules := "[]NamedRuleWithOperations{" for _, f := range this.ResourceRules { repeatedStringForResourceRules += strings.Replace(strings.Replace(f.String(), "NamedRuleWithOperations", "NamedRuleWithOperations", 1), `&`, ``, 1) + "," } repeatedStringForResourceRules += "}" repeatedStringForExcludeResourceRules := "[]NamedRuleWithOperations{" for _, f := range this.ExcludeResourceRules { repeatedStringForExcludeResourceRules += strings.Replace(strings.Replace(f.String(), "NamedRuleWithOperations", "NamedRuleWithOperations", 1), `&`, ``, 1) + "," } repeatedStringForExcludeResourceRules += "}" s := strings.Join([]string{`&MatchResources{`, `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, `ObjectSelector:` + strings.Replace(fmt.Sprintf("%v", this.ObjectSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, `ResourceRules:` + repeatedStringForResourceRules + `,`, `ExcludeResourceRules:` + repeatedStringForExcludeResourceRules + `,`, `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`, `}`, }, "") return s } func (this *NamedRuleWithOperations) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&NamedRuleWithOperations{`, `ResourceNames:` + fmt.Sprintf("%v", this.ResourceNames) + `,`, `RuleWithOperations:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.RuleWithOperations), "RuleWithOperations", "v11.RuleWithOperations", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *ParamKind) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ParamKind{`, `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, `}`, }, "") return s } func (this *ParamRef) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ParamRef{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, `ParameterNotFoundAction:` + valueToStringGenerated(this.ParameterNotFoundAction) + `,`, `}`, }, "") return s } func (this *TypeChecking) String() string { if this == nil { return "nil" } repeatedStringForExpressionWarnings := "[]ExpressionWarning{" for _, f := range this.ExpressionWarnings { repeatedStringForExpressionWarnings += strings.Replace(strings.Replace(f.String(), "ExpressionWarning", "ExpressionWarning", 1), `&`, ``, 1) + "," } repeatedStringForExpressionWarnings += "}" s := strings.Join([]string{`&TypeChecking{`, `ExpressionWarnings:` + repeatedStringForExpressionWarnings + `,`, `}`, }, "") return s } func (this *ValidatingAdmissionPolicy) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ValidatingAdmissionPolicy{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ValidatingAdmissionPolicySpec", "ValidatingAdmissionPolicySpec", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ValidatingAdmissionPolicyStatus", "ValidatingAdmissionPolicyStatus", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *ValidatingAdmissionPolicyBinding) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ValidatingAdmissionPolicyBinding{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ValidatingAdmissionPolicyBindingSpec", "ValidatingAdmissionPolicyBindingSpec", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *ValidatingAdmissionPolicyBindingList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]ValidatingAdmissionPolicyBinding{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ValidatingAdmissionPolicyBinding", "ValidatingAdmissionPolicyBinding", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&ValidatingAdmissionPolicyBindingList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *ValidatingAdmissionPolicyBindingSpec) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ValidatingAdmissionPolicyBindingSpec{`, `PolicyName:` + fmt.Sprintf("%v", this.PolicyName) + `,`, `ParamRef:` + strings.Replace(this.ParamRef.String(), "ParamRef", "ParamRef", 1) + `,`, `MatchResources:` + strings.Replace(this.MatchResources.String(), "MatchResources", "MatchResources", 1) + `,`, `ValidationActions:` + fmt.Sprintf("%v", this.ValidationActions) + `,`, `}`, }, "") return s } func (this *ValidatingAdmissionPolicyList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]ValidatingAdmissionPolicy{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ValidatingAdmissionPolicy", "ValidatingAdmissionPolicy", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&ValidatingAdmissionPolicyList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *ValidatingAdmissionPolicySpec) String() string { if this == nil { return "nil" } repeatedStringForValidations := "[]Validation{" for _, f := range this.Validations { repeatedStringForValidations += strings.Replace(strings.Replace(f.String(), "Validation", "Validation", 1), `&`, ``, 1) + "," } repeatedStringForValidations += "}" repeatedStringForAuditAnnotations := "[]AuditAnnotation{" for _, f := range this.AuditAnnotations { repeatedStringForAuditAnnotations += strings.Replace(strings.Replace(f.String(), "AuditAnnotation", "AuditAnnotation", 1), `&`, ``, 1) + "," } repeatedStringForAuditAnnotations += "}" repeatedStringForMatchConditions := "[]MatchCondition{" for _, f := range this.MatchConditions { repeatedStringForMatchConditions += strings.Replace(strings.Replace(f.String(), "MatchCondition", "MatchCondition", 1), `&`, ``, 1) + "," } repeatedStringForMatchConditions += "}" repeatedStringForVariables := "[]Variable{" for _, f := range this.Variables { repeatedStringForVariables += strings.Replace(strings.Replace(f.String(), "Variable", "Variable", 1), `&`, ``, 1) + "," } repeatedStringForVariables += "}" s := strings.Join([]string{`&ValidatingAdmissionPolicySpec{`, `ParamKind:` + strings.Replace(this.ParamKind.String(), "ParamKind", "ParamKind", 1) + `,`, `MatchConstraints:` + strings.Replace(this.MatchConstraints.String(), "MatchResources", "MatchResources", 1) + `,`, `Validations:` + repeatedStringForValidations + `,`, `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`, `AuditAnnotations:` + repeatedStringForAuditAnnotations + `,`, `MatchConditions:` + repeatedStringForMatchConditions + `,`, `Variables:` + repeatedStringForVariables + `,`, `}`, }, "") return s } func (this *ValidatingAdmissionPolicyStatus) String() string { if this == nil { return "nil" } repeatedStringForConditions := "[]Condition{" for _, f := range this.Conditions { repeatedStringForConditions += fmt.Sprintf("%v", f) + "," } repeatedStringForConditions += "}" s := strings.Join([]string{`&ValidatingAdmissionPolicyStatus{`, `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, `TypeChecking:` + strings.Replace(this.TypeChecking.String(), "TypeChecking", "TypeChecking", 1) + `,`, `Conditions:` + repeatedStringForConditions + `,`, `}`, }, "") return s } func (this *Validation) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&Validation{`, `Expression:` + fmt.Sprintf("%v", this.Expression) + `,`, `Message:` + fmt.Sprintf("%v", this.Message) + `,`, `Reason:` + valueToStringGenerated(this.Reason) + `,`, `MessageExpression:` + fmt.Sprintf("%v", this.MessageExpression) + `,`, `}`, }, "") return s } func (this *Variable) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&Variable{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Expression:` + fmt.Sprintf("%v", this.Expression) + `,`, `}`, }, "") 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 *AuditAnnotation) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: AuditAnnotation: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: AuditAnnotation: 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 ValueExpression", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ValueExpression = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ExpressionWarning) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ExpressionWarning: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ExpressionWarning: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field FieldRef", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.FieldRef = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Warning", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Warning = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *MatchCondition) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: MatchCondition: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: MatchCondition: 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 Expression", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Expression = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *MatchResources) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: MatchResources: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: MatchResources: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: 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 2: 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 case 3: 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, NamedRuleWithOperations{}) if err := m.ResourceRules[len(m.ResourceRules)-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 ExcludeResourceRules", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ExcludeResourceRules = append(m.ExcludeResourceRules, NamedRuleWithOperations{}) if err := m.ExcludeResourceRules[len(m.ExcludeResourceRules)-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 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *NamedRuleWithOperations) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: NamedRuleWithOperations: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: NamedRuleWithOperations: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: 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 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field RuleWithOperations", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.RuleWithOperations.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ParamKind) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ParamKind: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ParamKind: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ParamRef) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ParamRef: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ParamRef: 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 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 case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ParameterNotFoundAction", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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 := ParameterNotFoundActionType(dAtA[iNdEx:postIndex]) m.ParameterNotFoundAction = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *TypeChecking) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: TypeChecking: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: TypeChecking: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ExpressionWarnings", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ExpressionWarnings = append(m.ExpressionWarnings, ExpressionWarning{}) if err := m.ExpressionWarnings[len(m.ExpressionWarnings)-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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ValidatingAdmissionPolicy) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ValidatingAdmissionPolicy: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ValidatingAdmissionPolicy: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ValidatingAdmissionPolicyBinding) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ValidatingAdmissionPolicyBinding: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ValidatingAdmissionPolicyBinding: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ValidatingAdmissionPolicyBindingList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ValidatingAdmissionPolicyBindingList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ValidatingAdmissionPolicyBindingList: 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, ValidatingAdmissionPolicyBinding{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ValidatingAdmissionPolicyBindingSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ValidatingAdmissionPolicyBindingSpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ValidatingAdmissionPolicyBindingSpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PolicyName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.PolicyName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ParamRef", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ParamRef == nil { m.ParamRef = &ParamRef{} } if err := m.ParamRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MatchResources", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.MatchResources == nil { m.MatchResources = &MatchResources{} } if err := m.MatchResources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ValidationActions", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ValidationActions = append(m.ValidationActions, ValidationAction(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ValidatingAdmissionPolicyList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ValidatingAdmissionPolicyList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ValidatingAdmissionPolicyList: 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, ValidatingAdmissionPolicy{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ValidatingAdmissionPolicySpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ValidatingAdmissionPolicySpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ValidatingAdmissionPolicySpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ParamKind", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ParamKind == nil { m.ParamKind = &ParamKind{} } if err := m.ParamKind.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MatchConstraints", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.MatchConstraints == nil { m.MatchConstraints = &MatchResources{} } if err := m.MatchConstraints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Validations", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Validations = append(m.Validations, Validation{}) if err := m.Validations[len(m.Validations)-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 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 } m.AuditAnnotations = append(m.AuditAnnotations, AuditAnnotation{}) if err := m.AuditAnnotations[len(m.AuditAnnotations)-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 MatchConditions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.MatchConditions = append(m.MatchConditions, MatchCondition{}) if err := m.MatchConditions[len(m.MatchConditions)-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 Variables", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Variables = append(m.Variables, Variable{}) if err := m.Variables[len(m.Variables)-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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ValidatingAdmissionPolicyStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ValidatingAdmissionPolicyStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ValidatingAdmissionPolicyStatus: 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 TypeChecking", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.TypeChecking == nil { m.TypeChecking = &TypeChecking{} } if err := m.TypeChecking.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: 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, v1.Condition{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Validation) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: Validation: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Validation: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Expression", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Expression = 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 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 } s := k8s_io_apimachinery_pkg_apis_meta_v1.StatusReason(dAtA[iNdEx:postIndex]) m.Reason = &s iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MessageExpression", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.MessageExpression = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Variable) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: Variable: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Variable: 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 Expression", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Expression = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/admissionregistration/v1alpha1/generated.proto000066400000000000000000000736051453636404600254320ustar00rootroot00000000000000/* 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.v1alpha1; import "k8s.io/api/admissionregistration/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/admissionregistration/v1alpha1"; // AuditAnnotation describes how to produce an audit annotation for an API request. message AuditAnnotation { // key specifies the audit annotation key. The audit annotation keys of // a ValidatingAdmissionPolicy must be unique. The key must be a qualified // name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. // // The key is combined with the resource name of the // ValidatingAdmissionPolicy to construct an audit annotation key: // "{ValidatingAdmissionPolicy name}/{key}". // // If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy // and the same audit annotation key, the annotation key will be identical. // In this case, the first annotation written with the key will be included // in the audit event and all subsequent annotations with the same key // will be discarded. // // Required. optional string key = 1; // valueExpression represents the expression which is evaluated by CEL to // produce an audit annotation value. The expression must evaluate to either // a string or null value. If the expression evaluates to a string, the // audit annotation is included with the string value. If the expression // evaluates to null or empty string the audit annotation will be omitted. // The valueExpression may be no longer than 5kb in length. // If the result of the valueExpression is more than 10kb in length, it // will be truncated to 10kb. // // If multiple ValidatingAdmissionPolicyBinding resources match an // API request, then the valueExpression will be evaluated for // each binding. All unique values produced by the valueExpressions // will be joined together in a comma-separated list. // // Required. optional string valueExpression = 2; } // ExpressionWarning is a warning information that targets a specific expression. message ExpressionWarning { // The path to the field that refers the expression. // For example, the reference to the expression of the first item of // validations is "spec.validations[0].expression" optional string fieldRef = 2; // The content of type checking information in a human-readable form. // Each line of the warning contains the type that the expression is checked // against, followed by the type check error from the compiler. optional string warning = 3; } message MatchCondition { // Name is an identifier for this match condition, used for strategic merging of MatchConditions, // as well as providing an identifier for logging purposes. A good name should be descriptive of // the associated expression. // Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and // must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or // '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an // optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') // // Required. optional string name = 1; // Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. // CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: // // 'object' - The object from the incoming request. The value is null for DELETE requests. // 'oldObject' - The existing object. The value is null for CREATE requests. // 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). // 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. // See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz // 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the // request resource. // Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ // // Required. optional string expression = 2; } // MatchResources decides whether to run the admission control policy on an object based // on whether it meets the match criteria. // The exclude rules take precedence over include rules (if a resource matches both, it is excluded) // +structType=atomic message MatchResources { // NamespaceSelector decides whether to run the admission control policy 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 policy. // // 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 policy 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 = 1; // ObjectSelector decides whether to run the validation based on if the // object has matching labels. objectSelector is evaluated against both // the oldObject and newObject that would be sent to the cel validation, 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 = 2; // ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. // The policy cares about an operation if it matches _any_ Rule. // +listType=atomic // +optional repeated NamedRuleWithOperations resourceRules = 3; // ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. // The exclude rules take precedence over include rules (if a resource matches both, it is excluded) // +listType=atomic // +optional repeated NamedRuleWithOperations excludeResourceRules = 4; // matchPolicy defines how the "MatchResources" 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 ValidatingAdmissionPolicy. // // - 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 ValidatingAdmissionPolicy. // // Defaults to "Equivalent" // +optional optional string matchPolicy = 7; } // NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. // +structType=atomic message NamedRuleWithOperations { // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. // +listType=atomic // +optional repeated string resourceNames = 1; // RuleWithOperations is a tuple of Operations and Resources. optional k8s.io.api.admissionregistration.v1.RuleWithOperations ruleWithOperations = 2; } // ParamKind is a tuple of Group Kind and Version. // +structType=atomic message ParamKind { // APIVersion is the API group version the resources belong to. // In format of "group/version". // Required. optional string apiVersion = 1; // Kind is the API kind the resources belong to. // Required. optional string kind = 2; } // ParamRef describes how to locate the params to be used as input to // expressions of rules applied by a policy binding. // +structType=atomic message ParamRef { // `name` is the name of the resource being referenced. // // `name` and `selector` are mutually exclusive properties. If one is set, // the other must be unset. // // +optional optional string name = 1; // namespace is the namespace of the referenced resource. Allows limiting // the search for params to a specific namespace. Applies to both `name` and // `selector` fields. // // A per-namespace parameter may be used by specifying a namespace-scoped // `paramKind` in the policy and leaving this field empty. // // - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this // field results in a configuration error. // // - If `paramKind` is namespace-scoped, the namespace of the object being // evaluated for admission will be used when this field is left unset. Take // care that if this is left empty the binding must not match any cluster-scoped // resources, which will result in an error. // // +optional optional string namespace = 2; // selector can be used to match multiple param objects based on their labels. // Supply selector: {} to match all resources of the ParamKind. // // If multiple params are found, they are all evaluated with the policy expressions // and the results are ANDed together. // // One of `name` or `selector` must be set, but `name` and `selector` are // mutually exclusive properties. If one is set, the other must be unset. // // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3; // `parameterNotFoundAction` controls the behavior of the binding when the resource // exists, and name or selector is valid, but there are no parameters // matched by the binding. If the value is set to `Allow`, then no // matched parameters will be treated as successful validation by the binding. // If set to `Deny`, then no matched parameters will be subject to the // `failurePolicy` of the policy. // // Allowed values are `Allow` or `Deny` // Default to `Deny` // +optional optional string parameterNotFoundAction = 4; } // TypeChecking contains results of type checking the expressions in the // ValidatingAdmissionPolicy message TypeChecking { // The type checking warnings for each expression. // +optional // +listType=atomic repeated ExpressionWarning expressionWarnings = 1; } // ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. message ValidatingAdmissionPolicy { // 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 behavior of the ValidatingAdmissionPolicy. optional ValidatingAdmissionPolicySpec spec = 2; // The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy // behaves in the expected way. // Populated by the system. // Read-only. // +optional optional ValidatingAdmissionPolicyStatus status = 3; } // ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. // ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. // // For a given admission request, each binding will cause its policy to be // evaluated N times, where N is 1 for policies/bindings that don't use // params, otherwise N is the number of parameters selected by the binding. // // The CEL expressions of a policy must have a computed CEL cost below the maximum // CEL budget. Each evaluation of the policy is given an independent CEL cost budget. // Adding/removing policies, bindings, or params can not affect whether a // given (policy, binding, param) combination is within its own CEL budget. message ValidatingAdmissionPolicyBinding { // 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 behavior of the ValidatingAdmissionPolicyBinding. optional ValidatingAdmissionPolicyBindingSpec spec = 2; } // ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. message ValidatingAdmissionPolicyBindingList { // 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 PolicyBinding. repeated ValidatingAdmissionPolicyBinding items = 2; } // ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. message ValidatingAdmissionPolicyBindingSpec { // PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. // If the referenced resource does not exist, this binding is considered invalid and will be ignored // Required. optional string policyName = 1; // paramRef specifies the parameter resource used to configure the admission control policy. // It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. // If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. // If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param. // +optional optional ParamRef paramRef = 2; // MatchResources declares what resources match this binding and will be validated by it. // Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. // If this is unset, all resources matched by the policy are validated by this binding // When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. // Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required. // +optional optional MatchResources matchResources = 3; // validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. // If a validation evaluates to false it is always enforced according to these actions. // // Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according // to these actions only if the FailurePolicy is set to Fail, otherwise the failures are // ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. // // validationActions is declared as a set of action values. Order does // not matter. validationActions may not contain duplicates of the same action. // // The supported actions values are: // // "Deny" specifies that a validation failure results in a denied request. // // "Warn" specifies that a validation failure is reported to the request client // in HTTP Warning headers, with a warning code of 299. Warnings can be sent // both for allowed or denied admission responses. // // "Audit" specifies that a validation failure is included in the published // audit event for the request. The audit event will contain a // `validation.policy.admission.k8s.io/validation_failure` audit annotation // with a value containing the details of the validation failures, formatted as // a JSON list of objects, each with the following fields: // - message: The validation failure message string // - policy: The resource name of the ValidatingAdmissionPolicy // - binding: The resource name of the ValidatingAdmissionPolicyBinding // - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy // - validationActions: The enforcement actions enacted for the validation failure // Example audit annotation: // `"validation.policy.admission.k8s.io/validation_failure": "[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]"` // // Clients should expect to handle additional values by ignoring // any values not recognized. // // "Deny" and "Warn" may not be used together since this combination // needlessly duplicates the validation failure both in the // API response body and the HTTP warning headers. // // Required. // +listType=set repeated string validationActions = 4; } // ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. message ValidatingAdmissionPolicyList { // 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 ValidatingAdmissionPolicy. repeated ValidatingAdmissionPolicy items = 2; } // ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. message ValidatingAdmissionPolicySpec { // ParamKind specifies the kind of resources used to parameterize this policy. // If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. // If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. // If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null. // +optional optional ParamKind paramKind = 1; // MatchConstraints specifies what resources this policy is designed to validate. // The AdmissionPolicy cares about a request if it matches _all_ Constraints. // However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API // ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. // Required. optional MatchResources matchConstraints = 2; // Validations contain CEL expressions which is used to apply the validation. // Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is // required. // +listType=atomic // +optional repeated Validation validations = 3; // failurePolicy defines how to handle failures for the admission policy. Failures can // occur from CEL expression parse errors, type check errors, runtime errors and invalid // or mis-configured policy definitions or bindings. // // A policy is invalid if spec.paramKind refers to a non-existent Kind. // A binding is invalid if spec.paramRef.name refers to a non-existent resource. // // failurePolicy does not define how validations that evaluate to false are handled. // // When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions // define how failures are enforced. // // Allowed values are Ignore or Fail. Defaults to Fail. // +optional optional string failurePolicy = 4; // auditAnnotations contains CEL expressions which are used to produce audit // annotations for the audit event of the API request. // validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is // required. // +listType=atomic // +optional repeated AuditAnnotation auditAnnotations = 5; // MatchConditions is a list of conditions that must be met for a request to be validated. // Match conditions filter requests that have already been matched by the rules, // namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. // There are a maximum of 64 match conditions allowed. // // If a parameter object is provided, it can be accessed via the `params` handle in the same // manner as validation expressions. // // The exact matching logic is (in order): // 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. // 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. // 3. If any matchCondition evaluates to an error (but none are FALSE): // - If failurePolicy=Fail, reject the request // - If failurePolicy=Ignore, the policy is skipped // // +patchMergeKey=name // +patchStrategy=merge // +listType=map // +listMapKey=name // +optional repeated MatchCondition matchConditions = 6; // Variables contain definitions of variables that can be used in composition of other expressions. // Each variable is defined as a named CEL expression. // The variables defined here will be available under `variables` in other expressions of the policy // except MatchConditions because MatchConditions are evaluated before the rest of the policy. // // The expression of a variable can refer to other variables defined earlier in the list but not those after. // Thus, Variables must be sorted by the order of first appearance and acyclic. // +patchMergeKey=name // +patchStrategy=merge // +listType=map // +listMapKey=name // +optional repeated Variable variables = 7; } // ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy. message ValidatingAdmissionPolicyStatus { // The generation observed by the controller. // +optional optional int64 observedGeneration = 1; // The results of type checking for each expression. // Presence of this field indicates the completion of the type checking. // +optional optional TypeChecking typeChecking = 2; // The conditions represent the latest available observations of a policy's current state. // +optional // +listType=map // +listMapKey=type repeated k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; } // Validation specifies the CEL expression which is used to apply the validation. message Validation { // Expression represents the expression which will be evaluated by CEL. // ref: https://github.com/google/cel-spec // CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: // // - 'object' - The object from the incoming request. The value is null for DELETE requests. // - 'oldObject' - The existing object. The value is null for CREATE requests. // - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). // - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. // - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. // - 'variables' - Map of composited variables, from its name to its lazily evaluated value. // For example, a variable named 'foo' can be accessed as 'variables.foo'. // - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. // See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz // - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the // request resource. // // The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the // object. No other metadata properties are accessible. // // Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. // Accessible property names are escaped according to the following rules when accessed in the expression: // - '__' escapes to '__underscores__' // - '.' escapes to '__dot__' // - '-' escapes to '__dash__' // - '/' escapes to '__slash__' // - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: // "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", // "import", "let", "loop", "package", "namespace", "return". // Examples: // - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"} // - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"} // - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"} // // Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. // Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: // - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and // non-intersecting elements in `Y` are appended, retaining their partial order. // - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values // are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with // non-intersecting keys are appended, retaining their partial order. // Required. optional string Expression = 1; // Message represents the message displayed when validation fails. The message is required if the Expression contains // line breaks. The message must not contain line breaks. // If unset, the message is "failed rule: {Rule}". // e.g. "must be a URL with the host matching spec.host" // If the Expression contains line breaks. Message is required. // The message must not contain line breaks. // If unset, the message is "failed Expression: {Expression}". // +optional optional string message = 2; // Reason represents a machine-readable description of why this validation failed. // If this is the first validation in the list to fail, this reason, as well as the // corresponding HTTP response code, are used in the // HTTP response to the client. // The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge". // If not set, StatusReasonInvalid is used in the response to the client. // +optional optional string reason = 3; // messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. // Since messageExpression is used as a failure message, it must evaluate to a string. // If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. // If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced // as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string // that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and // the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. // messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. // Example: // "object.x must be less than max ("+string(params.max)+")" // +optional optional string messageExpression = 4; } // Variable is the definition of a variable that is used for composition. message Variable { // Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. // The variable can be accessed in other expressions through `variables` // For example, if name is "foo", the variable will be available as `variables.foo` optional string Name = 1; // Expression is the expression that will be evaluated as the value of the variable. // The CEL expression has access to the same identifiers as the CEL expressions in Validation. optional string Expression = 2; } golang-k8s-api-0.29.0/admissionregistration/v1alpha1/register.go000066400000000000000000000037371453636404600245610ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name for this API. const GroupName = "admissionregistration.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() } // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. var ( // SchemeBuilder points to a list of functions added to Scheme. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder // AddToScheme is a common registration function for mapping packaged scoped group & version keys to a scheme. AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &ValidatingAdmissionPolicy{}, &ValidatingAdmissionPolicyList{}, &ValidatingAdmissionPolicyBinding{}, &ValidatingAdmissionPolicyBindingList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/admissionregistration/v1alpha1/types.go000066400000000000000000001035331453636404600240740ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 "k8s.io/api/admissionregistration/v1" metav1 "k8s.io/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 = v1.Rule // ScopeType specifies a scope for a Rule. // +enum type ScopeType = v1.ScopeType const ( // ClusterScope means that scope is limited to cluster-scoped objects. // Namespace objects are cluster-scoped. ClusterScope ScopeType = v1.ClusterScope // NamespacedScope means that scope is limited to namespaced objects. NamespacedScope ScopeType = v1.NamespacedScope // AllScopes means that all scopes are included. AllScopes ScopeType = v1.AllScopes ) // ParameterNotFoundActionType specifies a failure policy that defines how a binding // is evaluated when the param referred by its perNamespaceParamRef is not found. // +enum type ParameterNotFoundActionType string const ( // Ignore means that an error finding params for a binding is ignored AllowAction ParameterNotFoundActionType = "Allow" // Fail means that an error finding params for a binding is ignored DenyAction ParameterNotFoundActionType = "Deny" ) // FailurePolicyType specifies a failure policy that defines how unrecognized errors from the admission endpoint are handled. // +enum 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. // +enum 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" ) // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.26 // ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. type ValidatingAdmissionPolicy 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 behavior of the ValidatingAdmissionPolicy. Spec ValidatingAdmissionPolicySpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy // behaves in the expected way. // Populated by the system. // Read-only. // +optional Status ValidatingAdmissionPolicyStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy. type ValidatingAdmissionPolicyStatus struct { // The generation observed by the controller. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` // The results of type checking for each expression. // Presence of this field indicates the completion of the type checking. // +optional TypeChecking *TypeChecking `json:"typeChecking,omitempty" protobuf:"bytes,2,opt,name=typeChecking"` // The conditions represent the latest available observations of a policy's current state. // +optional // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty" protobuf:"bytes,3,rep,name=conditions"` } // TypeChecking contains results of type checking the expressions in the // ValidatingAdmissionPolicy type TypeChecking struct { // The type checking warnings for each expression. // +optional // +listType=atomic ExpressionWarnings []ExpressionWarning `json:"expressionWarnings,omitempty" protobuf:"bytes,1,rep,name=expressionWarnings"` } // ExpressionWarning is a warning information that targets a specific expression. type ExpressionWarning struct { // The path to the field that refers the expression. // For example, the reference to the expression of the first item of // validations is "spec.validations[0].expression" FieldRef string `json:"fieldRef" protobuf:"bytes,2,opt,name=fieldRef"` // The content of type checking information in a human-readable form. // Each line of the warning contains the type that the expression is checked // against, followed by the type check error from the compiler. Warning string `json:"warning" protobuf:"bytes,3,opt,name=warning"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.26 // ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. type ValidatingAdmissionPolicyList 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 ValidatingAdmissionPolicy. Items []ValidatingAdmissionPolicy `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` } // ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. type ValidatingAdmissionPolicySpec struct { // ParamKind specifies the kind of resources used to parameterize this policy. // If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. // If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. // If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null. // +optional ParamKind *ParamKind `json:"paramKind,omitempty" protobuf:"bytes,1,rep,name=paramKind"` // MatchConstraints specifies what resources this policy is designed to validate. // The AdmissionPolicy cares about a request if it matches _all_ Constraints. // However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API // ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. // Required. MatchConstraints *MatchResources `json:"matchConstraints,omitempty" protobuf:"bytes,2,rep,name=matchConstraints"` // Validations contain CEL expressions which is used to apply the validation. // Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is // required. // +listType=atomic // +optional Validations []Validation `json:"validations,omitempty" protobuf:"bytes,3,rep,name=validations"` // failurePolicy defines how to handle failures for the admission policy. Failures can // occur from CEL expression parse errors, type check errors, runtime errors and invalid // or mis-configured policy definitions or bindings. // // A policy is invalid if spec.paramKind refers to a non-existent Kind. // A binding is invalid if spec.paramRef.name refers to a non-existent resource. // // failurePolicy does not define how validations that evaluate to false are handled. // // When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions // define how failures are enforced. // // Allowed values are Ignore or Fail. Defaults to Fail. // +optional FailurePolicy *FailurePolicyType `json:"failurePolicy,omitempty" protobuf:"bytes,4,opt,name=failurePolicy,casttype=FailurePolicyType"` // auditAnnotations contains CEL expressions which are used to produce audit // annotations for the audit event of the API request. // validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is // required. // +listType=atomic // +optional AuditAnnotations []AuditAnnotation `json:"auditAnnotations,omitempty" protobuf:"bytes,5,rep,name=auditAnnotations"` // MatchConditions is a list of conditions that must be met for a request to be validated. // Match conditions filter requests that have already been matched by the rules, // namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. // There are a maximum of 64 match conditions allowed. // // If a parameter object is provided, it can be accessed via the `params` handle in the same // manner as validation expressions. // // The exact matching logic is (in order): // 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. // 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. // 3. If any matchCondition evaluates to an error (but none are FALSE): // - If failurePolicy=Fail, reject the request // - If failurePolicy=Ignore, the policy is skipped // // +patchMergeKey=name // +patchStrategy=merge // +listType=map // +listMapKey=name // +optional MatchConditions []MatchCondition `json:"matchConditions,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,6,rep,name=matchConditions"` // Variables contain definitions of variables that can be used in composition of other expressions. // Each variable is defined as a named CEL expression. // The variables defined here will be available under `variables` in other expressions of the policy // except MatchConditions because MatchConditions are evaluated before the rest of the policy. // // The expression of a variable can refer to other variables defined earlier in the list but not those after. // Thus, Variables must be sorted by the order of first appearance and acyclic. // +patchMergeKey=name // +patchStrategy=merge // +listType=map // +listMapKey=name // +optional Variables []Variable `json:"variables,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,7,rep,name=variables"` } type MatchCondition v1.MatchCondition // ParamKind is a tuple of Group Kind and Version. // +structType=atomic type ParamKind struct { // APIVersion is the API group version the resources belong to. // In format of "group/version". // Required. APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,1,rep,name=apiVersion"` // Kind is the API kind the resources belong to. // Required. Kind string `json:"kind,omitempty" protobuf:"bytes,2,rep,name=kind"` } // Validation specifies the CEL expression which is used to apply the validation. type Validation struct { // Expression represents the expression which will be evaluated by CEL. // ref: https://github.com/google/cel-spec // CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: // // - 'object' - The object from the incoming request. The value is null for DELETE requests. // - 'oldObject' - The existing object. The value is null for CREATE requests. // - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). // - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. // - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. // - 'variables' - Map of composited variables, from its name to its lazily evaluated value. // For example, a variable named 'foo' can be accessed as 'variables.foo'. // - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. // See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz // - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the // request resource. // // The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the // object. No other metadata properties are accessible. // // Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. // Accessible property names are escaped according to the following rules when accessed in the expression: // - '__' escapes to '__underscores__' // - '.' escapes to '__dot__' // - '-' escapes to '__dash__' // - '/' escapes to '__slash__' // - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: // "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", // "import", "let", "loop", "package", "namespace", "return". // Examples: // - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"} // - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"} // - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"} // // Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. // Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: // - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and // non-intersecting elements in `Y` are appended, retaining their partial order. // - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values // are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with // non-intersecting keys are appended, retaining their partial order. // Required. Expression string `json:"expression" protobuf:"bytes,1,opt,name=Expression"` // Message represents the message displayed when validation fails. The message is required if the Expression contains // line breaks. The message must not contain line breaks. // If unset, the message is "failed rule: {Rule}". // e.g. "must be a URL with the host matching spec.host" // If the Expression contains line breaks. Message is required. // The message must not contain line breaks. // If unset, the message is "failed Expression: {Expression}". // +optional Message string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"` // Reason represents a machine-readable description of why this validation failed. // If this is the first validation in the list to fail, this reason, as well as the // corresponding HTTP response code, are used in the // HTTP response to the client. // The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge". // If not set, StatusReasonInvalid is used in the response to the client. // +optional Reason *metav1.StatusReason `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` // messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. // Since messageExpression is used as a failure message, it must evaluate to a string. // If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. // If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced // as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string // that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and // the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. // messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. // Example: // "object.x must be less than max ("+string(params.max)+")" // +optional MessageExpression string `json:"messageExpression,omitempty" protobuf:"bytes,4,opt,name=messageExpression"` } // Variable is the definition of a variable that is used for composition. type Variable struct { // Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. // The variable can be accessed in other expressions through `variables` // For example, if name is "foo", the variable will be available as `variables.foo` Name string `json:"name" protobuf:"bytes,1,opt,name=Name"` // Expression is the expression that will be evaluated as the value of the variable. // The CEL expression has access to the same identifiers as the CEL expressions in Validation. Expression string `json:"expression" protobuf:"bytes,2,opt,name=Expression"` } // AuditAnnotation describes how to produce an audit annotation for an API request. type AuditAnnotation struct { // key specifies the audit annotation key. The audit annotation keys of // a ValidatingAdmissionPolicy must be unique. The key must be a qualified // name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. // // The key is combined with the resource name of the // ValidatingAdmissionPolicy to construct an audit annotation key: // "{ValidatingAdmissionPolicy name}/{key}". // // If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy // and the same audit annotation key, the annotation key will be identical. // In this case, the first annotation written with the key will be included // in the audit event and all subsequent annotations with the same key // will be discarded. // // Required. Key string `json:"key" protobuf:"bytes,1,opt,name=key"` // valueExpression represents the expression which is evaluated by CEL to // produce an audit annotation value. The expression must evaluate to either // a string or null value. If the expression evaluates to a string, the // audit annotation is included with the string value. If the expression // evaluates to null or empty string the audit annotation will be omitted. // The valueExpression may be no longer than 5kb in length. // If the result of the valueExpression is more than 10kb in length, it // will be truncated to 10kb. // // If multiple ValidatingAdmissionPolicyBinding resources match an // API request, then the valueExpression will be evaluated for // each binding. All unique values produced by the valueExpressions // will be joined together in a comma-separated list. // // Required. ValueExpression string `json:"valueExpression" protobuf:"bytes,2,opt,name=valueExpression"` } // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.26 // ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. // ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. // // For a given admission request, each binding will cause its policy to be // evaluated N times, where N is 1 for policies/bindings that don't use // params, otherwise N is the number of parameters selected by the binding. // // The CEL expressions of a policy must have a computed CEL cost below the maximum // CEL budget. Each evaluation of the policy is given an independent CEL cost budget. // Adding/removing policies, bindings, or params can not affect whether a // given (policy, binding, param) combination is within its own CEL budget. type ValidatingAdmissionPolicyBinding 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 behavior of the ValidatingAdmissionPolicyBinding. Spec ValidatingAdmissionPolicyBindingSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.26 // ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. type ValidatingAdmissionPolicyBindingList 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 PolicyBinding. Items []ValidatingAdmissionPolicyBinding `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` } // ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. type ValidatingAdmissionPolicyBindingSpec struct { // PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. // If the referenced resource does not exist, this binding is considered invalid and will be ignored // Required. PolicyName string `json:"policyName,omitempty" protobuf:"bytes,1,rep,name=policyName"` // paramRef specifies the parameter resource used to configure the admission control policy. // It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. // If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. // If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param. // +optional ParamRef *ParamRef `json:"paramRef,omitempty" protobuf:"bytes,2,rep,name=paramRef"` // MatchResources declares what resources match this binding and will be validated by it. // Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. // If this is unset, all resources matched by the policy are validated by this binding // When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. // Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required. // +optional MatchResources *MatchResources `json:"matchResources,omitempty" protobuf:"bytes,3,rep,name=matchResources"` // validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. // If a validation evaluates to false it is always enforced according to these actions. // // Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according // to these actions only if the FailurePolicy is set to Fail, otherwise the failures are // ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. // // validationActions is declared as a set of action values. Order does // not matter. validationActions may not contain duplicates of the same action. // // The supported actions values are: // // "Deny" specifies that a validation failure results in a denied request. // // "Warn" specifies that a validation failure is reported to the request client // in HTTP Warning headers, with a warning code of 299. Warnings can be sent // both for allowed or denied admission responses. // // "Audit" specifies that a validation failure is included in the published // audit event for the request. The audit event will contain a // `validation.policy.admission.k8s.io/validation_failure` audit annotation // with a value containing the details of the validation failures, formatted as // a JSON list of objects, each with the following fields: // - message: The validation failure message string // - policy: The resource name of the ValidatingAdmissionPolicy // - binding: The resource name of the ValidatingAdmissionPolicyBinding // - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy // - validationActions: The enforcement actions enacted for the validation failure // Example audit annotation: // `"validation.policy.admission.k8s.io/validation_failure": "[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]"` // // Clients should expect to handle additional values by ignoring // any values not recognized. // // "Deny" and "Warn" may not be used together since this combination // needlessly duplicates the validation failure both in the // API response body and the HTTP warning headers. // // Required. // +listType=set ValidationActions []ValidationAction `json:"validationActions,omitempty" protobuf:"bytes,4,rep,name=validationActions"` } // ParamRef describes how to locate the params to be used as input to // expressions of rules applied by a policy binding. // +structType=atomic type ParamRef struct { // `name` is the name of the resource being referenced. // // `name` and `selector` are mutually exclusive properties. If one is set, // the other must be unset. // // +optional Name string `json:"name,omitempty" protobuf:"bytes,1,rep,name=name"` // namespace is the namespace of the referenced resource. Allows limiting // the search for params to a specific namespace. Applies to both `name` and // `selector` fields. // // A per-namespace parameter may be used by specifying a namespace-scoped // `paramKind` in the policy and leaving this field empty. // // - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this // field results in a configuration error. // // - If `paramKind` is namespace-scoped, the namespace of the object being // evaluated for admission will be used when this field is left unset. Take // care that if this is left empty the binding must not match any cluster-scoped // resources, which will result in an error. // // +optional Namespace string `json:"namespace,omitempty" protobuf:"bytes,2,rep,name=namespace"` // selector can be used to match multiple param objects based on their labels. // Supply selector: {} to match all resources of the ParamKind. // // If multiple params are found, they are all evaluated with the policy expressions // and the results are ANDed together. // // One of `name` or `selector` must be set, but `name` and `selector` are // mutually exclusive properties. If one is set, the other must be unset. // // +optional Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,3,rep,name=selector"` // `parameterNotFoundAction` controls the behavior of the binding when the resource // exists, and name or selector is valid, but there are no parameters // matched by the binding. If the value is set to `Allow`, then no // matched parameters will be treated as successful validation by the binding. // If set to `Deny`, then no matched parameters will be subject to the // `failurePolicy` of the policy. // // Allowed values are `Allow` or `Deny` // Default to `Deny` // +optional ParameterNotFoundAction *ParameterNotFoundActionType `json:"parameterNotFoundAction,omitempty" protobuf:"bytes,4,rep,name=parameterNotFoundAction"` } // MatchResources decides whether to run the admission control policy on an object based // on whether it meets the match criteria. // The exclude rules take precedence over include rules (if a resource matches both, it is excluded) // +structType=atomic type MatchResources struct { // NamespaceSelector decides whether to run the admission control policy 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 policy. // // 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 policy 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,1,opt,name=namespaceSelector"` // ObjectSelector decides whether to run the validation based on if the // object has matching labels. objectSelector is evaluated against both // the oldObject and newObject that would be sent to the cel validation, 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,2,opt,name=objectSelector"` // ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. // The policy cares about an operation if it matches _any_ Rule. // +listType=atomic // +optional ResourceRules []NamedRuleWithOperations `json:"resourceRules,omitempty" protobuf:"bytes,3,rep,name=resourceRules"` // ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. // The exclude rules take precedence over include rules (if a resource matches both, it is excluded) // +listType=atomic // +optional ExcludeResourceRules []NamedRuleWithOperations `json:"excludeResourceRules,omitempty" protobuf:"bytes,4,rep,name=excludeResourceRules"` // matchPolicy defines how the "MatchResources" 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 ValidatingAdmissionPolicy. // // - 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 ValidatingAdmissionPolicy. // // Defaults to "Equivalent" // +optional MatchPolicy *MatchPolicyType `json:"matchPolicy,omitempty" protobuf:"bytes,7,opt,name=matchPolicy,casttype=MatchPolicyType"` } // ValidationAction specifies a policy enforcement action. // +enum type ValidationAction string const ( // Deny specifies that a validation failure results in a denied request. Deny ValidationAction = "Deny" // Warn specifies that a validation failure is reported to the request client // in HTTP Warning headers, with a warning code of 299. Warnings can be sent // both for allowed or denied admission responses. Warn ValidationAction = "Warn" // Audit specifies that a validation failure is included in the published // audit event for the request. The audit event will contain a // `validation.policy.admission.k8s.io/validation_failure` audit annotation // with a value containing the details of the validation failure. Audit ValidationAction = "Audit" ) // NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. // +structType=atomic type NamedRuleWithOperations struct { // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. // +listType=atomic // +optional ResourceNames []string `json:"resourceNames,omitempty" protobuf:"bytes,1,rep,name=resourceNames"` // RuleWithOperations is a tuple of Operations and Resources. RuleWithOperations `json:",inline" protobuf:"bytes,2,opt,name=ruleWithOperations"` } // RuleWithOperations is a tuple of Operations and Resources. It is recommended to make // sure that all the tuple expansions are valid. type RuleWithOperations = v1.RuleWithOperations // OperationType specifies an operation for a request. // +enum type OperationType = v1.OperationType // The constants should be kept in sync with those defined in k8s.io/kubernetes/pkg/admission/interface.go. const ( OperationAll OperationType = v1.OperationAll Create OperationType = v1.Create Update OperationType = v1.Update Delete OperationType = v1.Delete Connect OperationType = v1.Connect ) golang-k8s-api-0.29.0/admissionregistration/v1alpha1/types_swagger_doc_generated.go000066400000000000000000000660221453636404600304570ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_AuditAnnotation = map[string]string{ "": "AuditAnnotation describes how to produce an audit annotation for an API request.", "key": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", "valueExpression": "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", } func (AuditAnnotation) SwaggerDoc() map[string]string { return map_AuditAnnotation } var map_ExpressionWarning = map[string]string{ "": "ExpressionWarning is a warning information that targets a specific expression.", "fieldRef": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", "warning": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", } func (ExpressionWarning) SwaggerDoc() map[string]string { return map_ExpressionWarning } var map_MatchResources = map[string]string{ "": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", "namespaceSelector": "NamespaceSelector decides whether to run the admission control policy 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 policy.\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 policy 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 validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, 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.", "resourceRules": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", "excludeResourceRules": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", "matchPolicy": "matchPolicy defines how the \"MatchResources\" 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 ValidatingAdmissionPolicy.\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 ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", } func (MatchResources) SwaggerDoc() map[string]string { return map_MatchResources } var map_NamedRuleWithOperations = map[string]string{ "": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", "resourceNames": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", } func (NamedRuleWithOperations) SwaggerDoc() map[string]string { return map_NamedRuleWithOperations } var map_ParamKind = map[string]string{ "": "ParamKind is a tuple of Group Kind and Version.", "apiVersion": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", "kind": "Kind is the API kind the resources belong to. Required.", } func (ParamKind) SwaggerDoc() map[string]string { return map_ParamKind } var map_ParamRef = map[string]string{ "": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", "name": "`name` is the name of the resource being referenced.\n\n`name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.", "namespace": "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.", "selector": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.", "parameterNotFoundAction": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny` Default to `Deny`", } func (ParamRef) SwaggerDoc() map[string]string { return map_ParamRef } var map_TypeChecking = map[string]string{ "": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy", "expressionWarnings": "The type checking warnings for each expression.", } func (TypeChecking) SwaggerDoc() map[string]string { return map_TypeChecking } var map_ValidatingAdmissionPolicy = map[string]string{ "": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", "metadata": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.", "spec": "Specification of the desired behavior of the ValidatingAdmissionPolicy.", "status": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only.", } func (ValidatingAdmissionPolicy) SwaggerDoc() map[string]string { return map_ValidatingAdmissionPolicy } var map_ValidatingAdmissionPolicyBinding = map[string]string{ "": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\n\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", "metadata": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.", "spec": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.", } func (ValidatingAdmissionPolicyBinding) SwaggerDoc() map[string]string { return map_ValidatingAdmissionPolicyBinding } var map_ValidatingAdmissionPolicyBindingList = map[string]string{ "": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "items": "List of PolicyBinding.", } func (ValidatingAdmissionPolicyBindingList) SwaggerDoc() map[string]string { return map_ValidatingAdmissionPolicyBindingList } var map_ValidatingAdmissionPolicyBindingSpec = map[string]string{ "": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", "policyName": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", "paramRef": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.", "matchResources": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required.", "validationActions": "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\n\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\n\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\n\nThe supported actions values are:\n\n\"Deny\" specifies that a validation failure results in a denied request.\n\n\"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\n\n\"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"`\n\nClients should expect to handle additional values by ignoring any values not recognized.\n\n\"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\n\nRequired.", } func (ValidatingAdmissionPolicyBindingSpec) SwaggerDoc() map[string]string { return map_ValidatingAdmissionPolicyBindingSpec } var map_ValidatingAdmissionPolicyList = map[string]string{ "": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "items": "List of ValidatingAdmissionPolicy.", } func (ValidatingAdmissionPolicyList) SwaggerDoc() map[string]string { return map_ValidatingAdmissionPolicyList } var map_ValidatingAdmissionPolicySpec = map[string]string{ "": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", "paramKind": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.", "matchConstraints": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required.", "validations": "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.", "failurePolicy": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", "auditAnnotations": "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.", "matchConditions": "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", "variables": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.", } func (ValidatingAdmissionPolicySpec) SwaggerDoc() map[string]string { return map_ValidatingAdmissionPolicySpec } var map_ValidatingAdmissionPolicyStatus = map[string]string{ "": "ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy.", "observedGeneration": "The generation observed by the controller.", "typeChecking": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking.", "conditions": "The conditions represent the latest available observations of a policy's current state.", } func (ValidatingAdmissionPolicyStatus) SwaggerDoc() map[string]string { return map_ValidatingAdmissionPolicyStatus } var map_Validation = map[string]string{ "": "Validation specifies the CEL expression which is used to apply the validation.", "expression": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", "message": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", "reason": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", "messageExpression": "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", } func (Validation) SwaggerDoc() map[string]string { return map_Validation } var map_Variable = map[string]string{ "": "Variable is the definition of a variable that is used for composition.", "name": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", "expression": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", } func (Variable) SwaggerDoc() map[string]string { return map_Variable } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/admissionregistration/v1alpha1/zz_generated.deepcopy.go000066400000000000000000000337331453636404600272240ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AuditAnnotation) DeepCopyInto(out *AuditAnnotation) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuditAnnotation. func (in *AuditAnnotation) DeepCopy() *AuditAnnotation { if in == nil { return nil } out := new(AuditAnnotation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ExpressionWarning) DeepCopyInto(out *ExpressionWarning) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExpressionWarning. func (in *ExpressionWarning) DeepCopy() *ExpressionWarning { if in == nil { return nil } out := new(ExpressionWarning) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MatchCondition) DeepCopyInto(out *MatchCondition) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchCondition. func (in *MatchCondition) DeepCopy() *MatchCondition { if in == nil { return nil } out := new(MatchCondition) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MatchResources) DeepCopyInto(out *MatchResources) { *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.ResourceRules != nil { in, out := &in.ResourceRules, &out.ResourceRules *out = make([]NamedRuleWithOperations, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.ExcludeResourceRules != nil { in, out := &in.ExcludeResourceRules, &out.ExcludeResourceRules *out = make([]NamedRuleWithOperations, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.MatchPolicy != nil { in, out := &in.MatchPolicy, &out.MatchPolicy *out = new(MatchPolicyType) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchResources. func (in *MatchResources) DeepCopy() *MatchResources { if in == nil { return nil } out := new(MatchResources) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NamedRuleWithOperations) DeepCopyInto(out *NamedRuleWithOperations) { *out = *in if in.ResourceNames != nil { in, out := &in.ResourceNames, &out.ResourceNames *out = make([]string, len(*in)) copy(*out, *in) } in.RuleWithOperations.DeepCopyInto(&out.RuleWithOperations) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedRuleWithOperations. func (in *NamedRuleWithOperations) DeepCopy() *NamedRuleWithOperations { if in == nil { return nil } out := new(NamedRuleWithOperations) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ParamKind) DeepCopyInto(out *ParamKind) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamKind. func (in *ParamKind) DeepCopy() *ParamKind { if in == nil { return nil } out := new(ParamKind) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ParamRef) DeepCopyInto(out *ParamRef) { *out = *in if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = new(v1.LabelSelector) (*in).DeepCopyInto(*out) } if in.ParameterNotFoundAction != nil { in, out := &in.ParameterNotFoundAction, &out.ParameterNotFoundAction *out = new(ParameterNotFoundActionType) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamRef. func (in *ParamRef) DeepCopy() *ParamRef { if in == nil { return nil } out := new(ParamRef) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *TypeChecking) DeepCopyInto(out *TypeChecking) { *out = *in if in.ExpressionWarnings != nil { in, out := &in.ExpressionWarnings, &out.ExpressionWarnings *out = make([]ExpressionWarning, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TypeChecking. func (in *TypeChecking) DeepCopy() *TypeChecking { if in == nil { return nil } out := new(TypeChecking) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ValidatingAdmissionPolicy) DeepCopyInto(out *ValidatingAdmissionPolicy) { *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 ValidatingAdmissionPolicy. func (in *ValidatingAdmissionPolicy) DeepCopy() *ValidatingAdmissionPolicy { if in == nil { return nil } out := new(ValidatingAdmissionPolicy) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *ValidatingAdmissionPolicy) 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 *ValidatingAdmissionPolicyBinding) DeepCopyInto(out *ValidatingAdmissionPolicyBinding) { *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 ValidatingAdmissionPolicyBinding. func (in *ValidatingAdmissionPolicyBinding) DeepCopy() *ValidatingAdmissionPolicyBinding { if in == nil { return nil } out := new(ValidatingAdmissionPolicyBinding) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *ValidatingAdmissionPolicyBinding) 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 *ValidatingAdmissionPolicyBindingList) DeepCopyInto(out *ValidatingAdmissionPolicyBindingList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ValidatingAdmissionPolicyBinding, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyBindingList. func (in *ValidatingAdmissionPolicyBindingList) DeepCopy() *ValidatingAdmissionPolicyBindingList { if in == nil { return nil } out := new(ValidatingAdmissionPolicyBindingList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *ValidatingAdmissionPolicyBindingList) 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 *ValidatingAdmissionPolicyBindingSpec) DeepCopyInto(out *ValidatingAdmissionPolicyBindingSpec) { *out = *in if in.ParamRef != nil { in, out := &in.ParamRef, &out.ParamRef *out = new(ParamRef) (*in).DeepCopyInto(*out) } if in.MatchResources != nil { in, out := &in.MatchResources, &out.MatchResources *out = new(MatchResources) (*in).DeepCopyInto(*out) } if in.ValidationActions != nil { in, out := &in.ValidationActions, &out.ValidationActions *out = make([]ValidationAction, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyBindingSpec. func (in *ValidatingAdmissionPolicyBindingSpec) DeepCopy() *ValidatingAdmissionPolicyBindingSpec { if in == nil { return nil } out := new(ValidatingAdmissionPolicyBindingSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ValidatingAdmissionPolicyList) DeepCopyInto(out *ValidatingAdmissionPolicyList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ValidatingAdmissionPolicy, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyList. func (in *ValidatingAdmissionPolicyList) DeepCopy() *ValidatingAdmissionPolicyList { if in == nil { return nil } out := new(ValidatingAdmissionPolicyList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *ValidatingAdmissionPolicyList) 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 *ValidatingAdmissionPolicySpec) DeepCopyInto(out *ValidatingAdmissionPolicySpec) { *out = *in if in.ParamKind != nil { in, out := &in.ParamKind, &out.ParamKind *out = new(ParamKind) **out = **in } if in.MatchConstraints != nil { in, out := &in.MatchConstraints, &out.MatchConstraints *out = new(MatchResources) (*in).DeepCopyInto(*out) } if in.Validations != nil { in, out := &in.Validations, &out.Validations *out = make([]Validation, 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.AuditAnnotations != nil { in, out := &in.AuditAnnotations, &out.AuditAnnotations *out = make([]AuditAnnotation, len(*in)) copy(*out, *in) } if in.MatchConditions != nil { in, out := &in.MatchConditions, &out.MatchConditions *out = make([]MatchCondition, len(*in)) copy(*out, *in) } if in.Variables != nil { in, out := &in.Variables, &out.Variables *out = make([]Variable, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicySpec. func (in *ValidatingAdmissionPolicySpec) DeepCopy() *ValidatingAdmissionPolicySpec { if in == nil { return nil } out := new(ValidatingAdmissionPolicySpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ValidatingAdmissionPolicyStatus) DeepCopyInto(out *ValidatingAdmissionPolicyStatus) { *out = *in if in.TypeChecking != nil { in, out := &in.TypeChecking, &out.TypeChecking *out = new(TypeChecking) (*in).DeepCopyInto(*out) } if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]v1.Condition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyStatus. func (in *ValidatingAdmissionPolicyStatus) DeepCopy() *ValidatingAdmissionPolicyStatus { if in == nil { return nil } out := new(ValidatingAdmissionPolicyStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Validation) DeepCopyInto(out *Validation) { *out = *in if in.Reason != nil { in, out := &in.Reason, &out.Reason *out = new(v1.StatusReason) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Validation. func (in *Validation) DeepCopy() *Validation { if in == nil { return nil } out := new(Validation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Variable) DeepCopyInto(out *Variable) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Variable. func (in *Variable) DeepCopy() *Variable { if in == nil { return nil } out := new(Variable) in.DeepCopyInto(out) return out } golang-k8s-api-0.29.0/admissionregistration/v1beta1/000077500000000000000000000000001453636404600222225ustar00rootroot00000000000000golang-k8s-api-0.29.0/admissionregistration/v1beta1/doc.go000066400000000000000000000021111453636404600233110ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-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 "k8s.io/api/admissionregistration/v1beta1" golang-k8s-api-0.29.0/admissionregistration/v1beta1/generated.pb.go000066400000000000000000005677731453636404600251400ustar00rootroot00000000000000/* 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/k8s.io/api/admissionregistration/v1beta1/generated.proto package v1beta1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" v11 "k8s.io/api/admissionregistration/v1" k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *AuditAnnotation) Reset() { *m = AuditAnnotation{} } func (*AuditAnnotation) ProtoMessage() {} func (*AuditAnnotation) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{0} } func (m *AuditAnnotation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *AuditAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *AuditAnnotation) XXX_Merge(src proto.Message) { xxx_messageInfo_AuditAnnotation.Merge(m, src) } func (m *AuditAnnotation) XXX_Size() int { return m.Size() } func (m *AuditAnnotation) XXX_DiscardUnknown() { xxx_messageInfo_AuditAnnotation.DiscardUnknown(m) } var xxx_messageInfo_AuditAnnotation proto.InternalMessageInfo func (m *ExpressionWarning) Reset() { *m = ExpressionWarning{} } func (*ExpressionWarning) ProtoMessage() {} func (*ExpressionWarning) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{1} } func (m *ExpressionWarning) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ExpressionWarning) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ExpressionWarning) XXX_Merge(src proto.Message) { xxx_messageInfo_ExpressionWarning.Merge(m, src) } func (m *ExpressionWarning) XXX_Size() int { return m.Size() } func (m *ExpressionWarning) XXX_DiscardUnknown() { xxx_messageInfo_ExpressionWarning.DiscardUnknown(m) } var xxx_messageInfo_ExpressionWarning proto.InternalMessageInfo func (m *MatchCondition) Reset() { *m = MatchCondition{} } func (*MatchCondition) ProtoMessage() {} func (*MatchCondition) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{2} } func (m *MatchCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *MatchCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *MatchCondition) XXX_Merge(src proto.Message) { xxx_messageInfo_MatchCondition.Merge(m, src) } func (m *MatchCondition) XXX_Size() int { return m.Size() } func (m *MatchCondition) XXX_DiscardUnknown() { xxx_messageInfo_MatchCondition.DiscardUnknown(m) } var xxx_messageInfo_MatchCondition proto.InternalMessageInfo func (m *MatchResources) Reset() { *m = MatchResources{} } func (*MatchResources) ProtoMessage() {} func (*MatchResources) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{3} } func (m *MatchResources) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *MatchResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *MatchResources) XXX_Merge(src proto.Message) { xxx_messageInfo_MatchResources.Merge(m, src) } func (m *MatchResources) XXX_Size() int { return m.Size() } func (m *MatchResources) XXX_DiscardUnknown() { xxx_messageInfo_MatchResources.DiscardUnknown(m) } var xxx_messageInfo_MatchResources proto.InternalMessageInfo func (m *MutatingWebhook) Reset() { *m = MutatingWebhook{} } func (*MutatingWebhook) ProtoMessage() {} func (*MutatingWebhook) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{4} } 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{5} } 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{6} } 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 *NamedRuleWithOperations) Reset() { *m = NamedRuleWithOperations{} } func (*NamedRuleWithOperations) ProtoMessage() {} func (*NamedRuleWithOperations) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{7} } func (m *NamedRuleWithOperations) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *NamedRuleWithOperations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *NamedRuleWithOperations) XXX_Merge(src proto.Message) { xxx_messageInfo_NamedRuleWithOperations.Merge(m, src) } func (m *NamedRuleWithOperations) XXX_Size() int { return m.Size() } func (m *NamedRuleWithOperations) XXX_DiscardUnknown() { xxx_messageInfo_NamedRuleWithOperations.DiscardUnknown(m) } var xxx_messageInfo_NamedRuleWithOperations proto.InternalMessageInfo func (m *ParamKind) Reset() { *m = ParamKind{} } func (*ParamKind) ProtoMessage() {} func (*ParamKind) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{8} } func (m *ParamKind) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ParamKind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ParamKind) XXX_Merge(src proto.Message) { xxx_messageInfo_ParamKind.Merge(m, src) } func (m *ParamKind) XXX_Size() int { return m.Size() } func (m *ParamKind) XXX_DiscardUnknown() { xxx_messageInfo_ParamKind.DiscardUnknown(m) } var xxx_messageInfo_ParamKind proto.InternalMessageInfo func (m *ParamRef) Reset() { *m = ParamRef{} } func (*ParamRef) ProtoMessage() {} func (*ParamRef) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{9} } func (m *ParamRef) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ParamRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ParamRef) XXX_Merge(src proto.Message) { xxx_messageInfo_ParamRef.Merge(m, src) } func (m *ParamRef) XXX_Size() int { return m.Size() } func (m *ParamRef) XXX_DiscardUnknown() { xxx_messageInfo_ParamRef.DiscardUnknown(m) } var xxx_messageInfo_ParamRef proto.InternalMessageInfo func (m *ServiceReference) Reset() { *m = ServiceReference{} } func (*ServiceReference) ProtoMessage() {} func (*ServiceReference) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{10} } 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 *TypeChecking) Reset() { *m = TypeChecking{} } func (*TypeChecking) ProtoMessage() {} func (*TypeChecking) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{11} } func (m *TypeChecking) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *TypeChecking) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *TypeChecking) XXX_Merge(src proto.Message) { xxx_messageInfo_TypeChecking.Merge(m, src) } func (m *TypeChecking) XXX_Size() int { return m.Size() } func (m *TypeChecking) XXX_DiscardUnknown() { xxx_messageInfo_TypeChecking.DiscardUnknown(m) } var xxx_messageInfo_TypeChecking proto.InternalMessageInfo func (m *ValidatingAdmissionPolicy) Reset() { *m = ValidatingAdmissionPolicy{} } func (*ValidatingAdmissionPolicy) ProtoMessage() {} func (*ValidatingAdmissionPolicy) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{12} } func (m *ValidatingAdmissionPolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ValidatingAdmissionPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ValidatingAdmissionPolicy) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidatingAdmissionPolicy.Merge(m, src) } func (m *ValidatingAdmissionPolicy) XXX_Size() int { return m.Size() } func (m *ValidatingAdmissionPolicy) XXX_DiscardUnknown() { xxx_messageInfo_ValidatingAdmissionPolicy.DiscardUnknown(m) } var xxx_messageInfo_ValidatingAdmissionPolicy proto.InternalMessageInfo func (m *ValidatingAdmissionPolicyBinding) Reset() { *m = ValidatingAdmissionPolicyBinding{} } func (*ValidatingAdmissionPolicyBinding) ProtoMessage() {} func (*ValidatingAdmissionPolicyBinding) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{13} } func (m *ValidatingAdmissionPolicyBinding) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ValidatingAdmissionPolicyBinding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ValidatingAdmissionPolicyBinding) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidatingAdmissionPolicyBinding.Merge(m, src) } func (m *ValidatingAdmissionPolicyBinding) XXX_Size() int { return m.Size() } func (m *ValidatingAdmissionPolicyBinding) XXX_DiscardUnknown() { xxx_messageInfo_ValidatingAdmissionPolicyBinding.DiscardUnknown(m) } var xxx_messageInfo_ValidatingAdmissionPolicyBinding proto.InternalMessageInfo func (m *ValidatingAdmissionPolicyBindingList) Reset() { *m = ValidatingAdmissionPolicyBindingList{} } func (*ValidatingAdmissionPolicyBindingList) ProtoMessage() {} func (*ValidatingAdmissionPolicyBindingList) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{14} } func (m *ValidatingAdmissionPolicyBindingList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ValidatingAdmissionPolicyBindingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ValidatingAdmissionPolicyBindingList) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidatingAdmissionPolicyBindingList.Merge(m, src) } func (m *ValidatingAdmissionPolicyBindingList) XXX_Size() int { return m.Size() } func (m *ValidatingAdmissionPolicyBindingList) XXX_DiscardUnknown() { xxx_messageInfo_ValidatingAdmissionPolicyBindingList.DiscardUnknown(m) } var xxx_messageInfo_ValidatingAdmissionPolicyBindingList proto.InternalMessageInfo func (m *ValidatingAdmissionPolicyBindingSpec) Reset() { *m = ValidatingAdmissionPolicyBindingSpec{} } func (*ValidatingAdmissionPolicyBindingSpec) ProtoMessage() {} func (*ValidatingAdmissionPolicyBindingSpec) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{15} } func (m *ValidatingAdmissionPolicyBindingSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ValidatingAdmissionPolicyBindingSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ValidatingAdmissionPolicyBindingSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidatingAdmissionPolicyBindingSpec.Merge(m, src) } func (m *ValidatingAdmissionPolicyBindingSpec) XXX_Size() int { return m.Size() } func (m *ValidatingAdmissionPolicyBindingSpec) XXX_DiscardUnknown() { xxx_messageInfo_ValidatingAdmissionPolicyBindingSpec.DiscardUnknown(m) } var xxx_messageInfo_ValidatingAdmissionPolicyBindingSpec proto.InternalMessageInfo func (m *ValidatingAdmissionPolicyList) Reset() { *m = ValidatingAdmissionPolicyList{} } func (*ValidatingAdmissionPolicyList) ProtoMessage() {} func (*ValidatingAdmissionPolicyList) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{16} } func (m *ValidatingAdmissionPolicyList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ValidatingAdmissionPolicyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ValidatingAdmissionPolicyList) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidatingAdmissionPolicyList.Merge(m, src) } func (m *ValidatingAdmissionPolicyList) XXX_Size() int { return m.Size() } func (m *ValidatingAdmissionPolicyList) XXX_DiscardUnknown() { xxx_messageInfo_ValidatingAdmissionPolicyList.DiscardUnknown(m) } var xxx_messageInfo_ValidatingAdmissionPolicyList proto.InternalMessageInfo func (m *ValidatingAdmissionPolicySpec) Reset() { *m = ValidatingAdmissionPolicySpec{} } func (*ValidatingAdmissionPolicySpec) ProtoMessage() {} func (*ValidatingAdmissionPolicySpec) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{17} } func (m *ValidatingAdmissionPolicySpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ValidatingAdmissionPolicySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ValidatingAdmissionPolicySpec) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidatingAdmissionPolicySpec.Merge(m, src) } func (m *ValidatingAdmissionPolicySpec) XXX_Size() int { return m.Size() } func (m *ValidatingAdmissionPolicySpec) XXX_DiscardUnknown() { xxx_messageInfo_ValidatingAdmissionPolicySpec.DiscardUnknown(m) } var xxx_messageInfo_ValidatingAdmissionPolicySpec proto.InternalMessageInfo func (m *ValidatingAdmissionPolicyStatus) Reset() { *m = ValidatingAdmissionPolicyStatus{} } func (*ValidatingAdmissionPolicyStatus) ProtoMessage() {} func (*ValidatingAdmissionPolicyStatus) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{18} } func (m *ValidatingAdmissionPolicyStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ValidatingAdmissionPolicyStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ValidatingAdmissionPolicyStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidatingAdmissionPolicyStatus.Merge(m, src) } func (m *ValidatingAdmissionPolicyStatus) XXX_Size() int { return m.Size() } func (m *ValidatingAdmissionPolicyStatus) XXX_DiscardUnknown() { xxx_messageInfo_ValidatingAdmissionPolicyStatus.DiscardUnknown(m) } var xxx_messageInfo_ValidatingAdmissionPolicyStatus proto.InternalMessageInfo func (m *ValidatingWebhook) Reset() { *m = ValidatingWebhook{} } func (*ValidatingWebhook) ProtoMessage() {} func (*ValidatingWebhook) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{19} } 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{20} } 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{21} } 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 *Validation) Reset() { *m = Validation{} } func (*Validation) ProtoMessage() {} func (*Validation) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{22} } func (m *Validation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Validation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *Validation) XXX_Merge(src proto.Message) { xxx_messageInfo_Validation.Merge(m, src) } func (m *Validation) XXX_Size() int { return m.Size() } func (m *Validation) XXX_DiscardUnknown() { xxx_messageInfo_Validation.DiscardUnknown(m) } var xxx_messageInfo_Validation proto.InternalMessageInfo func (m *Variable) Reset() { *m = Variable{} } func (*Variable) ProtoMessage() {} func (*Variable) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{23} } func (m *Variable) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Variable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *Variable) XXX_Merge(src proto.Message) { xxx_messageInfo_Variable.Merge(m, src) } func (m *Variable) XXX_Size() int { return m.Size() } func (m *Variable) XXX_DiscardUnknown() { xxx_messageInfo_Variable.DiscardUnknown(m) } var xxx_messageInfo_Variable proto.InternalMessageInfo func (m *WebhookClientConfig) Reset() { *m = WebhookClientConfig{} } func (*WebhookClientConfig) ProtoMessage() {} func (*WebhookClientConfig) Descriptor() ([]byte, []int) { return fileDescriptor_abeea74cbc46f55a, []int{24} } 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((*AuditAnnotation)(nil), "k8s.io.api.admissionregistration.v1beta1.AuditAnnotation") proto.RegisterType((*ExpressionWarning)(nil), "k8s.io.api.admissionregistration.v1beta1.ExpressionWarning") proto.RegisterType((*MatchCondition)(nil), "k8s.io.api.admissionregistration.v1beta1.MatchCondition") proto.RegisterType((*MatchResources)(nil), "k8s.io.api.admissionregistration.v1beta1.MatchResources") 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((*NamedRuleWithOperations)(nil), "k8s.io.api.admissionregistration.v1beta1.NamedRuleWithOperations") proto.RegisterType((*ParamKind)(nil), "k8s.io.api.admissionregistration.v1beta1.ParamKind") proto.RegisterType((*ParamRef)(nil), "k8s.io.api.admissionregistration.v1beta1.ParamRef") proto.RegisterType((*ServiceReference)(nil), "k8s.io.api.admissionregistration.v1beta1.ServiceReference") proto.RegisterType((*TypeChecking)(nil), "k8s.io.api.admissionregistration.v1beta1.TypeChecking") proto.RegisterType((*ValidatingAdmissionPolicy)(nil), "k8s.io.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy") proto.RegisterType((*ValidatingAdmissionPolicyBinding)(nil), "k8s.io.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding") proto.RegisterType((*ValidatingAdmissionPolicyBindingList)(nil), "k8s.io.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList") proto.RegisterType((*ValidatingAdmissionPolicyBindingSpec)(nil), "k8s.io.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingSpec") proto.RegisterType((*ValidatingAdmissionPolicyList)(nil), "k8s.io.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyList") proto.RegisterType((*ValidatingAdmissionPolicySpec)(nil), "k8s.io.api.admissionregistration.v1beta1.ValidatingAdmissionPolicySpec") proto.RegisterType((*ValidatingAdmissionPolicyStatus)(nil), "k8s.io.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyStatus") 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((*Validation)(nil), "k8s.io.api.admissionregistration.v1beta1.Validation") proto.RegisterType((*Variable)(nil), "k8s.io.api.admissionregistration.v1beta1.Variable") proto.RegisterType((*WebhookClientConfig)(nil), "k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/admissionregistration/v1beta1/generated.proto", fileDescriptor_abeea74cbc46f55a) } var fileDescriptor_abeea74cbc46f55a = []byte{ // 1973 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x1a, 0x4d, 0x6f, 0x23, 0x49, 0x35, 0x1d, 0xe7, 0xc3, 0x7e, 0xce, 0x97, 0x6b, 0x67, 0x89, 0x77, 0x76, 0xd6, 0x8e, 0x5a, 0x2b, 0x94, 0x91, 0xc0, 0xde, 0xc9, 0xae, 0x76, 0x97, 0x59, 0x21, 0x14, 0x67, 0x67, 0x86, 0x99, 0x9d, 0x64, 0x42, 0x65, 0x37, 0x91, 0x60, 0x57, 0x9a, 0x72, 0x77, 0xd9, 0x6e, 0x6c, 0x77, 0x37, 0x5d, 0x6d, 0xcf, 0x04, 0x24, 0x40, 0xe2, 0xb0, 0x57, 0x24, 0x2e, 0x48, 0x9c, 0xf8, 0x0b, 0xdc, 0x91, 0xe0, 0x36, 0xc7, 0xbd, 0x31, 0x12, 0xc2, 0x22, 0xe6, 0xc0, 0x89, 0x03, 0x07, 0x38, 0xe4, 0x02, 0xaa, 0xea, 0xea, 0x4f, 0xb7, 0x27, 0x9d, 0x90, 0x09, 0x97, 0xb9, 0xa5, 0xdf, 0x67, 0xbd, 0x57, 0xef, 0xab, 0x9e, 0x03, 0xdf, 0xeb, 0x7e, 0xc8, 0x6a, 0x86, 0x55, 0xef, 0x0e, 0x9a, 0xd4, 0x31, 0xa9, 0x4b, 0x59, 0x7d, 0x48, 0x4d, 0xdd, 0x72, 0xea, 0x12, 0x41, 0x6c, 0xa3, 0x4e, 0xf4, 0xbe, 0xc1, 0x98, 0x61, 0x99, 0x0e, 0x6d, 0x1b, 0xcc, 0x75, 0x88, 0x6b, 0x58, 0x66, 0x7d, 0x78, 0xab, 0x49, 0x5d, 0x72, 0xab, 0xde, 0xa6, 0x26, 0x75, 0x88, 0x4b, 0xf5, 0x9a, 0xed, 0x58, 0xae, 0x85, 0x36, 0x3d, 0xce, 0x1a, 0xb1, 0x8d, 0x5a, 0x2a, 0x67, 0x4d, 0x72, 0x5e, 0xff, 0x66, 0xdb, 0x70, 0x3b, 0x83, 0x66, 0x4d, 0xb3, 0xfa, 0xf5, 0xb6, 0xd5, 0xb6, 0xea, 0x42, 0x40, 0x73, 0xd0, 0x12, 0x5f, 0xe2, 0x43, 0xfc, 0xe5, 0x09, 0xbe, 0xfe, 0x6e, 0x86, 0x23, 0x25, 0x4f, 0x73, 0xfd, 0xbd, 0x90, 0xa9, 0x4f, 0xb4, 0x8e, 0x61, 0x52, 0xe7, 0xb8, 0x6e, 0x77, 0xdb, 0x1c, 0xc0, 0xea, 0x7d, 0xea, 0x92, 0x34, 0xae, 0xfa, 0x34, 0x2e, 0x67, 0x60, 0xba, 0x46, 0x9f, 0x4e, 0x30, 0xbc, 0x7f, 0x16, 0x03, 0xd3, 0x3a, 0xb4, 0x4f, 0x92, 0x7c, 0x2a, 0x83, 0xd5, 0xed, 0x81, 0x6e, 0xb8, 0xdb, 0xa6, 0x69, 0xb9, 0xc2, 0x08, 0xf4, 0x16, 0xe4, 0xba, 0xf4, 0xb8, 0xac, 0x6c, 0x28, 0x9b, 0x85, 0x46, 0xf1, 0xd9, 0xa8, 0x3a, 0x33, 0x1e, 0x55, 0x73, 0x9f, 0xd0, 0x63, 0xcc, 0xe1, 0x68, 0x1b, 0x56, 0x87, 0xa4, 0x37, 0xa0, 0x77, 0x9e, 0xda, 0x0e, 0x15, 0x2e, 0x28, 0xcf, 0x0a, 0xd2, 0x75, 0x49, 0xba, 0x7a, 0x18, 0x47, 0xe3, 0x24, 0xbd, 0xda, 0x83, 0x52, 0xf8, 0x75, 0x44, 0x1c, 0xd3, 0x30, 0xdb, 0xe8, 0x1b, 0x90, 0x6f, 0x19, 0xb4, 0xa7, 0x63, 0xda, 0x92, 0x02, 0xd7, 0xa4, 0xc0, 0xfc, 0x5d, 0x09, 0xc7, 0x01, 0x05, 0xba, 0x09, 0x8b, 0x4f, 0x3c, 0xc6, 0x72, 0x4e, 0x10, 0xaf, 0x4a, 0xe2, 0x45, 0x29, 0x0f, 0xfb, 0x78, 0xb5, 0x05, 0x2b, 0xbb, 0xc4, 0xd5, 0x3a, 0x3b, 0x96, 0xa9, 0x1b, 0xc2, 0xc2, 0x0d, 0x98, 0x33, 0x49, 0x9f, 0x4a, 0x13, 0x97, 0x24, 0xe7, 0xdc, 0x1e, 0xe9, 0x53, 0x2c, 0x30, 0x68, 0x0b, 0x80, 0x26, 0xed, 0x43, 0x92, 0x0e, 0x22, 0xa6, 0x45, 0xa8, 0xd4, 0x3f, 0xcd, 0x49, 0x45, 0x98, 0x32, 0x6b, 0xe0, 0x68, 0x94, 0xa1, 0xa7, 0x50, 0xe2, 0xe2, 0x98, 0x4d, 0x34, 0x7a, 0x40, 0x7b, 0x54, 0x73, 0x2d, 0x47, 0x68, 0x2d, 0x6e, 0xbd, 0x5b, 0x0b, 0xc3, 0x34, 0xb8, 0xb1, 0x9a, 0xdd, 0x6d, 0x73, 0x00, 0xab, 0xf1, 0xc0, 0xa8, 0x0d, 0x6f, 0xd5, 0x1e, 0x92, 0x26, 0xed, 0xf9, 0xac, 0x8d, 0xd7, 0xc7, 0xa3, 0x6a, 0x69, 0x2f, 0x29, 0x11, 0x4f, 0x2a, 0x41, 0x16, 0xac, 0x58, 0xcd, 0x1f, 0x52, 0xcd, 0x0d, 0xd4, 0xce, 0x5e, 0x5c, 0x2d, 0x1a, 0x8f, 0xaa, 0x2b, 0x8f, 0x62, 0xe2, 0x70, 0x42, 0x3c, 0xfa, 0x29, 0x2c, 0x3b, 0xd2, 0x6e, 0x3c, 0xe8, 0x51, 0x56, 0xce, 0x6d, 0xe4, 0x36, 0x8b, 0x5b, 0xdb, 0xb5, 0xac, 0xd9, 0x58, 0xe3, 0x76, 0xe9, 0x9c, 0xf7, 0xc8, 0x70, 0x3b, 0x8f, 0x6c, 0xea, 0xa1, 0x59, 0xe3, 0x75, 0xe9, 0xf7, 0x65, 0x1c, 0x95, 0x8f, 0xe3, 0xea, 0xd0, 0xaf, 0x14, 0xb8, 0x46, 0x9f, 0x6a, 0xbd, 0x81, 0x4e, 0x63, 0x74, 0xe5, 0xb9, 0xcb, 0x3a, 0xc7, 0x0d, 0x79, 0x8e, 0x6b, 0x77, 0x52, 0xd4, 0xe0, 0x54, 0xe5, 0xe8, 0x63, 0x28, 0xf6, 0x79, 0x48, 0xec, 0x5b, 0x3d, 0x43, 0x3b, 0x2e, 0x2f, 0x8a, 0x40, 0x52, 0xc7, 0xa3, 0x6a, 0x71, 0x37, 0x04, 0x9f, 0x8e, 0xaa, 0xab, 0x91, 0xcf, 0x4f, 0x8f, 0x6d, 0x8a, 0xa3, 0x6c, 0xea, 0x1f, 0xf3, 0xb0, 0xba, 0x3b, 0xe0, 0xe9, 0x69, 0xb6, 0x8f, 0x68, 0xb3, 0x63, 0x59, 0xdd, 0x0c, 0x31, 0xfc, 0x04, 0x96, 0xb4, 0x9e, 0x41, 0x4d, 0x77, 0xc7, 0x32, 0x5b, 0x46, 0x5b, 0x06, 0xc0, 0xb7, 0xb3, 0x3b, 0x42, 0xaa, 0xda, 0x89, 0x08, 0x69, 0x5c, 0x93, 0x8a, 0x96, 0xa2, 0x50, 0x1c, 0x53, 0x84, 0x3e, 0x87, 0x79, 0x27, 0x12, 0x02, 0x1f, 0x64, 0xd1, 0x58, 0x4b, 0x71, 0xf8, 0xb2, 0xd4, 0x35, 0xef, 0x79, 0xd8, 0x13, 0x8a, 0x1e, 0xc2, 0x72, 0x8b, 0x18, 0xbd, 0x81, 0x43, 0xa5, 0x53, 0xe7, 0x84, 0x07, 0xbe, 0xce, 0x23, 0xe4, 0x6e, 0x14, 0x71, 0x3a, 0xaa, 0x96, 0x62, 0x00, 0xe1, 0xd8, 0x38, 0x73, 0xf2, 0x82, 0x0a, 0x17, 0xba, 0xa0, 0xf4, 0x3c, 0x9f, 0xff, 0xff, 0xe4, 0x79, 0xf1, 0xe5, 0xe6, 0xf9, 0xc7, 0x50, 0x64, 0x86, 0x4e, 0xef, 0xb4, 0x5a, 0x54, 0x73, 0x59, 0x79, 0x21, 0x74, 0xd8, 0x41, 0x08, 0xe6, 0x0e, 0x0b, 0x3f, 0x77, 0x7a, 0x84, 0x31, 0x1c, 0x65, 0x43, 0xb7, 0x61, 0x85, 0x77, 0x25, 0x6b, 0xe0, 0x1e, 0x50, 0xcd, 0x32, 0x75, 0x26, 0x52, 0x63, 0xde, 0x3b, 0xc1, 0xa7, 0x31, 0x0c, 0x4e, 0x50, 0xa2, 0xcf, 0x60, 0x3d, 0x88, 0x22, 0x4c, 0x87, 0x06, 0x7d, 0x72, 0x48, 0x1d, 0xfe, 0xc1, 0xca, 0xf9, 0x8d, 0xdc, 0x66, 0xa1, 0xf1, 0xe6, 0x78, 0x54, 0x5d, 0xdf, 0x4e, 0x27, 0xc1, 0xd3, 0x78, 0xd1, 0x63, 0x40, 0x0e, 0x35, 0xcc, 0xa1, 0xa5, 0x89, 0xf0, 0x93, 0x01, 0x01, 0xc2, 0xbe, 0x77, 0xc6, 0xa3, 0x2a, 0xc2, 0x13, 0xd8, 0xd3, 0x51, 0xf5, 0x6b, 0x93, 0x50, 0x11, 0x1e, 0x29, 0xb2, 0xd0, 0x4f, 0x60, 0xb5, 0x1f, 0x6b, 0x44, 0xac, 0xbc, 0x24, 0x32, 0xe4, 0xc3, 0xec, 0x39, 0x19, 0xef, 0x64, 0x61, 0xcf, 0x8d, 0xc3, 0x19, 0x4e, 0x6a, 0x52, 0xff, 0xa2, 0xc0, 0x8d, 0x44, 0x0d, 0xf1, 0xd2, 0x75, 0xe0, 0x69, 0x40, 0x8f, 0x21, 0xcf, 0xa3, 0x42, 0x27, 0x2e, 0x91, 0x2d, 0xea, 0x9d, 0x6c, 0x31, 0xe4, 0x05, 0xcc, 0x2e, 0x75, 0x49, 0xd8, 0x22, 0x43, 0x18, 0x0e, 0xa4, 0xa2, 0x1f, 0x40, 0x5e, 0x6a, 0x66, 0xe5, 0x59, 0x61, 0xf8, 0xb7, 0xce, 0x61, 0x78, 0xfc, 0xec, 0x8d, 0x39, 0xae, 0x0a, 0x07, 0x02, 0xd5, 0x7f, 0x28, 0xb0, 0xf1, 0x22, 0xfb, 0x1e, 0x1a, 0xcc, 0x45, 0x9f, 0x4f, 0xd8, 0x58, 0xcb, 0x98, 0x27, 0x06, 0xf3, 0x2c, 0x0c, 0x66, 0x12, 0x1f, 0x12, 0xb1, 0xaf, 0x0b, 0xf3, 0x86, 0x4b, 0xfb, 0xbe, 0x71, 0x77, 0x2f, 0x6c, 0x5c, 0xec, 0xe0, 0x61, 0x19, 0xbc, 0xcf, 0x85, 0x63, 0x4f, 0x87, 0xfa, 0x5c, 0x81, 0xf5, 0x29, 0x9d, 0x0a, 0x7d, 0x10, 0xf6, 0x62, 0x51, 0x44, 0xca, 0x8a, 0xc8, 0x8b, 0x52, 0xb4, 0x89, 0x0a, 0x04, 0x8e, 0xd3, 0xa1, 0x5f, 0x28, 0x80, 0x9c, 0x09, 0x79, 0xb2, 0x73, 0x5c, 0xb8, 0x8e, 0x5f, 0x97, 0x06, 0xa0, 0x49, 0x1c, 0x4e, 0x51, 0xa7, 0x12, 0x28, 0xec, 0x13, 0x87, 0xf4, 0x3f, 0x31, 0x4c, 0x9d, 0x4f, 0x62, 0xc4, 0x36, 0x64, 0x96, 0xca, 0x6e, 0x17, 0x84, 0xd9, 0xf6, 0xfe, 0x7d, 0x89, 0xc1, 0x11, 0x2a, 0xde, 0x1b, 0xbb, 0x86, 0xa9, 0xcb, 0xb9, 0x2d, 0xe8, 0x8d, 0x5c, 0x1e, 0x16, 0x18, 0xf5, 0x77, 0xb3, 0x90, 0x17, 0x3a, 0xf8, 0x2c, 0x79, 0x76, 0x2b, 0xad, 0x43, 0x21, 0x28, 0xbd, 0x52, 0x6a, 0x49, 0x92, 0x15, 0x82, 0x32, 0x8d, 0x43, 0x1a, 0xf4, 0x05, 0xe4, 0x99, 0x5f, 0x90, 0x73, 0x17, 0x2f, 0xc8, 0x4b, 0x3c, 0xd2, 0x82, 0x52, 0x1c, 0x88, 0x44, 0x2e, 0xac, 0xdb, 0xfc, 0xf4, 0xd4, 0xa5, 0xce, 0x9e, 0xe5, 0xde, 0xb5, 0x06, 0xa6, 0xbe, 0xad, 0x71, 0xef, 0xc9, 0x6e, 0x78, 0x9b, 0x97, 0xc0, 0xfd, 0x74, 0x92, 0xd3, 0x51, 0xf5, 0xcd, 0x29, 0x28, 0x51, 0xba, 0xa6, 0x89, 0x56, 0x7f, 0xab, 0xc0, 0xda, 0x01, 0x75, 0x86, 0x86, 0x46, 0x31, 0x6d, 0x51, 0x87, 0x9a, 0x5a, 0xc2, 0x35, 0x4a, 0x06, 0xd7, 0xf8, 0xde, 0x9e, 0x9d, 0xea, 0xed, 0x1b, 0x30, 0x67, 0x13, 0xb7, 0x23, 0x07, 0xfb, 0x3c, 0xc7, 0xee, 0x13, 0xb7, 0x83, 0x05, 0x54, 0x60, 0x2d, 0xc7, 0x15, 0x86, 0xce, 0x4b, 0xac, 0xe5, 0xb8, 0x58, 0x40, 0xd5, 0x5f, 0x2b, 0xb0, 0xc4, 0xad, 0xd8, 0xe9, 0x50, 0xad, 0xcb, 0x9f, 0x15, 0x5f, 0x2a, 0x80, 0x68, 0xf2, 0xb1, 0xe1, 0x65, 0x44, 0x71, 0xeb, 0xa3, 0xec, 0x29, 0x3a, 0xf1, 0x60, 0x09, 0xc3, 0x7a, 0x02, 0xc5, 0x70, 0x8a, 0x4a, 0xf5, 0xcf, 0xb3, 0xf0, 0xc6, 0x21, 0xe9, 0x19, 0xba, 0x48, 0xf5, 0xa0, 0x3f, 0xc9, 0xe6, 0xf0, 0xf2, 0xcb, 0xaf, 0x01, 0x73, 0xcc, 0xa6, 0x9a, 0xcc, 0xe6, 0x7b, 0xd9, 0x4d, 0x9f, 0x7a, 0xe8, 0x03, 0x9b, 0x6a, 0xe1, 0x0d, 0xf2, 0x2f, 0x2c, 0x54, 0xa0, 0x1f, 0xc1, 0x02, 0x73, 0x89, 0x3b, 0x60, 0x32, 0xf8, 0xef, 0x5f, 0x86, 0x32, 0x21, 0xb0, 0xb1, 0x22, 0xd5, 0x2d, 0x78, 0xdf, 0x58, 0x2a, 0x52, 0xff, 0xad, 0xc0, 0xc6, 0x54, 0xde, 0x86, 0x61, 0xea, 0x3c, 0x18, 0x5e, 0xbe, 0x93, 0xed, 0x98, 0x93, 0xf7, 0x2e, 0xc1, 0x6e, 0x79, 0xf6, 0x69, 0xbe, 0x56, 0xff, 0xa5, 0xc0, 0xdb, 0x67, 0x31, 0x5f, 0x41, 0xf3, 0xb3, 0xe2, 0xcd, 0xef, 0xc1, 0xe5, 0x59, 0x3e, 0xa5, 0x01, 0x7e, 0x99, 0x3b, 0xdb, 0x6e, 0xee, 0x26, 0xde, 0x41, 0x6c, 0x01, 0xdc, 0x0b, 0x8b, 0x7c, 0x70, 0x89, 0xfb, 0x01, 0x06, 0x47, 0xa8, 0xb8, 0xaf, 0x6c, 0xd9, 0x1e, 0xe4, 0x55, 0x6e, 0x65, 0x37, 0xc8, 0x6f, 0x2c, 0x5e, 0xf9, 0xf6, 0xbf, 0x70, 0x20, 0x11, 0xb9, 0xb0, 0xd2, 0x8f, 0x2d, 0x0a, 0x64, 0x9a, 0x9c, 0x77, 0x0e, 0x0c, 0xf8, 0xbd, 0xb9, 0x39, 0x0e, 0xc3, 0x09, 0x1d, 0xe8, 0x08, 0x4a, 0x43, 0xe9, 0x2f, 0xcb, 0xf4, 0x4a, 0xba, 0xf7, 0x3a, 0x2e, 0x34, 0x6e, 0xf2, 0xf7, 0xc6, 0x61, 0x12, 0x79, 0x3a, 0xaa, 0xae, 0x25, 0x81, 0x78, 0x52, 0x86, 0xfa, 0x77, 0x05, 0xde, 0x9a, 0x7a, 0x13, 0x57, 0x10, 0x7a, 0x9d, 0x78, 0xe8, 0xed, 0x5c, 0x46, 0xe8, 0xa5, 0xc7, 0xdc, 0x6f, 0x16, 0x5e, 0x60, 0xa9, 0x08, 0xb6, 0xc7, 0x50, 0xb0, 0xfd, 0xd9, 0x25, 0x65, 0xd3, 0x93, 0x25, 0x72, 0x38, 0x6b, 0x63, 0x99, 0xf7, 0xcf, 0xe0, 0x13, 0x87, 0x42, 0xd1, 0x8f, 0x61, 0xcd, 0x9f, 0xed, 0x39, 0xbf, 0x61, 0xba, 0xfe, 0x80, 0x76, 0xf1, 0xf0, 0xb9, 0x36, 0x1e, 0x55, 0xd7, 0x76, 0x13, 0x52, 0xf1, 0x84, 0x1e, 0xd4, 0x85, 0x62, 0x78, 0xfd, 0xfe, 0xfb, 0xfe, 0xbd, 0xf3, 0xfb, 0xdb, 0x32, 0x1b, 0xaf, 0x49, 0x07, 0x17, 0x43, 0x18, 0xc3, 0x51, 0xe9, 0x97, 0xfc, 0xd0, 0xff, 0x19, 0xac, 0x91, 0xf8, 0xa2, 0x93, 0x95, 0xe7, 0xcf, 0xfb, 0x08, 0x49, 0xac, 0x4a, 0x1b, 0x65, 0x69, 0xc4, 0x5a, 0x02, 0xc1, 0xf0, 0x84, 0xb2, 0xb4, 0xd7, 0xdf, 0xc2, 0x55, 0xbd, 0xfe, 0x90, 0x06, 0x85, 0x21, 0x71, 0x0c, 0xd2, 0xec, 0x51, 0xfe, 0xd4, 0xce, 0x9d, 0xaf, 0xa0, 0x1d, 0x4a, 0xd6, 0x70, 0xb2, 0xf3, 0x21, 0x0c, 0x87, 0x72, 0xd5, 0x3f, 0xcc, 0x42, 0xf5, 0x8c, 0xf6, 0x8d, 0x1e, 0x00, 0xb2, 0x9a, 0x8c, 0x3a, 0x43, 0xaa, 0xdf, 0xf3, 0x56, 0xd1, 0xfe, 0x58, 0x9f, 0x0b, 0x07, 0xaa, 0x47, 0x13, 0x14, 0x38, 0x85, 0x0b, 0xf5, 0x60, 0xc9, 0x8d, 0x8c, 0x7a, 0x32, 0x0b, 0xde, 0xcf, 0x6e, 0x57, 0x74, 0x50, 0x6c, 0xac, 0x8d, 0x47, 0xd5, 0xd8, 0xe8, 0x88, 0x63, 0xd2, 0x91, 0x06, 0xa0, 0x85, 0x57, 0xe7, 0x85, 0x7e, 0x3d, 0x5b, 0x15, 0x0b, 0x6f, 0x2c, 0xe8, 0x3b, 0x91, 0xcb, 0x8a, 0x88, 0x55, 0x4f, 0x16, 0xa1, 0x14, 0xba, 0xf0, 0xd5, 0xae, 0xef, 0xd5, 0xae, 0xef, 0x85, 0xbb, 0x3e, 0x78, 0xb5, 0xeb, 0xbb, 0xd0, 0xae, 0x2f, 0xa5, 0x16, 0x17, 0xaf, 0x6c, 0x13, 0x77, 0xa2, 0x40, 0x65, 0x22, 0xc7, 0xaf, 0x7a, 0x17, 0xf7, 0xc5, 0xc4, 0x2e, 0xee, 0xa3, 0x8b, 0x8c, 0x4d, 0xd3, 0xb6, 0x71, 0xff, 0x54, 0x40, 0x7d, 0xb1, 0x8d, 0x57, 0x30, 0x17, 0xf6, 0xe3, 0x73, 0xe1, 0x77, 0xff, 0x07, 0x03, 0xb3, 0x6c, 0xe4, 0xfe, 0xa3, 0x00, 0x84, 0xc3, 0x0c, 0x7a, 0x1b, 0x22, 0x3f, 0x14, 0xca, 0xd2, 0xed, 0xb9, 0x29, 0x02, 0x47, 0x37, 0x61, 0xb1, 0x4f, 0x19, 0x23, 0x6d, 0x7f, 0x21, 0x12, 0xfc, 0x8e, 0xb9, 0xeb, 0x81, 0xb1, 0x8f, 0x47, 0x47, 0xb0, 0xe0, 0x50, 0xc2, 0x2c, 0x53, 0x2e, 0x46, 0xbe, 0xc3, 0x5f, 0xc1, 0x58, 0x40, 0x4e, 0x47, 0xd5, 0x5b, 0x59, 0x7e, 0x67, 0xae, 0xc9, 0x47, 0xb3, 0x60, 0xc2, 0x52, 0x1c, 0xba, 0x07, 0x25, 0xa9, 0x23, 0x72, 0x60, 0xaf, 0xd2, 0xbe, 0x21, 0x4f, 0x53, 0xda, 0x4d, 0x12, 0xe0, 0x49, 0x1e, 0xf5, 0x01, 0xe4, 0xfd, 0xc1, 0x00, 0x95, 0x61, 0x2e, 0xf2, 0xde, 0xf2, 0x0c, 0x17, 0x90, 0x84, 0x63, 0x66, 0xd3, 0x1d, 0xa3, 0xfe, 0x5e, 0x81, 0xd7, 0x52, 0x9a, 0x12, 0x7a, 0x03, 0x72, 0x03, 0xa7, 0x27, 0x5d, 0xb0, 0x38, 0x1e, 0x55, 0x73, 0x9f, 0xe1, 0x87, 0x98, 0xc3, 0x10, 0x81, 0x45, 0xe6, 0xad, 0xa7, 0x64, 0x30, 0xdd, 0xce, 0x7e, 0xe3, 0xc9, 0xbd, 0x56, 0xa3, 0xc8, 0xef, 0xc0, 0x87, 0xfa, 0x72, 0xd1, 0x26, 0xe4, 0x35, 0xd2, 0x18, 0x98, 0x7a, 0xcf, 0xbb, 0xaf, 0x25, 0xef, 0x8d, 0xb7, 0xb3, 0xed, 0xc1, 0x70, 0x80, 0x6d, 0xec, 0x3d, 0x3b, 0xa9, 0xcc, 0x7c, 0x75, 0x52, 0x99, 0x79, 0x7e, 0x52, 0x99, 0xf9, 0xf9, 0xb8, 0xa2, 0x3c, 0x1b, 0x57, 0x94, 0xaf, 0xc6, 0x15, 0xe5, 0xf9, 0xb8, 0xa2, 0xfc, 0x75, 0x5c, 0x51, 0x7e, 0xf9, 0xb7, 0xca, 0xcc, 0xf7, 0x37, 0xb3, 0xfe, 0x97, 0xc3, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x71, 0x54, 0x54, 0xe6, 0x29, 0x21, 0x00, 0x00, } func (m *AuditAnnotation) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *AuditAnnotation) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *AuditAnnotation) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.ValueExpression) copy(dAtA[i:], m.ValueExpression) i = encodeVarintGenerated(dAtA, i, uint64(len(m.ValueExpression))) 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 *ExpressionWarning) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ExpressionWarning) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ExpressionWarning) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.Warning) copy(dAtA[i:], m.Warning) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Warning))) i-- dAtA[i] = 0x1a i -= len(m.FieldRef) copy(dAtA[i:], m.FieldRef) i = encodeVarintGenerated(dAtA, i, uint64(len(m.FieldRef))) i-- dAtA[i] = 0x12 return len(dAtA) - i, nil } func (m *MatchCondition) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *MatchCondition) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *MatchCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.Expression) copy(dAtA[i:], m.Expression) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Expression))) 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 *MatchResources) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *MatchResources) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *MatchResources) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.MatchPolicy != nil { i -= len(*m.MatchPolicy) copy(dAtA[i:], *m.MatchPolicy) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy))) i-- dAtA[i] = 0x3a } if len(m.ExcludeResourceRules) > 0 { for iNdEx := len(m.ExcludeResourceRules) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.ExcludeResourceRules[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.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] = 0x1a } } 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] = 0x12 } 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] = 0xa } return len(dAtA) - i, nil } 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 len(m.MatchConditions) > 0 { for iNdEx := len(m.MatchConditions) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.MatchConditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x62 } } 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 *NamedRuleWithOperations) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *NamedRuleWithOperations) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *NamedRuleWithOperations) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { size, err := m.RuleWithOperations.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 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] = 0xa } } return len(dAtA) - i, nil } func (m *ParamKind) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ParamKind) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ParamKind) 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 *ParamRef) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ParamRef) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ParamRef) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.ParameterNotFoundAction != nil { i -= len(*m.ParameterNotFoundAction) copy(dAtA[i:], *m.ParameterNotFoundAction) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ParameterNotFoundAction))) i-- dAtA[i] = 0x22 } 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 } 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 *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 *TypeChecking) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *TypeChecking) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *TypeChecking) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.ExpressionWarnings) > 0 { for iNdEx := len(m.ExpressionWarnings) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.ExpressionWarnings[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 *ValidatingAdmissionPolicy) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ValidatingAdmissionPolicy) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ValidatingAdmissionPolicy) 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 *ValidatingAdmissionPolicyBinding) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ValidatingAdmissionPolicyBinding) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ValidatingAdmissionPolicyBinding) 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 *ValidatingAdmissionPolicyBindingList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ValidatingAdmissionPolicyBindingList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ValidatingAdmissionPolicyBindingList) 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 *ValidatingAdmissionPolicyBindingSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ValidatingAdmissionPolicyBindingSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ValidatingAdmissionPolicyBindingSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.ValidationActions) > 0 { for iNdEx := len(m.ValidationActions) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.ValidationActions[iNdEx]) copy(dAtA[i:], m.ValidationActions[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(m.ValidationActions[iNdEx]))) i-- dAtA[i] = 0x22 } } if m.MatchResources != nil { { size, err := m.MatchResources.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } if m.ParamRef != nil { { size, err := m.ParamRef.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } i -= len(m.PolicyName) copy(dAtA[i:], m.PolicyName) i = encodeVarintGenerated(dAtA, i, uint64(len(m.PolicyName))) i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *ValidatingAdmissionPolicyList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ValidatingAdmissionPolicyList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ValidatingAdmissionPolicyList) 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 *ValidatingAdmissionPolicySpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ValidatingAdmissionPolicySpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ValidatingAdmissionPolicySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Variables) > 0 { for iNdEx := len(m.Variables) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Variables[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.MatchConditions) > 0 { for iNdEx := len(m.MatchConditions) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.MatchConditions[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.AuditAnnotations) > 0 { for iNdEx := len(m.AuditAnnotations) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.AuditAnnotations[iNdEx].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.Validations) > 0 { for iNdEx := len(m.Validations) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Validations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } } if m.MatchConstraints != nil { { size, err := m.MatchConstraints.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } if m.ParamKind != nil { { size, err := m.ParamKind.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *ValidatingAdmissionPolicyStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ValidatingAdmissionPolicyStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ValidatingAdmissionPolicyStatus) 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] = 0x1a } } if m.TypeChecking != nil { { size, err := m.TypeChecking.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.ObservedGeneration)) i-- dAtA[i] = 0x8 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 len(m.MatchConditions) > 0 { for iNdEx := len(m.MatchConditions) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.MatchConditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x5a } } 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 *Validation) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Validation) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Validation) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.MessageExpression) copy(dAtA[i:], m.MessageExpression) i = encodeVarintGenerated(dAtA, i, uint64(len(m.MessageExpression))) i-- dAtA[i] = 0x22 if m.Reason != nil { 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.Expression) copy(dAtA[i:], m.Expression) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Expression))) i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *Variable) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Variable) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Variable) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.Expression) copy(dAtA[i:], m.Expression) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Expression))) 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 *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 *AuditAnnotation) 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.ValueExpression) n += 1 + l + sovGenerated(uint64(l)) return n } func (m *ExpressionWarning) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.FieldRef) n += 1 + l + sovGenerated(uint64(l)) l = len(m.Warning) n += 1 + l + sovGenerated(uint64(l)) return n } func (m *MatchCondition) 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.Expression) n += 1 + l + sovGenerated(uint64(l)) return n } func (m *MatchResources) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.NamespaceSelector != nil { l = m.NamespaceSelector.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.ObjectSelector != nil { l = m.ObjectSelector.Size() n += 1 + l + sovGenerated(uint64(l)) } if len(m.ResourceRules) > 0 { for _, e := range m.ResourceRules { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } if len(m.ExcludeResourceRules) > 0 { for _, e := range m.ExcludeResourceRules { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } if m.MatchPolicy != nil { l = len(*m.MatchPolicy) n += 1 + l + sovGenerated(uint64(l)) } return n } 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)) } if len(m.MatchConditions) > 0 { for _, e := range m.MatchConditions { l = e.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 *NamedRuleWithOperations) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.ResourceNames) > 0 { for _, s := range m.ResourceNames { l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } l = m.RuleWithOperations.Size() n += 1 + l + sovGenerated(uint64(l)) return n } func (m *ParamKind) 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 *ParamRef) 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)) if m.Selector != nil { l = m.Selector.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.ParameterNotFoundAction != nil { l = len(*m.ParameterNotFoundAction) 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 *TypeChecking) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.ExpressionWarnings) > 0 { for _, e := range m.ExpressionWarnings { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *ValidatingAdmissionPolicy) 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 *ValidatingAdmissionPolicyBinding) 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 *ValidatingAdmissionPolicyBindingList) 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 *ValidatingAdmissionPolicyBindingSpec) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.PolicyName) n += 1 + l + sovGenerated(uint64(l)) if m.ParamRef != nil { l = m.ParamRef.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.MatchResources != nil { l = m.MatchResources.Size() n += 1 + l + sovGenerated(uint64(l)) } if len(m.ValidationActions) > 0 { for _, s := range m.ValidationActions { l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *ValidatingAdmissionPolicyList) 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 *ValidatingAdmissionPolicySpec) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.ParamKind != nil { l = m.ParamKind.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.MatchConstraints != nil { l = m.MatchConstraints.Size() n += 1 + l + sovGenerated(uint64(l)) } if len(m.Validations) > 0 { for _, e := range m.Validations { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } if m.FailurePolicy != nil { l = len(*m.FailurePolicy) n += 1 + l + sovGenerated(uint64(l)) } if len(m.AuditAnnotations) > 0 { for _, e := range m.AuditAnnotations { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } if len(m.MatchConditions) > 0 { for _, e := range m.MatchConditions { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } if len(m.Variables) > 0 { for _, e := range m.Variables { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *ValidatingAdmissionPolicyStatus) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 1 + sovGenerated(uint64(m.ObservedGeneration)) if m.TypeChecking != nil { l = m.TypeChecking.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 *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)) } if len(m.MatchConditions) > 0 { for _, e := range m.MatchConditions { l = e.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 *Validation) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Expression) n += 1 + l + sovGenerated(uint64(l)) l = len(m.Message) n += 1 + l + sovGenerated(uint64(l)) if m.Reason != nil { l = len(*m.Reason) n += 1 + l + sovGenerated(uint64(l)) } l = len(m.MessageExpression) n += 1 + l + sovGenerated(uint64(l)) return n } func (m *Variable) 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.Expression) 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 *AuditAnnotation) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&AuditAnnotation{`, `Key:` + fmt.Sprintf("%v", this.Key) + `,`, `ValueExpression:` + fmt.Sprintf("%v", this.ValueExpression) + `,`, `}`, }, "") return s } func (this *ExpressionWarning) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ExpressionWarning{`, `FieldRef:` + fmt.Sprintf("%v", this.FieldRef) + `,`, `Warning:` + fmt.Sprintf("%v", this.Warning) + `,`, `}`, }, "") return s } func (this *MatchCondition) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&MatchCondition{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Expression:` + fmt.Sprintf("%v", this.Expression) + `,`, `}`, }, "") return s } func (this *MatchResources) String() string { if this == nil { return "nil" } repeatedStringForResourceRules := "[]NamedRuleWithOperations{" for _, f := range this.ResourceRules { repeatedStringForResourceRules += strings.Replace(strings.Replace(f.String(), "NamedRuleWithOperations", "NamedRuleWithOperations", 1), `&`, ``, 1) + "," } repeatedStringForResourceRules += "}" repeatedStringForExcludeResourceRules := "[]NamedRuleWithOperations{" for _, f := range this.ExcludeResourceRules { repeatedStringForExcludeResourceRules += strings.Replace(strings.Replace(f.String(), "NamedRuleWithOperations", "NamedRuleWithOperations", 1), `&`, ``, 1) + "," } repeatedStringForExcludeResourceRules += "}" s := strings.Join([]string{`&MatchResources{`, `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, `ObjectSelector:` + strings.Replace(fmt.Sprintf("%v", this.ObjectSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, `ResourceRules:` + repeatedStringForResourceRules + `,`, `ExcludeResourceRules:` + repeatedStringForExcludeResourceRules + `,`, `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`, `}`, }, "") return s } func (this *MutatingWebhook) String() string { if this == nil { return "nil" } repeatedStringForRules := "[]RuleWithOperations{" for _, f := range this.Rules { repeatedStringForRules += fmt.Sprintf("%v", f) + "," } repeatedStringForRules += "}" repeatedStringForMatchConditions := "[]MatchCondition{" for _, f := range this.MatchConditions { repeatedStringForMatchConditions += strings.Replace(strings.Replace(f.String(), "MatchCondition", "MatchCondition", 1), `&`, ``, 1) + "," } repeatedStringForMatchConditions += "}" 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) + `,`, `MatchConditions:` + repeatedStringForMatchConditions + `,`, `}`, }, "") 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 *NamedRuleWithOperations) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&NamedRuleWithOperations{`, `ResourceNames:` + fmt.Sprintf("%v", this.ResourceNames) + `,`, `RuleWithOperations:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.RuleWithOperations), "RuleWithOperations", "v11.RuleWithOperations", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *ParamKind) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ParamKind{`, `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, `}`, }, "") return s } func (this *ParamRef) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ParamRef{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, `ParameterNotFoundAction:` + valueToStringGenerated(this.ParameterNotFoundAction) + `,`, `}`, }, "") 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 *TypeChecking) String() string { if this == nil { return "nil" } repeatedStringForExpressionWarnings := "[]ExpressionWarning{" for _, f := range this.ExpressionWarnings { repeatedStringForExpressionWarnings += strings.Replace(strings.Replace(f.String(), "ExpressionWarning", "ExpressionWarning", 1), `&`, ``, 1) + "," } repeatedStringForExpressionWarnings += "}" s := strings.Join([]string{`&TypeChecking{`, `ExpressionWarnings:` + repeatedStringForExpressionWarnings + `,`, `}`, }, "") return s } func (this *ValidatingAdmissionPolicy) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ValidatingAdmissionPolicy{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ValidatingAdmissionPolicySpec", "ValidatingAdmissionPolicySpec", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ValidatingAdmissionPolicyStatus", "ValidatingAdmissionPolicyStatus", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *ValidatingAdmissionPolicyBinding) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ValidatingAdmissionPolicyBinding{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ValidatingAdmissionPolicyBindingSpec", "ValidatingAdmissionPolicyBindingSpec", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *ValidatingAdmissionPolicyBindingList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]ValidatingAdmissionPolicyBinding{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ValidatingAdmissionPolicyBinding", "ValidatingAdmissionPolicyBinding", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&ValidatingAdmissionPolicyBindingList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *ValidatingAdmissionPolicyBindingSpec) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ValidatingAdmissionPolicyBindingSpec{`, `PolicyName:` + fmt.Sprintf("%v", this.PolicyName) + `,`, `ParamRef:` + strings.Replace(this.ParamRef.String(), "ParamRef", "ParamRef", 1) + `,`, `MatchResources:` + strings.Replace(this.MatchResources.String(), "MatchResources", "MatchResources", 1) + `,`, `ValidationActions:` + fmt.Sprintf("%v", this.ValidationActions) + `,`, `}`, }, "") return s } func (this *ValidatingAdmissionPolicyList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]ValidatingAdmissionPolicy{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ValidatingAdmissionPolicy", "ValidatingAdmissionPolicy", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&ValidatingAdmissionPolicyList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *ValidatingAdmissionPolicySpec) String() string { if this == nil { return "nil" } repeatedStringForValidations := "[]Validation{" for _, f := range this.Validations { repeatedStringForValidations += strings.Replace(strings.Replace(f.String(), "Validation", "Validation", 1), `&`, ``, 1) + "," } repeatedStringForValidations += "}" repeatedStringForAuditAnnotations := "[]AuditAnnotation{" for _, f := range this.AuditAnnotations { repeatedStringForAuditAnnotations += strings.Replace(strings.Replace(f.String(), "AuditAnnotation", "AuditAnnotation", 1), `&`, ``, 1) + "," } repeatedStringForAuditAnnotations += "}" repeatedStringForMatchConditions := "[]MatchCondition{" for _, f := range this.MatchConditions { repeatedStringForMatchConditions += strings.Replace(strings.Replace(f.String(), "MatchCondition", "MatchCondition", 1), `&`, ``, 1) + "," } repeatedStringForMatchConditions += "}" repeatedStringForVariables := "[]Variable{" for _, f := range this.Variables { repeatedStringForVariables += strings.Replace(strings.Replace(f.String(), "Variable", "Variable", 1), `&`, ``, 1) + "," } repeatedStringForVariables += "}" s := strings.Join([]string{`&ValidatingAdmissionPolicySpec{`, `ParamKind:` + strings.Replace(this.ParamKind.String(), "ParamKind", "ParamKind", 1) + `,`, `MatchConstraints:` + strings.Replace(this.MatchConstraints.String(), "MatchResources", "MatchResources", 1) + `,`, `Validations:` + repeatedStringForValidations + `,`, `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`, `AuditAnnotations:` + repeatedStringForAuditAnnotations + `,`, `MatchConditions:` + repeatedStringForMatchConditions + `,`, `Variables:` + repeatedStringForVariables + `,`, `}`, }, "") return s } func (this *ValidatingAdmissionPolicyStatus) String() string { if this == nil { return "nil" } repeatedStringForConditions := "[]Condition{" for _, f := range this.Conditions { repeatedStringForConditions += fmt.Sprintf("%v", f) + "," } repeatedStringForConditions += "}" s := strings.Join([]string{`&ValidatingAdmissionPolicyStatus{`, `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, `TypeChecking:` + strings.Replace(this.TypeChecking.String(), "TypeChecking", "TypeChecking", 1) + `,`, `Conditions:` + repeatedStringForConditions + `,`, `}`, }, "") return s } func (this *ValidatingWebhook) String() string { if this == nil { return "nil" } repeatedStringForRules := "[]RuleWithOperations{" for _, f := range this.Rules { repeatedStringForRules += fmt.Sprintf("%v", f) + "," } repeatedStringForRules += "}" repeatedStringForMatchConditions := "[]MatchCondition{" for _, f := range this.MatchConditions { repeatedStringForMatchConditions += strings.Replace(strings.Replace(f.String(), "MatchCondition", "MatchCondition", 1), `&`, ``, 1) + "," } repeatedStringForMatchConditions += "}" 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) + `,`, `MatchConditions:` + repeatedStringForMatchConditions + `,`, `}`, }, "") 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 *Validation) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&Validation{`, `Expression:` + fmt.Sprintf("%v", this.Expression) + `,`, `Message:` + fmt.Sprintf("%v", this.Message) + `,`, `Reason:` + valueToStringGenerated(this.Reason) + `,`, `MessageExpression:` + fmt.Sprintf("%v", this.MessageExpression) + `,`, `}`, }, "") return s } func (this *Variable) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&Variable{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Expression:` + fmt.Sprintf("%v", this.Expression) + `,`, `}`, }, "") 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 *AuditAnnotation) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: AuditAnnotation: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: AuditAnnotation: 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 ValueExpression", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ValueExpression = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ExpressionWarning) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ExpressionWarning: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ExpressionWarning: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field FieldRef", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.FieldRef = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Warning", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Warning = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *MatchCondition) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: MatchCondition: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: MatchCondition: 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 Expression", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Expression = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *MatchResources) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: MatchResources: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: MatchResources: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: 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 2: 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 case 3: 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, NamedRuleWithOperations{}) if err := m.ResourceRules[len(m.ResourceRules)-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 ExcludeResourceRules", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ExcludeResourceRules = append(m.ExcludeResourceRules, NamedRuleWithOperations{}) if err := m.ExcludeResourceRules[len(m.ExcludeResourceRules)-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 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } 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, v11.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 case 12: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MatchConditions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.MatchConditions = append(m.MatchConditions, MatchCondition{}) if err := m.MatchConditions[len(m.MatchConditions)-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) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *NamedRuleWithOperations) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: NamedRuleWithOperations: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: NamedRuleWithOperations: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: 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 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field RuleWithOperations", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.RuleWithOperations.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ParamKind) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ParamKind: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ParamKind: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ParamRef) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ParamRef: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ParamRef: 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 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 case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ParameterNotFoundAction", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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 := ParameterNotFoundActionType(dAtA[iNdEx:postIndex]) m.ParameterNotFoundAction = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *TypeChecking) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: TypeChecking: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: TypeChecking: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ExpressionWarnings", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ExpressionWarnings = append(m.ExpressionWarnings, ExpressionWarning{}) if err := m.ExpressionWarnings[len(m.ExpressionWarnings)-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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ValidatingAdmissionPolicy) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ValidatingAdmissionPolicy: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ValidatingAdmissionPolicy: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ValidatingAdmissionPolicyBinding) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ValidatingAdmissionPolicyBinding: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ValidatingAdmissionPolicyBinding: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ValidatingAdmissionPolicyBindingList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ValidatingAdmissionPolicyBindingList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ValidatingAdmissionPolicyBindingList: 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, ValidatingAdmissionPolicyBinding{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ValidatingAdmissionPolicyBindingSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ValidatingAdmissionPolicyBindingSpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ValidatingAdmissionPolicyBindingSpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PolicyName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.PolicyName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ParamRef", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ParamRef == nil { m.ParamRef = &ParamRef{} } if err := m.ParamRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MatchResources", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.MatchResources == nil { m.MatchResources = &MatchResources{} } if err := m.MatchResources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ValidationActions", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ValidationActions = append(m.ValidationActions, ValidationAction(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ValidatingAdmissionPolicyList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ValidatingAdmissionPolicyList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ValidatingAdmissionPolicyList: 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, ValidatingAdmissionPolicy{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ValidatingAdmissionPolicySpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ValidatingAdmissionPolicySpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ValidatingAdmissionPolicySpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ParamKind", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ParamKind == nil { m.ParamKind = &ParamKind{} } if err := m.ParamKind.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MatchConstraints", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.MatchConstraints == nil { m.MatchConstraints = &MatchResources{} } if err := m.MatchConstraints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Validations", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Validations = append(m.Validations, Validation{}) if err := m.Validations[len(m.Validations)-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 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 } m.AuditAnnotations = append(m.AuditAnnotations, AuditAnnotation{}) if err := m.AuditAnnotations[len(m.AuditAnnotations)-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 MatchConditions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.MatchConditions = append(m.MatchConditions, MatchCondition{}) if err := m.MatchConditions[len(m.MatchConditions)-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 Variables", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Variables = append(m.Variables, Variable{}) if err := m.Variables[len(m.Variables)-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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ValidatingAdmissionPolicyStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ValidatingAdmissionPolicyStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ValidatingAdmissionPolicyStatus: 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 TypeChecking", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.TypeChecking == nil { m.TypeChecking = &TypeChecking{} } if err := m.TypeChecking.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: 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, v1.Condition{}) 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) || (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, v11.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 case 11: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MatchConditions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.MatchConditions = append(m.MatchConditions, MatchCondition{}) if err := m.MatchConditions[len(m.MatchConditions)-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) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Validation) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: Validation: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Validation: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Expression", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Expression = 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 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 } s := k8s_io_apimachinery_pkg_apis_meta_v1.StatusReason(dAtA[iNdEx:postIndex]) m.Reason = &s iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MessageExpression", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.MessageExpression = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Variable) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: Variable: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Variable: 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 Expression", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Expression = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/admissionregistration/v1beta1/generated.proto000066400000000000000000001446761453636404600252670ustar00rootroot00000000000000/* 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 "k8s.io/api/admissionregistration/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/admissionregistration/v1beta1"; // AuditAnnotation describes how to produce an audit annotation for an API request. message AuditAnnotation { // key specifies the audit annotation key. The audit annotation keys of // a ValidatingAdmissionPolicy must be unique. The key must be a qualified // name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. // // The key is combined with the resource name of the // ValidatingAdmissionPolicy to construct an audit annotation key: // "{ValidatingAdmissionPolicy name}/{key}". // // If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy // and the same audit annotation key, the annotation key will be identical. // In this case, the first annotation written with the key will be included // in the audit event and all subsequent annotations with the same key // will be discarded. // // Required. optional string key = 1; // valueExpression represents the expression which is evaluated by CEL to // produce an audit annotation value. The expression must evaluate to either // a string or null value. If the expression evaluates to a string, the // audit annotation is included with the string value. If the expression // evaluates to null or empty string the audit annotation will be omitted. // The valueExpression may be no longer than 5kb in length. // If the result of the valueExpression is more than 10kb in length, it // will be truncated to 10kb. // // If multiple ValidatingAdmissionPolicyBinding resources match an // API request, then the valueExpression will be evaluated for // each binding. All unique values produced by the valueExpressions // will be joined together in a comma-separated list. // // Required. optional string valueExpression = 2; } // ExpressionWarning is a warning information that targets a specific expression. message ExpressionWarning { // The path to the field that refers the expression. // For example, the reference to the expression of the first item of // validations is "spec.validations[0].expression" optional string fieldRef = 2; // The content of type checking information in a human-readable form. // Each line of the warning contains the type that the expression is checked // against, followed by the type check error from the compiler. optional string warning = 3; } // MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook. message MatchCondition { // Name is an identifier for this match condition, used for strategic merging of MatchConditions, // as well as providing an identifier for logging purposes. A good name should be descriptive of // the associated expression. // Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and // must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or // '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an // optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') // // Required. optional string name = 1; // Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. // CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: // // 'object' - The object from the incoming request. The value is null for DELETE requests. // 'oldObject' - The existing object. The value is null for CREATE requests. // 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). // 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. // See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz // 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the // request resource. // Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ // // Required. optional string expression = 2; } // MatchResources decides whether to run the admission control policy on an object based // on whether it meets the match criteria. // The exclude rules take precedence over include rules (if a resource matches both, it is excluded) // +structType=atomic message MatchResources { // NamespaceSelector decides whether to run the admission control policy 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 policy. // // 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 policy 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 = 1; // ObjectSelector decides whether to run the validation based on if the // object has matching labels. objectSelector is evaluated against both // the oldObject and newObject that would be sent to the cel validation, 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 = 2; // ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. // The policy cares about an operation if it matches _any_ Rule. // +listType=atomic // +optional repeated NamedRuleWithOperations resourceRules = 3; // ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. // The exclude rules take precedence over include rules (if a resource matches both, it is excluded) // +listType=atomic // +optional repeated NamedRuleWithOperations excludeResourceRules = 4; // matchPolicy defines how the "MatchResources" 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 ValidatingAdmissionPolicy. // // - 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 ValidatingAdmissionPolicy. // // Defaults to "Equivalent" // +optional optional string matchPolicy = 7; } // 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 k8s.io.api.admissionregistration.v1.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 webhook 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 chain 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; // MatchConditions is a list of conditions that must be met for a request to be sent to this // webhook. Match conditions filter requests that have already been matched by the rules, // namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. // There are a maximum of 64 match conditions allowed. // // The exact matching logic is (in order): // 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. // 2. If ALL matchConditions evaluate to TRUE, the webhook is called. // 3. If any matchCondition evaluates to an error (but none are FALSE): // - If failurePolicy=Fail, reject the request // - If failurePolicy=Ignore, the error is ignored and the webhook is skipped // // This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. // // +patchMergeKey=name // +patchStrategy=merge // +listType=map // +listMapKey=name // +featureGate=AdmissionWebhookMatchConditions // +optional repeated MatchCondition matchConditions = 12; } // 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; } // NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. // +structType=atomic message NamedRuleWithOperations { // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. // +listType=atomic // +optional repeated string resourceNames = 1; // RuleWithOperations is a tuple of Operations and Resources. optional k8s.io.api.admissionregistration.v1.RuleWithOperations ruleWithOperations = 2; } // ParamKind is a tuple of Group Kind and Version. // +structType=atomic message ParamKind { // APIVersion is the API group version the resources belong to. // In format of "group/version". // Required. optional string apiVersion = 1; // Kind is the API kind the resources belong to. // Required. optional string kind = 2; } // ParamRef describes how to locate the params to be used as input to // expressions of rules applied by a policy binding. // +structType=atomic message ParamRef { // name is the name of the resource being referenced. // // One of `name` or `selector` must be set, but `name` and `selector` are // mutually exclusive properties. If one is set, the other must be unset. // // A single parameter used for all admission requests can be configured // by setting the `name` field, leaving `selector` blank, and setting namespace // if `paramKind` is namespace-scoped. optional string name = 1; // namespace is the namespace of the referenced resource. Allows limiting // the search for params to a specific namespace. Applies to both `name` and // `selector` fields. // // A per-namespace parameter may be used by specifying a namespace-scoped // `paramKind` in the policy and leaving this field empty. // // - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this // field results in a configuration error. // // - If `paramKind` is namespace-scoped, the namespace of the object being // evaluated for admission will be used when this field is left unset. Take // care that if this is left empty the binding must not match any cluster-scoped // resources, which will result in an error. // // +optional optional string namespace = 2; // selector can be used to match multiple param objects based on their labels. // Supply selector: {} to match all resources of the ParamKind. // // If multiple params are found, they are all evaluated with the policy expressions // and the results are ANDed together. // // One of `name` or `selector` must be set, but `name` and `selector` are // mutually exclusive properties. If one is set, the other must be unset. // // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3; // `parameterNotFoundAction` controls the behavior of the binding when the resource // exists, and name or selector is valid, but there are no parameters // matched by the binding. If the value is set to `Allow`, then no // matched parameters will be treated as successful validation by the binding. // If set to `Deny`, then no matched parameters will be subject to the // `failurePolicy` of the policy. // // Allowed values are `Allow` or `Deny` // // Required optional string parameterNotFoundAction = 4; } // 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; } // TypeChecking contains results of type checking the expressions in the // ValidatingAdmissionPolicy message TypeChecking { // The type checking warnings for each expression. // +optional // +listType=atomic repeated ExpressionWarning expressionWarnings = 1; } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.28 // ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. message ValidatingAdmissionPolicy { // 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 behavior of the ValidatingAdmissionPolicy. optional ValidatingAdmissionPolicySpec spec = 2; // The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy // behaves in the expected way. // Populated by the system. // Read-only. // +optional optional ValidatingAdmissionPolicyStatus status = 3; } // ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. // ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. // // For a given admission request, each binding will cause its policy to be // evaluated N times, where N is 1 for policies/bindings that don't use // params, otherwise N is the number of parameters selected by the binding. // // The CEL expressions of a policy must have a computed CEL cost below the maximum // CEL budget. Each evaluation of the policy is given an independent CEL cost budget. // Adding/removing policies, bindings, or params can not affect whether a // given (policy, binding, param) combination is within its own CEL budget. message ValidatingAdmissionPolicyBinding { // 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 behavior of the ValidatingAdmissionPolicyBinding. optional ValidatingAdmissionPolicyBindingSpec spec = 2; } // ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. message ValidatingAdmissionPolicyBindingList { // 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 PolicyBinding. repeated ValidatingAdmissionPolicyBinding items = 2; } // ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. message ValidatingAdmissionPolicyBindingSpec { // PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. // If the referenced resource does not exist, this binding is considered invalid and will be ignored // Required. optional string policyName = 1; // paramRef specifies the parameter resource used to configure the admission control policy. // It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. // If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. // If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param. // +optional optional ParamRef paramRef = 2; // MatchResources declares what resources match this binding and will be validated by it. // Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. // If this is unset, all resources matched by the policy are validated by this binding // When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. // Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required. // +optional optional MatchResources matchResources = 3; // validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. // If a validation evaluates to false it is always enforced according to these actions. // // Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according // to these actions only if the FailurePolicy is set to Fail, otherwise the failures are // ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. // // validationActions is declared as a set of action values. Order does // not matter. validationActions may not contain duplicates of the same action. // // The supported actions values are: // // "Deny" specifies that a validation failure results in a denied request. // // "Warn" specifies that a validation failure is reported to the request client // in HTTP Warning headers, with a warning code of 299. Warnings can be sent // both for allowed or denied admission responses. // // "Audit" specifies that a validation failure is included in the published // audit event for the request. The audit event will contain a // `validation.policy.admission.k8s.io/validation_failure` audit annotation // with a value containing the details of the validation failures, formatted as // a JSON list of objects, each with the following fields: // - message: The validation failure message string // - policy: The resource name of the ValidatingAdmissionPolicy // - binding: The resource name of the ValidatingAdmissionPolicyBinding // - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy // - validationActions: The enforcement actions enacted for the validation failure // Example audit annotation: // `"validation.policy.admission.k8s.io/validation_failure": "[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]"` // // Clients should expect to handle additional values by ignoring // any values not recognized. // // "Deny" and "Warn" may not be used together since this combination // needlessly duplicates the validation failure both in the // API response body and the HTTP warning headers. // // Required. // +listType=set repeated string validationActions = 4; } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.28 // ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. message ValidatingAdmissionPolicyList { // 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 ValidatingAdmissionPolicy. repeated ValidatingAdmissionPolicy items = 2; } // ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. message ValidatingAdmissionPolicySpec { // ParamKind specifies the kind of resources used to parameterize this policy. // If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. // If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. // If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null. // +optional optional ParamKind paramKind = 1; // MatchConstraints specifies what resources this policy is designed to validate. // The AdmissionPolicy cares about a request if it matches _all_ Constraints. // However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API // ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. // Required. optional MatchResources matchConstraints = 2; // Validations contain CEL expressions which is used to apply the validation. // Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is // required. // +listType=atomic // +optional repeated Validation validations = 3; // failurePolicy defines how to handle failures for the admission policy. Failures can // occur from CEL expression parse errors, type check errors, runtime errors and invalid // or mis-configured policy definitions or bindings. // // A policy is invalid if spec.paramKind refers to a non-existent Kind. // A binding is invalid if spec.paramRef.name refers to a non-existent resource. // // failurePolicy does not define how validations that evaluate to false are handled. // // When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions // define how failures are enforced. // // Allowed values are Ignore or Fail. Defaults to Fail. // +optional optional string failurePolicy = 4; // auditAnnotations contains CEL expressions which are used to produce audit // annotations for the audit event of the API request. // validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is // required. // +listType=atomic // +optional repeated AuditAnnotation auditAnnotations = 5; // MatchConditions is a list of conditions that must be met for a request to be validated. // Match conditions filter requests that have already been matched by the rules, // namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. // There are a maximum of 64 match conditions allowed. // // If a parameter object is provided, it can be accessed via the `params` handle in the same // manner as validation expressions. // // The exact matching logic is (in order): // 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. // 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. // 3. If any matchCondition evaluates to an error (but none are FALSE): // - If failurePolicy=Fail, reject the request // - If failurePolicy=Ignore, the policy is skipped // // +patchMergeKey=name // +patchStrategy=merge // +listType=map // +listMapKey=name // +optional repeated MatchCondition matchConditions = 6; // Variables contain definitions of variables that can be used in composition of other expressions. // Each variable is defined as a named CEL expression. // The variables defined here will be available under `variables` in other expressions of the policy // except MatchConditions because MatchConditions are evaluated before the rest of the policy. // // The expression of a variable can refer to other variables defined earlier in the list but not those after. // Thus, Variables must be sorted by the order of first appearance and acyclic. // +patchMergeKey=name // +patchStrategy=merge // +listType=map // +listMapKey=name // +optional repeated Variable variables = 7; } // ValidatingAdmissionPolicyStatus represents the status of an admission validation policy. message ValidatingAdmissionPolicyStatus { // The generation observed by the controller. // +optional optional int64 observedGeneration = 1; // The results of type checking for each expression. // Presence of this field indicates the completion of the type checking. // +optional optional TypeChecking typeChecking = 2; // The conditions represent the latest available observations of a policy's current state. // +optional // +listType=map // +listMapKey=type repeated k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; } // 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 k8s.io.api.admissionregistration.v1.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 webhook 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 chain 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; // MatchConditions is a list of conditions that must be met for a request to be sent to this // webhook. Match conditions filter requests that have already been matched by the rules, // namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. // There are a maximum of 64 match conditions allowed. // // The exact matching logic is (in order): // 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. // 2. If ALL matchConditions evaluate to TRUE, the webhook is called. // 3. If any matchCondition evaluates to an error (but none are FALSE): // - If failurePolicy=Fail, reject the request // - If failurePolicy=Ignore, the error is ignored and the webhook is skipped // // This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. // // +patchMergeKey=name // +patchStrategy=merge // +listType=map // +listMapKey=name // +featureGate=AdmissionWebhookMatchConditions // +optional repeated MatchCondition matchConditions = 11; } // 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; } // Validation specifies the CEL expression which is used to apply the validation. message Validation { // Expression represents the expression which will be evaluated by CEL. // ref: https://github.com/google/cel-spec // CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: // // - 'object' - The object from the incoming request. The value is null for DELETE requests. // - 'oldObject' - The existing object. The value is null for CREATE requests. // - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). // - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. // - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. // - 'variables' - Map of composited variables, from its name to its lazily evaluated value. // For example, a variable named 'foo' can be accessed as 'variables.foo'. // - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. // See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz // - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the // request resource. // // The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the // object. No other metadata properties are accessible. // // Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. // Accessible property names are escaped according to the following rules when accessed in the expression: // - '__' escapes to '__underscores__' // - '.' escapes to '__dot__' // - '-' escapes to '__dash__' // - '/' escapes to '__slash__' // - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: // "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", // "import", "let", "loop", "package", "namespace", "return". // Examples: // - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"} // - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"} // - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"} // // Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. // Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: // - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and // non-intersecting elements in `Y` are appended, retaining their partial order. // - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values // are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with // non-intersecting keys are appended, retaining their partial order. // Required. optional string Expression = 1; // Message represents the message displayed when validation fails. The message is required if the Expression contains // line breaks. The message must not contain line breaks. // If unset, the message is "failed rule: {Rule}". // e.g. "must be a URL with the host matching spec.host" // If the Expression contains line breaks. Message is required. // The message must not contain line breaks. // If unset, the message is "failed Expression: {Expression}". // +optional optional string message = 2; // Reason represents a machine-readable description of why this validation failed. // If this is the first validation in the list to fail, this reason, as well as the // corresponding HTTP response code, are used in the // HTTP response to the client. // The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge". // If not set, StatusReasonInvalid is used in the response to the client. // +optional optional string reason = 3; // messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. // Since messageExpression is used as a failure message, it must evaluate to a string. // If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. // If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced // as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string // that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and // the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. // messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. // Example: // "object.x must be less than max ("+string(params.max)+")" // +optional optional string messageExpression = 4; } // Variable is the definition of a variable that is used for composition. A variable is defined as a named expression. // +structType=atomic message Variable { // Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. // The variable can be accessed in other expressions through `variables` // For example, if name is "foo", the variable will be available as `variables.foo` optional string Name = 1; // Expression is the expression that will be evaluated as the value of the variable. // The CEL expression has access to the same identifiers as the CEL expressions in Validation. optional string Expression = 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; } golang-k8s-api-0.29.0/admissionregistration/v1beta1/register.go000066400000000000000000000041651453636404600244030ustar00rootroot00000000000000/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package v1beta1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name for this API. 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() } // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. var ( // SchemeBuilder points to a list of functions added to Scheme. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder // AddToScheme is a common registration function for mapping packaged scoped group & version keys to a scheme. AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &ValidatingWebhookConfiguration{}, &ValidatingWebhookConfigurationList{}, &MutatingWebhookConfiguration{}, &MutatingWebhookConfigurationList{}, &ValidatingAdmissionPolicy{}, &ValidatingAdmissionPolicyList{}, &ValidatingAdmissionPolicyBinding{}, &ValidatingAdmissionPolicyBindingList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/admissionregistration/v1beta1/types.go000066400000000000000000001713451453636404600237300ustar00rootroot00000000000000/* 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 ( v1 "k8s.io/api/admissionregistration/v1" metav1 "k8s.io/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 = v1.Rule // ScopeType specifies a scope for a Rule. type ScopeType = v1.ScopeType const ( // ClusterScope means that scope is limited to cluster-scoped objects. // Namespace objects are cluster-scoped. ClusterScope ScopeType = v1.ClusterScope // NamespacedScope means that scope is limited to namespaced objects. NamespacedScope ScopeType = v1.NamespacedScope // AllScopes means that all scopes are included. AllScopes ScopeType = v1.AllScopes ) // ParameterNotFoundActionType specifies a failure policy that defines how a binding // is evaluated when the param referred by its perNamespaceParamRef is not found. type ParameterNotFoundActionType string const ( // Allow means all requests will be admitted if no param resources // could be found. AllowAction ParameterNotFoundActionType = "Allow" // Deny means all requests will be denied if no param resources are found. DenyAction ParameterNotFoundActionType = "Deny" ) // FailurePolicyType specifies a failure policy that defines how unrecognized errors from the admission endpoint are handled. 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" ) // SideEffectClass specifies the types of side effects a webhook may have. 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" ) // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.28 // ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. type ValidatingAdmissionPolicy 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 behavior of the ValidatingAdmissionPolicy. Spec ValidatingAdmissionPolicySpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy // behaves in the expected way. // Populated by the system. // Read-only. // +optional Status ValidatingAdmissionPolicyStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // ValidatingAdmissionPolicyStatus represents the status of an admission validation policy. type ValidatingAdmissionPolicyStatus struct { // The generation observed by the controller. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` // The results of type checking for each expression. // Presence of this field indicates the completion of the type checking. // +optional TypeChecking *TypeChecking `json:"typeChecking,omitempty" protobuf:"bytes,2,opt,name=typeChecking"` // The conditions represent the latest available observations of a policy's current state. // +optional // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty" protobuf:"bytes,3,rep,name=conditions"` } // ValidatingAdmissionPolicyConditionType is the condition type of admission validation policy. type ValidatingAdmissionPolicyConditionType string // TypeChecking contains results of type checking the expressions in the // ValidatingAdmissionPolicy type TypeChecking struct { // The type checking warnings for each expression. // +optional // +listType=atomic ExpressionWarnings []ExpressionWarning `json:"expressionWarnings,omitempty" protobuf:"bytes,1,rep,name=expressionWarnings"` } // ExpressionWarning is a warning information that targets a specific expression. type ExpressionWarning struct { // The path to the field that refers the expression. // For example, the reference to the expression of the first item of // validations is "spec.validations[0].expression" FieldRef string `json:"fieldRef" protobuf:"bytes,2,opt,name=fieldRef"` // The content of type checking information in a human-readable form. // Each line of the warning contains the type that the expression is checked // against, followed by the type check error from the compiler. Warning string `json:"warning" protobuf:"bytes,3,opt,name=warning"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.28 // ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. type ValidatingAdmissionPolicyList 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 ValidatingAdmissionPolicy. Items []ValidatingAdmissionPolicy `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` } // ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. type ValidatingAdmissionPolicySpec struct { // ParamKind specifies the kind of resources used to parameterize this policy. // If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. // If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. // If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null. // +optional ParamKind *ParamKind `json:"paramKind,omitempty" protobuf:"bytes,1,rep,name=paramKind"` // MatchConstraints specifies what resources this policy is designed to validate. // The AdmissionPolicy cares about a request if it matches _all_ Constraints. // However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API // ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. // Required. MatchConstraints *MatchResources `json:"matchConstraints,omitempty" protobuf:"bytes,2,rep,name=matchConstraints"` // Validations contain CEL expressions which is used to apply the validation. // Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is // required. // +listType=atomic // +optional Validations []Validation `json:"validations,omitempty" protobuf:"bytes,3,rep,name=validations"` // failurePolicy defines how to handle failures for the admission policy. Failures can // occur from CEL expression parse errors, type check errors, runtime errors and invalid // or mis-configured policy definitions or bindings. // // A policy is invalid if spec.paramKind refers to a non-existent Kind. // A binding is invalid if spec.paramRef.name refers to a non-existent resource. // // failurePolicy does not define how validations that evaluate to false are handled. // // When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions // define how failures are enforced. // // Allowed values are Ignore or Fail. Defaults to Fail. // +optional FailurePolicy *FailurePolicyType `json:"failurePolicy,omitempty" protobuf:"bytes,4,opt,name=failurePolicy,casttype=FailurePolicyType"` // auditAnnotations contains CEL expressions which are used to produce audit // annotations for the audit event of the API request. // validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is // required. // +listType=atomic // +optional AuditAnnotations []AuditAnnotation `json:"auditAnnotations,omitempty" protobuf:"bytes,5,rep,name=auditAnnotations"` // MatchConditions is a list of conditions that must be met for a request to be validated. // Match conditions filter requests that have already been matched by the rules, // namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. // There are a maximum of 64 match conditions allowed. // // If a parameter object is provided, it can be accessed via the `params` handle in the same // manner as validation expressions. // // The exact matching logic is (in order): // 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. // 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. // 3. If any matchCondition evaluates to an error (but none are FALSE): // - If failurePolicy=Fail, reject the request // - If failurePolicy=Ignore, the policy is skipped // // +patchMergeKey=name // +patchStrategy=merge // +listType=map // +listMapKey=name // +optional MatchConditions []MatchCondition `json:"matchConditions,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,6,rep,name=matchConditions"` // Variables contain definitions of variables that can be used in composition of other expressions. // Each variable is defined as a named CEL expression. // The variables defined here will be available under `variables` in other expressions of the policy // except MatchConditions because MatchConditions are evaluated before the rest of the policy. // // The expression of a variable can refer to other variables defined earlier in the list but not those after. // Thus, Variables must be sorted by the order of first appearance and acyclic. // +patchMergeKey=name // +patchStrategy=merge // +listType=map // +listMapKey=name // +optional Variables []Variable `json:"variables,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,7,rep,name=variables"` } // ParamKind is a tuple of Group Kind and Version. // +structType=atomic type ParamKind struct { // APIVersion is the API group version the resources belong to. // In format of "group/version". // Required. APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,1,rep,name=apiVersion"` // Kind is the API kind the resources belong to. // Required. Kind string `json:"kind,omitempty" protobuf:"bytes,2,rep,name=kind"` } // Validation specifies the CEL expression which is used to apply the validation. type Validation struct { // Expression represents the expression which will be evaluated by CEL. // ref: https://github.com/google/cel-spec // CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: // // - 'object' - The object from the incoming request. The value is null for DELETE requests. // - 'oldObject' - The existing object. The value is null for CREATE requests. // - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). // - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. // - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. // - 'variables' - Map of composited variables, from its name to its lazily evaluated value. // For example, a variable named 'foo' can be accessed as 'variables.foo'. // - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. // See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz // - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the // request resource. // // The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the // object. No other metadata properties are accessible. // // Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. // Accessible property names are escaped according to the following rules when accessed in the expression: // - '__' escapes to '__underscores__' // - '.' escapes to '__dot__' // - '-' escapes to '__dash__' // - '/' escapes to '__slash__' // - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: // "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", // "import", "let", "loop", "package", "namespace", "return". // Examples: // - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"} // - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"} // - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"} // // Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. // Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: // - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and // non-intersecting elements in `Y` are appended, retaining their partial order. // - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values // are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with // non-intersecting keys are appended, retaining their partial order. // Required. Expression string `json:"expression" protobuf:"bytes,1,opt,name=Expression"` // Message represents the message displayed when validation fails. The message is required if the Expression contains // line breaks. The message must not contain line breaks. // If unset, the message is "failed rule: {Rule}". // e.g. "must be a URL with the host matching spec.host" // If the Expression contains line breaks. Message is required. // The message must not contain line breaks. // If unset, the message is "failed Expression: {Expression}". // +optional Message string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"` // Reason represents a machine-readable description of why this validation failed. // If this is the first validation in the list to fail, this reason, as well as the // corresponding HTTP response code, are used in the // HTTP response to the client. // The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge". // If not set, StatusReasonInvalid is used in the response to the client. // +optional Reason *metav1.StatusReason `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` // messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. // Since messageExpression is used as a failure message, it must evaluate to a string. // If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. // If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced // as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string // that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and // the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. // messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. // Example: // "object.x must be less than max ("+string(params.max)+")" // +optional MessageExpression string `json:"messageExpression,omitempty" protobuf:"bytes,4,opt,name=messageExpression"` } // Variable is the definition of a variable that is used for composition. A variable is defined as a named expression. // +structType=atomic type Variable struct { // Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. // The variable can be accessed in other expressions through `variables` // For example, if name is "foo", the variable will be available as `variables.foo` Name string `json:"name" protobuf:"bytes,1,opt,name=Name"` // Expression is the expression that will be evaluated as the value of the variable. // The CEL expression has access to the same identifiers as the CEL expressions in Validation. Expression string `json:"expression" protobuf:"bytes,2,opt,name=Expression"` } // AuditAnnotation describes how to produce an audit annotation for an API request. type AuditAnnotation struct { // key specifies the audit annotation key. The audit annotation keys of // a ValidatingAdmissionPolicy must be unique. The key must be a qualified // name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. // // The key is combined with the resource name of the // ValidatingAdmissionPolicy to construct an audit annotation key: // "{ValidatingAdmissionPolicy name}/{key}". // // If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy // and the same audit annotation key, the annotation key will be identical. // In this case, the first annotation written with the key will be included // in the audit event and all subsequent annotations with the same key // will be discarded. // // Required. Key string `json:"key" protobuf:"bytes,1,opt,name=key"` // valueExpression represents the expression which is evaluated by CEL to // produce an audit annotation value. The expression must evaluate to either // a string or null value. If the expression evaluates to a string, the // audit annotation is included with the string value. If the expression // evaluates to null or empty string the audit annotation will be omitted. // The valueExpression may be no longer than 5kb in length. // If the result of the valueExpression is more than 10kb in length, it // will be truncated to 10kb. // // If multiple ValidatingAdmissionPolicyBinding resources match an // API request, then the valueExpression will be evaluated for // each binding. All unique values produced by the valueExpressions // will be joined together in a comma-separated list. // // Required. ValueExpression string `json:"valueExpression" protobuf:"bytes,2,opt,name=valueExpression"` } // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.28 // ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. // ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. // // For a given admission request, each binding will cause its policy to be // evaluated N times, where N is 1 for policies/bindings that don't use // params, otherwise N is the number of parameters selected by the binding. // // The CEL expressions of a policy must have a computed CEL cost below the maximum // CEL budget. Each evaluation of the policy is given an independent CEL cost budget. // Adding/removing policies, bindings, or params can not affect whether a // given (policy, binding, param) combination is within its own CEL budget. type ValidatingAdmissionPolicyBinding 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 behavior of the ValidatingAdmissionPolicyBinding. Spec ValidatingAdmissionPolicyBindingSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.28 // ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. type ValidatingAdmissionPolicyBindingList 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 PolicyBinding. Items []ValidatingAdmissionPolicyBinding `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` } // ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. type ValidatingAdmissionPolicyBindingSpec struct { // PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. // If the referenced resource does not exist, this binding is considered invalid and will be ignored // Required. PolicyName string `json:"policyName,omitempty" protobuf:"bytes,1,rep,name=policyName"` // paramRef specifies the parameter resource used to configure the admission control policy. // It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. // If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. // If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param. // +optional ParamRef *ParamRef `json:"paramRef,omitempty" protobuf:"bytes,2,rep,name=paramRef"` // MatchResources declares what resources match this binding and will be validated by it. // Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. // If this is unset, all resources matched by the policy are validated by this binding // When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. // Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required. // +optional MatchResources *MatchResources `json:"matchResources,omitempty" protobuf:"bytes,3,rep,name=matchResources"` // validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. // If a validation evaluates to false it is always enforced according to these actions. // // Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according // to these actions only if the FailurePolicy is set to Fail, otherwise the failures are // ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. // // validationActions is declared as a set of action values. Order does // not matter. validationActions may not contain duplicates of the same action. // // The supported actions values are: // // "Deny" specifies that a validation failure results in a denied request. // // "Warn" specifies that a validation failure is reported to the request client // in HTTP Warning headers, with a warning code of 299. Warnings can be sent // both for allowed or denied admission responses. // // "Audit" specifies that a validation failure is included in the published // audit event for the request. The audit event will contain a // `validation.policy.admission.k8s.io/validation_failure` audit annotation // with a value containing the details of the validation failures, formatted as // a JSON list of objects, each with the following fields: // - message: The validation failure message string // - policy: The resource name of the ValidatingAdmissionPolicy // - binding: The resource name of the ValidatingAdmissionPolicyBinding // - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy // - validationActions: The enforcement actions enacted for the validation failure // Example audit annotation: // `"validation.policy.admission.k8s.io/validation_failure": "[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]"` // // Clients should expect to handle additional values by ignoring // any values not recognized. // // "Deny" and "Warn" may not be used together since this combination // needlessly duplicates the validation failure both in the // API response body and the HTTP warning headers. // // Required. // +listType=set ValidationActions []ValidationAction `json:"validationActions,omitempty" protobuf:"bytes,4,rep,name=validationActions"` } // ParamRef describes how to locate the params to be used as input to // expressions of rules applied by a policy binding. // +structType=atomic type ParamRef struct { // name is the name of the resource being referenced. // // One of `name` or `selector` must be set, but `name` and `selector` are // mutually exclusive properties. If one is set, the other must be unset. // // A single parameter used for all admission requests can be configured // by setting the `name` field, leaving `selector` blank, and setting namespace // if `paramKind` is namespace-scoped. // Name string `json:"name,omitempty" protobuf:"bytes,1,rep,name=name"` // namespace is the namespace of the referenced resource. Allows limiting // the search for params to a specific namespace. Applies to both `name` and // `selector` fields. // // A per-namespace parameter may be used by specifying a namespace-scoped // `paramKind` in the policy and leaving this field empty. // // - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this // field results in a configuration error. // // - If `paramKind` is namespace-scoped, the namespace of the object being // evaluated for admission will be used when this field is left unset. Take // care that if this is left empty the binding must not match any cluster-scoped // resources, which will result in an error. // // +optional Namespace string `json:"namespace,omitempty" protobuf:"bytes,2,rep,name=namespace"` // selector can be used to match multiple param objects based on their labels. // Supply selector: {} to match all resources of the ParamKind. // // If multiple params are found, they are all evaluated with the policy expressions // and the results are ANDed together. // // One of `name` or `selector` must be set, but `name` and `selector` are // mutually exclusive properties. If one is set, the other must be unset. // // +optional Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,3,rep,name=selector"` // `parameterNotFoundAction` controls the behavior of the binding when the resource // exists, and name or selector is valid, but there are no parameters // matched by the binding. If the value is set to `Allow`, then no // matched parameters will be treated as successful validation by the binding. // If set to `Deny`, then no matched parameters will be subject to the // `failurePolicy` of the policy. // // Allowed values are `Allow` or `Deny` // // Required ParameterNotFoundAction *ParameterNotFoundActionType `json:"parameterNotFoundAction,omitempty" protobuf:"bytes,4,rep,name=parameterNotFoundAction"` } // MatchResources decides whether to run the admission control policy on an object based // on whether it meets the match criteria. // The exclude rules take precedence over include rules (if a resource matches both, it is excluded) // +structType=atomic type MatchResources struct { // NamespaceSelector decides whether to run the admission control policy 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 policy. // // 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 policy 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,1,opt,name=namespaceSelector"` // ObjectSelector decides whether to run the validation based on if the // object has matching labels. objectSelector is evaluated against both // the oldObject and newObject that would be sent to the cel validation, 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,2,opt,name=objectSelector"` // ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. // The policy cares about an operation if it matches _any_ Rule. // +listType=atomic // +optional ResourceRules []NamedRuleWithOperations `json:"resourceRules,omitempty" protobuf:"bytes,3,rep,name=resourceRules"` // ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. // The exclude rules take precedence over include rules (if a resource matches both, it is excluded) // +listType=atomic // +optional ExcludeResourceRules []NamedRuleWithOperations `json:"excludeResourceRules,omitempty" protobuf:"bytes,4,rep,name=excludeResourceRules"` // matchPolicy defines how the "MatchResources" 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 ValidatingAdmissionPolicy. // // - 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 ValidatingAdmissionPolicy. // // Defaults to "Equivalent" // +optional MatchPolicy *MatchPolicyType `json:"matchPolicy,omitempty" protobuf:"bytes,7,opt,name=matchPolicy,casttype=MatchPolicyType"` } // ValidationAction specifies a policy enforcement action. // +enum type ValidationAction string const ( // Deny specifies that a validation failure results in a denied request. Deny ValidationAction = "Deny" // Warn specifies that a validation failure is reported to the request client // in HTTP Warning headers, with a warning code of 299. Warnings can be sent // both for allowed or denied admission responses. Warn ValidationAction = "Warn" // Audit specifies that a validation failure is included in the published // audit event for the request. The audit event will contain a // `validation.policy.admission.k8s.io/validation_failure` audit annotation // with a value containing the details of the validation failure. Audit ValidationAction = "Audit" ) // NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. // +structType=atomic type NamedRuleWithOperations struct { // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. // +listType=atomic // +optional ResourceNames []string `json:"resourceNames,omitempty" protobuf:"bytes,1,rep,name=resourceNames"` // RuleWithOperations is a tuple of Operations and Resources. RuleWithOperations `json:",inline" protobuf:"bytes,2,opt,name=ruleWithOperations"` } // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.9 // +k8s:prerelease-lifecycle-gen:deprecated=1.16 // +k8s:prerelease-lifecycle-gen:removed=1.22 // +k8s:prerelease-lifecycle-gen:replacement=admissionregistration.k8s.io,v1,ValidatingWebhookConfiguration // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.9 // +k8s:prerelease-lifecycle-gen:deprecated=1.16 // +k8s:prerelease-lifecycle-gen:removed=1.22 // +k8s:prerelease-lifecycle-gen:replacement=admissionregistration.k8s.io,v1,ValidatingWebhookConfigurationList // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.9 // +k8s:prerelease-lifecycle-gen:deprecated=1.16 // +k8s:prerelease-lifecycle-gen:removed=1.22 // +k8s:prerelease-lifecycle-gen:replacement=admissionregistration.k8s.io,v1,MutatingWebhookConfiguration // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.9 // +k8s:prerelease-lifecycle-gen:deprecated=1.16 // +k8s:prerelease-lifecycle-gen:removed=1.22 // +k8s:prerelease-lifecycle-gen:replacement=admissionregistration.k8s.io,v1,MutatingWebhookConfigurationList // 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 webhook 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 chain 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"` // MatchConditions is a list of conditions that must be met for a request to be sent to this // webhook. Match conditions filter requests that have already been matched by the rules, // namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. // There are a maximum of 64 match conditions allowed. // // The exact matching logic is (in order): // 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. // 2. If ALL matchConditions evaluate to TRUE, the webhook is called. // 3. If any matchCondition evaluates to an error (but none are FALSE): // - If failurePolicy=Fail, reject the request // - If failurePolicy=Ignore, the error is ignored and the webhook is skipped // // This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. // // +patchMergeKey=name // +patchStrategy=merge // +listType=map // +listMapKey=name // +featureGate=AdmissionWebhookMatchConditions // +optional MatchConditions []MatchCondition `json:"matchConditions,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,11,rep,name=matchConditions"` } // 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 webhook 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 chain 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"` // MatchConditions is a list of conditions that must be met for a request to be sent to this // webhook. Match conditions filter requests that have already been matched by the rules, // namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. // There are a maximum of 64 match conditions allowed. // // The exact matching logic is (in order): // 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. // 2. If ALL matchConditions evaluate to TRUE, the webhook is called. // 3. If any matchCondition evaluates to an error (but none are FALSE): // - If failurePolicy=Fail, reject the request // - If failurePolicy=Ignore, the error is ignored and the webhook is skipped // // This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. // // +patchMergeKey=name // +patchStrategy=merge // +listType=map // +listMapKey=name // +featureGate=AdmissionWebhookMatchConditions // +optional MatchConditions []MatchCondition `json:"matchConditions,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,12,rep,name=matchConditions"` } // 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 = v1.RuleWithOperations // OperationType specifies an operation for a request. // +enum type OperationType = v1.OperationType // The constants should be kept in sync with those defined in k8s.io/kubernetes/pkg/admission/interface.go. const ( OperationAll OperationType = v1.OperationAll Create OperationType = v1.Create Update OperationType = v1.Update Delete OperationType = v1.Delete Connect OperationType = v1.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"` } // MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook. type MatchCondition struct { // Name is an identifier for this match condition, used for strategic merging of MatchConditions, // as well as providing an identifier for logging purposes. A good name should be descriptive of // the associated expression. // Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and // must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or // '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an // optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') // // Required. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` // Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. // CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: // // 'object' - The object from the incoming request. The value is null for DELETE requests. // 'oldObject' - The existing object. The value is null for CREATE requests. // 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). // 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. // See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz // 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the // request resource. // Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ // // Required. Expression string `json:"expression" protobuf:"bytes,2,opt,name=expression"` } golang-k8s-api-0.29.0/admissionregistration/v1beta1/types_swagger_doc_generated.go000066400000000000000000001360571453636404600303130ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_AuditAnnotation = map[string]string{ "": "AuditAnnotation describes how to produce an audit annotation for an API request.", "key": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", "valueExpression": "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", } func (AuditAnnotation) SwaggerDoc() map[string]string { return map_AuditAnnotation } var map_ExpressionWarning = map[string]string{ "": "ExpressionWarning is a warning information that targets a specific expression.", "fieldRef": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", "warning": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", } func (ExpressionWarning) SwaggerDoc() map[string]string { return map_ExpressionWarning } var map_MatchCondition = map[string]string{ "": "MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.", "name": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", "expression": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", } func (MatchCondition) SwaggerDoc() map[string]string { return map_MatchCondition } var map_MatchResources = map[string]string{ "": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", "namespaceSelector": "NamespaceSelector decides whether to run the admission control policy 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 policy.\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 policy 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 validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, 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.", "resourceRules": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", "excludeResourceRules": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", "matchPolicy": "matchPolicy defines how the \"MatchResources\" 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 ValidatingAdmissionPolicy.\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 ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", } func (MatchResources) SwaggerDoc() map[string]string { return map_MatchResources } 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 webhook 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 chain 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\".", "matchConditions": "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped\n\nThis is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate.", } 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_NamedRuleWithOperations = map[string]string{ "": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", "resourceNames": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", } func (NamedRuleWithOperations) SwaggerDoc() map[string]string { return map_NamedRuleWithOperations } var map_ParamKind = map[string]string{ "": "ParamKind is a tuple of Group Kind and Version.", "apiVersion": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", "kind": "Kind is the API kind the resources belong to. Required.", } func (ParamKind) SwaggerDoc() map[string]string { return map_ParamKind } var map_ParamRef = map[string]string{ "": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", "name": "name is the name of the resource being referenced.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\n\nA single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped.", "namespace": "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.", "selector": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.", "parameterNotFoundAction": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny`\n\nRequired", } func (ParamRef) SwaggerDoc() map[string]string { return map_ParamRef } 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_TypeChecking = map[string]string{ "": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy", "expressionWarnings": "The type checking warnings for each expression.", } func (TypeChecking) SwaggerDoc() map[string]string { return map_TypeChecking } var map_ValidatingAdmissionPolicy = map[string]string{ "": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", "metadata": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.", "spec": "Specification of the desired behavior of the ValidatingAdmissionPolicy.", "status": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only.", } func (ValidatingAdmissionPolicy) SwaggerDoc() map[string]string { return map_ValidatingAdmissionPolicy } var map_ValidatingAdmissionPolicyBinding = map[string]string{ "": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\n\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", "metadata": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.", "spec": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.", } func (ValidatingAdmissionPolicyBinding) SwaggerDoc() map[string]string { return map_ValidatingAdmissionPolicyBinding } var map_ValidatingAdmissionPolicyBindingList = map[string]string{ "": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "items": "List of PolicyBinding.", } func (ValidatingAdmissionPolicyBindingList) SwaggerDoc() map[string]string { return map_ValidatingAdmissionPolicyBindingList } var map_ValidatingAdmissionPolicyBindingSpec = map[string]string{ "": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", "policyName": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", "paramRef": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.", "matchResources": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required.", "validationActions": "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\n\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\n\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\n\nThe supported actions values are:\n\n\"Deny\" specifies that a validation failure results in a denied request.\n\n\"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\n\n\"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"`\n\nClients should expect to handle additional values by ignoring any values not recognized.\n\n\"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\n\nRequired.", } func (ValidatingAdmissionPolicyBindingSpec) SwaggerDoc() map[string]string { return map_ValidatingAdmissionPolicyBindingSpec } var map_ValidatingAdmissionPolicyList = map[string]string{ "": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "items": "List of ValidatingAdmissionPolicy.", } func (ValidatingAdmissionPolicyList) SwaggerDoc() map[string]string { return map_ValidatingAdmissionPolicyList } var map_ValidatingAdmissionPolicySpec = map[string]string{ "": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", "paramKind": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.", "matchConstraints": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required.", "validations": "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.", "failurePolicy": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", "auditAnnotations": "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.", "matchConditions": "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", "variables": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.", } func (ValidatingAdmissionPolicySpec) SwaggerDoc() map[string]string { return map_ValidatingAdmissionPolicySpec } var map_ValidatingAdmissionPolicyStatus = map[string]string{ "": "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.", "observedGeneration": "The generation observed by the controller.", "typeChecking": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking.", "conditions": "The conditions represent the latest available observations of a policy's current state.", } func (ValidatingAdmissionPolicyStatus) SwaggerDoc() map[string]string { return map_ValidatingAdmissionPolicyStatus } 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 webhook 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 chain 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']`.", "matchConditions": "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped\n\nThis is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate.", } 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_Validation = map[string]string{ "": "Validation specifies the CEL expression which is used to apply the validation.", "expression": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", "message": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", "reason": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", "messageExpression": "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", } func (Validation) SwaggerDoc() map[string]string { return map_Validation } var map_Variable = map[string]string{ "": "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.", "name": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", "expression": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", } func (Variable) SwaggerDoc() map[string]string { return map_Variable } 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 golang-k8s-api-0.29.0/admissionregistration/v1beta1/zz_generated.deepcopy.go000066400000000000000000000564761453636404600270630ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 ( admissionregistrationv1 "k8s.io/api/admissionregistration/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AuditAnnotation) DeepCopyInto(out *AuditAnnotation) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuditAnnotation. func (in *AuditAnnotation) DeepCopy() *AuditAnnotation { if in == nil { return nil } out := new(AuditAnnotation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ExpressionWarning) DeepCopyInto(out *ExpressionWarning) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExpressionWarning. func (in *ExpressionWarning) DeepCopy() *ExpressionWarning { if in == nil { return nil } out := new(ExpressionWarning) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MatchCondition) DeepCopyInto(out *MatchCondition) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchCondition. func (in *MatchCondition) DeepCopy() *MatchCondition { if in == nil { return nil } out := new(MatchCondition) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MatchResources) DeepCopyInto(out *MatchResources) { *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.ResourceRules != nil { in, out := &in.ResourceRules, &out.ResourceRules *out = make([]NamedRuleWithOperations, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.ExcludeResourceRules != nil { in, out := &in.ExcludeResourceRules, &out.ExcludeResourceRules *out = make([]NamedRuleWithOperations, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.MatchPolicy != nil { in, out := &in.MatchPolicy, &out.MatchPolicy *out = new(MatchPolicyType) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchResources. func (in *MatchResources) DeepCopy() *MatchResources { if in == nil { return nil } out := new(MatchResources) in.DeepCopyInto(out) return out } // 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([]admissionregistrationv1.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 } if in.MatchConditions != nil { in, out := &in.MatchConditions, &out.MatchConditions *out = make([]MatchCondition, len(*in)) copy(*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 *NamedRuleWithOperations) DeepCopyInto(out *NamedRuleWithOperations) { *out = *in if in.ResourceNames != nil { in, out := &in.ResourceNames, &out.ResourceNames *out = make([]string, len(*in)) copy(*out, *in) } in.RuleWithOperations.DeepCopyInto(&out.RuleWithOperations) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedRuleWithOperations. func (in *NamedRuleWithOperations) DeepCopy() *NamedRuleWithOperations { if in == nil { return nil } out := new(NamedRuleWithOperations) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ParamKind) DeepCopyInto(out *ParamKind) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamKind. func (in *ParamKind) DeepCopy() *ParamKind { if in == nil { return nil } out := new(ParamKind) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ParamRef) DeepCopyInto(out *ParamRef) { *out = *in if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = new(v1.LabelSelector) (*in).DeepCopyInto(*out) } if in.ParameterNotFoundAction != nil { in, out := &in.ParameterNotFoundAction, &out.ParameterNotFoundAction *out = new(ParameterNotFoundActionType) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamRef. func (in *ParamRef) DeepCopy() *ParamRef { if in == nil { return nil } out := new(ParamRef) 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 *TypeChecking) DeepCopyInto(out *TypeChecking) { *out = *in if in.ExpressionWarnings != nil { in, out := &in.ExpressionWarnings, &out.ExpressionWarnings *out = make([]ExpressionWarning, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TypeChecking. func (in *TypeChecking) DeepCopy() *TypeChecking { if in == nil { return nil } out := new(TypeChecking) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ValidatingAdmissionPolicy) DeepCopyInto(out *ValidatingAdmissionPolicy) { *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 ValidatingAdmissionPolicy. func (in *ValidatingAdmissionPolicy) DeepCopy() *ValidatingAdmissionPolicy { if in == nil { return nil } out := new(ValidatingAdmissionPolicy) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *ValidatingAdmissionPolicy) 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 *ValidatingAdmissionPolicyBinding) DeepCopyInto(out *ValidatingAdmissionPolicyBinding) { *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 ValidatingAdmissionPolicyBinding. func (in *ValidatingAdmissionPolicyBinding) DeepCopy() *ValidatingAdmissionPolicyBinding { if in == nil { return nil } out := new(ValidatingAdmissionPolicyBinding) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *ValidatingAdmissionPolicyBinding) 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 *ValidatingAdmissionPolicyBindingList) DeepCopyInto(out *ValidatingAdmissionPolicyBindingList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ValidatingAdmissionPolicyBinding, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyBindingList. func (in *ValidatingAdmissionPolicyBindingList) DeepCopy() *ValidatingAdmissionPolicyBindingList { if in == nil { return nil } out := new(ValidatingAdmissionPolicyBindingList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *ValidatingAdmissionPolicyBindingList) 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 *ValidatingAdmissionPolicyBindingSpec) DeepCopyInto(out *ValidatingAdmissionPolicyBindingSpec) { *out = *in if in.ParamRef != nil { in, out := &in.ParamRef, &out.ParamRef *out = new(ParamRef) (*in).DeepCopyInto(*out) } if in.MatchResources != nil { in, out := &in.MatchResources, &out.MatchResources *out = new(MatchResources) (*in).DeepCopyInto(*out) } if in.ValidationActions != nil { in, out := &in.ValidationActions, &out.ValidationActions *out = make([]ValidationAction, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyBindingSpec. func (in *ValidatingAdmissionPolicyBindingSpec) DeepCopy() *ValidatingAdmissionPolicyBindingSpec { if in == nil { return nil } out := new(ValidatingAdmissionPolicyBindingSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ValidatingAdmissionPolicyList) DeepCopyInto(out *ValidatingAdmissionPolicyList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ValidatingAdmissionPolicy, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyList. func (in *ValidatingAdmissionPolicyList) DeepCopy() *ValidatingAdmissionPolicyList { if in == nil { return nil } out := new(ValidatingAdmissionPolicyList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *ValidatingAdmissionPolicyList) 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 *ValidatingAdmissionPolicySpec) DeepCopyInto(out *ValidatingAdmissionPolicySpec) { *out = *in if in.ParamKind != nil { in, out := &in.ParamKind, &out.ParamKind *out = new(ParamKind) **out = **in } if in.MatchConstraints != nil { in, out := &in.MatchConstraints, &out.MatchConstraints *out = new(MatchResources) (*in).DeepCopyInto(*out) } if in.Validations != nil { in, out := &in.Validations, &out.Validations *out = make([]Validation, 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.AuditAnnotations != nil { in, out := &in.AuditAnnotations, &out.AuditAnnotations *out = make([]AuditAnnotation, len(*in)) copy(*out, *in) } if in.MatchConditions != nil { in, out := &in.MatchConditions, &out.MatchConditions *out = make([]MatchCondition, len(*in)) copy(*out, *in) } if in.Variables != nil { in, out := &in.Variables, &out.Variables *out = make([]Variable, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicySpec. func (in *ValidatingAdmissionPolicySpec) DeepCopy() *ValidatingAdmissionPolicySpec { if in == nil { return nil } out := new(ValidatingAdmissionPolicySpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ValidatingAdmissionPolicyStatus) DeepCopyInto(out *ValidatingAdmissionPolicyStatus) { *out = *in if in.TypeChecking != nil { in, out := &in.TypeChecking, &out.TypeChecking *out = new(TypeChecking) (*in).DeepCopyInto(*out) } if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]v1.Condition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyStatus. func (in *ValidatingAdmissionPolicyStatus) DeepCopy() *ValidatingAdmissionPolicyStatus { if in == nil { return nil } out := new(ValidatingAdmissionPolicyStatus) 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([]admissionregistrationv1.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.MatchConditions != nil { in, out := &in.MatchConditions, &out.MatchConditions *out = make([]MatchCondition, 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 *Validation) DeepCopyInto(out *Validation) { *out = *in if in.Reason != nil { in, out := &in.Reason, &out.Reason *out = new(v1.StatusReason) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Validation. func (in *Validation) DeepCopy() *Validation { if in == nil { return nil } out := new(Validation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Variable) DeepCopyInto(out *Variable) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Variable. func (in *Variable) DeepCopy() *Variable { if in == nil { return nil } out := new(Variable) 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 } golang-k8s-api-0.29.0/admissionregistration/v1beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000277541453636404600313340ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta1 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *MutatingWebhookConfiguration) APILifecycleIntroduced() (major, minor int) { return 1, 9 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *MutatingWebhookConfiguration) APILifecycleDeprecated() (major, minor int) { return 1, 16 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *MutatingWebhookConfiguration) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "admissionregistration.k8s.io", Version: "v1", Kind: "MutatingWebhookConfiguration"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *MutatingWebhookConfiguration) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *MutatingWebhookConfigurationList) APILifecycleIntroduced() (major, minor int) { return 1, 9 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *MutatingWebhookConfigurationList) APILifecycleDeprecated() (major, minor int) { return 1, 16 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *MutatingWebhookConfigurationList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "admissionregistration.k8s.io", Version: "v1", Kind: "MutatingWebhookConfigurationList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *MutatingWebhookConfigurationList) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ValidatingAdmissionPolicy) APILifecycleIntroduced() (major, minor int) { return 1, 28 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ValidatingAdmissionPolicy) APILifecycleDeprecated() (major, minor int) { return 1, 31 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ValidatingAdmissionPolicy) APILifecycleRemoved() (major, minor int) { return 1, 34 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ValidatingAdmissionPolicyBinding) APILifecycleIntroduced() (major, minor int) { return 1, 28 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ValidatingAdmissionPolicyBinding) APILifecycleDeprecated() (major, minor int) { return 1, 31 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ValidatingAdmissionPolicyBinding) APILifecycleRemoved() (major, minor int) { return 1, 34 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ValidatingAdmissionPolicyBindingList) APILifecycleIntroduced() (major, minor int) { return 1, 28 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ValidatingAdmissionPolicyBindingList) APILifecycleDeprecated() (major, minor int) { return 1, 31 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ValidatingAdmissionPolicyBindingList) APILifecycleRemoved() (major, minor int) { return 1, 34 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ValidatingAdmissionPolicyList) APILifecycleIntroduced() (major, minor int) { return 1, 28 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ValidatingAdmissionPolicyList) APILifecycleDeprecated() (major, minor int) { return 1, 31 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ValidatingAdmissionPolicyList) APILifecycleRemoved() (major, minor int) { return 1, 34 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ValidatingWebhookConfiguration) APILifecycleIntroduced() (major, minor int) { return 1, 9 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ValidatingWebhookConfiguration) APILifecycleDeprecated() (major, minor int) { return 1, 16 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *ValidatingWebhookConfiguration) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "admissionregistration.k8s.io", Version: "v1", Kind: "ValidatingWebhookConfiguration"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ValidatingWebhookConfiguration) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ValidatingWebhookConfigurationList) APILifecycleIntroduced() (major, minor int) { return 1, 9 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ValidatingWebhookConfigurationList) APILifecycleDeprecated() (major, minor int) { return 1, 16 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *ValidatingWebhookConfigurationList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "admissionregistration.k8s.io", Version: "v1", Kind: "ValidatingWebhookConfigurationList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ValidatingWebhookConfigurationList) APILifecycleRemoved() (major, minor int) { return 1, 22 } golang-k8s-api-0.29.0/apidiscovery/000077500000000000000000000000001453636404600170375ustar00rootroot00000000000000golang-k8s-api-0.29.0/apidiscovery/v2beta1/000077500000000000000000000000001453636404600203035ustar00rootroot00000000000000golang-k8s-api-0.29.0/apidiscovery/v2beta1/doc.go000066400000000000000000000014241453636404600214000ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 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 // +k8s:prerelease-lifecycle-gen=true // +groupName=apidiscovery.k8s.io package v2beta1 // import "k8s.io/api/apidiscovery/v2beta1" golang-k8s-api-0.29.0/apidiscovery/v2beta1/generated.pb.go000066400000000000000000001320761453636404600232010ustar00rootroot00000000000000/* 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/k8s.io/api/apidiscovery/v2beta1/generated.proto package v2beta1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *APIGroupDiscovery) Reset() { *m = APIGroupDiscovery{} } func (*APIGroupDiscovery) ProtoMessage() {} func (*APIGroupDiscovery) Descriptor() ([]byte, []int) { return fileDescriptor_0442b7af4d680cb7, []int{0} } func (m *APIGroupDiscovery) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *APIGroupDiscovery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *APIGroupDiscovery) XXX_Merge(src proto.Message) { xxx_messageInfo_APIGroupDiscovery.Merge(m, src) } func (m *APIGroupDiscovery) XXX_Size() int { return m.Size() } func (m *APIGroupDiscovery) XXX_DiscardUnknown() { xxx_messageInfo_APIGroupDiscovery.DiscardUnknown(m) } var xxx_messageInfo_APIGroupDiscovery proto.InternalMessageInfo func (m *APIGroupDiscoveryList) Reset() { *m = APIGroupDiscoveryList{} } func (*APIGroupDiscoveryList) ProtoMessage() {} func (*APIGroupDiscoveryList) Descriptor() ([]byte, []int) { return fileDescriptor_0442b7af4d680cb7, []int{1} } func (m *APIGroupDiscoveryList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *APIGroupDiscoveryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *APIGroupDiscoveryList) XXX_Merge(src proto.Message) { xxx_messageInfo_APIGroupDiscoveryList.Merge(m, src) } func (m *APIGroupDiscoveryList) XXX_Size() int { return m.Size() } func (m *APIGroupDiscoveryList) XXX_DiscardUnknown() { xxx_messageInfo_APIGroupDiscoveryList.DiscardUnknown(m) } var xxx_messageInfo_APIGroupDiscoveryList proto.InternalMessageInfo func (m *APIResourceDiscovery) Reset() { *m = APIResourceDiscovery{} } func (*APIResourceDiscovery) ProtoMessage() {} func (*APIResourceDiscovery) Descriptor() ([]byte, []int) { return fileDescriptor_0442b7af4d680cb7, []int{2} } func (m *APIResourceDiscovery) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *APIResourceDiscovery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *APIResourceDiscovery) XXX_Merge(src proto.Message) { xxx_messageInfo_APIResourceDiscovery.Merge(m, src) } func (m *APIResourceDiscovery) XXX_Size() int { return m.Size() } func (m *APIResourceDiscovery) XXX_DiscardUnknown() { xxx_messageInfo_APIResourceDiscovery.DiscardUnknown(m) } var xxx_messageInfo_APIResourceDiscovery proto.InternalMessageInfo func (m *APISubresourceDiscovery) Reset() { *m = APISubresourceDiscovery{} } func (*APISubresourceDiscovery) ProtoMessage() {} func (*APISubresourceDiscovery) Descriptor() ([]byte, []int) { return fileDescriptor_0442b7af4d680cb7, []int{3} } func (m *APISubresourceDiscovery) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *APISubresourceDiscovery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *APISubresourceDiscovery) XXX_Merge(src proto.Message) { xxx_messageInfo_APISubresourceDiscovery.Merge(m, src) } func (m *APISubresourceDiscovery) XXX_Size() int { return m.Size() } func (m *APISubresourceDiscovery) XXX_DiscardUnknown() { xxx_messageInfo_APISubresourceDiscovery.DiscardUnknown(m) } var xxx_messageInfo_APISubresourceDiscovery proto.InternalMessageInfo func (m *APIVersionDiscovery) Reset() { *m = APIVersionDiscovery{} } func (*APIVersionDiscovery) ProtoMessage() {} func (*APIVersionDiscovery) Descriptor() ([]byte, []int) { return fileDescriptor_0442b7af4d680cb7, []int{4} } func (m *APIVersionDiscovery) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *APIVersionDiscovery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *APIVersionDiscovery) XXX_Merge(src proto.Message) { xxx_messageInfo_APIVersionDiscovery.Merge(m, src) } func (m *APIVersionDiscovery) XXX_Size() int { return m.Size() } func (m *APIVersionDiscovery) XXX_DiscardUnknown() { xxx_messageInfo_APIVersionDiscovery.DiscardUnknown(m) } var xxx_messageInfo_APIVersionDiscovery proto.InternalMessageInfo func init() { proto.RegisterType((*APIGroupDiscovery)(nil), "k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery") proto.RegisterType((*APIGroupDiscoveryList)(nil), "k8s.io.api.apidiscovery.v2beta1.APIGroupDiscoveryList") proto.RegisterType((*APIResourceDiscovery)(nil), "k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery") proto.RegisterType((*APISubresourceDiscovery)(nil), "k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery") proto.RegisterType((*APIVersionDiscovery)(nil), "k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/apidiscovery/v2beta1/generated.proto", fileDescriptor_0442b7af4d680cb7) } var fileDescriptor_0442b7af4d680cb7 = []byte{ // 754 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcd, 0x4e, 0xdb, 0x4c, 0x14, 0x8d, 0x09, 0xf9, 0x48, 0x26, 0xc9, 0xf7, 0x85, 0x01, 0xf4, 0x59, 0x2c, 0x6c, 0x94, 0x4d, 0xa9, 0xd4, 0xda, 0x25, 0x02, 0xc4, 0x36, 0x29, 0xb4, 0x8d, 0xfa, 0x87, 0x26, 0x15, 0x95, 0xaa, 0x2e, 0x6a, 0x3b, 0x17, 0xc7, 0x0d, 0xb1, 0xad, 0x99, 0x71, 0x24, 0x76, 0x7d, 0x84, 0xbe, 0x43, 0x5f, 0x86, 0x55, 0xc5, 0xa2, 0x0b, 0xba, 0x89, 0x4a, 0xfa, 0x00, 0xdd, 0xb3, 0xaa, 0xec, 0x8c, 0x7f, 0x42, 0x40, 0x44, 0x5d, 0x74, 0x81, 0x84, 0xcf, 0x3d, 0xe7, 0xdc, 0x7b, 0x2e, 0xd7, 0x06, 0x3d, 0xeb, 0xef, 0x31, 0xcd, 0xf1, 0xf4, 0x7e, 0x60, 0x02, 0x75, 0x81, 0x03, 0xd3, 0x87, 0xe0, 0x76, 0x3d, 0xaa, 0x8b, 0x82, 0xe1, 0x3b, 0xe1, 0x4f, 0xd7, 0x61, 0x96, 0x37, 0x04, 0x7a, 0xaa, 0x0f, 0x1b, 0x26, 0x70, 0x63, 0x4b, 0xb7, 0xc1, 0x05, 0x6a, 0x70, 0xe8, 0x6a, 0x3e, 0xf5, 0xb8, 0x87, 0xd5, 0x89, 0x40, 0x33, 0x7c, 0x47, 0xcb, 0x0a, 0x34, 0x21, 0x58, 0x7f, 0x68, 0x3b, 0xbc, 0x17, 0x98, 0x9a, 0xe5, 0x0d, 0x74, 0xdb, 0xb3, 0x3d, 0x3d, 0xd2, 0x99, 0xc1, 0x71, 0xf4, 0x14, 0x3d, 0x44, 0xbf, 0x4d, 0xfc, 0xd6, 0xb7, 0xd3, 0x01, 0x06, 0x86, 0xd5, 0x73, 0xdc, 0xb0, 0xb9, 0xdf, 0xb7, 0x43, 0x80, 0xe9, 0x03, 0xe0, 0x86, 0x3e, 0x9c, 0x99, 0x62, 0x5d, 0xbf, 0x4d, 0x45, 0x03, 0x97, 0x3b, 0x03, 0x98, 0x11, 0xec, 0xde, 0x25, 0x60, 0x56, 0x0f, 0x06, 0xc6, 0x75, 0x5d, 0xfd, 0xbb, 0x84, 0x96, 0x9b, 0x87, 0xed, 0xa7, 0xd4, 0x0b, 0xfc, 0xfd, 0x38, 0x2b, 0xfe, 0x80, 0x8a, 0xe1, 0x64, 0x5d, 0x83, 0x1b, 0xb2, 0xb4, 0x21, 0x6d, 0x96, 0x1b, 0x8f, 0xb4, 0x74, 0x2f, 0x49, 0x03, 0xcd, 0xef, 0xdb, 0x21, 0xc0, 0xb4, 0x90, 0xad, 0x0d, 0xb7, 0xb4, 0xd7, 0xe6, 0x47, 0xb0, 0xf8, 0x4b, 0xe0, 0x46, 0x0b, 0x9f, 0x8d, 0xd4, 0xdc, 0x78, 0xa4, 0xa2, 0x14, 0x23, 0x89, 0x2b, 0x36, 0x51, 0x71, 0x08, 0x94, 0x39, 0x9e, 0xcb, 0xe4, 0x85, 0x8d, 0xfc, 0x66, 0xb9, 0xb1, 0xad, 0xdd, 0xb1, 0x79, 0xad, 0x79, 0xd8, 0x3e, 0x9a, 0x68, 0x92, 0x49, 0x5b, 0x35, 0xd1, 0xa5, 0x28, 0x2a, 0x8c, 0x24, 0xbe, 0xf5, 0xaf, 0x12, 0x5a, 0x9b, 0xc9, 0xf6, 0xc2, 0x61, 0x1c, 0xbf, 0x9f, 0xc9, 0xa7, 0xcd, 0x97, 0x2f, 0x54, 0x47, 0xe9, 0x92, 0xbe, 0x31, 0x92, 0xc9, 0xf6, 0x16, 0x15, 0x1c, 0x0e, 0x83, 0x38, 0x58, 0x63, 0x9e, 0x60, 0xd3, 0x43, 0xb6, 0xaa, 0xc2, 0xbe, 0xd0, 0x0e, 0x8d, 0xc8, 0xc4, 0xaf, 0xfe, 0x65, 0x11, 0xad, 0x36, 0x0f, 0xdb, 0x04, 0x98, 0x17, 0x50, 0x0b, 0xd2, 0xbf, 0xd7, 0x03, 0x54, 0xa4, 0x02, 0x8c, 0xf2, 0x94, 0xd2, 0xf9, 0x62, 0x32, 0x49, 0x18, 0xf8, 0x04, 0x55, 0x28, 0x30, 0xdf, 0x73, 0x19, 0x3c, 0x77, 0xdc, 0xae, 0xbc, 0x10, 0x6d, 0x60, 0x77, 0xbe, 0x0d, 0x44, 0x83, 0x8a, 0x65, 0x87, 0xea, 0x56, 0x6d, 0x3c, 0x52, 0x2b, 0x24, 0xe3, 0x47, 0xa6, 0xdc, 0xf1, 0x36, 0x2a, 0x30, 0xcb, 0xf3, 0x41, 0xce, 0x47, 0x83, 0x29, 0x71, 0xb2, 0x4e, 0x08, 0x5e, 0x8d, 0xd4, 0x6a, 0x3c, 0x61, 0x04, 0x90, 0x09, 0x19, 0xef, 0xa3, 0x1a, 0x73, 0x5c, 0x3b, 0x38, 0x31, 0x68, 0x5c, 0x97, 0x17, 0x23, 0x03, 0x59, 0x18, 0xd4, 0x3a, 0xd7, 0xea, 0x64, 0x46, 0x81, 0x55, 0x54, 0x18, 0x02, 0x35, 0x99, 0x5c, 0xd8, 0xc8, 0x6f, 0x96, 0x5a, 0xa5, 0xb0, 0xef, 0x51, 0x08, 0x90, 0x09, 0x8e, 0x35, 0x84, 0x58, 0xcf, 0xa3, 0xfc, 0x95, 0x31, 0x00, 0x26, 0xff, 0x13, 0xb1, 0xfe, 0x0d, 0x8f, 0xb6, 0x93, 0xa0, 0x24, 0xc3, 0x08, 0xf9, 0x96, 0xc1, 0xc1, 0xf6, 0xa8, 0x03, 0x4c, 0x5e, 0x4a, 0xf9, 0x8f, 0x13, 0x94, 0x64, 0x18, 0x98, 0xa2, 0x0a, 0x0b, 0xcc, 0x78, 0xf3, 0x4c, 0x2e, 0x46, 0x17, 0xb1, 0x37, 0xcf, 0x45, 0x74, 0x52, 0x5d, 0x7a, 0x17, 0xab, 0x22, 0x7c, 0x25, 0x53, 0x65, 0x64, 0xaa, 0x47, 0xfd, 0xdb, 0x02, 0xfa, 0xff, 0x16, 0x3d, 0xde, 0x41, 0xe5, 0x0c, 0x57, 0xdc, 0xca, 0x8a, 0x30, 0x2d, 0x67, 0x24, 0x24, 0xcb, 0xfb, 0xcb, 0x17, 0xc3, 0x50, 0xd5, 0xb0, 0x2c, 0xf0, 0x39, 0x74, 0xdf, 0x9c, 0xfa, 0xc0, 0xe4, 0x7c, 0xb4, 0xb5, 0x3f, 0x6d, 0xb7, 0x26, 0xe2, 0x55, 0x9b, 0x59, 0x53, 0x32, 0xdd, 0x23, 0x3d, 0x95, 0xc5, 0x9b, 0x4f, 0xa5, 0xfe, 0x4b, 0x42, 0x2b, 0x37, 0x7c, 0x81, 0xf0, 0x7d, 0xb4, 0x24, 0xbe, 0x38, 0x62, 0x9d, 0xff, 0x89, 0x7e, 0x4b, 0x82, 0x4a, 0xe2, 0x3a, 0x3e, 0x46, 0xa5, 0xf4, 0x14, 0x26, 0x1f, 0x87, 0x9d, 0x79, 0x4e, 0x61, 0xe6, 0x85, 0x6f, 0x2d, 0x8b, 0x1e, 0x25, 0x92, 0x1c, 0x41, 0x6a, 0x8d, 0x0f, 0x50, 0xe9, 0x98, 0x02, 0xeb, 0xb9, 0xc0, 0x98, 0x78, 0xed, 0xee, 0xc5, 0x82, 0x27, 0x71, 0xe1, 0x6a, 0xa4, 0xe2, 0xc4, 0x30, 0x41, 0x49, 0xaa, 0x6c, 0x1d, 0x9c, 0x5d, 0x2a, 0xb9, 0xf3, 0x4b, 0x25, 0x77, 0x71, 0xa9, 0xe4, 0x3e, 0x8d, 0x15, 0xe9, 0x6c, 0xac, 0x48, 0xe7, 0x63, 0x45, 0xba, 0x18, 0x2b, 0xd2, 0x8f, 0xb1, 0x22, 0x7d, 0xfe, 0xa9, 0xe4, 0xde, 0xa9, 0x77, 0xfc, 0x87, 0xfd, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xcc, 0x66, 0x3b, 0x84, 0x9c, 0x07, 0x00, 0x00, } func (m *APIGroupDiscovery) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *APIGroupDiscovery) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *APIGroupDiscovery) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l 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 } } { 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 *APIGroupDiscoveryList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *APIGroupDiscoveryList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *APIGroupDiscoveryList) 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 *APIResourceDiscovery) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *APIResourceDiscovery) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *APIResourceDiscovery) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Subresources) > 0 { for iNdEx := len(m.Subresources) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Subresources[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } 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 } } 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] = 0x32 } } 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] = 0x2a } } i -= len(m.SingularResource) copy(dAtA[i:], m.SingularResource) i = encodeVarintGenerated(dAtA, i, uint64(len(m.SingularResource))) i-- dAtA[i] = 0x22 i -= len(m.Scope) copy(dAtA[i:], m.Scope) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Scope))) i-- dAtA[i] = 0x1a if m.ResponseKind != nil { { size, err := m.ResponseKind.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } i -= len(m.Resource) copy(dAtA[i:], m.Resource) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resource))) i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *APISubresourceDiscovery) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *APISubresourceDiscovery) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *APISubresourceDiscovery) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l 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] = 0x22 } } if len(m.AcceptedTypes) > 0 { for iNdEx := len(m.AcceptedTypes) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.AcceptedTypes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } } if m.ResponseKind != nil { { size, err := m.ResponseKind.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } i -= len(m.Subresource) copy(dAtA[i:], m.Subresource) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Subresource))) i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *APIVersionDiscovery) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *APIVersionDiscovery) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *APIVersionDiscovery) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.Freshness) copy(dAtA[i:], m.Freshness) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Freshness))) i-- dAtA[i] = 0x1a if len(m.Resources) > 0 { for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Resources[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.Version) copy(dAtA[i:], m.Version) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) 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 *APIGroupDiscovery) 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.Versions) > 0 { for _, e := range m.Versions { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *APIGroupDiscoveryList) 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 *APIResourceDiscovery) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Resource) n += 1 + l + sovGenerated(uint64(l)) if m.ResponseKind != nil { l = m.ResponseKind.Size() n += 1 + l + sovGenerated(uint64(l)) } l = len(m.Scope) n += 1 + l + sovGenerated(uint64(l)) l = len(m.SingularResource) n += 1 + l + sovGenerated(uint64(l)) if len(m.Verbs) > 0 { for _, s := range m.Verbs { l = len(s) 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)) } } if len(m.Categories) > 0 { for _, s := range m.Categories { l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } if len(m.Subresources) > 0 { for _, e := range m.Subresources { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *APISubresourceDiscovery) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Subresource) n += 1 + l + sovGenerated(uint64(l)) if m.ResponseKind != nil { l = m.ResponseKind.Size() n += 1 + l + sovGenerated(uint64(l)) } if len(m.AcceptedTypes) > 0 { for _, e := range m.AcceptedTypes { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } if len(m.Verbs) > 0 { for _, s := range m.Verbs { l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *APIVersionDiscovery) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Version) n += 1 + l + sovGenerated(uint64(l)) if len(m.Resources) > 0 { for _, e := range m.Resources { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } l = len(m.Freshness) 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 *APIGroupDiscovery) String() string { if this == nil { return "nil" } repeatedStringForVersions := "[]APIVersionDiscovery{" for _, f := range this.Versions { repeatedStringForVersions += strings.Replace(strings.Replace(f.String(), "APIVersionDiscovery", "APIVersionDiscovery", 1), `&`, ``, 1) + "," } repeatedStringForVersions += "}" s := strings.Join([]string{`&APIGroupDiscovery{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Versions:` + repeatedStringForVersions + `,`, `}`, }, "") return s } func (this *APIGroupDiscoveryList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]APIGroupDiscovery{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "APIGroupDiscovery", "APIGroupDiscovery", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&APIGroupDiscoveryList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *APIResourceDiscovery) String() string { if this == nil { return "nil" } repeatedStringForSubresources := "[]APISubresourceDiscovery{" for _, f := range this.Subresources { repeatedStringForSubresources += strings.Replace(strings.Replace(f.String(), "APISubresourceDiscovery", "APISubresourceDiscovery", 1), `&`, ``, 1) + "," } repeatedStringForSubresources += "}" s := strings.Join([]string{`&APIResourceDiscovery{`, `Resource:` + fmt.Sprintf("%v", this.Resource) + `,`, `ResponseKind:` + strings.Replace(fmt.Sprintf("%v", this.ResponseKind), "GroupVersionKind", "v1.GroupVersionKind", 1) + `,`, `Scope:` + fmt.Sprintf("%v", this.Scope) + `,`, `SingularResource:` + fmt.Sprintf("%v", this.SingularResource) + `,`, `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, `ShortNames:` + fmt.Sprintf("%v", this.ShortNames) + `,`, `Categories:` + fmt.Sprintf("%v", this.Categories) + `,`, `Subresources:` + repeatedStringForSubresources + `,`, `}`, }, "") return s } func (this *APISubresourceDiscovery) String() string { if this == nil { return "nil" } repeatedStringForAcceptedTypes := "[]GroupVersionKind{" for _, f := range this.AcceptedTypes { repeatedStringForAcceptedTypes += fmt.Sprintf("%v", f) + "," } repeatedStringForAcceptedTypes += "}" s := strings.Join([]string{`&APISubresourceDiscovery{`, `Subresource:` + fmt.Sprintf("%v", this.Subresource) + `,`, `ResponseKind:` + strings.Replace(fmt.Sprintf("%v", this.ResponseKind), "GroupVersionKind", "v1.GroupVersionKind", 1) + `,`, `AcceptedTypes:` + repeatedStringForAcceptedTypes + `,`, `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, `}`, }, "") return s } func (this *APIVersionDiscovery) String() string { if this == nil { return "nil" } repeatedStringForResources := "[]APIResourceDiscovery{" for _, f := range this.Resources { repeatedStringForResources += strings.Replace(strings.Replace(f.String(), "APIResourceDiscovery", "APIResourceDiscovery", 1), `&`, ``, 1) + "," } repeatedStringForResources += "}" s := strings.Join([]string{`&APIVersionDiscovery{`, `Version:` + fmt.Sprintf("%v", this.Version) + `,`, `Resources:` + repeatedStringForResources + `,`, `Freshness:` + fmt.Sprintf("%v", this.Freshness) + `,`, `}`, }, "") 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 *APIGroupDiscovery) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: APIGroupDiscovery: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: APIGroupDiscovery: 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 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, APIVersionDiscovery{}) if err := m.Versions[len(m.Versions)-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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *APIGroupDiscoveryList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: APIGroupDiscoveryList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: APIGroupDiscoveryList: 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, APIGroupDiscovery{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *APIResourceDiscovery) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: APIResourceDiscovery: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: APIResourceDiscovery: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: 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 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResponseKind", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ResponseKind == nil { m.ResponseKind = &v1.GroupVersionKind{} } if err := m.ResponseKind.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: 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 } m.Scope = ResourceScope(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SingularResource", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.SingularResource = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: 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 6: 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 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 Subresources", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Subresources = append(m.Subresources, APISubresourceDiscovery{}) if err := m.Subresources[len(m.Subresources)-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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *APISubresourceDiscovery) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: APISubresourceDiscovery: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: APISubresourceDiscovery: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: 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 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResponseKind", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ResponseKind == nil { m.ResponseKind = &v1.GroupVersionKind{} } if err := m.ResponseKind.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AcceptedTypes", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.AcceptedTypes = append(m.AcceptedTypes, v1.GroupVersionKind{}) if err := m.AcceptedTypes[len(m.AcceptedTypes)-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 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *APIVersionDiscovery) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: APIVersionDiscovery: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: APIVersionDiscovery: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: 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 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 } m.Resources = append(m.Resources, APIResourceDiscovery{}) if err := m.Resources[len(m.Resources)-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 Freshness", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Freshness = DiscoveryFreshness(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/apidiscovery/v2beta1/generated.proto000066400000000000000000000174751453636404600233440ustar00rootroot00000000000000/* 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.apidiscovery.v2beta1; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/apidiscovery/v2beta1"; // APIGroupDiscovery holds information about which resources are being served for all version of the API Group. // It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. // Versions are in descending order of preference, with the first version being the preferred entry. message APIGroupDiscovery { // Standard object's metadata. // The only field completed will be name. For instance, resourceVersion will be empty. // name is the name of the API group whose discovery information is presented here. // name is allowed to be "" to represent the legacy, ungroupified resources. // 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; // versions are the versions supported in this group. They are sorted in descending order of preference, // with the preferred version being the first entry. // +listType=map // +listMapKey=version repeated APIVersionDiscovery versions = 2; } // APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. // This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated // list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) // that a cluster supports. message APIGroupDiscoveryList { // ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers. // 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 groups for discovery. The groups are listed in priority order. repeated APIGroupDiscovery items = 2; } // APIResourceDiscovery provides information about an API resource for discovery. message APIResourceDiscovery { // resource is the plural name of the resource. This is used in the URL path and is the unique identifier // for this resource across all versions in the API group. // Resources with non-empty groups are located at /apis/// // Resources with empty groups are located at /api/v1/ optional string resource = 1; // responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns. // APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior. // This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource optional k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; // scope indicates the scope of a resource, either Cluster or Namespaced optional string scope = 3; // singularResource is the singular name of the resource. This allows clients to handle plural and singular opaquely. // For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence. // The command line tool kubectl, for example, allows use of the singular resource name in place of plurals. // The singular form of a resource should always be an optional element - when in doubt use the canonical resource name. optional string singularResource = 4; // verbs is a list of supported API operation types (this includes // but is not limited to get, list, watch, create, update, patch, // delete, deletecollection, and proxy). // +listType=set repeated string verbs = 5; // shortNames is a list of suggested short names of the resource. // +listType=set repeated string shortNames = 6; // categories is a list of the grouped resources this resource belongs to (e.g. 'all'). // Clients may use this to simplify acting on multiple resource types at once. // +listType=set repeated string categories = 7; // subresources is a list of subresources provided by this resource. Subresources are located at /apis////name-of-instance/ // +listType=map // +listMapKey=subresource repeated APISubresourceDiscovery subresources = 8; } // APISubresourceDiscovery provides information about an API subresource for discovery. message APISubresourceDiscovery { // subresource is the name of the subresource. This is used in the URL path and is the unique identifier // for this resource across all versions. optional string subresource = 1; // responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns. // Some subresources do not return normal resources, these will have null or empty return types. optional k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; // acceptedTypes describes the kinds that this endpoint accepts. // Subresources may accept the standard content types or define // custom negotiation schemes. The list may not be exhaustive for // all operations. // +listType=map // +listMapKey=group // +listMapKey=version // +listMapKey=kind repeated k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; // verbs is a list of supported API operation types (this includes // but is not limited to get, list, watch, create, update, patch, // delete, deletecollection, and proxy). Subresources may define // custom verbs outside the standard Kubernetes verb set. Clients // should expect the behavior of standard verbs to align with // Kubernetes interaction conventions. // +listType=set repeated string verbs = 4; } // APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group. message APIVersionDiscovery { // version is the name of the version within a group version. optional string version = 1; // resources is a list of APIResourceDiscovery objects for the corresponding group version. // +listType=map // +listMapKey=resource repeated APIResourceDiscovery resources = 2; // freshness marks whether a group version's discovery document is up to date. // "Current" indicates the discovery document was recently // refreshed. "Stale" indicates the discovery document could not // be retrieved and the returned discovery document may be // significantly out of date. Clients that require the latest // version of the discovery information be retrieved before // performing an operation should not use the aggregated document optional string freshness = 3; } golang-k8s-api-0.29.0/apidiscovery/v2beta1/register.go000066400000000000000000000034241453636404600224610ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name for this API. const GroupName = "apidiscovery.k8s.io" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v2beta1"} // 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 installs the api group to a scheme SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme adds api 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, &APIGroupDiscoveryList{}, &APIGroupDiscovery{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/apidiscovery/v2beta1/types.go000066400000000000000000000231101453636404600217730ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.26 // +k8s:prerelease-lifecycle-gen:deprecated=1.32 // +k8s:prerelease-lifecycle-gen:removed=1.35 // The deprecate and remove versions stated above are rough estimates and may be subject to change. We are estimating v2 types will be available in 1.28 and will support 4 versions where both v2beta1 and v2 are supported before deprecation. // APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. // This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated // list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) // that a cluster supports. type APIGroupDiscoveryList struct { v1.TypeMeta `json:",inline"` // ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional v1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // items is the list of groups for discovery. The groups are listed in priority order. Items []APIGroupDiscovery `json:"items" protobuf:"bytes,2,rep,name=items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.26 // +k8s:prerelease-lifecycle-gen:deprecated=1.32 // +k8s:prerelease-lifecycle-gen:removed=1.35 // The deprecate and remove versions stated above are rough estimates and may be subject to change. We are estimating v2 types will be available in 1.28 and will support 4 versions where both v2beta1 and v2 are supported before deprecation. // APIGroupDiscovery holds information about which resources are being served for all version of the API Group. // It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. // Versions are in descending order of preference, with the first version being the preferred entry. type APIGroupDiscovery struct { v1.TypeMeta `json:",inline"` // Standard object's metadata. // The only field completed will be name. For instance, resourceVersion will be empty. // name is the name of the API group whose discovery information is presented here. // name is allowed to be "" to represent the legacy, ungroupified resources. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // versions are the versions supported in this group. They are sorted in descending order of preference, // with the preferred version being the first entry. // +listType=map // +listMapKey=version Versions []APIVersionDiscovery `json:"versions,omitempty" protobuf:"bytes,2,rep,name=versions"` } // APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group. type APIVersionDiscovery struct { // version is the name of the version within a group version. Version string `json:"version" protobuf:"bytes,1,opt,name=version"` // resources is a list of APIResourceDiscovery objects for the corresponding group version. // +listType=map // +listMapKey=resource Resources []APIResourceDiscovery `json:"resources,omitempty" protobuf:"bytes,2,rep,name=resources"` // freshness marks whether a group version's discovery document is up to date. // "Current" indicates the discovery document was recently // refreshed. "Stale" indicates the discovery document could not // be retrieved and the returned discovery document may be // significantly out of date. Clients that require the latest // version of the discovery information be retrieved before // performing an operation should not use the aggregated document Freshness DiscoveryFreshness `json:"freshness,omitempty" protobuf:"bytes,3,opt,name=freshness"` } // APIResourceDiscovery provides information about an API resource for discovery. type APIResourceDiscovery struct { // resource is the plural name of the resource. This is used in the URL path and is the unique identifier // for this resource across all versions in the API group. // Resources with non-empty groups are located at /apis/// // Resources with empty groups are located at /api/v1/ Resource string `json:"resource" protobuf:"bytes,1,opt,name=resource"` // responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns. // APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior. // This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource ResponseKind *v1.GroupVersionKind `json:"responseKind,omitempty" protobuf:"bytes,2,opt,name=responseKind"` // scope indicates the scope of a resource, either Cluster or Namespaced Scope ResourceScope `json:"scope" protobuf:"bytes,3,opt,name=scope"` // singularResource is the singular name of the resource. This allows clients to handle plural and singular opaquely. // For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence. // The command line tool kubectl, for example, allows use of the singular resource name in place of plurals. // The singular form of a resource should always be an optional element - when in doubt use the canonical resource name. SingularResource string `json:"singularResource" protobuf:"bytes,4,opt,name=singularResource"` // verbs is a list of supported API operation types (this includes // but is not limited to get, list, watch, create, update, patch, // delete, deletecollection, and proxy). // +listType=set Verbs []string `json:"verbs" protobuf:"bytes,5,opt,name=verbs"` // shortNames is a list of suggested short names of the resource. // +listType=set ShortNames []string `json:"shortNames,omitempty" protobuf:"bytes,6,rep,name=shortNames"` // categories is a list of the grouped resources this resource belongs to (e.g. 'all'). // Clients may use this to simplify acting on multiple resource types at once. // +listType=set Categories []string `json:"categories,omitempty" protobuf:"bytes,7,rep,name=categories"` // subresources is a list of subresources provided by this resource. Subresources are located at /apis////name-of-instance/ // +listType=map // +listMapKey=subresource Subresources []APISubresourceDiscovery `json:"subresources,omitempty" protobuf:"bytes,8,rep,name=subresources"` } // ResourceScope is an enum defining the different scopes available to a resource. type ResourceScope string const ( ScopeCluster ResourceScope = "Cluster" ScopeNamespace ResourceScope = "Namespaced" ) // DiscoveryFreshness is an enum defining whether the Discovery document published by an apiservice is up to date (fresh). type DiscoveryFreshness string const ( DiscoveryFreshnessCurrent DiscoveryFreshness = "Current" DiscoveryFreshnessStale DiscoveryFreshness = "Stale" ) // APISubresourceDiscovery provides information about an API subresource for discovery. type APISubresourceDiscovery struct { // subresource is the name of the subresource. This is used in the URL path and is the unique identifier // for this resource across all versions. Subresource string `json:"subresource" protobuf:"bytes,1,opt,name=subresource"` // responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns. // Some subresources do not return normal resources, these will have null or empty return types. ResponseKind *v1.GroupVersionKind `json:"responseKind,omitempty" protobuf:"bytes,2,opt,name=responseKind"` // acceptedTypes describes the kinds that this endpoint accepts. // Subresources may accept the standard content types or define // custom negotiation schemes. The list may not be exhaustive for // all operations. // +listType=map // +listMapKey=group // +listMapKey=version // +listMapKey=kind AcceptedTypes []v1.GroupVersionKind `json:"acceptedTypes,omitempty" protobuf:"bytes,3,rep,name=acceptedTypes"` // verbs is a list of supported API operation types (this includes // but is not limited to get, list, watch, create, update, patch, // delete, deletecollection, and proxy). Subresources may define // custom verbs outside the standard Kubernetes verb set. Clients // should expect the behavior of standard verbs to align with // Kubernetes interaction conventions. // +listType=set Verbs []string `json:"verbs" protobuf:"bytes,4,opt,name=verbs"` } golang-k8s-api-0.29.0/apidiscovery/v2beta1/zz_generated.deepcopy.go000066400000000000000000000125631453636404600251310ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *APIGroupDiscovery) DeepCopyInto(out *APIGroupDiscovery) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) if in.Versions != nil { in, out := &in.Versions, &out.Versions *out = make([]APIVersionDiscovery, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIGroupDiscovery. func (in *APIGroupDiscovery) DeepCopy() *APIGroupDiscovery { if in == nil { return nil } out := new(APIGroupDiscovery) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *APIGroupDiscovery) 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 *APIGroupDiscoveryList) DeepCopyInto(out *APIGroupDiscoveryList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]APIGroupDiscovery, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIGroupDiscoveryList. func (in *APIGroupDiscoveryList) DeepCopy() *APIGroupDiscoveryList { if in == nil { return nil } out := new(APIGroupDiscoveryList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *APIGroupDiscoveryList) 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 *APIResourceDiscovery) DeepCopyInto(out *APIResourceDiscovery) { *out = *in if in.ResponseKind != nil { in, out := &in.ResponseKind, &out.ResponseKind *out = new(v1.GroupVersionKind) **out = **in } if in.Verbs != nil { in, out := &in.Verbs, &out.Verbs *out = make([]string, 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) } if in.Subresources != nil { in, out := &in.Subresources, &out.Subresources *out = make([]APISubresourceDiscovery, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIResourceDiscovery. func (in *APIResourceDiscovery) DeepCopy() *APIResourceDiscovery { if in == nil { return nil } out := new(APIResourceDiscovery) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *APISubresourceDiscovery) DeepCopyInto(out *APISubresourceDiscovery) { *out = *in if in.ResponseKind != nil { in, out := &in.ResponseKind, &out.ResponseKind *out = new(v1.GroupVersionKind) **out = **in } if in.AcceptedTypes != nil { in, out := &in.AcceptedTypes, &out.AcceptedTypes *out = make([]v1.GroupVersionKind, len(*in)) copy(*out, *in) } if in.Verbs != nil { in, out := &in.Verbs, &out.Verbs *out = make([]string, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APISubresourceDiscovery. func (in *APISubresourceDiscovery) DeepCopy() *APISubresourceDiscovery { if in == nil { return nil } out := new(APISubresourceDiscovery) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *APIVersionDiscovery) DeepCopyInto(out *APIVersionDiscovery) { *out = *in if in.Resources != nil { in, out := &in.Resources, &out.Resources *out = make([]APIResourceDiscovery, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIVersionDiscovery. func (in *APIVersionDiscovery) DeepCopy() *APIVersionDiscovery { if in == nil { return nil } out := new(APIVersionDiscovery) in.DeepCopyInto(out) return out } golang-k8s-api-0.29.0/apidiscovery/v2beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000057271453636404600274110ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v2beta1 // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *APIGroupDiscovery) APILifecycleIntroduced() (major, minor int) { return 1, 26 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *APIGroupDiscovery) APILifecycleDeprecated() (major, minor int) { return 1, 32 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *APIGroupDiscovery) APILifecycleRemoved() (major, minor int) { return 1, 35 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *APIGroupDiscoveryList) APILifecycleIntroduced() (major, minor int) { return 1, 26 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *APIGroupDiscoveryList) APILifecycleDeprecated() (major, minor int) { return 1, 32 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *APIGroupDiscoveryList) APILifecycleRemoved() (major, minor int) { return 1, 35 } golang-k8s-api-0.29.0/apiserverinternal/000077500000000000000000000000001453636404600200735ustar00rootroot00000000000000golang-k8s-api-0.29.0/apiserverinternal/v1alpha1/000077500000000000000000000000001453636404600215105ustar00rootroot00000000000000golang-k8s-api-0.29.0/apiserverinternal/v1alpha1/doc.go000066400000000000000000000015361453636404600226110ustar00rootroot00000000000000/* 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=internal.apiserver.k8s.io // Package v1alpha1 contains the v1alpha1 version of the API used by the // apiservers themselves. package v1alpha1 // import "k8s.io/api/apiserverinternal/v1alpha1" golang-k8s-api-0.29.0/apiserverinternal/v1alpha1/generated.pb.go000066400000000000000000001325721453636404600244070ustar00rootroot00000000000000/* 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/k8s.io/api/apiserverinternal/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *ServerStorageVersion) Reset() { *m = ServerStorageVersion{} } func (*ServerStorageVersion) ProtoMessage() {} func (*ServerStorageVersion) Descriptor() ([]byte, []int) { return fileDescriptor_a3903ff5e3cc7a03, []int{0} } func (m *ServerStorageVersion) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ServerStorageVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ServerStorageVersion) XXX_Merge(src proto.Message) { xxx_messageInfo_ServerStorageVersion.Merge(m, src) } func (m *ServerStorageVersion) XXX_Size() int { return m.Size() } func (m *ServerStorageVersion) XXX_DiscardUnknown() { xxx_messageInfo_ServerStorageVersion.DiscardUnknown(m) } var xxx_messageInfo_ServerStorageVersion proto.InternalMessageInfo func (m *StorageVersion) Reset() { *m = StorageVersion{} } func (*StorageVersion) ProtoMessage() {} func (*StorageVersion) Descriptor() ([]byte, []int) { return fileDescriptor_a3903ff5e3cc7a03, []int{1} } func (m *StorageVersion) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StorageVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *StorageVersion) XXX_Merge(src proto.Message) { xxx_messageInfo_StorageVersion.Merge(m, src) } func (m *StorageVersion) XXX_Size() int { return m.Size() } func (m *StorageVersion) XXX_DiscardUnknown() { xxx_messageInfo_StorageVersion.DiscardUnknown(m) } var xxx_messageInfo_StorageVersion proto.InternalMessageInfo func (m *StorageVersionCondition) Reset() { *m = StorageVersionCondition{} } func (*StorageVersionCondition) ProtoMessage() {} func (*StorageVersionCondition) Descriptor() ([]byte, []int) { return fileDescriptor_a3903ff5e3cc7a03, []int{2} } func (m *StorageVersionCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StorageVersionCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *StorageVersionCondition) XXX_Merge(src proto.Message) { xxx_messageInfo_StorageVersionCondition.Merge(m, src) } func (m *StorageVersionCondition) XXX_Size() int { return m.Size() } func (m *StorageVersionCondition) XXX_DiscardUnknown() { xxx_messageInfo_StorageVersionCondition.DiscardUnknown(m) } var xxx_messageInfo_StorageVersionCondition proto.InternalMessageInfo func (m *StorageVersionList) Reset() { *m = StorageVersionList{} } func (*StorageVersionList) ProtoMessage() {} func (*StorageVersionList) Descriptor() ([]byte, []int) { return fileDescriptor_a3903ff5e3cc7a03, []int{3} } func (m *StorageVersionList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StorageVersionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *StorageVersionList) XXX_Merge(src proto.Message) { xxx_messageInfo_StorageVersionList.Merge(m, src) } func (m *StorageVersionList) XXX_Size() int { return m.Size() } func (m *StorageVersionList) XXX_DiscardUnknown() { xxx_messageInfo_StorageVersionList.DiscardUnknown(m) } var xxx_messageInfo_StorageVersionList proto.InternalMessageInfo func (m *StorageVersionSpec) Reset() { *m = StorageVersionSpec{} } func (*StorageVersionSpec) ProtoMessage() {} func (*StorageVersionSpec) Descriptor() ([]byte, []int) { return fileDescriptor_a3903ff5e3cc7a03, []int{4} } func (m *StorageVersionSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StorageVersionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *StorageVersionSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_StorageVersionSpec.Merge(m, src) } func (m *StorageVersionSpec) XXX_Size() int { return m.Size() } func (m *StorageVersionSpec) XXX_DiscardUnknown() { xxx_messageInfo_StorageVersionSpec.DiscardUnknown(m) } var xxx_messageInfo_StorageVersionSpec proto.InternalMessageInfo func (m *StorageVersionStatus) Reset() { *m = StorageVersionStatus{} } func (*StorageVersionStatus) ProtoMessage() {} func (*StorageVersionStatus) Descriptor() ([]byte, []int) { return fileDescriptor_a3903ff5e3cc7a03, []int{5} } func (m *StorageVersionStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StorageVersionStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *StorageVersionStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_StorageVersionStatus.Merge(m, src) } func (m *StorageVersionStatus) XXX_Size() int { return m.Size() } func (m *StorageVersionStatus) XXX_DiscardUnknown() { xxx_messageInfo_StorageVersionStatus.DiscardUnknown(m) } var xxx_messageInfo_StorageVersionStatus proto.InternalMessageInfo func init() { proto.RegisterType((*ServerStorageVersion)(nil), "k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion") proto.RegisterType((*StorageVersion)(nil), "k8s.io.api.apiserverinternal.v1alpha1.StorageVersion") proto.RegisterType((*StorageVersionCondition)(nil), "k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition") proto.RegisterType((*StorageVersionList)(nil), "k8s.io.api.apiserverinternal.v1alpha1.StorageVersionList") proto.RegisterType((*StorageVersionSpec)(nil), "k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec") proto.RegisterType((*StorageVersionStatus)(nil), "k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/apiserverinternal/v1alpha1/generated.proto", fileDescriptor_a3903ff5e3cc7a03) } var fileDescriptor_a3903ff5e3cc7a03 = []byte{ // 790 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0x41, 0x4f, 0xdb, 0x48, 0x14, 0x8e, 0x49, 0x08, 0x30, 0xd9, 0x4d, 0x96, 0x59, 0x10, 0xd9, 0xac, 0xe4, 0xb0, 0x91, 0x58, 0xb1, 0xbb, 0x5a, 0x7b, 0x89, 0x96, 0xaa, 0xb4, 0x52, 0x2b, 0x0c, 0xa8, 0xa2, 0x85, 0x52, 0x4d, 0x50, 0x0f, 0xb4, 0x87, 0x4e, 0xec, 0xa9, 0xe3, 0x26, 0xf6, 0x58, 0x9e, 0x49, 0x24, 0x2e, 0x55, 0x7f, 0x42, 0xfb, 0x3f, 0x7a, 0xec, 0x8f, 0xe0, 0x54, 0x71, 0x44, 0xaa, 0x14, 0x15, 0xf7, 0x5f, 0x70, 0xaa, 0x66, 0xec, 0x38, 0x38, 0x09, 0x6a, 0xc4, 0x21, 0x52, 0xe6, 0xbd, 0xf7, 0x7d, 0xef, 0xcd, 0x37, 0xdf, 0x8c, 0xc1, 0xd3, 0xf6, 0x5d, 0xa6, 0x39, 0x54, 0x6f, 0x77, 0x9b, 0x24, 0xf0, 0x08, 0x27, 0x4c, 0xef, 0x11, 0xcf, 0xa2, 0x81, 0x1e, 0x27, 0xb0, 0xef, 0x88, 0x1f, 0x23, 0x41, 0x8f, 0x04, 0x8e, 0xc7, 0x49, 0xe0, 0xe1, 0x8e, 0xde, 0xdb, 0xc0, 0x1d, 0xbf, 0x85, 0x37, 0x74, 0x9b, 0x78, 0x24, 0xc0, 0x9c, 0x58, 0x9a, 0x1f, 0x50, 0x4e, 0xe1, 0x5a, 0x04, 0xd3, 0xb0, 0xef, 0x68, 0x63, 0x30, 0x6d, 0x00, 0xab, 0xfc, 0x6b, 0x3b, 0xbc, 0xd5, 0x6d, 0x6a, 0x26, 0x75, 0x75, 0x9b, 0xda, 0x54, 0x97, 0xe8, 0x66, 0xf7, 0xb5, 0x5c, 0xc9, 0x85, 0xfc, 0x17, 0xb1, 0x56, 0xfe, 0x1f, 0x0e, 0xe3, 0x62, 0xb3, 0xe5, 0x78, 0x24, 0x38, 0xd5, 0xfd, 0xb6, 0x2d, 0x27, 0xd3, 0x5d, 0xc2, 0xb1, 0xde, 0x1b, 0x9b, 0xa5, 0xa2, 0xdf, 0x84, 0x0a, 0xba, 0x1e, 0x77, 0x5c, 0x32, 0x06, 0xb8, 0xf3, 0x23, 0x00, 0x33, 0x5b, 0xc4, 0xc5, 0xa3, 0xb8, 0xda, 0x87, 0x19, 0xb0, 0xd4, 0x90, 0x3b, 0x6d, 0x70, 0x1a, 0x60, 0x9b, 0x3c, 0x27, 0x01, 0x73, 0xa8, 0x07, 0x37, 0x41, 0x01, 0xfb, 0x4e, 0x94, 0xda, 0xdf, 0x2d, 0x2b, 0xab, 0xca, 0xfa, 0x82, 0xf1, 0xeb, 0x59, 0xbf, 0x9a, 0x09, 0xfb, 0xd5, 0xc2, 0xf6, 0xb3, 0xfd, 0x41, 0x0a, 0x5d, 0xaf, 0x83, 0xdb, 0xa0, 0x44, 0x3c, 0x93, 0x5a, 0x8e, 0x67, 0xc7, 0x4c, 0xe5, 0x19, 0x09, 0x5d, 0x89, 0xa1, 0xa5, 0xbd, 0x74, 0x1a, 0x8d, 0xd6, 0xc3, 0x1d, 0xb0, 0x68, 0x11, 0x93, 0x5a, 0xb8, 0xd9, 0x19, 0x4c, 0xc3, 0xca, 0xd9, 0xd5, 0xec, 0xfa, 0x82, 0xb1, 0x1c, 0xf6, 0xab, 0x8b, 0xbb, 0xa3, 0x49, 0x34, 0x5e, 0x0f, 0xef, 0x81, 0xa2, 0x3c, 0x40, 0x2b, 0x61, 0xc8, 0x49, 0x06, 0x18, 0xf6, 0xab, 0xc5, 0x46, 0x2a, 0x83, 0x46, 0x2a, 0x6b, 0x9f, 0x66, 0x40, 0x71, 0x44, 0x8d, 0x57, 0x60, 0x5e, 0x1c, 0x95, 0x85, 0x39, 0x96, 0x52, 0x14, 0xea, 0xff, 0x69, 0x43, 0xbb, 0x24, 0x8a, 0x6b, 0x7e, 0xdb, 0x96, 0xde, 0xd1, 0x44, 0xb5, 0xd6, 0xdb, 0xd0, 0x8e, 0x9a, 0x6f, 0x88, 0xc9, 0x0f, 0x09, 0xc7, 0x06, 0x8c, 0x15, 0x00, 0xc3, 0x18, 0x4a, 0x58, 0xe1, 0x0b, 0x90, 0x63, 0x3e, 0x31, 0xa5, 0x5a, 0x85, 0xfa, 0x96, 0x36, 0x95, 0x19, 0xb5, 0xf4, 0x98, 0x0d, 0x9f, 0x98, 0xc6, 0x4f, 0x71, 0x9b, 0x9c, 0x58, 0x21, 0x49, 0x0a, 0x4d, 0x90, 0x67, 0x1c, 0xf3, 0xae, 0xd0, 0x51, 0xd0, 0xdf, 0xbf, 0x1d, 0xbd, 0xa4, 0x30, 0x8a, 0x71, 0x83, 0x7c, 0xb4, 0x46, 0x31, 0x75, 0xed, 0x63, 0x16, 0xac, 0xa4, 0x01, 0x3b, 0xd4, 0xb3, 0x1c, 0x2e, 0xf4, 0x7b, 0x08, 0x72, 0xfc, 0xd4, 0x27, 0xb1, 0x8d, 0xfe, 0x19, 0x8c, 0x78, 0x7c, 0xea, 0x93, 0xab, 0x7e, 0xf5, 0xf7, 0x1b, 0x60, 0x22, 0x8d, 0x24, 0x10, 0x6e, 0x25, 0x3b, 0x88, 0xec, 0xf4, 0x47, 0x7a, 0x88, 0xab, 0x7e, 0xb5, 0x94, 0xc0, 0xd2, 0x73, 0xc1, 0xc7, 0x00, 0xd2, 0x66, 0x74, 0xc4, 0x8f, 0x22, 0xf7, 0x0b, 0x57, 0x0a, 0x21, 0xb2, 0x46, 0x25, 0xa6, 0x81, 0x47, 0x63, 0x15, 0x68, 0x02, 0x0a, 0xf6, 0x00, 0xec, 0x60, 0xc6, 0x8f, 0x03, 0xec, 0xb1, 0x68, 0x44, 0xc7, 0x25, 0xe5, 0x9c, 0x14, 0xf5, 0xef, 0xe9, 0x1c, 0x21, 0x10, 0xc3, 0xbe, 0x07, 0x63, 0x6c, 0x68, 0x42, 0x07, 0xf8, 0x27, 0xc8, 0x07, 0x04, 0x33, 0xea, 0x95, 0x67, 0xe5, 0xf6, 0x93, 0x33, 0x40, 0x32, 0x8a, 0xe2, 0x2c, 0xfc, 0x0b, 0xcc, 0xb9, 0x84, 0x31, 0x6c, 0x93, 0x72, 0x5e, 0x16, 0x96, 0xe2, 0xc2, 0xb9, 0xc3, 0x28, 0x8c, 0x06, 0xf9, 0xda, 0x67, 0x05, 0xc0, 0xb4, 0xee, 0x07, 0x0e, 0xe3, 0xf0, 0xe5, 0x98, 0xd3, 0xb5, 0xe9, 0xf6, 0x25, 0xd0, 0xd2, 0xe7, 0xbf, 0xc4, 0x2d, 0xe7, 0x07, 0x91, 0x6b, 0x2e, 0x3f, 0x01, 0xb3, 0x0e, 0x27, 0xae, 0x38, 0xc5, 0xec, 0x7a, 0xa1, 0xbe, 0x79, 0x2b, 0x1f, 0x1a, 0x3f, 0xc7, 0x1d, 0x66, 0xf7, 0x05, 0x17, 0x8a, 0x28, 0x6b, 0x4b, 0xa3, 0xfb, 0x11, 0x17, 0xa0, 0xf6, 0x45, 0x3c, 0x70, 0x13, 0x6c, 0x0c, 0xdf, 0x82, 0x12, 0x4b, 0xc5, 0x59, 0x59, 0x91, 0x43, 0x4d, 0x7d, 0x39, 0x26, 0x3c, 0x9b, 0xc3, 0x67, 0x2e, 0x1d, 0x67, 0x68, 0xb4, 0x19, 0x3c, 0x02, 0xcb, 0x26, 0x75, 0x5d, 0xea, 0xed, 0x4d, 0x7c, 0x2f, 0x7f, 0x0b, 0xfb, 0xd5, 0xe5, 0x9d, 0x49, 0x05, 0x68, 0x32, 0x0e, 0x06, 0x00, 0x98, 0x83, 0x2b, 0x10, 0x3d, 0x98, 0x85, 0xfa, 0x83, 0x5b, 0x09, 0x9c, 0xdc, 0xa4, 0xe1, 0x9b, 0x95, 0x84, 0x18, 0xba, 0xd6, 0xc5, 0x78, 0x72, 0x76, 0xa9, 0x66, 0xce, 0x2f, 0xd5, 0xcc, 0xc5, 0xa5, 0x9a, 0x79, 0x17, 0xaa, 0xca, 0x59, 0xa8, 0x2a, 0xe7, 0xa1, 0xaa, 0x5c, 0x84, 0xaa, 0xf2, 0x35, 0x54, 0x95, 0xf7, 0xdf, 0xd4, 0xcc, 0xc9, 0xda, 0x54, 0x1f, 0xe4, 0xef, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa0, 0x3a, 0x2e, 0x07, 0xd1, 0x07, 0x00, 0x00, } func (m *ServerStorageVersion) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ServerStorageVersion) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ServerStorageVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.ServedVersions) > 0 { for iNdEx := len(m.ServedVersions) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.ServedVersions[iNdEx]) copy(dAtA[i:], m.ServedVersions[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServedVersions[iNdEx]))) i-- dAtA[i] = 0x22 } } if len(m.DecodableVersions) > 0 { for iNdEx := len(m.DecodableVersions) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.DecodableVersions[iNdEx]) copy(dAtA[i:], m.DecodableVersions[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(m.DecodableVersions[iNdEx]))) i-- dAtA[i] = 0x1a } } i -= len(m.EncodingVersion) copy(dAtA[i:], m.EncodingVersion) i = encodeVarintGenerated(dAtA, i, uint64(len(m.EncodingVersion))) i-- dAtA[i] = 0x12 i -= len(m.APIServerID) copy(dAtA[i:], m.APIServerID) i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIServerID))) i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *StorageVersion) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *StorageVersion) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StorageVersion) 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 *StorageVersionCondition) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *StorageVersionCondition) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StorageVersionCondition) 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 = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) i-- dAtA[i] = 0x18 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 *StorageVersionList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *StorageVersionList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StorageVersionList) 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 *StorageVersionSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *StorageVersionSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StorageVersionSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l return len(dAtA) - i, nil } func (m *StorageVersionStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *StorageVersionStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StorageVersionStatus) 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] = 0x1a } } if m.CommonEncodingVersion != nil { i -= len(*m.CommonEncodingVersion) copy(dAtA[i:], *m.CommonEncodingVersion) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.CommonEncodingVersion))) i-- dAtA[i] = 0x12 } if len(m.StorageVersions) > 0 { for iNdEx := len(m.StorageVersions) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.StorageVersions[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 *ServerStorageVersion) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.APIServerID) n += 1 + l + sovGenerated(uint64(l)) l = len(m.EncodingVersion) n += 1 + l + sovGenerated(uint64(l)) if len(m.DecodableVersions) > 0 { for _, s := range m.DecodableVersions { l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } if len(m.ServedVersions) > 0 { for _, s := range m.ServedVersions { l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *StorageVersion) 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 *StorageVersionCondition) 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)) n += 1 + sovGenerated(uint64(m.ObservedGeneration)) 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 *StorageVersionList) 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 *StorageVersionSpec) Size() (n int) { if m == nil { return 0 } var l int _ = l return n } func (m *StorageVersionStatus) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.StorageVersions) > 0 { for _, e := range m.StorageVersions { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } if m.CommonEncodingVersion != nil { l = len(*m.CommonEncodingVersion) 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 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 *ServerStorageVersion) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ServerStorageVersion{`, `APIServerID:` + fmt.Sprintf("%v", this.APIServerID) + `,`, `EncodingVersion:` + fmt.Sprintf("%v", this.EncodingVersion) + `,`, `DecodableVersions:` + fmt.Sprintf("%v", this.DecodableVersions) + `,`, `ServedVersions:` + fmt.Sprintf("%v", this.ServedVersions) + `,`, `}`, }, "") return s } func (this *StorageVersion) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&StorageVersion{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "StorageVersionSpec", "StorageVersionSpec", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "StorageVersionStatus", "StorageVersionStatus", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *StorageVersionCondition) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&StorageVersionCondition{`, `Type:` + fmt.Sprintf("%v", this.Type) + `,`, `Status:` + fmt.Sprintf("%v", this.Status) + `,`, `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, `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 *StorageVersionList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]StorageVersion{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "StorageVersion", "StorageVersion", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&StorageVersionList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *StorageVersionSpec) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&StorageVersionSpec{`, `}`, }, "") return s } func (this *StorageVersionStatus) String() string { if this == nil { return "nil" } repeatedStringForStorageVersions := "[]ServerStorageVersion{" for _, f := range this.StorageVersions { repeatedStringForStorageVersions += strings.Replace(strings.Replace(f.String(), "ServerStorageVersion", "ServerStorageVersion", 1), `&`, ``, 1) + "," } repeatedStringForStorageVersions += "}" repeatedStringForConditions := "[]StorageVersionCondition{" for _, f := range this.Conditions { repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "StorageVersionCondition", "StorageVersionCondition", 1), `&`, ``, 1) + "," } repeatedStringForConditions += "}" s := strings.Join([]string{`&StorageVersionStatus{`, `StorageVersions:` + repeatedStringForStorageVersions + `,`, `CommonEncodingVersion:` + valueToStringGenerated(this.CommonEncodingVersion) + `,`, `Conditions:` + repeatedStringForConditions + `,`, `}`, }, "") 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 *ServerStorageVersion) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ServerStorageVersion: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ServerStorageVersion: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field APIServerID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.APIServerID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field EncodingVersion", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.EncodingVersion = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DecodableVersions", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.DecodableVersions = append(m.DecodableVersions, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ServedVersions", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ServedVersions = append(m.ServedVersions, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StorageVersion) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: StorageVersion: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StorageVersion: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StorageVersionCondition) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: StorageVersionCondition: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StorageVersionCondition: 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 = StorageVersionConditionType(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 != 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 != 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StorageVersionList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: StorageVersionList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StorageVersionList: 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, StorageVersion{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StorageVersionSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: StorageVersionSpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StorageVersionSpec: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StorageVersionStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: StorageVersionStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StorageVersionStatus: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field StorageVersions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.StorageVersions = append(m.StorageVersions, ServerStorageVersion{}) if err := m.StorageVersions[len(m.StorageVersions)-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 CommonEncodingVersion", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.CommonEncodingVersion = &s iNdEx = postIndex case 3: 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, StorageVersionCondition{}) 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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/apiserverinternal/v1alpha1/generated.proto000066400000000000000000000104651453636404600245410ustar00rootroot00000000000000/* 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.apiserverinternal.v1alpha1; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/apiserverinternal/v1alpha1"; // An API server instance reports the version it can decode and the version it // encodes objects to when persisting objects in the backend. message ServerStorageVersion { // The ID of the reporting API server. optional string apiServerID = 1; // The API server encodes the object to this version when persisting it in // the backend (e.g., etcd). optional string encodingVersion = 2; // The API server can decode objects encoded in these versions. // The encodingVersion must be included in the decodableVersions. // +listType=set repeated string decodableVersions = 3; // The API server can serve these versions. // DecodableVersions must include all ServedVersions. // +listType=set repeated string servedVersions = 4; } // Storage version of a specific resource. message StorageVersion { // The name is .. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; // Spec is an empty spec. It is here to comply with Kubernetes API style. optional StorageVersionSpec spec = 2; // API server instances report the version they can decode and the version they // encode objects to when persisting objects in the backend. optional StorageVersionStatus status = 3; } // Describes the state of the storageVersion at a certain point. message StorageVersionCondition { // Type of the condition. // +required optional string type = 1; // Status of the condition, one of True, False, Unknown. // +required optional string status = 2; // If set, this represents the .metadata.generation that the condition was set based upon. // +optional optional int64 observedGeneration = 3; // Last time the condition transitioned from one status to another. // +required optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; // The reason for the condition's last transition. // +required optional string reason = 5; // A human readable message indicating details about the transition. // +required optional string message = 6; } // A list of StorageVersions. message StorageVersionList { // 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 holds a list of StorageVersion repeated StorageVersion items = 2; } // StorageVersionSpec is an empty spec. message StorageVersionSpec { } // API server instances report the versions they can decode and the version they // encode objects to when persisting objects in the backend. message StorageVersionStatus { // The reported versions per API server instance. // +optional // +listType=map // +listMapKey=apiServerID repeated ServerStorageVersion storageVersions = 1; // If all API server instances agree on the same encoding storage version, // then this field is set to that version. Otherwise this field is left empty. // API servers should finish updating its storageVersionStatus entry before // serving write operations, so that this field will be in sync with the reality. // +optional optional string commonEncodingVersion = 2; // The latest available observations of the storageVersion's state. // +optional // +listType=map // +listMapKey=type repeated StorageVersionCondition conditions = 3; } golang-k8s-api-0.29.0/apiserverinternal/v1alpha1/register.go000066400000000000000000000027421453636404600236700ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "internal.apiserver.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 ) func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &StorageVersion{}, &StorageVersionList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/apiserverinternal/v1alpha1/types.go000066400000000000000000000126251453636404600232110ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // Storage version of a specific resource. type StorageVersion struct { metav1.TypeMeta `json:",inline"` // The name is .. metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec is an empty spec. It is here to comply with Kubernetes API style. Spec StorageVersionSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // API server instances report the version they can decode and the version they // encode objects to when persisting objects in the backend. Status StorageVersionStatus `json:"status" protobuf:"bytes,3,opt,name=status"` } // StorageVersionSpec is an empty spec. type StorageVersionSpec struct{} // API server instances report the versions they can decode and the version they // encode objects to when persisting objects in the backend. type StorageVersionStatus struct { // The reported versions per API server instance. // +optional // +listType=map // +listMapKey=apiServerID StorageVersions []ServerStorageVersion `json:"storageVersions,omitempty" protobuf:"bytes,1,opt,name=storageVersions"` // If all API server instances agree on the same encoding storage version, // then this field is set to that version. Otherwise this field is left empty. // API servers should finish updating its storageVersionStatus entry before // serving write operations, so that this field will be in sync with the reality. // +optional CommonEncodingVersion *string `json:"commonEncodingVersion,omitempty" protobuf:"bytes,2,opt,name=commonEncodingVersion"` // The latest available observations of the storageVersion's state. // +optional // +listType=map // +listMapKey=type Conditions []StorageVersionCondition `json:"conditions,omitempty" protobuf:"bytes,3,opt,name=conditions"` } // An API server instance reports the version it can decode and the version it // encodes objects to when persisting objects in the backend. type ServerStorageVersion struct { // The ID of the reporting API server. APIServerID string `json:"apiServerID,omitempty" protobuf:"bytes,1,opt,name=apiServerID"` // The API server encodes the object to this version when persisting it in // the backend (e.g., etcd). EncodingVersion string `json:"encodingVersion,omitempty" protobuf:"bytes,2,opt,name=encodingVersion"` // The API server can decode objects encoded in these versions. // The encodingVersion must be included in the decodableVersions. // +listType=set DecodableVersions []string `json:"decodableVersions,omitempty" protobuf:"bytes,3,opt,name=decodableVersions"` // The API server can serve these versions. // DecodableVersions must include all ServedVersions. // +listType=set ServedVersions []string `json:"servedVersions,omitempty" protobuf:"bytes,4,opt,name=servedVersions"` } type StorageVersionConditionType string const ( // Indicates that encoding storage versions reported by all servers are equal. AllEncodingVersionsEqual StorageVersionConditionType = "AllEncodingVersionsEqual" ) type ConditionStatus string const ( ConditionTrue ConditionStatus = "True" ConditionFalse ConditionStatus = "False" ConditionUnknown ConditionStatus = "Unknown" ) // Describes the state of the storageVersion at a certain point. type StorageVersionCondition struct { // Type of the condition. // +required Type StorageVersionConditionType `json:"type" protobuf:"bytes,1,opt,name=type"` // Status of the condition, one of True, False, Unknown. // +required Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status"` // If set, this represents the .metadata.generation that the condition was set based upon. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"` // Last time the condition transitioned from one status to another. // +required LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"` // The reason for the condition's last transition. // +required Reason string `json:"reason" protobuf:"bytes,5,opt,name=reason"` // A human readable message indicating details about the transition. // +required Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // A list of StorageVersions. type StorageVersionList 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 holds a list of StorageVersion Items []StorageVersion `json:"items" protobuf:"bytes,2,rep,name=items"` } golang-k8s-api-0.29.0/apiserverinternal/v1alpha1/types_swagger_doc_generated.go000066400000000000000000000107451453636404600275740ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_ServerStorageVersion = map[string]string{ "": "An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.", "apiServerID": "The ID of the reporting API server.", "encodingVersion": "The API server encodes the object to this version when persisting it in the backend (e.g., etcd).", "decodableVersions": "The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.", "servedVersions": "The API server can serve these versions. DecodableVersions must include all ServedVersions.", } func (ServerStorageVersion) SwaggerDoc() map[string]string { return map_ServerStorageVersion } var map_StorageVersion = map[string]string{ "": "Storage version of a specific resource.", "metadata": "The name is ..", "spec": "Spec is an empty spec. It is here to comply with Kubernetes API style.", "status": "API server instances report the version they can decode and the version they encode objects to when persisting objects in the backend.", } func (StorageVersion) SwaggerDoc() map[string]string { return map_StorageVersion } var map_StorageVersionCondition = map[string]string{ "": "Describes the state of the storageVersion at a certain point.", "type": "Type of the condition.", "status": "Status of the condition, one of True, False, Unknown.", "observedGeneration": "If set, this represents the .metadata.generation that the condition was set based upon.", "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 (StorageVersionCondition) SwaggerDoc() map[string]string { return map_StorageVersionCondition } var map_StorageVersionList = map[string]string{ "": "A list of StorageVersions.", "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "items": "Items holds a list of StorageVersion", } func (StorageVersionList) SwaggerDoc() map[string]string { return map_StorageVersionList } var map_StorageVersionSpec = map[string]string{ "": "StorageVersionSpec is an empty spec.", } func (StorageVersionSpec) SwaggerDoc() map[string]string { return map_StorageVersionSpec } var map_StorageVersionStatus = map[string]string{ "": "API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend.", "storageVersions": "The reported versions per API server instance.", "commonEncodingVersion": "If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality.", "conditions": "The latest available observations of the storageVersion's state.", } func (StorageVersionStatus) SwaggerDoc() map[string]string { return map_StorageVersionStatus } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/apiserverinternal/v1alpha1/zz_generated.deepcopy.go000066400000000000000000000124101453636404600263250ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServerStorageVersion) DeepCopyInto(out *ServerStorageVersion) { *out = *in if in.DecodableVersions != nil { in, out := &in.DecodableVersions, &out.DecodableVersions *out = make([]string, len(*in)) copy(*out, *in) } if in.ServedVersions != nil { in, out := &in.ServedVersions, &out.ServedVersions *out = make([]string, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerStorageVersion. func (in *ServerStorageVersion) DeepCopy() *ServerStorageVersion { if in == nil { return nil } out := new(ServerStorageVersion) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *StorageVersion) DeepCopyInto(out *StorageVersion) { *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 StorageVersion. func (in *StorageVersion) DeepCopy() *StorageVersion { if in == nil { return nil } out := new(StorageVersion) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *StorageVersion) 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 *StorageVersionCondition) DeepCopyInto(out *StorageVersionCondition) { *out = *in in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageVersionCondition. func (in *StorageVersionCondition) DeepCopy() *StorageVersionCondition { if in == nil { return nil } out := new(StorageVersionCondition) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *StorageVersionList) DeepCopyInto(out *StorageVersionList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]StorageVersion, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageVersionList. func (in *StorageVersionList) DeepCopy() *StorageVersionList { if in == nil { return nil } out := new(StorageVersionList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *StorageVersionList) 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 *StorageVersionSpec) DeepCopyInto(out *StorageVersionSpec) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageVersionSpec. func (in *StorageVersionSpec) DeepCopy() *StorageVersionSpec { if in == nil { return nil } out := new(StorageVersionSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *StorageVersionStatus) DeepCopyInto(out *StorageVersionStatus) { *out = *in if in.StorageVersions != nil { in, out := &in.StorageVersions, &out.StorageVersions *out = make([]ServerStorageVersion, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.CommonEncodingVersion != nil { in, out := &in.CommonEncodingVersion, &out.CommonEncodingVersion *out = new(string) **out = **in } if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]StorageVersionCondition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageVersionStatus. func (in *StorageVersionStatus) DeepCopy() *StorageVersionStatus { if in == nil { return nil } out := new(StorageVersionStatus) in.DeepCopyInto(out) return out } golang-k8s-api-0.29.0/apps/000077500000000000000000000000001453636404600153015ustar00rootroot00000000000000golang-k8s-api-0.29.0/apps/OWNERS000066400000000000000000000002751453636404600162450ustar00rootroot00000000000000# See the OWNERS docs at https://go.k8s.io/owners # approval on api packages bubbles to api-approvers reviewers: - sig-apps-api-reviewers - sig-apps-api-approvers labels: - sig/apps golang-k8s-api-0.29.0/apps/v1/000077500000000000000000000000001453636404600156275ustar00rootroot00000000000000golang-k8s-api-0.29.0/apps/v1/doc.go000066400000000000000000000012711453636404600167240ustar00rootroot00000000000000/* 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 "k8s.io/api/apps/v1" golang-k8s-api-0.29.0/apps/v1/generated.pb.go000066400000000000000000006623321453636404600205300ustar00rootroot00000000000000/* 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/k8s.io/api/apps/v1/generated.proto package v1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" k8s_io_api_core_v1 "k8s.io/api/core/v1" v11 "k8s.io/api/core/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" math "math" math_bits "math/bits" reflect "reflect" strings "strings" intstr "k8s.io/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.GoGoProtoPackageIsVersion3 // 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 *StatefulSetOrdinals) Reset() { *m = StatefulSetOrdinals{} } func (*StatefulSetOrdinals) ProtoMessage() {} func (*StatefulSetOrdinals) Descriptor() ([]byte, []int) { return fileDescriptor_e1014cab6f31e43b, []int{25} } func (m *StatefulSetOrdinals) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StatefulSetOrdinals) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *StatefulSetOrdinals) XXX_Merge(src proto.Message) { xxx_messageInfo_StatefulSetOrdinals.Merge(m, src) } func (m *StatefulSetOrdinals) XXX_Size() int { return m.Size() } func (m *StatefulSetOrdinals) XXX_DiscardUnknown() { xxx_messageInfo_StatefulSetOrdinals.DiscardUnknown(m) } var xxx_messageInfo_StatefulSetOrdinals proto.InternalMessageInfo func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) Reset() { *m = StatefulSetPersistentVolumeClaimRetentionPolicy{} } func (*StatefulSetPersistentVolumeClaimRetentionPolicy) ProtoMessage() {} func (*StatefulSetPersistentVolumeClaimRetentionPolicy) Descriptor() ([]byte, []int) { return fileDescriptor_e1014cab6f31e43b, []int{26} } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_Merge(src proto.Message) { xxx_messageInfo_StatefulSetPersistentVolumeClaimRetentionPolicy.Merge(m, src) } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_Size() int { return m.Size() } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_DiscardUnknown() { xxx_messageInfo_StatefulSetPersistentVolumeClaimRetentionPolicy.DiscardUnknown(m) } var xxx_messageInfo_StatefulSetPersistentVolumeClaimRetentionPolicy proto.InternalMessageInfo func (m *StatefulSetSpec) Reset() { *m = StatefulSetSpec{} } func (*StatefulSetSpec) ProtoMessage() {} func (*StatefulSetSpec) Descriptor() ([]byte, []int) { return fileDescriptor_e1014cab6f31e43b, []int{27} } 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{28} } 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{29} } 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((*StatefulSetOrdinals)(nil), "k8s.io.api.apps.v1.StatefulSetOrdinals") proto.RegisterType((*StatefulSetPersistentVolumeClaimRetentionPolicy)(nil), "k8s.io.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy") 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/k8s.io/api/apps/v1/generated.proto", fileDescriptor_e1014cab6f31e43b) } var fileDescriptor_e1014cab6f31e43b = []byte{ // 2211 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0xcd, 0x6f, 0x1b, 0xc7, 0x15, 0xd7, 0xf2, 0x43, 0xa2, 0x86, 0x96, 0x64, 0x8f, 0x54, 0x89, 0xb1, 0x1b, 0xd2, 0xdd, 0xb8, 0xb6, 0x12, 0xc7, 0x64, 0xed, 0x38, 0x41, 0x60, 0x17, 0x09, 0x44, 0x2a, 0x4d, 0xd3, 0xe8, 0xab, 0x43, 0xcb, 0x01, 0xdc, 0xb4, 0xe8, 0x88, 0x1c, 0x53, 0x1b, 0xed, 0x17, 0x76, 0x87, 0x8a, 0x89, 0x5e, 0x8a, 0x02, 0xbd, 0xf5, 0xd0, 0xbf, 0xa1, 0xff, 0x40, 0x51, 0x14, 0xcd, 0x2d, 0x08, 0x82, 0x5e, 0x7c, 0x29, 0x10, 0xf4, 0xd2, 0x9c, 0x88, 0x9a, 0x39, 0x15, 0x45, 0x6f, 0xed, 0xc5, 0x97, 0x16, 0x33, 0x3b, 0xfb, 0x3d, 0x2b, 0x52, 0x72, 0xac, 0x34, 0x81, 0x6f, 0xdc, 0x99, 0xdf, 0xfb, 0xed, 0x9b, 0x99, 0xf7, 0xe6, 0xfd, 0x66, 0x96, 0xe0, 0xf6, 0xc1, 0xeb, 0x6e, 0x5d, 0xb3, 0x1a, 0x07, 0xfd, 0x3d, 0xe2, 0x98, 0x84, 0x12, 0xb7, 0x71, 0x48, 0xcc, 0xae, 0xe5, 0x34, 0x44, 0x07, 0xb6, 0xb5, 0x06, 0xb6, 0x6d, 0xb7, 0x71, 0x78, 0xbd, 0xd1, 0x23, 0x26, 0x71, 0x30, 0x25, 0xdd, 0xba, 0xed, 0x58, 0xd4, 0x82, 0xd0, 0xc3, 0xd4, 0xb1, 0xad, 0xd5, 0x19, 0xa6, 0x7e, 0x78, 0xfd, 0xfc, 0xb5, 0x9e, 0x46, 0xf7, 0xfb, 0x7b, 0xf5, 0x8e, 0x65, 0x34, 0x7a, 0x56, 0xcf, 0x6a, 0x70, 0xe8, 0x5e, 0xff, 0x3e, 0x7f, 0xe2, 0x0f, 0xfc, 0x97, 0x47, 0x71, 0x5e, 0x8d, 0xbc, 0xa6, 0x63, 0x39, 0x44, 0xf2, 0x9a, 0xf3, 0x37, 0x43, 0x8c, 0x81, 0x3b, 0xfb, 0x9a, 0x49, 0x9c, 0x41, 0xc3, 0x3e, 0xe8, 0xb1, 0x06, 0xb7, 0x61, 0x10, 0x8a, 0x65, 0x56, 0x8d, 0x2c, 0x2b, 0xa7, 0x6f, 0x52, 0xcd, 0x20, 0x29, 0x83, 0xd7, 0xc6, 0x19, 0xb8, 0x9d, 0x7d, 0x62, 0xe0, 0x94, 0xdd, 0x2b, 0x59, 0x76, 0x7d, 0xaa, 0xe9, 0x0d, 0xcd, 0xa4, 0x2e, 0x75, 0x92, 0x46, 0xea, 0x7f, 0x14, 0x00, 0x5b, 0x96, 0x49, 0x1d, 0x4b, 0xd7, 0x89, 0x83, 0xc8, 0xa1, 0xe6, 0x6a, 0x96, 0x09, 0x7f, 0x0e, 0x4a, 0x6c, 0x3c, 0x5d, 0x4c, 0x71, 0x45, 0xb9, 0xa8, 0xac, 0x96, 0x6f, 0x7c, 0xaf, 0x1e, 0x4e, 0x72, 0x40, 0x5f, 0xb7, 0x0f, 0x7a, 0xac, 0xc1, 0xad, 0x33, 0x74, 0xfd, 0xf0, 0x7a, 0x7d, 0x7b, 0xef, 0x03, 0xd2, 0xa1, 0x9b, 0x84, 0xe2, 0x26, 0x7c, 0x38, 0xac, 0x4d, 0x8d, 0x86, 0x35, 0x10, 0xb6, 0xa1, 0x80, 0x15, 0x6e, 0x83, 0x02, 0x67, 0xcf, 0x71, 0xf6, 0x6b, 0x99, 0xec, 0x62, 0xd0, 0x75, 0x84, 0x3f, 0x7c, 0xeb, 0x01, 0x25, 0x26, 0x73, 0xaf, 0x79, 0x46, 0x50, 0x17, 0xd6, 0x31, 0xc5, 0x88, 0x13, 0xc1, 0x97, 0x41, 0xc9, 0x11, 0xee, 0x57, 0xf2, 0x17, 0x95, 0xd5, 0x7c, 0xf3, 0xac, 0x40, 0x95, 0xfc, 0x61, 0xa1, 0x00, 0xa1, 0xfe, 0x59, 0x01, 0xcb, 0xe9, 0x71, 0x6f, 0x68, 0x2e, 0x85, 0xef, 0xa7, 0xc6, 0x5e, 0x9f, 0x6c, 0xec, 0xcc, 0x9a, 0x8f, 0x3c, 0x78, 0xb1, 0xdf, 0x12, 0x19, 0xf7, 0xbb, 0xa0, 0xa8, 0x51, 0x62, 0xb8, 0x95, 0xdc, 0xc5, 0xfc, 0x6a, 0xf9, 0xc6, 0xe5, 0x7a, 0x3a, 0x76, 0xeb, 0x69, 0xc7, 0x9a, 0x73, 0x82, 0xb2, 0xf8, 0x0e, 0x33, 0x46, 0x1e, 0x87, 0xfa, 0x5f, 0x05, 0xcc, 0xae, 0x63, 0x62, 0x58, 0x66, 0x9b, 0xd0, 0x53, 0x58, 0xb4, 0x16, 0x28, 0xb8, 0x36, 0xe9, 0x88, 0x45, 0xfb, 0x8e, 0xcc, 0xf7, 0xc0, 0x9d, 0xb6, 0x4d, 0x3a, 0xe1, 0x42, 0xb1, 0x27, 0xc4, 0x8d, 0xe1, 0xbb, 0x60, 0xda, 0xa5, 0x98, 0xf6, 0x5d, 0xbe, 0x4c, 0xe5, 0x1b, 0x2f, 0x1c, 0x4d, 0xc3, 0xa1, 0xcd, 0x79, 0x41, 0x34, 0xed, 0x3d, 0x23, 0x41, 0xa1, 0xfe, 0x23, 0x07, 0x60, 0x80, 0x6d, 0x59, 0x66, 0x57, 0xa3, 0x2c, 0x7e, 0x6f, 0x81, 0x02, 0x1d, 0xd8, 0x84, 0x4f, 0xc3, 0x6c, 0xf3, 0xb2, 0xef, 0xc5, 0x9d, 0x81, 0x4d, 0x1e, 0x0f, 0x6b, 0xcb, 0x69, 0x0b, 0xd6, 0x83, 0xb8, 0x0d, 0xdc, 0x08, 0xfc, 0xcb, 0x71, 0xeb, 0x9b, 0xf1, 0x57, 0x3f, 0x1e, 0xd6, 0x24, 0x9b, 0x45, 0x3d, 0x60, 0x8a, 0x3b, 0x08, 0x0f, 0x01, 0xd4, 0xb1, 0x4b, 0xef, 0x38, 0xd8, 0x74, 0xbd, 0x37, 0x69, 0x06, 0x11, 0x23, 0x7f, 0x69, 0xb2, 0xe5, 0x61, 0x16, 0xcd, 0xf3, 0xc2, 0x0b, 0xb8, 0x91, 0x62, 0x43, 0x92, 0x37, 0xc0, 0xcb, 0x60, 0xda, 0x21, 0xd8, 0xb5, 0xcc, 0x4a, 0x81, 0x8f, 0x22, 0x98, 0x40, 0xc4, 0x5b, 0x91, 0xe8, 0x85, 0x2f, 0x82, 0x19, 0x83, 0xb8, 0x2e, 0xee, 0x91, 0x4a, 0x91, 0x03, 0x17, 0x04, 0x70, 0x66, 0xd3, 0x6b, 0x46, 0x7e, 0xbf, 0xfa, 0x07, 0x05, 0xcc, 0x05, 0x33, 0x77, 0x0a, 0xa9, 0xd2, 0x8c, 0xa7, 0xca, 0xf3, 0x47, 0xc6, 0x49, 0x46, 0x86, 0x7c, 0x92, 0x8f, 0xf8, 0xcc, 0x82, 0x10, 0xfe, 0x14, 0x94, 0x5c, 0xa2, 0x93, 0x0e, 0xb5, 0x1c, 0xe1, 0xf3, 0x2b, 0x13, 0xfa, 0x8c, 0xf7, 0x88, 0xde, 0x16, 0xa6, 0xcd, 0x33, 0xcc, 0x69, 0xff, 0x09, 0x05, 0x94, 0xf0, 0xc7, 0xa0, 0x44, 0x89, 0x61, 0xeb, 0x98, 0x12, 0x91, 0x26, 0xb1, 0xf8, 0x66, 0xe1, 0xc2, 0xc8, 0x76, 0xac, 0xee, 0x1d, 0x01, 0xe3, 0x89, 0x12, 0xcc, 0x83, 0xdf, 0x8a, 0x02, 0x1a, 0x78, 0x00, 0xe6, 0xfb, 0x76, 0x97, 0x21, 0x29, 0xdb, 0xba, 0x7b, 0x03, 0x11, 0x3e, 0x57, 0x8f, 0x9c, 0x90, 0xdd, 0x98, 0x49, 0x73, 0x59, 0xbc, 0x60, 0x3e, 0xde, 0x8e, 0x12, 0xd4, 0x70, 0x0d, 0x2c, 0x18, 0x9a, 0x89, 0x08, 0xee, 0x0e, 0xda, 0xa4, 0x63, 0x99, 0x5d, 0x97, 0x07, 0x50, 0xb1, 0xb9, 0x22, 0x08, 0x16, 0x36, 0xe3, 0xdd, 0x28, 0x89, 0x87, 0x1b, 0x60, 0xc9, 0xdf, 0x67, 0x7f, 0xa8, 0xb9, 0xd4, 0x72, 0x06, 0x1b, 0x9a, 0xa1, 0xd1, 0xca, 0x34, 0xe7, 0xa9, 0x8c, 0x86, 0xb5, 0x25, 0x24, 0xe9, 0x47, 0x52, 0x2b, 0xf5, 0x37, 0xd3, 0x60, 0x21, 0xb1, 0x1b, 0xc0, 0xbb, 0x60, 0xb9, 0xd3, 0x77, 0x1c, 0x62, 0xd2, 0xad, 0xbe, 0xb1, 0x47, 0x9c, 0x76, 0x67, 0x9f, 0x74, 0xfb, 0x3a, 0xe9, 0xf2, 0x15, 0x2d, 0x36, 0xab, 0xc2, 0xd7, 0xe5, 0x96, 0x14, 0x85, 0x32, 0xac, 0xe1, 0x8f, 0x00, 0x34, 0x79, 0xd3, 0xa6, 0xe6, 0xba, 0x01, 0x67, 0x8e, 0x73, 0x06, 0x09, 0xb8, 0x95, 0x42, 0x20, 0x89, 0x15, 0xf3, 0xb1, 0x4b, 0x5c, 0xcd, 0x21, 0xdd, 0xa4, 0x8f, 0xf9, 0xb8, 0x8f, 0xeb, 0x52, 0x14, 0xca, 0xb0, 0x86, 0xaf, 0x82, 0xb2, 0xf7, 0x36, 0x3e, 0xe7, 0x62, 0x71, 0x16, 0x05, 0x59, 0x79, 0x2b, 0xec, 0x42, 0x51, 0x1c, 0x1b, 0x9a, 0xb5, 0xe7, 0x12, 0xe7, 0x90, 0x74, 0xdf, 0xf6, 0x34, 0x00, 0x2b, 0x94, 0x45, 0x5e, 0x28, 0x83, 0xa1, 0x6d, 0xa7, 0x10, 0x48, 0x62, 0xc5, 0x86, 0xe6, 0x45, 0x4d, 0x6a, 0x68, 0xd3, 0xf1, 0xa1, 0xed, 0x4a, 0x51, 0x28, 0xc3, 0x9a, 0xc5, 0x9e, 0xe7, 0xf2, 0xda, 0x21, 0xd6, 0x74, 0xbc, 0xa7, 0x93, 0xca, 0x4c, 0x3c, 0xf6, 0xb6, 0xe2, 0xdd, 0x28, 0x89, 0x87, 0x6f, 0x83, 0x73, 0x5e, 0xd3, 0xae, 0x89, 0x03, 0x92, 0x12, 0x27, 0x79, 0x4e, 0x90, 0x9c, 0xdb, 0x4a, 0x02, 0x50, 0xda, 0x06, 0xde, 0x02, 0xf3, 0x1d, 0x4b, 0xd7, 0x79, 0x3c, 0xb6, 0xac, 0xbe, 0x49, 0x2b, 0xb3, 0x9c, 0x05, 0xb2, 0x1c, 0x6a, 0xc5, 0x7a, 0x50, 0x02, 0x09, 0xef, 0x01, 0xd0, 0xf1, 0xcb, 0x81, 0x5b, 0x01, 0xd9, 0x85, 0x3e, 0x5d, 0x87, 0xc2, 0x02, 0x1c, 0x34, 0xb9, 0x28, 0xc2, 0xa6, 0x7e, 0xa2, 0x80, 0x95, 0x8c, 0x1c, 0x87, 0x6f, 0xc6, 0xaa, 0xde, 0xd5, 0x44, 0xd5, 0xbb, 0x90, 0x61, 0x16, 0x29, 0x7d, 0x1d, 0x30, 0xc7, 0x74, 0x87, 0x66, 0xf6, 0x3c, 0x88, 0xd8, 0xc1, 0x5e, 0x92, 0xf9, 0x8e, 0xa2, 0xc0, 0x70, 0x1b, 0x3e, 0x37, 0x1a, 0xd6, 0xe6, 0x62, 0x7d, 0x28, 0xce, 0xa9, 0xfe, 0x2a, 0x07, 0xc0, 0x3a, 0xb1, 0x75, 0x6b, 0x60, 0x10, 0xf3, 0x34, 0x54, 0xcb, 0x7a, 0x4c, 0xb5, 0xa8, 0xd2, 0x85, 0x08, 0xfc, 0xc9, 0x94, 0x2d, 0x1b, 0x09, 0xd9, 0x72, 0x69, 0x0c, 0xcf, 0xd1, 0xba, 0xe5, 0x6f, 0x79, 0xb0, 0x18, 0x82, 0x43, 0xe1, 0x72, 0x3b, 0xb6, 0x84, 0x57, 0x12, 0x4b, 0xb8, 0x22, 0x31, 0x79, 0x6a, 0xca, 0xe5, 0x03, 0x30, 0xcf, 0x74, 0x85, 0xb7, 0x6a, 0x5c, 0xb5, 0x4c, 0x1f, 0x5b, 0xb5, 0x04, 0x55, 0x67, 0x23, 0xc6, 0x84, 0x12, 0xcc, 0x19, 0x2a, 0x69, 0xe6, 0xeb, 0xa8, 0x92, 0xfe, 0xa8, 0x80, 0xf9, 0x70, 0x99, 0x4e, 0x41, 0x26, 0xb5, 0xe2, 0x32, 0xa9, 0x7a, 0x74, 0x5c, 0x66, 0xe8, 0xa4, 0xbf, 0x16, 0xa2, 0x5e, 0x73, 0xa1, 0xb4, 0xca, 0x0e, 0x54, 0xb6, 0xae, 0x75, 0xb0, 0x2b, 0xca, 0xea, 0x19, 0xef, 0x30, 0xe5, 0xb5, 0xa1, 0xa0, 0x37, 0x26, 0xa9, 0x72, 0x4f, 0x57, 0x52, 0xe5, 0xbf, 0x1c, 0x49, 0x75, 0x07, 0x94, 0x5c, 0x5f, 0x4c, 0x15, 0x38, 0xe5, 0xe5, 0x71, 0xe9, 0x2c, 0x74, 0x54, 0xc0, 0x1a, 0x28, 0xa8, 0x80, 0x49, 0xa6, 0x9d, 0x8a, 0x5f, 0xa5, 0x76, 0x62, 0xe1, 0x6d, 0xe3, 0xbe, 0x4b, 0xba, 0x3c, 0x95, 0x4a, 0x61, 0x78, 0xef, 0xf0, 0x56, 0x24, 0x7a, 0xe1, 0x2e, 0x58, 0xb1, 0x1d, 0xab, 0xe7, 0x10, 0xd7, 0x5d, 0x27, 0xb8, 0xab, 0x6b, 0x26, 0xf1, 0x07, 0xe0, 0x55, 0xbd, 0x0b, 0xa3, 0x61, 0x6d, 0x65, 0x47, 0x0e, 0x41, 0x59, 0xb6, 0xea, 0xc7, 0x05, 0x70, 0x36, 0xb9, 0x23, 0x66, 0x08, 0x11, 0xe5, 0x44, 0x42, 0xe4, 0xe5, 0x48, 0x88, 0x7a, 0x2a, 0x2d, 0x72, 0xe6, 0x4f, 0x85, 0xe9, 0x1a, 0x58, 0x10, 0xc2, 0xc3, 0xef, 0x14, 0x52, 0x2c, 0x58, 0x9e, 0xdd, 0x78, 0x37, 0x4a, 0xe2, 0xe1, 0x6d, 0x30, 0xe7, 0x70, 0x6d, 0xe5, 0x13, 0x78, 0xfa, 0xe4, 0x5b, 0x82, 0x60, 0x0e, 0x45, 0x3b, 0x51, 0x1c, 0xcb, 0xb4, 0x49, 0x28, 0x39, 0x7c, 0x82, 0x42, 0x5c, 0x9b, 0xac, 0x25, 0x01, 0x28, 0x6d, 0x03, 0x37, 0xc1, 0x62, 0xdf, 0x4c, 0x53, 0x79, 0xb1, 0x76, 0x41, 0x50, 0x2d, 0xee, 0xa6, 0x21, 0x48, 0x66, 0x07, 0x7f, 0x12, 0x93, 0x2b, 0xd3, 0x7c, 0x17, 0xb9, 0x72, 0x74, 0x3a, 0x4c, 0xac, 0x57, 0x24, 0x3a, 0xaa, 0x34, 0xa9, 0x8e, 0x52, 0x3f, 0x52, 0x00, 0x4c, 0xa7, 0xe0, 0xd8, 0xc3, 0x7d, 0xca, 0x22, 0x52, 0x22, 0xbb, 0x72, 0x85, 0x73, 0x75, 0xbc, 0xc2, 0x09, 0x77, 0xd0, 0xc9, 0x24, 0x8e, 0x98, 0xde, 0xd3, 0xb9, 0x98, 0x99, 0x40, 0xe2, 0x84, 0xfe, 0x3c, 0x99, 0xc4, 0x89, 0xf0, 0x1c, 0x2d, 0x71, 0xfe, 0x99, 0x03, 0x8b, 0x21, 0x78, 0x62, 0x89, 0x23, 0x31, 0x79, 0x76, 0x39, 0x33, 0x99, 0xec, 0x08, 0xa7, 0xee, 0xff, 0x44, 0x76, 0x84, 0x0e, 0x65, 0xc8, 0x8e, 0xdf, 0xe7, 0xa2, 0x5e, 0x1f, 0x53, 0x76, 0x7c, 0x09, 0x57, 0x15, 0x5f, 0x3b, 0xe5, 0xa2, 0x7e, 0x9a, 0x07, 0x67, 0x93, 0x29, 0x18, 0xab, 0x83, 0xca, 0xd8, 0x3a, 0xb8, 0x03, 0x96, 0xee, 0xf7, 0x75, 0x7d, 0xc0, 0xc7, 0x10, 0x29, 0x86, 0x5e, 0x05, 0xfd, 0xb6, 0xb0, 0x5c, 0xfa, 0x81, 0x04, 0x83, 0xa4, 0x96, 0xe9, 0xb2, 0x58, 0x78, 0xd2, 0xb2, 0x58, 0x3c, 0x41, 0x59, 0x94, 0x2b, 0x8b, 0xfc, 0x89, 0x94, 0xc5, 0xc4, 0x35, 0x51, 0xb2, 0x5d, 0x8d, 0x3d, 0xc3, 0x8f, 0x14, 0xb0, 0x2c, 0x3f, 0x3e, 0x43, 0x1d, 0xcc, 0x1b, 0xf8, 0x41, 0xf4, 0xf2, 0x62, 0x5c, 0xc1, 0xe8, 0x53, 0x4d, 0xaf, 0x7b, 0x5f, 0x77, 0xea, 0xef, 0x98, 0x74, 0xdb, 0x69, 0x53, 0x47, 0x33, 0x7b, 0x5e, 0x81, 0xdd, 0x8c, 0x71, 0xa1, 0x04, 0x37, 0xbc, 0x07, 0x4a, 0x06, 0x7e, 0xd0, 0xee, 0x3b, 0x3d, 0xbf, 0x10, 0x1e, 0xff, 0x3d, 0x3c, 0xf6, 0x37, 0x05, 0x0b, 0x0a, 0xf8, 0xd4, 0x2f, 0x14, 0xb0, 0x92, 0x51, 0x41, 0xbf, 0x41, 0xa3, 0xfc, 0x58, 0x01, 0x17, 0x63, 0xa3, 0x64, 0x19, 0x49, 0xee, 0xf7, 0x75, 0x9e, 0x9c, 0x42, 0xb0, 0x5c, 0x05, 0xb3, 0x36, 0x76, 0xa8, 0x16, 0x28, 0xdd, 0x62, 0x73, 0x6e, 0x34, 0xac, 0xcd, 0xee, 0xf8, 0x8d, 0x28, 0xec, 0x97, 0xcc, 0x4d, 0xee, 0xe9, 0xcd, 0x8d, 0xfa, 0xeb, 0x1c, 0x28, 0x47, 0x5c, 0x3e, 0x05, 0xa9, 0xf2, 0x56, 0x4c, 0xaa, 0x48, 0x3f, 0xfe, 0x44, 0xe7, 0x30, 0x4b, 0xab, 0x6c, 0x26, 0xb4, 0xca, 0x77, 0xc7, 0x11, 0x1d, 0x2d, 0x56, 0xfe, 0x95, 0x03, 0x4b, 0x11, 0x74, 0xa8, 0x56, 0xbe, 0x1f, 0x53, 0x2b, 0xab, 0x09, 0xb5, 0x52, 0x91, 0xd9, 0x3c, 0x93, 0x2b, 0xe3, 0xe5, 0xca, 0x9f, 0x14, 0xb0, 0x10, 0x99, 0xbb, 0x53, 0xd0, 0x2b, 0xeb, 0x71, 0xbd, 0x52, 0x1b, 0x13, 0x2f, 0x19, 0x82, 0xe5, 0x16, 0x58, 0x8c, 0x80, 0xb6, 0x9d, 0xae, 0x66, 0x62, 0xdd, 0x85, 0x2f, 0x80, 0xa2, 0x4b, 0xb1, 0x43, 0xfd, 0xec, 0xf6, 0x6d, 0xdb, 0xac, 0x11, 0x79, 0x7d, 0xea, 0xbf, 0x15, 0xd0, 0x88, 0x18, 0xef, 0x10, 0xc7, 0xd5, 0x5c, 0x4a, 0x4c, 0x7a, 0xd7, 0xd2, 0xfb, 0x06, 0x69, 0xe9, 0x58, 0x33, 0x10, 0x61, 0x0d, 0x9a, 0x65, 0xee, 0x58, 0xba, 0xd6, 0x19, 0x40, 0x0c, 0xca, 0x1f, 0xee, 0x13, 0x73, 0x9d, 0xe8, 0x84, 0x8a, 0xcf, 0x1b, 0xb3, 0xcd, 0x37, 0xfd, 0xdb, 0xfe, 0xf7, 0xc2, 0xae, 0xc7, 0xc3, 0xda, 0xea, 0x24, 0x8c, 0x3c, 0x38, 0xa3, 0x9c, 0xf0, 0x67, 0x00, 0xb0, 0xc7, 0x76, 0x07, 0xfb, 0x1f, 0x3b, 0x66, 0x9b, 0x6f, 0xf8, 0x29, 0xfc, 0x5e, 0xd0, 0x73, 0xac, 0x17, 0x44, 0x18, 0xd5, 0xdf, 0x95, 0x62, 0x4b, 0xfd, 0x8d, 0xbf, 0x5b, 0xfa, 0x05, 0x58, 0x3a, 0x0c, 0x67, 0xc7, 0x07, 0x30, 0x4d, 0xc4, 0xe2, 0xee, 0x45, 0x29, 0xbd, 0x6c, 0x5e, 0x43, 0x25, 0x76, 0x57, 0x42, 0x87, 0xa4, 0x2f, 0x81, 0xaf, 0x82, 0x32, 0xd3, 0x32, 0x5a, 0x87, 0x6c, 0x61, 0xc3, 0x4f, 0xc3, 0xe0, 0xeb, 0x50, 0x3b, 0xec, 0x42, 0x51, 0x1c, 0xdc, 0x07, 0x8b, 0xb6, 0xd5, 0xdd, 0xc4, 0x26, 0xee, 0x11, 0x56, 0xa1, 0xbd, 0xa5, 0xe4, 0xb7, 0x4e, 0xb3, 0xcd, 0xd7, 0xfc, 0x1b, 0x85, 0x9d, 0x34, 0x84, 0x9d, 0xd8, 0x24, 0xcd, 0x3c, 0x08, 0x64, 0x94, 0xd0, 0x48, 0x7d, 0xcc, 0x9c, 0x49, 0xfd, 0x03, 0x44, 0x96, 0x8f, 0x27, 0xfc, 0x9c, 0x99, 0x75, 0x9f, 0x56, 0x3a, 0xd1, 0x7d, 0x9a, 0xe4, 0xc4, 0x31, 0x7b, 0xcc, 0x13, 0xc7, 0xa7, 0x0a, 0xb8, 0x64, 0x4f, 0x90, 0x46, 0x15, 0xc0, 0xa7, 0xa5, 0x35, 0x66, 0x5a, 0x26, 0xc9, 0xc8, 0xe6, 0xea, 0x68, 0x58, 0xbb, 0x34, 0x09, 0x12, 0x4d, 0xe4, 0x1a, 0x4b, 0x1a, 0x4b, 0xec, 0x7c, 0x95, 0x32, 0x77, 0xf3, 0xca, 0x18, 0x37, 0xfd, 0x8d, 0xd2, 0xcb, 0x43, 0xff, 0x09, 0x05, 0x34, 0xea, 0x47, 0x45, 0x70, 0x2e, 0x55, 0xad, 0xbf, 0xc2, 0xbb, 0xc2, 0xd4, 0x89, 0x26, 0x7f, 0x8c, 0x13, 0xcd, 0x1a, 0x58, 0x10, 0x1f, 0x98, 0x13, 0x07, 0xa2, 0x20, 0x4c, 0x5a, 0xf1, 0x6e, 0x94, 0xc4, 0xcb, 0xee, 0x2a, 0x8b, 0xc7, 0xbc, 0xab, 0x8c, 0x7a, 0x21, 0xfe, 0x17, 0xe5, 0xe5, 0x73, 0xda, 0x0b, 0xf1, 0xf7, 0xa8, 0x24, 0x1e, 0xbe, 0xe1, 0x27, 0x6b, 0xc0, 0x30, 0xc3, 0x19, 0x12, 0xd9, 0x17, 0x10, 0x24, 0xd0, 0x4f, 0xf4, 0x11, 0xf5, 0x7d, 0xc9, 0x47, 0xd4, 0xd5, 0x31, 0x61, 0x36, 0xf9, 0xb5, 0xa4, 0xf4, 0xd0, 0x59, 0x3e, 0xfe, 0xa1, 0x53, 0xfd, 0x8b, 0x02, 0x9e, 0xcb, 0xdc, 0xa6, 0xe0, 0x5a, 0x4c, 0x3d, 0x5e, 0x4b, 0xa8, 0xc7, 0xe7, 0x33, 0x0d, 0x23, 0x12, 0xd2, 0x90, 0xdf, 0x58, 0xde, 0x1c, 0x7b, 0x63, 0x29, 0x39, 0x89, 0x8c, 0xbf, 0xba, 0x6c, 0xbe, 0xfe, 0xf0, 0x51, 0x75, 0xea, 0xb3, 0x47, 0xd5, 0xa9, 0xcf, 0x1f, 0x55, 0xa7, 0x7e, 0x39, 0xaa, 0x2a, 0x0f, 0x47, 0x55, 0xe5, 0xb3, 0x51, 0x55, 0xf9, 0x7c, 0x54, 0x55, 0xfe, 0x3e, 0xaa, 0x2a, 0xbf, 0xfd, 0xa2, 0x3a, 0x75, 0x0f, 0xa6, 0xff, 0x95, 0xf9, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xae, 0x39, 0x4c, 0x13, 0xc3, 0x29, 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.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 *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.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] = 0x12 } 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 *StatefulSetOrdinals) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *StatefulSetOrdinals) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StatefulSetOrdinals) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i = encodeVarintGenerated(dAtA, i, uint64(m.Start)) i-- dAtA[i] = 0x8 return len(dAtA) - i, nil } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.WhenScaled) copy(dAtA[i:], m.WhenScaled) i = encodeVarintGenerated(dAtA, i, uint64(len(m.WhenScaled))) i-- dAtA[i] = 0x12 i -= len(m.WhenDeleted) copy(dAtA[i:], m.WhenDeleted) i = encodeVarintGenerated(dAtA, i, uint64(len(m.WhenDeleted))) 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.Ordinals != nil { { size, err := m.Ordinals.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x5a } if m.PersistentVolumeClaimRetentionPolicy != nil { { size, err := m.PersistentVolumeClaimRetentionPolicy.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x52 } i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds)) i-- dAtA[i] = 0x48 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 i = encodeVarintGenerated(dAtA, i, uint64(m.AvailableReplicas)) i-- dAtA[i] = 0x58 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)) } if m.MaxSurge != nil { l = m.MaxSurge.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)) } if m.MaxUnavailable != nil { l = m.MaxUnavailable.Size() 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 *StatefulSetOrdinals) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 1 + sovGenerated(uint64(m.Start)) return n } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.WhenDeleted) n += 1 + l + sovGenerated(uint64(l)) l = len(m.WhenScaled) 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)) } n += 1 + sovGenerated(uint64(m.MinReadySeconds)) if m.PersistentVolumeClaimRetentionPolicy != nil { l = m.PersistentVolumeClaimRetentionPolicy.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.Ordinals != nil { l = m.Ordinals.Size() n += 1 + l + sovGenerated(uint64(l)) } 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)) } } n += 1 + sovGenerated(uint64(m.AvailableReplicas)) 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) + `,`, `MaxSurge:` + strings.Replace(fmt.Sprintf("%v", this.MaxSurge), "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) + `,`, `MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "intstr.IntOrString", 1) + `,`, `}`, }, "") 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 *StatefulSetOrdinals) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&StatefulSetOrdinals{`, `Start:` + fmt.Sprintf("%v", this.Start) + `,`, `}`, }, "") return s } func (this *StatefulSetPersistentVolumeClaimRetentionPolicy) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&StatefulSetPersistentVolumeClaimRetentionPolicy{`, `WhenDeleted:` + fmt.Sprintf("%v", this.WhenDeleted) + `,`, `WhenScaled:` + fmt.Sprintf("%v", this.WhenScaled) + `,`, `}`, }, "") 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) + `,`, `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`, `PersistentVolumeClaimRetentionPolicy:` + strings.Replace(this.PersistentVolumeClaimRetentionPolicy.String(), "StatefulSetPersistentVolumeClaimRetentionPolicy", "StatefulSetPersistentVolumeClaimRetentionPolicy", 1) + `,`, `Ordinals:` + strings.Replace(this.Ordinals.String(), "StatefulSetOrdinals", "StatefulSetOrdinals", 1) + `,`, `}`, }, "") 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 + `,`, `AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`, `}`, }, "") 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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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 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) || (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) || (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 case 2: 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) || (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) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StatefulSetOrdinals) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: StatefulSetOrdinals: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StatefulSetOrdinals: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) } m.Start = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Start |= int32(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: StatefulSetPersistentVolumeClaimRetentionPolicy: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StatefulSetPersistentVolumeClaimRetentionPolicy: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field WhenDeleted", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.WhenDeleted = PersistentVolumeClaimRetentionPolicyType(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field WhenScaled", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.WhenScaled = PersistentVolumeClaimRetentionPolicyType(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 case 9: 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 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeClaimRetentionPolicy", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.PersistentVolumeClaimRetentionPolicy == nil { m.PersistentVolumeClaimRetentionPolicy = &StatefulSetPersistentVolumeClaimRetentionPolicy{} } if err := m.PersistentVolumeClaimRetentionPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 11: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Ordinals", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Ordinals == nil { m.Ordinals = &StatefulSetOrdinals{} } if err := m.Ordinals.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 case 11: 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 } } default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/apps/v1/generated.proto000066400000000000000000001050501453636404600206530ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/apps/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). // The only allowed template.spec.restartPolicy value is "Always". // 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; // numberReady is the number of nodes that should be running the daemon pod and have one // or more of the daemon pod running with a Ready Condition. 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'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 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. // The only allowed template.spec.restartPolicy value is "Always". 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; // readyReplicas is the number of pods targeted by this Deployment with a Ready Condition. // +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 observed 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; // readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition. // +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 if MaxSurge is 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; // The maximum number of nodes with an existing available DaemonSet pod that // can have an updated DaemonSet pod during during an update. // 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 to a minimum of 1. // Default value is 0. // 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 a new pod created before the old pod is marked as deleted. // The update starts by launching new pods on 30% of nodes. Once an updated // pod is available (Ready for at least minReadySeconds) the old DaemonSet pod // on that node is marked deleted. If the old pod becomes unavailable for any // reason (Ready transitions to false, is evicted, or is drained) an updated // pod is immediatedly created on that node without considering surge limits. // Allowing surge implies the possibility that the resources consumed by the // daemonset on any given node can double if the readiness check fails, and // so resource intensive daemonsets should take into account that they may // cause evictions during disruption. // +optional optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2; } // 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 // for updates. During a rolling update, all pods from ordinal Replicas-1 to // Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. // This is helpful in being able to do a canary based deployment. The default value is 0. // +optional optional int32 partition = 1; // 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 up. This can not be 0. // Defaults to 1. This field is alpha-level and is only honored by servers that enable the // MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to // Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it // will be counted towards MaxUnavailable. // +optional optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 2; } // 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 { // 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 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 { // Standard list'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 stateful sets. repeated StatefulSet items = 2; } // StatefulSetOrdinals describes the policy used for replica ordinal assignment // in this StatefulSet. message StatefulSetOrdinals { // start is the number representing the first replica's index. It may be used // to number replicas from an alternate index (eg: 1-indexed) over the default // 0-indexed names, or to orchestrate progressive movement of replicas from // one StatefulSet to another. // If set, replica indices will be in the range: // [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). // If unset, defaults to 0. Replica indices will be in the range: // [0, .spec.replicas). // +optional optional int32 start = 1; } // StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs // created from the StatefulSet VolumeClaimTemplates. message StatefulSetPersistentVolumeClaimRetentionPolicy { // WhenDeleted specifies what happens to PVCs created from StatefulSet // VolumeClaimTemplates when the StatefulSet is deleted. The default policy // of `Retain` causes PVCs to not be affected by StatefulSet deletion. The // `Delete` policy causes those PVCs to be deleted. optional string whenDeleted = 1; // WhenScaled specifies what happens to PVCs created from StatefulSet // VolumeClaimTemplates when the StatefulSet is scaled down. The default // policy of `Retain` causes PVCs to not be affected by a scaledown. The // `Delete` policy causes the associated PVCs for any excess pods above // the replica count to be deleted. optional string whenScaled = 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. Each pod will be named with the format // -. For example, a pod in a StatefulSet named // "web" with index number "3" would be named "web-3". // The only allowed template.spec.restartPolicy value is "Always". 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; // 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 = 9; // persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent // volume claims created from volumeClaimTemplates. By default, all persistent // volume claims are created as needed and retained until manually deleted. This // policy allows the lifecycle to be altered, for example by deleting persistent // volume claims when their stateful set is deleted, or when their pod is scaled // down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, // which is alpha. +optional optional StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy = 10; // ordinals controls the numbering of replica indices in a StatefulSet. The // default ordinals behavior assigns a "0" index to the first replica and // increments the index by one for each additional replica requested. Using // the ordinals field requires the StatefulSetStartOrdinal feature gate to be // enabled, which is beta. // +optional optional StatefulSetOrdinals ordinals = 11; } // 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 for this StatefulSet with 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; // Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. // +optional optional int32 availableReplicas = 11; } // 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; } golang-k8s-api-0.29.0/apps/v1/register.go000066400000000000000000000035331453636404600200060ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to 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 } golang-k8s-api-0.29.0/apps/v1/types.go000066400000000000000000001407031453636404600173270ustar00rootroot00000000000000/* 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 ( v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" "k8s.io/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" PodIndexLabel = "apps.kubernetes.io/pod-index" ) // +genclient // +genclient:method=GetScale,verb=get,subresource=scale,result=k8s.io/api/autoscaling/v1.Scale // +genclient:method=UpdateScale,verb=update,subresource=scale,input=k8s.io/api/autoscaling/v1.Scale,result=k8s.io/api/autoscaling/v1.Scale // +genclient:method=ApplyScale,verb=apply,subresource=scale,input=k8s.io/api/autoscaling/v1.Scale,result=k8s.io/api/autoscaling/v1.Scale // +k8s:deepcopy-gen:interfaces=k8s.io/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"` // 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 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. // +enum 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. // +enum 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 // for updates. During a rolling update, all pods from ordinal Replicas-1 to // Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. // This is helpful in being able to do a canary based deployment. The default value is 0. // +optional Partition *int32 `json:"partition,omitempty" protobuf:"varint,1,opt,name=partition"` // 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 up. This can not be 0. // Defaults to 1. This field is alpha-level and is only honored by servers that enable the // MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to // Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it // will be counted towards MaxUnavailable. // +optional MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty" protobuf:"varint,2,opt,name=maxUnavailable"` } // PersistentVolumeClaimRetentionPolicyType is a string enumeration of the policies that will determine // when volumes from the VolumeClaimTemplates will be deleted when the controlling StatefulSet is // deleted or scaled down. type PersistentVolumeClaimRetentionPolicyType string const ( // RetainPersistentVolumeClaimRetentionPolicyType is the default // PersistentVolumeClaimRetentionPolicy and specifies that // PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates // will not be deleted. RetainPersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Retain" // RetentionPersistentVolumeClaimRetentionPolicyType specifies that // PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates // will be deleted in the scenario specified in // StatefulSetPersistentVolumeClaimRetentionPolicy. DeletePersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Delete" ) // StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs // created from the StatefulSet VolumeClaimTemplates. type StatefulSetPersistentVolumeClaimRetentionPolicy struct { // WhenDeleted specifies what happens to PVCs created from StatefulSet // VolumeClaimTemplates when the StatefulSet is deleted. The default policy // of `Retain` causes PVCs to not be affected by StatefulSet deletion. The // `Delete` policy causes those PVCs to be deleted. WhenDeleted PersistentVolumeClaimRetentionPolicyType `json:"whenDeleted,omitempty" protobuf:"bytes,1,opt,name=whenDeleted,casttype=PersistentVolumeClaimRetentionPolicyType"` // WhenScaled specifies what happens to PVCs created from StatefulSet // VolumeClaimTemplates when the StatefulSet is scaled down. The default // policy of `Retain` causes PVCs to not be affected by a scaledown. The // `Delete` policy causes the associated PVCs for any excess pods above // the replica count to be deleted. WhenScaled PersistentVolumeClaimRetentionPolicyType `json:"whenScaled,omitempty" protobuf:"bytes,2,opt,name=whenScaled,casttype=PersistentVolumeClaimRetentionPolicyType"` } // StatefulSetOrdinals describes the policy used for replica ordinal assignment // in this StatefulSet. type StatefulSetOrdinals struct { // start is the number representing the first replica's index. It may be used // to number replicas from an alternate index (eg: 1-indexed) over the default // 0-indexed names, or to orchestrate progressive movement of replicas from // one StatefulSet to another. // If set, replica indices will be in the range: // [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). // If unset, defaults to 0. Replica indices will be in the range: // [0, .spec.replicas). // +optional Start int32 `json:"start" protobuf:"varint,1,opt,name=start"` } // 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. Each pod will be named with the format // -. For example, a pod in a StatefulSet named // "web" with index number "3" would be named "web-3". // The only allowed template.spec.restartPolicy value is "Always". 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"` // 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,9,opt,name=minReadySeconds"` // persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent // volume claims created from volumeClaimTemplates. By default, all persistent // volume claims are created as needed and retained until manually deleted. This // policy allows the lifecycle to be altered, for example by deleting persistent // volume claims when their stateful set is deleted, or when their pod is scaled // down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, // which is alpha. +optional PersistentVolumeClaimRetentionPolicy *StatefulSetPersistentVolumeClaimRetentionPolicy `json:"persistentVolumeClaimRetentionPolicy,omitempty" protobuf:"bytes,10,opt,name=persistentVolumeClaimRetentionPolicy"` // ordinals controls the numbering of replica indices in a StatefulSet. The // default ordinals behavior assigns a "0" index to the first replica and // increments the index by one for each additional replica requested. Using // the ordinals field requires the StatefulSetStartOrdinal feature gate to be // enabled, which is beta. // +optional Ordinals *StatefulSetOrdinals `json:"ordinals,omitempty" protobuf:"bytes,11,opt,name=ordinals"` } // 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 for this StatefulSet with 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"` // Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. // +optional AvailableReplicas int32 `json:"availableReplicas" protobuf:"varint,11,opt,name=availableReplicas"` } 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=k8s.io/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=k8s.io/apimachinery/pkg/runtime.Object // StatefulSetList is a collection of StatefulSets. type StatefulSetList struct { metav1.TypeMeta `json:",inline"` // Standard list'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 stateful sets. Items []StatefulSet `json:"items" protobuf:"bytes,2,rep,name=items"` } // +genclient // +genclient:method=GetScale,verb=get,subresource=scale,result=k8s.io/api/autoscaling/v1.Scale // +genclient:method=UpdateScale,verb=update,subresource=scale,input=k8s.io/api/autoscaling/v1.Scale,result=k8s.io/api/autoscaling/v1.Scale // +genclient:method=ApplyScale,verb=apply,subresource=scale,input=k8s.io/api/autoscaling/v1.Scale,result=k8s.io/api/autoscaling/v1.Scale // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // Deployment enables declarative updates for Pods and ReplicaSets. type Deployment 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 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. // The only allowed template.spec.restartPolicy value is "Always". 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"` } // +enum 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"` // readyReplicas is the number of pods targeted by this Deployment with a Ready Condition. // +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=k8s.io/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=k8s.io/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"` } // +enum 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 if MaxSurge is 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"` // The maximum number of nodes with an existing available DaemonSet pod that // can have an updated DaemonSet pod during during an update. // 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 to a minimum of 1. // Default value is 0. // 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 a new pod created before the old pod is marked as deleted. // The update starts by launching new pods on 30% of nodes. Once an updated // pod is available (Ready for at least minReadySeconds) the old DaemonSet pod // on that node is marked deleted. If the old pod becomes unavailable for any // reason (Ready transitions to false, is evicted, or is drained) an updated // pod is immediatedly created on that node without considering surge limits. // Allowing surge implies the possibility that the resources consumed by the // daemonset on any given node can double if the readiness check fails, and // so resource intensive daemonsets should take into account that they may // cause evictions during disruption. // +optional MaxSurge *intstr.IntOrString `json:"maxSurge,omitempty" protobuf:"bytes,2,opt,name=maxSurge"` } // 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). // The only allowed template.spec.restartPolicy value is "Always". // 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"` // numberReady is the number of nodes that should be running the daemon pod and have one // or more of the daemon pod running with a Ready Condition. 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=k8s.io/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=k8s.io/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=k8s.io/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=k8s.io/api/autoscaling/v1.Scale // +genclient:method=UpdateScale,verb=update,subresource=scale,input=k8s.io/api/autoscaling/v1.Scale,result=k8s.io/api/autoscaling/v1.Scale // +genclient:method=ApplyScale,verb=apply,subresource=scale,input=k8s.io/api/autoscaling/v1.Scale,result=k8s.io/api/autoscaling/v1.Scale // +k8s:deepcopy-gen:interfaces=k8s.io/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=k8s.io/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 observed 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"` // readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition. // +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=k8s.io/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=k8s.io/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=k8s.io/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"` } golang-k8s-api-0.29.0/apps/v1/types_swagger_doc_generated.go000066400000000000000000001010271453636404600237050ustar00rootroot00000000000000/* 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-codegen.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). The only allowed template.spec.restartPolicy value is \"Always\". 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": "numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.", "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'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 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. The only allowed template.spec.restartPolicy value is \"Always\".", "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": "readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.", "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 observed 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": "readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.", "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 if MaxSurge is 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.", "maxSurge": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. 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 to a minimum of 1. Default value is 0. 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 a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.", } 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 for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.", "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 up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable.", } 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.\n\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", "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 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.", "metadata": "Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "items": "Items is the list of stateful sets.", } func (StatefulSetList) SwaggerDoc() map[string]string { return map_StatefulSetList } var map_StatefulSetOrdinals = map[string]string{ "": "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.", "start": "start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:\n [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).\nIf unset, defaults to 0. Replica indices will be in the range:\n [0, .spec.replicas).", } func (StatefulSetOrdinals) SwaggerDoc() map[string]string { return map_StatefulSetOrdinals } var map_StatefulSetPersistentVolumeClaimRetentionPolicy = map[string]string{ "": "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.", "whenDeleted": "WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.", "whenScaled": "WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.", } func (StatefulSetPersistentVolumeClaimRetentionPolicy) SwaggerDoc() map[string]string { return map_StatefulSetPersistentVolumeClaimRetentionPolicy } 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. Each pod will be named with the format -. For example, a pod in a StatefulSet named \"web\" with index number \"3\" would be named \"web-3\". The only allowed template.spec.restartPolicy value is \"Always\".", "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.", "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)", "persistentVolumeClaimRetentionPolicy": "persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. +optional", "ordinals": "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested. Using the ordinals field requires the StatefulSetStartOrdinal feature gate to be enabled, which is beta.", } 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 for this StatefulSet with 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.", "availableReplicas": "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.", } 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 golang-k8s-api-0.29.0/apps/v1/zz_generated.deepcopy.go000066400000000000000000000574351453636404600224640ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" intstr "k8s.io/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 } 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 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 } 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 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 *StatefulSetOrdinals) DeepCopyInto(out *StatefulSetOrdinals) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetOrdinals. func (in *StatefulSetOrdinals) DeepCopy() *StatefulSetOrdinals { if in == nil { return nil } out := new(StatefulSetOrdinals) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *StatefulSetPersistentVolumeClaimRetentionPolicy) DeepCopyInto(out *StatefulSetPersistentVolumeClaimRetentionPolicy) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetPersistentVolumeClaimRetentionPolicy. func (in *StatefulSetPersistentVolumeClaimRetentionPolicy) DeepCopy() *StatefulSetPersistentVolumeClaimRetentionPolicy { if in == nil { return nil } out := new(StatefulSetPersistentVolumeClaimRetentionPolicy) in.DeepCopyInto(out) return out } // 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 } if in.PersistentVolumeClaimRetentionPolicy != nil { in, out := &in.PersistentVolumeClaimRetentionPolicy, &out.PersistentVolumeClaimRetentionPolicy *out = new(StatefulSetPersistentVolumeClaimRetentionPolicy) **out = **in } if in.Ordinals != nil { in, out := &in.Ordinals, &out.Ordinals *out = new(StatefulSetOrdinals) **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 } golang-k8s-api-0.29.0/apps/v1beta1/000077500000000000000000000000001453636404600165445ustar00rootroot00000000000000golang-k8s-api-0.29.0/apps/v1beta1/doc.go000066400000000000000000000013511453636404600176400ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true package v1beta1 // import "k8s.io/api/apps/v1beta1" golang-k8s-api-0.29.0/apps/v1beta1/generated.pb.go000066400000000000000000005226121453636404600214410ustar00rootroot00000000000000/* 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/k8s.io/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 "k8s.io/api/core/v1" v11 "k8s.io/api/core/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" math "math" math_bits "math/bits" reflect "reflect" strings "strings" intstr "k8s.io/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.GoGoProtoPackageIsVersion3 // 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 *StatefulSetOrdinals) Reset() { *m = StatefulSetOrdinals{} } func (*StatefulSetOrdinals) ProtoMessage() {} func (*StatefulSetOrdinals) Descriptor() ([]byte, []int) { return fileDescriptor_2a07313e8f66e805, []int{18} } func (m *StatefulSetOrdinals) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StatefulSetOrdinals) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *StatefulSetOrdinals) XXX_Merge(src proto.Message) { xxx_messageInfo_StatefulSetOrdinals.Merge(m, src) } func (m *StatefulSetOrdinals) XXX_Size() int { return m.Size() } func (m *StatefulSetOrdinals) XXX_DiscardUnknown() { xxx_messageInfo_StatefulSetOrdinals.DiscardUnknown(m) } var xxx_messageInfo_StatefulSetOrdinals proto.InternalMessageInfo func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) Reset() { *m = StatefulSetPersistentVolumeClaimRetentionPolicy{} } func (*StatefulSetPersistentVolumeClaimRetentionPolicy) ProtoMessage() {} func (*StatefulSetPersistentVolumeClaimRetentionPolicy) Descriptor() ([]byte, []int) { return fileDescriptor_2a07313e8f66e805, []int{19} } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_Merge(src proto.Message) { xxx_messageInfo_StatefulSetPersistentVolumeClaimRetentionPolicy.Merge(m, src) } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_Size() int { return m.Size() } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_DiscardUnknown() { xxx_messageInfo_StatefulSetPersistentVolumeClaimRetentionPolicy.DiscardUnknown(m) } var xxx_messageInfo_StatefulSetPersistentVolumeClaimRetentionPolicy proto.InternalMessageInfo func (m *StatefulSetSpec) Reset() { *m = StatefulSetSpec{} } func (*StatefulSetSpec) ProtoMessage() {} func (*StatefulSetSpec) Descriptor() ([]byte, []int) { return fileDescriptor_2a07313e8f66e805, []int{20} } 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{21} } 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{22} } 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((*StatefulSetOrdinals)(nil), "k8s.io.api.apps.v1beta1.StatefulSetOrdinals") proto.RegisterType((*StatefulSetPersistentVolumeClaimRetentionPolicy)(nil), "k8s.io.api.apps.v1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy") 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/k8s.io/api/apps/v1beta1/generated.proto", fileDescriptor_2a07313e8f66e805) } var fileDescriptor_2a07313e8f66e805 = []byte{ // 2034 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x59, 0xcd, 0x6f, 0x1b, 0xc7, 0x15, 0xd7, 0x52, 0xa2, 0x44, 0x3d, 0x45, 0x54, 0x3c, 0x52, 0x2d, 0x46, 0x69, 0x25, 0x61, 0x63, 0x24, 0x4a, 0x62, 0x2f, 0x63, 0x25, 0x0d, 0x12, 0xbb, 0x75, 0x2b, 0x4a, 0x6e, 0xec, 0x40, 0x8a, 0x94, 0x91, 0x64, 0xa3, 0xe9, 0x07, 0x32, 0x22, 0xc7, 0xd4, 0x46, 0xfb, 0x85, 0xdd, 0x21, 0x63, 0xa2, 0x97, 0xfe, 0x01, 0x05, 0xd2, 0x73, 0xff, 0x8a, 0xf6, 0xd4, 0xa2, 0x45, 0x2f, 0x3d, 0x14, 0x3e, 0x06, 0xbd, 0x34, 0x27, 0xa2, 0x66, 0xae, 0xed, 0xad, 0xbd, 0x18, 0x28, 0x50, 0xcc, 0xec, 0xec, 0xf7, 0xae, 0xb4, 0x2c, 0x60, 0x01, 0xed, 0x8d, 0x3b, 0xef, 0xbd, 0xdf, 0x7b, 0xf3, 0xe6, 0xbd, 0x37, 0xef, 0x0d, 0xe1, 0xfb, 0x67, 0xef, 0x79, 0x9a, 0x6e, 0x37, 0xcf, 0x7a, 0x27, 0xd4, 0xb5, 0x28, 0xa3, 0x5e, 0xb3, 0x4f, 0xad, 0x8e, 0xed, 0x36, 0x25, 0x81, 0x38, 0x7a, 0x93, 0x38, 0x8e, 0xd7, 0xec, 0xdf, 0x3c, 0xa1, 0x8c, 0xdc, 0x6c, 0x76, 0xa9, 0x45, 0x5d, 0xc2, 0x68, 0x47, 0x73, 0x5c, 0x9b, 0xd9, 0x68, 0xd9, 0x67, 0xd4, 0x88, 0xa3, 0x6b, 0x9c, 0x51, 0x93, 0x8c, 0x2b, 0x37, 0xba, 0x3a, 0x3b, 0xed, 0x9d, 0x68, 0x6d, 0xdb, 0x6c, 0x76, 0xed, 0xae, 0xdd, 0x14, 0xfc, 0x27, 0xbd, 0x47, 0xe2, 0x4b, 0x7c, 0x88, 0x5f, 0x3e, 0xce, 0x8a, 0x1a, 0x53, 0xd8, 0xb6, 0x5d, 0xda, 0xec, 0x67, 0x74, 0xad, 0xbc, 0x13, 0xf1, 0x98, 0xa4, 0x7d, 0xaa, 0x5b, 0xd4, 0x1d, 0x34, 0x9d, 0xb3, 0x2e, 0x5f, 0xf0, 0x9a, 0x26, 0x65, 0x24, 0x4f, 0xaa, 0x59, 0x24, 0xe5, 0xf6, 0x2c, 0xa6, 0x9b, 0x34, 0x23, 0xf0, 0xee, 0x45, 0x02, 0x5e, 0xfb, 0x94, 0x9a, 0x24, 0x23, 0xf7, 0x76, 0x91, 0x5c, 0x8f, 0xe9, 0x46, 0x53, 0xb7, 0x98, 0xc7, 0xdc, 0xb4, 0x90, 0xfa, 0x2f, 0x05, 0xd0, 0xb6, 0x6d, 0x31, 0xd7, 0x36, 0x0c, 0xea, 0x62, 0xda, 0xd7, 0x3d, 0xdd, 0xb6, 0xd0, 0xa7, 0x50, 0xe3, 0xfb, 0xe9, 0x10, 0x46, 0x1a, 0xca, 0xba, 0xb2, 0x31, 0xb7, 0xf9, 0x96, 0x16, 0x79, 0x3a, 0x84, 0xd7, 0x9c, 0xb3, 0x2e, 0x5f, 0xf0, 0x34, 0xce, 0xad, 0xf5, 0x6f, 0x6a, 0xfb, 0x27, 0x9f, 0xd1, 0x36, 0xdb, 0xa3, 0x8c, 0xb4, 0xd0, 0x93, 0xe1, 0xda, 0xc4, 0x68, 0xb8, 0x06, 0xd1, 0x1a, 0x0e, 0x51, 0xd1, 0x3e, 0x4c, 0x09, 0xf4, 0x8a, 0x40, 0xbf, 0x51, 0x88, 0x2e, 0x37, 0xad, 0x61, 0xf2, 0xf9, 0xdd, 0xc7, 0x8c, 0x5a, 0xdc, 0xbc, 0xd6, 0x0b, 0x12, 0x7a, 0x6a, 0x87, 0x30, 0x82, 0x05, 0x10, 0xba, 0x0e, 0x35, 0x57, 0x9a, 0xdf, 0x98, 0x5c, 0x57, 0x36, 0x26, 0x5b, 0x2f, 0x4a, 0xae, 0x5a, 0xb0, 0x2d, 0x1c, 0x72, 0xa8, 0x4f, 0x14, 0xb8, 0x9a, 0xdd, 0xf7, 0xae, 0xee, 0x31, 0xf4, 0xe3, 0xcc, 0xde, 0xb5, 0x72, 0x7b, 0xe7, 0xd2, 0x62, 0xe7, 0xa1, 0xe2, 0x60, 0x25, 0xb6, 0xef, 0x03, 0xa8, 0xea, 0x8c, 0x9a, 0x5e, 0xa3, 0xb2, 0x3e, 0xb9, 0x31, 0xb7, 0xf9, 0xa6, 0x56, 0x10, 0xc0, 0x5a, 0xd6, 0xba, 0xd6, 0xbc, 0xc4, 0xad, 0xde, 0xe7, 0x08, 0xd8, 0x07, 0x52, 0x7f, 0x51, 0x01, 0xd8, 0xa1, 0x8e, 0x61, 0x0f, 0x4c, 0x6a, 0xb1, 0x4b, 0x38, 0xba, 0xfb, 0x30, 0xe5, 0x39, 0xb4, 0x2d, 0x8f, 0xee, 0xb5, 0xc2, 0x1d, 0x44, 0x46, 0x1d, 0x3a, 0xb4, 0x1d, 0x1d, 0x1a, 0xff, 0xc2, 0x02, 0x02, 0x7d, 0x0c, 0xd3, 0x1e, 0x23, 0xac, 0xe7, 0x89, 0x23, 0x9b, 0xdb, 0x7c, 0xbd, 0x0c, 0x98, 0x10, 0x68, 0xd5, 0x25, 0xdc, 0xb4, 0xff, 0x8d, 0x25, 0x90, 0xfa, 0xd7, 0x49, 0x58, 0x8c, 0x98, 0xb7, 0x6d, 0xab, 0xa3, 0x33, 0x1e, 0xd2, 0xb7, 0x61, 0x8a, 0x0d, 0x1c, 0x2a, 0x7c, 0x32, 0xdb, 0x7a, 0x2d, 0x30, 0xe6, 0x68, 0xe0, 0xd0, 0x67, 0xc3, 0xb5, 0xe5, 0x1c, 0x11, 0x4e, 0xc2, 0x42, 0x08, 0xed, 0x86, 0x76, 0x56, 0x84, 0xf8, 0x3b, 0x49, 0xe5, 0xcf, 0x86, 0x6b, 0x39, 0x05, 0x44, 0x0b, 0x91, 0x92, 0x26, 0xa2, 0xcf, 0xa0, 0x6e, 0x10, 0x8f, 0x1d, 0x3b, 0x1d, 0xc2, 0xe8, 0x91, 0x6e, 0xd2, 0xc6, 0xb4, 0xd8, 0xfd, 0x1b, 0xe5, 0x0e, 0x8a, 0x4b, 0xb4, 0xae, 0x4a, 0x0b, 0xea, 0xbb, 0x09, 0x24, 0x9c, 0x42, 0x46, 0x7d, 0x40, 0x7c, 0xe5, 0xc8, 0x25, 0x96, 0xe7, 0xef, 0x8a, 0xeb, 0x9b, 0x19, 0x5b, 0xdf, 0x8a, 0xd4, 0x87, 0x76, 0x33, 0x68, 0x38, 0x47, 0x03, 0x7a, 0x15, 0xa6, 0x5d, 0x4a, 0x3c, 0xdb, 0x6a, 0x4c, 0x09, 0x8f, 0x85, 0xc7, 0x85, 0xc5, 0x2a, 0x96, 0x54, 0xf4, 0x3a, 0xcc, 0x98, 0xd4, 0xf3, 0x48, 0x97, 0x36, 0xaa, 0x82, 0x71, 0x41, 0x32, 0xce, 0xec, 0xf9, 0xcb, 0x38, 0xa0, 0xab, 0xbf, 0x53, 0xa0, 0x1e, 0x1d, 0xd3, 0x25, 0xe4, 0xea, 0xbd, 0x64, 0xae, 0xbe, 0x52, 0x22, 0x38, 0x0b, 0x72, 0xf4, 0xef, 0x15, 0x40, 0x11, 0x13, 0xb6, 0x0d, 0xe3, 0x84, 0xb4, 0xcf, 0xd0, 0x3a, 0x4c, 0x59, 0xc4, 0x0c, 0x62, 0x32, 0x4c, 0x90, 0x8f, 0x88, 0x49, 0xb1, 0xa0, 0xa0, 0x2f, 0x14, 0x40, 0x3d, 0x71, 0x9a, 0x9d, 0x2d, 0xcb, 0xb2, 0x19, 0xe1, 0x0e, 0x0e, 0x0c, 0xda, 0x2e, 0x61, 0x50, 0xa0, 0x4b, 0x3b, 0xce, 0xa0, 0xdc, 0xb5, 0x98, 0x3b, 0x88, 0x0e, 0x36, 0xcb, 0x80, 0x73, 0x54, 0xa3, 0x1f, 0x01, 0xb8, 0x12, 0xf3, 0xc8, 0x96, 0x69, 0x5b, 0x5c, 0x03, 0x02, 0xf5, 0xdb, 0xb6, 0xf5, 0x48, 0xef, 0x46, 0x85, 0x05, 0x87, 0x10, 0x38, 0x06, 0xb7, 0x72, 0x17, 0x96, 0x0b, 0xec, 0x44, 0x2f, 0xc2, 0xe4, 0x19, 0x1d, 0xf8, 0xae, 0xc2, 0xfc, 0x27, 0x5a, 0x82, 0x6a, 0x9f, 0x18, 0x3d, 0xea, 0xe7, 0x24, 0xf6, 0x3f, 0x6e, 0x55, 0xde, 0x53, 0xd4, 0x5f, 0x57, 0xe3, 0x91, 0xc2, 0xeb, 0x0d, 0xda, 0xe0, 0xd7, 0x83, 0x63, 0xe8, 0x6d, 0xe2, 0x09, 0x8c, 0x6a, 0xeb, 0x05, 0xff, 0x6a, 0xf0, 0xd7, 0x70, 0x48, 0x45, 0x3f, 0x81, 0x9a, 0x47, 0x0d, 0xda, 0x66, 0xb6, 0x2b, 0x4b, 0xdc, 0xdb, 0x25, 0x63, 0x8a, 0x9c, 0x50, 0xe3, 0x50, 0x8a, 0xfa, 0xf0, 0xc1, 0x17, 0x0e, 0x21, 0xd1, 0xc7, 0x50, 0x63, 0xd4, 0x74, 0x0c, 0xc2, 0xa8, 0xf4, 0x5e, 0x22, 0xae, 0x78, 0xed, 0xe0, 0x60, 0x07, 0x76, 0xe7, 0x48, 0xb2, 0x89, 0xea, 0x19, 0xc6, 0x69, 0xb0, 0x8a, 0x43, 0x18, 0xf4, 0x43, 0xa8, 0x79, 0x8c, 0xdf, 0xea, 0xdd, 0x81, 0xc8, 0xb6, 0xf3, 0xae, 0x95, 0x78, 0x1d, 0xf5, 0x45, 0x22, 0xe8, 0x60, 0x05, 0x87, 0x70, 0x68, 0x0b, 0x16, 0x4c, 0xdd, 0xc2, 0x94, 0x74, 0x06, 0x87, 0xb4, 0x6d, 0x5b, 0x1d, 0x4f, 0xa4, 0x69, 0xb5, 0xb5, 0x2c, 0x85, 0x16, 0xf6, 0x92, 0x64, 0x9c, 0xe6, 0x47, 0xbb, 0xb0, 0x14, 0x5c, 0xbb, 0xf7, 0x74, 0x8f, 0xd9, 0xee, 0x60, 0x57, 0x37, 0x75, 0x26, 0x6a, 0x5e, 0xb5, 0xd5, 0x18, 0x0d, 0xd7, 0x96, 0x70, 0x0e, 0x1d, 0xe7, 0x4a, 0xf1, 0xba, 0xe2, 0x90, 0x9e, 0x47, 0x3b, 0xa2, 0x86, 0xd5, 0xa2, 0xba, 0x72, 0x20, 0x56, 0xb1, 0xa4, 0xa2, 0x87, 0x89, 0x30, 0xad, 0x8d, 0x17, 0xa6, 0xf5, 0xe2, 0x10, 0x45, 0xc7, 0xb0, 0xec, 0xb8, 0x76, 0xd7, 0xa5, 0x9e, 0xb7, 0x43, 0x49, 0xc7, 0xd0, 0x2d, 0x1a, 0x78, 0x66, 0x56, 0xec, 0xe8, 0xe5, 0xd1, 0x70, 0x6d, 0xf9, 0x20, 0x9f, 0x05, 0x17, 0xc9, 0xaa, 0x7f, 0x9a, 0x82, 0x17, 0xd3, 0x77, 0x1c, 0xfa, 0x10, 0x90, 0x7d, 0xe2, 0x51, 0xb7, 0x4f, 0x3b, 0x1f, 0xf8, 0x8d, 0x1b, 0xef, 0x6e, 0x14, 0xd1, 0xdd, 0x84, 0x79, 0xbb, 0x9f, 0xe1, 0xc0, 0x39, 0x52, 0x7e, 0x7f, 0x24, 0x13, 0xa0, 0x22, 0x0c, 0x8d, 0xf5, 0x47, 0x99, 0x24, 0xd8, 0x82, 0x05, 0x99, 0xfb, 0x01, 0x51, 0x04, 0x6b, 0xec, 0xdc, 0x8f, 0x93, 0x64, 0x9c, 0xe6, 0x47, 0xb7, 0x61, 0xde, 0xe5, 0x71, 0x10, 0x02, 0xcc, 0x08, 0x80, 0x6f, 0x48, 0x80, 0x79, 0x1c, 0x27, 0xe2, 0x24, 0x2f, 0xfa, 0x00, 0xae, 0x90, 0x3e, 0xd1, 0x0d, 0x72, 0x62, 0xd0, 0x10, 0x60, 0x4a, 0x00, 0xbc, 0x24, 0x01, 0xae, 0x6c, 0xa5, 0x19, 0x70, 0x56, 0x06, 0xed, 0xc1, 0x62, 0xcf, 0xca, 0x42, 0xf9, 0x41, 0xfc, 0xb2, 0x84, 0x5a, 0x3c, 0xce, 0xb2, 0xe0, 0x3c, 0x39, 0xf4, 0x29, 0x40, 0x3b, 0xb8, 0xd5, 0xbd, 0xc6, 0xb4, 0x28, 0xc3, 0xd7, 0x4b, 0x24, 0x5b, 0xd8, 0x0a, 0x44, 0x25, 0x30, 0x5c, 0xf2, 0x70, 0x0c, 0x13, 0xdd, 0x82, 0x7a, 0xdb, 0x36, 0x0c, 0x11, 0xf9, 0xdb, 0x76, 0xcf, 0x62, 0x22, 0x78, 0xab, 0x2d, 0xc4, 0x2f, 0xfb, 0xed, 0x04, 0x05, 0xa7, 0x38, 0xd5, 0x3f, 0x28, 0xf1, 0x6b, 0x26, 0x48, 0x67, 0x74, 0x2b, 0xd1, 0xfa, 0xbc, 0x9a, 0x6a, 0x7d, 0xae, 0x66, 0x25, 0x62, 0x9d, 0x8f, 0x0e, 0xf3, 0x3c, 0xf8, 0x75, 0xab, 0xeb, 0x1f, 0xb8, 0x2c, 0x89, 0x6f, 0x9d, 0x9b, 0x4a, 0x21, 0x77, 0xec, 0x62, 0xbc, 0x22, 0xce, 0x3c, 0x4e, 0xc4, 0x49, 0x64, 0xf5, 0x0e, 0xd4, 0x93, 0x79, 0x98, 0xe8, 0xe9, 0x95, 0x0b, 0x7b, 0xfa, 0xaf, 0x15, 0x58, 0x2e, 0xd0, 0x8e, 0x0c, 0xa8, 0x9b, 0xe4, 0x71, 0xec, 0x98, 0x2f, 0xec, 0x8d, 0xf9, 0xd4, 0xa4, 0xf9, 0x53, 0x93, 0x76, 0xdf, 0x62, 0xfb, 0xee, 0x21, 0x73, 0x75, 0xab, 0xeb, 0x9f, 0xc3, 0x5e, 0x02, 0x0b, 0xa7, 0xb0, 0xd1, 0x27, 0x50, 0x33, 0xc9, 0xe3, 0xc3, 0x9e, 0xdb, 0xcd, 0xf3, 0x57, 0x39, 0x3d, 0xe2, 0xfe, 0xd8, 0x93, 0x28, 0x38, 0xc4, 0x53, 0xff, 0xa8, 0xc0, 0x7a, 0x62, 0x97, 0xbc, 0x56, 0xd0, 0x47, 0x3d, 0xe3, 0x90, 0x46, 0x27, 0xfe, 0x26, 0xcc, 0x3a, 0xc4, 0x65, 0x7a, 0x58, 0x2f, 0xaa, 0xad, 0xf9, 0xd1, 0x70, 0x6d, 0xf6, 0x20, 0x58, 0xc4, 0x11, 0x3d, 0xc7, 0x37, 0x95, 0xe7, 0xe7, 0x1b, 0xf5, 0xdf, 0x0a, 0x54, 0x0f, 0xdb, 0xc4, 0xa0, 0x97, 0x30, 0xa9, 0xec, 0x24, 0x26, 0x15, 0xb5, 0x30, 0x66, 0x85, 0x3d, 0x85, 0x43, 0xca, 0x6e, 0x6a, 0x48, 0xb9, 0x76, 0x01, 0xce, 0xf9, 0xf3, 0xc9, 0xfb, 0x30, 0x1b, 0xaa, 0x4b, 0x14, 0x65, 0xe5, 0xa2, 0xa2, 0xac, 0xfe, 0xaa, 0x02, 0x73, 0x31, 0x15, 0xe3, 0x49, 0x73, 0x77, 0xc7, 0xfa, 0x1a, 0x5e, 0xb8, 0x36, 0xcb, 0x6c, 0x44, 0x0b, 0x7a, 0x18, 0xbf, 0x5d, 0x8c, 0x9a, 0x85, 0x6c, 0x6b, 0x73, 0x07, 0xea, 0x8c, 0xb8, 0x5d, 0xca, 0x02, 0x9a, 0x70, 0xd8, 0x6c, 0x34, 0xab, 0x1c, 0x25, 0xa8, 0x38, 0xc5, 0xbd, 0x72, 0x1b, 0xe6, 0x13, 0xca, 0xc6, 0xea, 0xf9, 0xbe, 0xe0, 0xce, 0x89, 0x52, 0xe1, 0x12, 0xa2, 0xeb, 0xc3, 0x44, 0x74, 0x6d, 0x14, 0x3b, 0x33, 0x96, 0xa0, 0x45, 0x31, 0x86, 0x53, 0x31, 0xf6, 0x46, 0x29, 0xb4, 0xf3, 0x23, 0xed, 0x1f, 0x15, 0x58, 0x8a, 0x71, 0x47, 0xa3, 0xf0, 0x77, 0x12, 0xf7, 0xc1, 0x46, 0xea, 0x3e, 0x68, 0xe4, 0xc9, 0x3c, 0xb7, 0x59, 0x38, 0x7f, 0x3e, 0x9d, 0xfc, 0x5f, 0x9c, 0x4f, 0x7f, 0xaf, 0xc0, 0x42, 0xcc, 0x77, 0x97, 0x30, 0xa0, 0xde, 0x4f, 0x0e, 0xa8, 0xd7, 0xca, 0x04, 0x4d, 0xc1, 0x84, 0x7a, 0x0b, 0x16, 0x63, 0x4c, 0xfb, 0x6e, 0x47, 0xb7, 0x88, 0xe1, 0xa1, 0x57, 0xa0, 0xea, 0x31, 0xe2, 0xb2, 0xe0, 0x12, 0x09, 0x64, 0x0f, 0xf9, 0x22, 0xf6, 0x69, 0xea, 0x3f, 0x15, 0x68, 0xc6, 0x84, 0x0f, 0xa8, 0xeb, 0xe9, 0x1e, 0xa3, 0x16, 0x7b, 0x60, 0x1b, 0x3d, 0x93, 0x6e, 0x1b, 0x44, 0x37, 0x31, 0xe5, 0x0b, 0xba, 0x6d, 0x1d, 0xd8, 0x86, 0xde, 0x1e, 0x20, 0x02, 0x73, 0x9f, 0x9f, 0x52, 0x6b, 0x87, 0x1a, 0x94, 0xd1, 0x8e, 0x0c, 0xc5, 0xef, 0x49, 0xf8, 0xb9, 0x87, 0x11, 0xe9, 0xd9, 0x70, 0x6d, 0xa3, 0x0c, 0xa2, 0x88, 0xd0, 0x38, 0x26, 0xfa, 0x29, 0x00, 0xff, 0x14, 0xb5, 0xac, 0x23, 0x83, 0xf5, 0x4e, 0x90, 0xd1, 0x0f, 0x43, 0xca, 0x58, 0x0a, 0x62, 0x88, 0xea, 0x6f, 0x6a, 0x89, 0xf3, 0xfe, 0xbf, 0x1f, 0x33, 0x7f, 0x06, 0x4b, 0xfd, 0xc8, 0x3b, 0x01, 0x03, 0x6f, 0xcb, 0x27, 0xd3, 0x4f, 0x77, 0x21, 0x7c, 0x9e, 0x5f, 0x5b, 0xdf, 0x94, 0x4a, 0x96, 0x1e, 0xe4, 0xc0, 0xe1, 0x5c, 0x25, 0xe8, 0xdb, 0x30, 0xc7, 0x47, 0x1a, 0xbd, 0x4d, 0x3f, 0x22, 0x66, 0x90, 0x8b, 0x8b, 0x41, 0xbc, 0x1c, 0x46, 0x24, 0x1c, 0xe7, 0x43, 0xa7, 0xb0, 0xe8, 0xd8, 0x9d, 0x3d, 0x62, 0x91, 0x2e, 0xe5, 0x8d, 0xa0, 0x7f, 0x94, 0x62, 0xf6, 0x9c, 0x6d, 0xbd, 0x1b, 0xb4, 0xff, 0x07, 0x59, 0x96, 0x67, 0x7c, 0x88, 0xcb, 0x2e, 0x8b, 0x20, 0xc8, 0x83, 0x44, 0x2e, 0xd4, 0x7b, 0xb2, 0x1f, 0x93, 0xa3, 0xb8, 0xff, 0xc8, 0xb6, 0x59, 0x26, 0x29, 0x8f, 0x13, 0x92, 0xd1, 0x85, 0x99, 0x5c, 0xc7, 0x29, 0x0d, 0x85, 0xa3, 0x75, 0xed, 0xbf, 0x1a, 0xad, 0x73, 0x66, 0xfd, 0xd9, 0x31, 0x67, 0xfd, 0x3f, 0x2b, 0x70, 0xcd, 0x29, 0x91, 0x4b, 0x0d, 0x10, 0xbe, 0xb9, 0x57, 0xc6, 0x37, 0x65, 0x72, 0xb3, 0xb5, 0x31, 0x1a, 0xae, 0x5d, 0x2b, 0xc3, 0x89, 0x4b, 0xd9, 0x87, 0x1e, 0x40, 0xcd, 0x96, 0x35, 0xb0, 0x31, 0x27, 0x6c, 0xbd, 0x5e, 0xc6, 0xd6, 0xa0, 0x6e, 0xfa, 0x69, 0x19, 0x7c, 0xe1, 0x10, 0x4b, 0xfd, 0x6d, 0x15, 0xae, 0x64, 0x6e, 0x70, 0xf4, 0x83, 0x73, 0xe6, 0xfc, 0xab, 0xcf, 0x6d, 0xc6, 0xcf, 0x0c, 0xe8, 0x93, 0x63, 0x0c, 0xe8, 0x5b, 0xb0, 0xd0, 0xee, 0xb9, 0x2e, 0xb5, 0x58, 0x6a, 0x3c, 0x0f, 0x83, 0x65, 0x3b, 0x49, 0xc6, 0x69, 0xfe, 0xbc, 0x37, 0x86, 0xea, 0x98, 0x6f, 0x0c, 0x71, 0x2b, 0xe4, 0x9c, 0xe8, 0xa7, 0x76, 0xd6, 0x0a, 0x39, 0x2e, 0xa6, 0xf9, 0x79, 0xd3, 0xea, 0xa3, 0x86, 0x08, 0x33, 0xc9, 0xa6, 0xf5, 0x38, 0x41, 0xc5, 0x29, 0xee, 0x9c, 0x79, 0x7d, 0xb6, 0xec, 0xbc, 0x8e, 0x48, 0xe2, 0x35, 0x01, 0x44, 0x1d, 0xbd, 0x51, 0x26, 0xce, 0xca, 0x3f, 0x27, 0xe4, 0x3e, 0xa4, 0xcc, 0x8d, 0xff, 0x90, 0xa2, 0xfe, 0x45, 0x81, 0x97, 0x0a, 0x2b, 0x16, 0xda, 0x4a, 0xb4, 0x94, 0x37, 0x52, 0x2d, 0xe5, 0xb7, 0x0a, 0x05, 0x63, 0x7d, 0xa5, 0x9b, 0xff, 0xd2, 0xf0, 0x7e, 0xb9, 0x97, 0x86, 0x9c, 0x29, 0xf8, 0xe2, 0x27, 0x87, 0xd6, 0x77, 0x9f, 0x3c, 0x5d, 0x9d, 0xf8, 0xf2, 0xe9, 0xea, 0xc4, 0x57, 0x4f, 0x57, 0x27, 0x7e, 0x3e, 0x5a, 0x55, 0x9e, 0x8c, 0x56, 0x95, 0x2f, 0x47, 0xab, 0xca, 0x57, 0xa3, 0x55, 0xe5, 0x6f, 0xa3, 0x55, 0xe5, 0x97, 0x5f, 0xaf, 0x4e, 0x7c, 0xb2, 0x5c, 0xf0, 0x6f, 0xf4, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xaf, 0x0a, 0xd6, 0x32, 0xc0, 0x1e, 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.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] = 0x12 } 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 *StatefulSetOrdinals) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *StatefulSetOrdinals) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StatefulSetOrdinals) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i = encodeVarintGenerated(dAtA, i, uint64(m.Start)) i-- dAtA[i] = 0x8 return len(dAtA) - i, nil } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.WhenScaled) copy(dAtA[i:], m.WhenScaled) i = encodeVarintGenerated(dAtA, i, uint64(len(m.WhenScaled))) i-- dAtA[i] = 0x12 i -= len(m.WhenDeleted) copy(dAtA[i:], m.WhenDeleted) i = encodeVarintGenerated(dAtA, i, uint64(len(m.WhenDeleted))) 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.Ordinals != nil { { size, err := m.Ordinals.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x5a } if m.PersistentVolumeClaimRetentionPolicy != nil { { size, err := m.PersistentVolumeClaimRetentionPolicy.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x52 } i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds)) i-- dAtA[i] = 0x48 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 i = encodeVarintGenerated(dAtA, i, uint64(m.AvailableReplicas)) i-- dAtA[i] = 0x58 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)) } if m.MaxUnavailable != nil { l = m.MaxUnavailable.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 *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 *StatefulSetOrdinals) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 1 + sovGenerated(uint64(m.Start)) return n } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.WhenDeleted) n += 1 + l + sovGenerated(uint64(l)) l = len(m.WhenScaled) 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)) } n += 1 + sovGenerated(uint64(m.MinReadySeconds)) if m.PersistentVolumeClaimRetentionPolicy != nil { l = m.PersistentVolumeClaimRetentionPolicy.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.Ordinals != nil { l = m.Ordinals.Size() n += 1 + l + sovGenerated(uint64(l)) } 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)) } } n += 1 + sovGenerated(uint64(m.AvailableReplicas)) 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) + `,`, `MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "intstr.IntOrString", 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 *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 *StatefulSetOrdinals) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&StatefulSetOrdinals{`, `Start:` + fmt.Sprintf("%v", this.Start) + `,`, `}`, }, "") return s } func (this *StatefulSetPersistentVolumeClaimRetentionPolicy) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&StatefulSetPersistentVolumeClaimRetentionPolicy{`, `WhenDeleted:` + fmt.Sprintf("%v", this.WhenDeleted) + `,`, `WhenScaled:` + fmt.Sprintf("%v", this.WhenScaled) + `,`, `}`, }, "") 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) + `,`, `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`, `PersistentVolumeClaimRetentionPolicy:` + strings.Replace(this.PersistentVolumeClaimRetentionPolicy.String(), "StatefulSetPersistentVolumeClaimRetentionPolicy", "StatefulSetPersistentVolumeClaimRetentionPolicy", 1) + `,`, `Ordinals:` + strings.Replace(this.Ordinals.String(), "StatefulSetOrdinals", "StatefulSetOrdinals", 1) + `,`, `}`, }, "") 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 + `,`, `AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`, `}`, }, "") 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) || (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) || (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) || (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) || (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) || (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) || (iNdEx+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) || (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) || (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) || (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) || (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) || (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) || (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 case 2: 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) || (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) || (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) || (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) || (iNdEx+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) || (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) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StatefulSetOrdinals) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: StatefulSetOrdinals: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StatefulSetOrdinals: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) } m.Start = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Start |= int32(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: StatefulSetPersistentVolumeClaimRetentionPolicy: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StatefulSetPersistentVolumeClaimRetentionPolicy: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field WhenDeleted", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.WhenDeleted = PersistentVolumeClaimRetentionPolicyType(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field WhenScaled", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.WhenScaled = PersistentVolumeClaimRetentionPolicyType(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 case 9: 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 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeClaimRetentionPolicy", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.PersistentVolumeClaimRetentionPolicy == nil { m.PersistentVolumeClaimRetentionPolicy = &StatefulSetPersistentVolumeClaimRetentionPolicy{} } if err := m.PersistentVolumeClaimRetentionPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 11: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Ordinals", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Ordinals == nil { m.Ordinals = &StatefulSetOrdinals{} } if err := m.Ordinals.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 case 11: 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 } } default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/apps/v1beta1/generated.proto000066400000000000000000000577751453636404600216140ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/apps/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 { // replicas is the number of desired pods. This is a pointer to distinguish between explicit // zero and not specified. Defaults to 1. // +optional optional int32 replicas = 1; // selector is the 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. // The only allowed template.spec.restartPolicy value is "Always". 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; // minReadySeconds is the 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; // revisionHistoryLimit is 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; // paused indicates that the deployment is paused. // +optional optional bool paused = 7; // DEPRECATED. // rollbackTo is the config this deployment is rolling back to. Will be cleared after rollback is done. // +optional optional RollbackConfig rollbackTo = 8; // progressDeadlineSeconds is 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 { // observedGeneration is the generation observed by the deployment controller. // +optional optional int64 observedGeneration = 1; // replicas is the total number of non-terminated pods targeted by this deployment (their labels match the selector). // +optional optional int32 replicas = 2; // updatedReplicas is the total number of non-terminated pods targeted by this deployment that have the desired template spec. // +optional optional int32 updatedReplicas = 3; // readyReplicas is the number of pods targeted by this Deployment controller with a Ready Condition. // +optional optional int32 readyReplicas = 7; // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. // +optional optional int32 availableReplicas = 4; // unavailableReplicas is the 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; // Conditions represent the latest available observations of a deployment's current state. // +patchMergeKey=type // +patchStrategy=merge repeated DeploymentCondition conditions = 6; // collisionCount is the 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 // for updates. During a rolling update, all pods from ordinal Replicas-1 to // Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. // This is helpful in being able to do a canary based deployment. The default value is 0. optional int32 partition = 1; // maxUnavailable is 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 up. This can not be 0. // Defaults to 1. This field is alpha-level and is only honored by servers that enable the // MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to // Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it // will be counted towards MaxUnavailable. // +optional optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 2; } // 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; // spec 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; // status defines 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 { // replicas is the number of observed instances of the scaled object. // +optional optional int32 replicas = 1; } // ScaleStatus represents the current status of a scale subresource. message ScaleStatus { // replias is the actual number of observed instances of the scaled object. optional int32 replicas = 1; // selector is a label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ // +optional map selector = 2; // targetSelector is the 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; } // StatefulSetOrdinals describes the policy used for replica ordinal assignment // in this StatefulSet. message StatefulSetOrdinals { // start is the number representing the first replica's index. It may be used // to number replicas from an alternate index (eg: 1-indexed) over the default // 0-indexed names, or to orchestrate progressive movement of replicas from // one StatefulSet to another. // If set, replica indices will be in the range: // [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). // If unset, defaults to 0. Replica indices will be in the range: // [0, .spec.replicas). // +optional optional int32 start = 1; } // StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs // created from the StatefulSet VolumeClaimTemplates. message StatefulSetPersistentVolumeClaimRetentionPolicy { // whenDeleted specifies what happens to PVCs created from StatefulSet // VolumeClaimTemplates when the StatefulSet is deleted. The default policy // of `Retain` causes PVCs to not be affected by StatefulSet deletion. The // `Delete` policy causes those PVCs to be deleted. optional string whenDeleted = 1; // whenScaled specifies what happens to PVCs created from StatefulSet // VolumeClaimTemplates when the StatefulSet is scaled down. The default // policy of `Retain` causes PVCs to not be affected by a scaledown. The // `Delete` policy causes the associated PVCs for any excess pods above // the replica count to be deleted. optional string whenScaled = 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. Each pod will be named with the format // -. For example, a pod in a StatefulSet named // "web" with index number "3" would be named "web-3". 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; // minReadySeconds is the 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 = 9; // PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from // the StatefulSet VolumeClaimTemplates. This requires the // StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. // +optional optional StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy = 10; // ordinals controls the numbering of replica indices in a StatefulSet. The // default ordinals behavior assigns a "0" index to the first replica and // increments the index by one for each additional replica requested. Using // the ordinals field requires the StatefulSetStartOrdinal feature gate to be // enabled, which is beta. // +optional optional StatefulSetOrdinals ordinals = 11; } // 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 this StatefulSet controller with 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; // conditions represent the latest available observations of a statefulset's current state. // +optional // +patchMergeKey=type // +patchStrategy=merge repeated StatefulSetCondition conditions = 10; // availableReplicas is the total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet. // +optional optional int32 availableReplicas = 11; } // 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; } golang-k8s-api-0.29.0/apps/v1beta1/register.go000066400000000000000000000035001453636404600207150ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to 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 } golang-k8s-api-0.29.0/apps/v1beta1/types.go000066400000000000000000001060441453636404600202440ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/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 { // replicas is the number of observed instances of 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 { // replias is the actual number of observed instances of the scaled object. Replicas int32 `json:"replicas" protobuf:"varint,1,opt,name=replicas"` // selector is a label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ // +optional Selector map[string]string `json:"selector,omitempty" protobuf:"bytes,2,rep,name=selector"` // targetSelector is the 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.6 // +k8s:prerelease-lifecycle-gen:deprecated=1.8 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=autoscaling,v1,Scale // 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"` // spec 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"` // status defines 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.5 // +k8s:prerelease-lifecycle-gen:deprecated=1.8 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,StatefulSet // 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 // for updates. During a rolling update, all pods from ordinal Replicas-1 to // Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. // This is helpful in being able to do a canary based deployment. The default value is 0. Partition *int32 `json:"partition,omitempty" protobuf:"varint,1,opt,name=partition"` // maxUnavailable is 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 up. This can not be 0. // Defaults to 1. This field is alpha-level and is only honored by servers that enable the // MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to // Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it // will be counted towards MaxUnavailable. // +optional MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty" protobuf:"varint,2,opt,name=maxUnavailable"` } // PersistentVolumeClaimRetentionPolicyType is a string enumeration of the policies that will determine // when volumes from the VolumeClaimTemplates will be deleted when the controlling StatefulSet is // deleted or scaled down. type PersistentVolumeClaimRetentionPolicyType string const ( // RetainPersistentVolumeClaimRetentionPolicyType is the default // PersistentVolumeClaimRetentionPolicy and specifies that // PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates // will not be deleted. RetainPersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Retain" // RetentionPersistentVolumeClaimRetentionPolicyType specifies that // PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates // will be deleted in the scenario specified in // StatefulSetPersistentVolumeClaimRetentionPolicy. RetentionPersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Delete" ) // StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs // created from the StatefulSet VolumeClaimTemplates. type StatefulSetPersistentVolumeClaimRetentionPolicy struct { // whenDeleted specifies what happens to PVCs created from StatefulSet // VolumeClaimTemplates when the StatefulSet is deleted. The default policy // of `Retain` causes PVCs to not be affected by StatefulSet deletion. The // `Delete` policy causes those PVCs to be deleted. WhenDeleted PersistentVolumeClaimRetentionPolicyType `json:"whenDeleted,omitempty" protobuf:"bytes,1,opt,name=whenDeleted,casttype=PersistentVolumeClaimRetentionPolicyType"` // whenScaled specifies what happens to PVCs created from StatefulSet // VolumeClaimTemplates when the StatefulSet is scaled down. The default // policy of `Retain` causes PVCs to not be affected by a scaledown. The // `Delete` policy causes the associated PVCs for any excess pods above // the replica count to be deleted. WhenScaled PersistentVolumeClaimRetentionPolicyType `json:"whenScaled,omitempty" protobuf:"bytes,2,opt,name=whenScaled,casttype=PersistentVolumeClaimRetentionPolicyType"` } // StatefulSetOrdinals describes the policy used for replica ordinal assignment // in this StatefulSet. type StatefulSetOrdinals struct { // start is the number representing the first replica's index. It may be used // to number replicas from an alternate index (eg: 1-indexed) over the default // 0-indexed names, or to orchestrate progressive movement of replicas from // one StatefulSet to another. // If set, replica indices will be in the range: // [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). // If unset, defaults to 0. Replica indices will be in the range: // [0, .spec.replicas). // +optional Start int32 `json:"start" protobuf:"varint,1,opt,name=start"` } // 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. Each pod will be named with the format // -. For example, a pod in a StatefulSet named // "web" with index number "3" would be named "web-3". 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"` // minReadySeconds is the 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,9,opt,name=minReadySeconds"` // PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from // the StatefulSet VolumeClaimTemplates. This requires the // StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. // +optional PersistentVolumeClaimRetentionPolicy *StatefulSetPersistentVolumeClaimRetentionPolicy `json:"persistentVolumeClaimRetentionPolicy,omitempty" protobuf:"bytes,10,opt,name=persistentVolumeClaimRetentionPolicy"` // ordinals controls the numbering of replica indices in a StatefulSet. The // default ordinals behavior assigns a "0" index to the first replica and // increments the index by one for each additional replica requested. Using // the ordinals field requires the StatefulSetStartOrdinal feature gate to be // enabled, which is beta. // +optional Ordinals *StatefulSetOrdinals `json:"ordinals,omitempty" protobuf:"bytes,11,opt,name=ordinals"` } // 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 this StatefulSet controller with 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"` // conditions represent 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"` // availableReplicas is the total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet. // +optional AvailableReplicas int32 `json:"availableReplicas" protobuf:"varint,11,opt,name=availableReplicas"` } 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=k8s.io/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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.5 // +k8s:prerelease-lifecycle-gen:deprecated=1.8 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,StatefulSetList // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.6 // +k8s:prerelease-lifecycle-gen:deprecated=1.8 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,Deployment // 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 { // replicas is the 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"` // selector is the 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. // The only allowed template.spec.restartPolicy value is "Always". 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"` // minReadySeconds is the 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"` // revisionHistoryLimit is 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"` // paused indicates that the deployment is paused. // +optional Paused bool `json:"paused,omitempty" protobuf:"varint,7,opt,name=paused"` // DEPRECATED. // rollbackTo is 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"` // progressDeadlineSeconds is 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.6 // +k8s:prerelease-lifecycle-gen:deprecated=1.8 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,DeploymentRollback // 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 { // observedGeneration is the generation observed by the deployment controller. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` // replicas is the 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"` // updatedReplicas is the 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"` // readyReplicas is the number of pods targeted by this Deployment controller with a Ready Condition. // +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"` // unavailableReplicas is the 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"` // Conditions represent 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"` // collisionCount is the 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=k8s.io/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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.6 // +k8s:prerelease-lifecycle-gen:deprecated=1.8 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,DeploymentList // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.7 // +k8s:prerelease-lifecycle-gen:deprecated=1.8 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,ControllerRevision // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.7 // +k8s:prerelease-lifecycle-gen:deprecated=1.8 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,ControllerRevisionList // 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"` } golang-k8s-api-0.29.0/apps/v1beta1/types_swagger_doc_generated.go000066400000000000000000000561631453636404600246340ustar00rootroot00000000000000/* 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-codegen.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": "replicas is the number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", "selector": "selector is the 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. The only allowed template.spec.restartPolicy value is \"Always\".", "strategy": "The deployment strategy to use to replace existing pods with new ones.", "minReadySeconds": "minReadySeconds is the 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": "revisionHistoryLimit is 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": "paused indicates that the deployment is paused.", "rollbackTo": "DEPRECATED. rollbackTo is the config this deployment is rolling back to. Will be cleared after rollback is done.", "progressDeadlineSeconds": "progressDeadlineSeconds is 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": "observedGeneration is the generation observed by the deployment controller.", "replicas": "replicas is the total number of non-terminated pods targeted by this deployment (their labels match the selector).", "updatedReplicas": "updatedReplicas is the total number of non-terminated pods targeted by this deployment that have the desired template spec.", "readyReplicas": "readyReplicas is the number of pods targeted by this Deployment controller with a Ready Condition.", "availableReplicas": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", "unavailableReplicas": "unavailableReplicas is the 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": "Conditions represent the latest available observations of a deployment's current state.", "collisionCount": "collisionCount is the 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 for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.", "maxUnavailable": "maxUnavailable is 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 up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable.", } 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": "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": "status defines 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": "replicas is the number of observed instances of 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": "replias is the actual number of observed instances of the scaled object.", "selector": "selector is a label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/", "targetSelector": "targetSelector is the 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.\n\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_StatefulSetOrdinals = map[string]string{ "": "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.", "start": "start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:\n [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).\nIf unset, defaults to 0. Replica indices will be in the range:\n [0, .spec.replicas).", } func (StatefulSetOrdinals) SwaggerDoc() map[string]string { return map_StatefulSetOrdinals } var map_StatefulSetPersistentVolumeClaimRetentionPolicy = map[string]string{ "": "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.", "whenDeleted": "whenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.", "whenScaled": "whenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.", } func (StatefulSetPersistentVolumeClaimRetentionPolicy) SwaggerDoc() map[string]string { return map_StatefulSetPersistentVolumeClaimRetentionPolicy } 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. Each pod will be named with the format -. For example, a pod in a StatefulSet named \"web\" with index number \"3\" would be named \"web-3\".", "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.", "minReadySeconds": "minReadySeconds is the 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)", "persistentVolumeClaimRetentionPolicy": "PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha.", "ordinals": "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested. Using the ordinals field requires the StatefulSetStartOrdinal feature gate to be enabled, which is beta.", } 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 this StatefulSet controller with 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": "conditions represent the latest available observations of a statefulset's current state.", "availableReplicas": "availableReplicas is the total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet.", } 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 golang-k8s-api-0.29.0/apps/v1beta1/zz_generated.deepcopy.go000066400000000000000000000447311453636404600233740ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" intstr "k8s.io/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 } 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 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 *StatefulSetOrdinals) DeepCopyInto(out *StatefulSetOrdinals) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetOrdinals. func (in *StatefulSetOrdinals) DeepCopy() *StatefulSetOrdinals { if in == nil { return nil } out := new(StatefulSetOrdinals) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *StatefulSetPersistentVolumeClaimRetentionPolicy) DeepCopyInto(out *StatefulSetPersistentVolumeClaimRetentionPolicy) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetPersistentVolumeClaimRetentionPolicy. func (in *StatefulSetPersistentVolumeClaimRetentionPolicy) DeepCopy() *StatefulSetPersistentVolumeClaimRetentionPolicy { if in == nil { return nil } out := new(StatefulSetPersistentVolumeClaimRetentionPolicy) in.DeepCopyInto(out) return out } // 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 } if in.PersistentVolumeClaimRetentionPolicy != nil { in, out := &in.PersistentVolumeClaimRetentionPolicy, &out.PersistentVolumeClaimRetentionPolicy *out = new(StatefulSetPersistentVolumeClaimRetentionPolicy) **out = **in } if in.Ordinals != nil { in, out := &in.Ordinals, &out.Ordinals *out = new(StatefulSetOrdinals) **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 } golang-k8s-api-0.29.0/apps/v1beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000320261453636404600256420ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta1 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ControllerRevision) APILifecycleIntroduced() (major, minor int) { return 1, 7 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ControllerRevision) APILifecycleDeprecated() (major, minor int) { return 1, 8 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *ControllerRevision) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "ControllerRevision"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ControllerRevision) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ControllerRevisionList) APILifecycleIntroduced() (major, minor int) { return 1, 7 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ControllerRevisionList) APILifecycleDeprecated() (major, minor int) { return 1, 8 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *ControllerRevisionList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "ControllerRevisionList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ControllerRevisionList) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *Deployment) APILifecycleIntroduced() (major, minor int) { return 1, 6 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *Deployment) APILifecycleDeprecated() (major, minor int) { return 1, 8 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *Deployment) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "Deployment"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *Deployment) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *DeploymentList) APILifecycleIntroduced() (major, minor int) { return 1, 6 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *DeploymentList) APILifecycleDeprecated() (major, minor int) { return 1, 8 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *DeploymentList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "DeploymentList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *DeploymentList) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *DeploymentRollback) APILifecycleIntroduced() (major, minor int) { return 1, 6 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *DeploymentRollback) APILifecycleDeprecated() (major, minor int) { return 1, 8 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *DeploymentRollback) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "DeploymentRollback"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *DeploymentRollback) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *Scale) APILifecycleIntroduced() (major, minor int) { return 1, 6 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *Scale) APILifecycleDeprecated() (major, minor int) { return 1, 8 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *Scale) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "autoscaling", Version: "v1", Kind: "Scale"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *Scale) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *StatefulSet) APILifecycleIntroduced() (major, minor int) { return 1, 5 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *StatefulSet) APILifecycleDeprecated() (major, minor int) { return 1, 8 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *StatefulSet) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "StatefulSet"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *StatefulSet) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *StatefulSetList) APILifecycleIntroduced() (major, minor int) { return 1, 5 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *StatefulSetList) APILifecycleDeprecated() (major, minor int) { return 1, 8 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *StatefulSetList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "StatefulSetList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *StatefulSetList) APILifecycleRemoved() (major, minor int) { return 1, 16 } golang-k8s-api-0.29.0/apps/v1beta2/000077500000000000000000000000001453636404600165455ustar00rootroot00000000000000golang-k8s-api-0.29.0/apps/v1beta2/doc.go000066400000000000000000000013511453636404600176410ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true package v1beta2 // import "k8s.io/api/apps/v1beta2" golang-k8s-api-0.29.0/apps/v1beta2/generated.pb.go000066400000000000000000007273331453636404600214510ustar00rootroot00000000000000/* 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/k8s.io/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 "k8s.io/api/core/v1" v11 "k8s.io/api/core/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" math "math" math_bits "math/bits" reflect "reflect" strings "strings" intstr "k8s.io/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.GoGoProtoPackageIsVersion3 // 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 *StatefulSetOrdinals) Reset() { *m = StatefulSetOrdinals{} } func (*StatefulSetOrdinals) ProtoMessage() {} func (*StatefulSetOrdinals) Descriptor() ([]byte, []int) { return fileDescriptor_42fe616264472f7e, []int{28} } func (m *StatefulSetOrdinals) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StatefulSetOrdinals) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *StatefulSetOrdinals) XXX_Merge(src proto.Message) { xxx_messageInfo_StatefulSetOrdinals.Merge(m, src) } func (m *StatefulSetOrdinals) XXX_Size() int { return m.Size() } func (m *StatefulSetOrdinals) XXX_DiscardUnknown() { xxx_messageInfo_StatefulSetOrdinals.DiscardUnknown(m) } var xxx_messageInfo_StatefulSetOrdinals proto.InternalMessageInfo func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) Reset() { *m = StatefulSetPersistentVolumeClaimRetentionPolicy{} } func (*StatefulSetPersistentVolumeClaimRetentionPolicy) ProtoMessage() {} func (*StatefulSetPersistentVolumeClaimRetentionPolicy) Descriptor() ([]byte, []int) { return fileDescriptor_42fe616264472f7e, []int{29} } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_Merge(src proto.Message) { xxx_messageInfo_StatefulSetPersistentVolumeClaimRetentionPolicy.Merge(m, src) } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_Size() int { return m.Size() } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_DiscardUnknown() { xxx_messageInfo_StatefulSetPersistentVolumeClaimRetentionPolicy.DiscardUnknown(m) } var xxx_messageInfo_StatefulSetPersistentVolumeClaimRetentionPolicy proto.InternalMessageInfo func (m *StatefulSetSpec) Reset() { *m = StatefulSetSpec{} } func (*StatefulSetSpec) ProtoMessage() {} func (*StatefulSetSpec) Descriptor() ([]byte, []int) { return fileDescriptor_42fe616264472f7e, []int{30} } 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{31} } 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{32} } 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((*StatefulSetOrdinals)(nil), "k8s.io.api.apps.v1beta2.StatefulSetOrdinals") proto.RegisterType((*StatefulSetPersistentVolumeClaimRetentionPolicy)(nil), "k8s.io.api.apps.v1beta2.StatefulSetPersistentVolumeClaimRetentionPolicy") 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/k8s.io/api/apps/v1beta2/generated.proto", fileDescriptor_42fe616264472f7e) } var fileDescriptor_42fe616264472f7e = []byte{ // 2345 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0xcd, 0x6f, 0x1b, 0xc7, 0x15, 0xf7, 0xf2, 0x43, 0x26, 0x87, 0x96, 0x64, 0x8f, 0x54, 0x89, 0x91, 0x5b, 0xd2, 0x58, 0x1b, 0x8e, 0x12, 0xdb, 0xa4, 0xad, 0x7c, 0x20, 0xb1, 0xdb, 0xa4, 0xa2, 0x94, 0xda, 0x0e, 0xf4, 0xc1, 0x0c, 0x2d, 0x07, 0x0d, 0xfa, 0xe1, 0x11, 0x39, 0xa6, 0x36, 0x5a, 0xee, 0x2e, 0x76, 0x87, 0x8c, 0x89, 0x5e, 0x7a, 0x2d, 0x50, 0xa0, 0xed, 0xb5, 0xff, 0x44, 0xd1, 0x4b, 0x51, 0x34, 0xe8, 0xa5, 0x08, 0x02, 0x1f, 0x83, 0x5e, 0x92, 0x13, 0x51, 0x33, 0xa7, 0xa2, 0xe8, 0xad, 0xbd, 0x18, 0x28, 0x50, 0xcc, 0xec, 0xec, 0xf7, 0xae, 0xb9, 0x54, 0x6c, 0xe5, 0x03, 0xb9, 0x71, 0xe7, 0xbd, 0xf7, 0x9b, 0x37, 0x33, 0xef, 0xcd, 0xfb, 0xcd, 0x0c, 0xc1, 0x0f, 0x0f, 0x5f, 0xb3, 0x6a, 0x8a, 0x5e, 0x3f, 0xec, 0xef, 0x13, 0x53, 0x23, 0x94, 0x58, 0xf5, 0x01, 0xd1, 0x3a, 0xba, 0x59, 0x17, 0x02, 0x6c, 0x28, 0x75, 0x6c, 0x18, 0x56, 0x7d, 0x70, 0x6d, 0x9f, 0x50, 0xbc, 0x56, 0xef, 0x12, 0x8d, 0x98, 0x98, 0x92, 0x4e, 0xcd, 0x30, 0x75, 0xaa, 0xc3, 0x65, 0x5b, 0xb1, 0x86, 0x0d, 0xa5, 0xc6, 0x14, 0x6b, 0x42, 0x71, 0xe5, 0x4a, 0x57, 0xa1, 0x07, 0xfd, 0xfd, 0x5a, 0x5b, 0xef, 0xd5, 0xbb, 0x7a, 0x57, 0xaf, 0x73, 0xfd, 0xfd, 0xfe, 0x7d, 0xfe, 0xc5, 0x3f, 0xf8, 0x2f, 0x1b, 0x67, 0x45, 0xf6, 0x75, 0xd8, 0xd6, 0x4d, 0x52, 0x1f, 0x5c, 0x0b, 0xf7, 0xb5, 0xf2, 0xb2, 0xa7, 0xd3, 0xc3, 0xed, 0x03, 0x45, 0x23, 0xe6, 0xb0, 0x6e, 0x1c, 0x76, 0x59, 0x83, 0x55, 0xef, 0x11, 0x8a, 0xe3, 0xac, 0xea, 0x49, 0x56, 0x66, 0x5f, 0xa3, 0x4a, 0x8f, 0x44, 0x0c, 0x5e, 0x9d, 0x64, 0x60, 0xb5, 0x0f, 0x48, 0x0f, 0x47, 0xec, 0x5e, 0x4a, 0xb2, 0xeb, 0x53, 0x45, 0xad, 0x2b, 0x1a, 0xb5, 0xa8, 0x19, 0x36, 0x92, 0xff, 0x2b, 0x01, 0xb8, 0xa1, 0x6b, 0xd4, 0xd4, 0x55, 0x95, 0x98, 0x88, 0x0c, 0x14, 0x4b, 0xd1, 0x35, 0x78, 0x0f, 0x14, 0xd8, 0x78, 0x3a, 0x98, 0xe2, 0xb2, 0x74, 0x4e, 0x5a, 0x2d, 0xad, 0x5d, 0xad, 0x79, 0x33, 0xed, 0xc2, 0xd7, 0x8c, 0xc3, 0x2e, 0x6b, 0xb0, 0x6a, 0x4c, 0xbb, 0x36, 0xb8, 0x56, 0xdb, 0xdd, 0x7f, 0x9f, 0xb4, 0xe9, 0x36, 0xa1, 0xb8, 0x01, 0x1f, 0x8e, 0xaa, 0x27, 0xc6, 0xa3, 0x2a, 0xf0, 0xda, 0x90, 0x8b, 0x0a, 0x77, 0x41, 0x8e, 0xa3, 0x67, 0x38, 0xfa, 0x95, 0x44, 0x74, 0x31, 0xe8, 0x1a, 0xc2, 0x1f, 0xbc, 0xf5, 0x80, 0x12, 0x8d, 0xb9, 0xd7, 0x38, 0x25, 0xa0, 0x73, 0x9b, 0x98, 0x62, 0xc4, 0x81, 0xe0, 0x65, 0x50, 0x30, 0x85, 0xfb, 0xe5, 0xec, 0x39, 0x69, 0x35, 0xdb, 0x38, 0x2d, 0xb4, 0x0a, 0xce, 0xb0, 0x90, 0xab, 0x21, 0x3f, 0x94, 0xc0, 0x52, 0x74, 0xdc, 0x5b, 0x8a, 0x45, 0xe1, 0x4f, 0x22, 0x63, 0xaf, 0xa5, 0x1b, 0x3b, 0xb3, 0xe6, 0x23, 0x77, 0x3b, 0x76, 0x5a, 0x7c, 0xe3, 0x6e, 0x82, 0xbc, 0x42, 0x49, 0xcf, 0x2a, 0x67, 0xce, 0x65, 0x57, 0x4b, 0x6b, 0x97, 0x6a, 0x09, 0x01, 0x5c, 0x8b, 0x7a, 0xd7, 0x98, 0x15, 0xb8, 0xf9, 0xdb, 0x0c, 0x01, 0xd9, 0x40, 0xf2, 0xaf, 0x32, 0xa0, 0xb8, 0x89, 0x49, 0x4f, 0xd7, 0x5a, 0x84, 0x1e, 0xc3, 0xca, 0xdd, 0x02, 0x39, 0xcb, 0x20, 0x6d, 0xb1, 0x72, 0x17, 0x13, 0x07, 0xe0, 0xfa, 0xd4, 0x32, 0x48, 0xdb, 0x5b, 0x32, 0xf6, 0x85, 0x38, 0x02, 0x6c, 0x82, 0x19, 0x8b, 0x62, 0xda, 0xb7, 0xf8, 0x82, 0x95, 0xd6, 0x56, 0x53, 0x60, 0x71, 0xfd, 0xc6, 0x9c, 0x40, 0x9b, 0xb1, 0xbf, 0x91, 0xc0, 0x91, 0xff, 0x99, 0x01, 0xd0, 0xd5, 0xdd, 0xd0, 0xb5, 0x8e, 0x42, 0x59, 0x38, 0x5f, 0x07, 0x39, 0x3a, 0x34, 0x08, 0x9f, 0x90, 0x62, 0xe3, 0xa2, 0xe3, 0xca, 0x9d, 0xa1, 0x41, 0x1e, 0x8f, 0xaa, 0x4b, 0x51, 0x0b, 0x26, 0x41, 0xdc, 0x06, 0x6e, 0xb9, 0x4e, 0x66, 0xb8, 0xf5, 0xcb, 0xc1, 0xae, 0x1f, 0x8f, 0xaa, 0x31, 0x7b, 0x47, 0xcd, 0x45, 0x0a, 0x3a, 0x08, 0x07, 0x00, 0xaa, 0xd8, 0xa2, 0x77, 0x4c, 0xac, 0x59, 0x76, 0x4f, 0x4a, 0x8f, 0x88, 0xe1, 0xbf, 0x98, 0x6e, 0xa1, 0x98, 0x45, 0x63, 0x45, 0x78, 0x01, 0xb7, 0x22, 0x68, 0x28, 0xa6, 0x07, 0x78, 0x11, 0xcc, 0x98, 0x04, 0x5b, 0xba, 0x56, 0xce, 0xf1, 0x51, 0xb8, 0x13, 0x88, 0x78, 0x2b, 0x12, 0x52, 0xf8, 0x02, 0x38, 0xd9, 0x23, 0x96, 0x85, 0xbb, 0xa4, 0x9c, 0xe7, 0x8a, 0xf3, 0x42, 0xf1, 0xe4, 0xb6, 0xdd, 0x8c, 0x1c, 0xb9, 0xfc, 0x27, 0x09, 0xcc, 0xba, 0x33, 0x77, 0x0c, 0x99, 0x73, 0x33, 0x98, 0x39, 0xf2, 0xe4, 0x60, 0x49, 0x48, 0x98, 0x8f, 0xb2, 0x3e, 0xc7, 0x59, 0x38, 0xc2, 0x9f, 0x82, 0x82, 0x45, 0x54, 0xd2, 0xa6, 0xba, 0x29, 0x1c, 0x7f, 0x29, 0xa5, 0xe3, 0x78, 0x9f, 0xa8, 0x2d, 0x61, 0xda, 0x38, 0xc5, 0x3c, 0x77, 0xbe, 0x90, 0x0b, 0x09, 0xdf, 0x01, 0x05, 0x4a, 0x7a, 0x86, 0x8a, 0x29, 0x11, 0x59, 0x73, 0xde, 0xef, 0x3c, 0x8b, 0x19, 0x06, 0xd6, 0xd4, 0x3b, 0x77, 0x84, 0x1a, 0x4f, 0x19, 0x77, 0x32, 0x9c, 0x56, 0xe4, 0xc2, 0x40, 0x03, 0xcc, 0xf5, 0x8d, 0x0e, 0xd3, 0xa4, 0x6c, 0x3b, 0xef, 0x0e, 0x45, 0x0c, 0x5d, 0x9d, 0x3c, 0x2b, 0x7b, 0x01, 0xbb, 0xc6, 0x92, 0xe8, 0x65, 0x2e, 0xd8, 0x8e, 0x42, 0xf8, 0x70, 0x1d, 0xcc, 0xf7, 0x14, 0x0d, 0x11, 0xdc, 0x19, 0xb6, 0x48, 0x5b, 0xd7, 0x3a, 0x16, 0x0f, 0xa5, 0x7c, 0x63, 0x59, 0x00, 0xcc, 0x6f, 0x07, 0xc5, 0x28, 0xac, 0x0f, 0xb7, 0xc0, 0xa2, 0xb3, 0x01, 0xdf, 0x52, 0x2c, 0xaa, 0x9b, 0xc3, 0x2d, 0xa5, 0xa7, 0xd0, 0xf2, 0x0c, 0xc7, 0x29, 0x8f, 0x47, 0xd5, 0x45, 0x14, 0x23, 0x47, 0xb1, 0x56, 0xf2, 0xef, 0x66, 0xc0, 0x7c, 0x68, 0x5f, 0x80, 0x77, 0xc1, 0x52, 0xbb, 0x6f, 0x9a, 0x44, 0xa3, 0x3b, 0xfd, 0xde, 0x3e, 0x31, 0x5b, 0xed, 0x03, 0xd2, 0xe9, 0xab, 0xa4, 0xc3, 0x97, 0x35, 0xdf, 0xa8, 0x08, 0x5f, 0x97, 0x36, 0x62, 0xb5, 0x50, 0x82, 0x35, 0x7c, 0x1b, 0x40, 0x8d, 0x37, 0x6d, 0x2b, 0x96, 0xe5, 0x62, 0x66, 0x38, 0xa6, 0x9b, 0x8a, 0x3b, 0x11, 0x0d, 0x14, 0x63, 0xc5, 0x7c, 0xec, 0x10, 0x4b, 0x31, 0x49, 0x27, 0xec, 0x63, 0x36, 0xe8, 0xe3, 0x66, 0xac, 0x16, 0x4a, 0xb0, 0x86, 0xaf, 0x80, 0x92, 0xdd, 0x1b, 0x9f, 0x73, 0xb1, 0x38, 0x0b, 0x02, 0xac, 0xb4, 0xe3, 0x89, 0x90, 0x5f, 0x8f, 0x0d, 0x4d, 0xdf, 0xb7, 0x88, 0x39, 0x20, 0x9d, 0x9b, 0x36, 0x39, 0x60, 0x15, 0x34, 0xcf, 0x2b, 0xa8, 0x3b, 0xb4, 0xdd, 0x88, 0x06, 0x8a, 0xb1, 0x62, 0x43, 0xb3, 0xa3, 0x26, 0x32, 0xb4, 0x99, 0xe0, 0xd0, 0xf6, 0x62, 0xb5, 0x50, 0x82, 0x35, 0x8b, 0x3d, 0xdb, 0xe5, 0xf5, 0x01, 0x56, 0x54, 0xbc, 0xaf, 0x92, 0xf2, 0xc9, 0x60, 0xec, 0xed, 0x04, 0xc5, 0x28, 0xac, 0x0f, 0x6f, 0x82, 0x33, 0x76, 0xd3, 0x9e, 0x86, 0x5d, 0x90, 0x02, 0x07, 0x79, 0x4e, 0x80, 0x9c, 0xd9, 0x09, 0x2b, 0xa0, 0xa8, 0x0d, 0xbc, 0x0e, 0xe6, 0xda, 0xba, 0xaa, 0xf2, 0x78, 0xdc, 0xd0, 0xfb, 0x1a, 0x2d, 0x17, 0x39, 0x0a, 0x64, 0x39, 0xb4, 0x11, 0x90, 0xa0, 0x90, 0x26, 0xfc, 0x39, 0x00, 0x6d, 0xa7, 0x30, 0x58, 0x65, 0x30, 0x81, 0x01, 0x44, 0xcb, 0x92, 0x57, 0x99, 0xdd, 0x26, 0x0b, 0xf9, 0x20, 0xe5, 0x8f, 0x24, 0xb0, 0x9c, 0x90, 0xe8, 0xf0, 0xcd, 0x40, 0x11, 0xbc, 0x14, 0x2a, 0x82, 0x67, 0x13, 0xcc, 0x7c, 0x95, 0xf0, 0x00, 0xcc, 0x32, 0x42, 0xa2, 0x68, 0x5d, 0x5b, 0x45, 0xec, 0x65, 0xf5, 0xc4, 0x01, 0x20, 0xbf, 0xb6, 0xb7, 0x2b, 0x9f, 0x19, 0x8f, 0xaa, 0xb3, 0x01, 0x19, 0x0a, 0x02, 0xcb, 0xbf, 0xce, 0x00, 0xb0, 0x49, 0x0c, 0x55, 0x1f, 0xf6, 0x88, 0x76, 0x1c, 0x9c, 0xe6, 0x76, 0x80, 0xd3, 0x3c, 0x9f, 0xbc, 0x24, 0xae, 0x53, 0x89, 0xa4, 0xe6, 0x9d, 0x10, 0xa9, 0x79, 0x21, 0x0d, 0xd8, 0x93, 0x59, 0xcd, 0xa7, 0x59, 0xb0, 0xe0, 0x29, 0x7b, 0xb4, 0xe6, 0x46, 0x60, 0x45, 0x9f, 0x0f, 0xad, 0xe8, 0x72, 0x8c, 0xc9, 0x33, 0xe3, 0x35, 0xef, 0x83, 0x39, 0xc6, 0x3a, 0xec, 0xf5, 0xe3, 0x9c, 0x66, 0x66, 0x6a, 0x4e, 0xe3, 0x56, 0xa2, 0xad, 0x00, 0x12, 0x0a, 0x21, 0x27, 0x70, 0xa8, 0x93, 0x5f, 0x47, 0x0e, 0xf5, 0x67, 0x09, 0xcc, 0x79, 0xcb, 0x74, 0x0c, 0x24, 0xea, 0x56, 0x90, 0x44, 0x9d, 0x4f, 0x11, 0x9c, 0x09, 0x2c, 0xea, 0xd3, 0x9c, 0xdf, 0x75, 0x4e, 0xa3, 0x56, 0xd9, 0x11, 0xcc, 0x50, 0x95, 0x36, 0xb6, 0x44, 0xbd, 0x3d, 0x65, 0x1f, 0xbf, 0xec, 0x36, 0xe4, 0x4a, 0x03, 0x84, 0x2b, 0xf3, 0x6c, 0x09, 0x57, 0xf6, 0xe9, 0x10, 0xae, 0x1f, 0x83, 0x82, 0xe5, 0x50, 0xad, 0x1c, 0x87, 0xbc, 0x94, 0x2a, 0xb1, 0x05, 0xcb, 0x72, 0xa1, 0x5d, 0x7e, 0xe5, 0xc2, 0xc5, 0x31, 0xab, 0xfc, 0x97, 0xc9, 0xac, 0x58, 0xa0, 0x1b, 0xb8, 0x6f, 0x91, 0x0e, 0x4f, 0xaa, 0x82, 0x17, 0xe8, 0x4d, 0xde, 0x8a, 0x84, 0x14, 0xee, 0x81, 0x65, 0xc3, 0xd4, 0xbb, 0x26, 0xb1, 0xac, 0x4d, 0x82, 0x3b, 0xaa, 0xa2, 0x11, 0x67, 0x00, 0x76, 0x4d, 0x3c, 0x3b, 0x1e, 0x55, 0x97, 0x9b, 0xf1, 0x2a, 0x28, 0xc9, 0x56, 0xfe, 0x5b, 0x0e, 0x9c, 0x0e, 0xef, 0x8d, 0x09, 0x34, 0x45, 0x3a, 0x12, 0x4d, 0xb9, 0xec, 0x8b, 0x53, 0x9b, 0xc3, 0xf9, 0xae, 0x0a, 0x22, 0xb1, 0xba, 0x0e, 0xe6, 0x05, 0x2d, 0x71, 0x84, 0x82, 0xa8, 0xb9, 0xcb, 0xb3, 0x17, 0x14, 0xa3, 0xb0, 0x3e, 0xbc, 0x01, 0x66, 0x4d, 0xce, 0xbc, 0x1c, 0x00, 0x9b, 0xbd, 0x7c, 0x47, 0x00, 0xcc, 0x22, 0xbf, 0x10, 0x05, 0x75, 0x19, 0x73, 0xf1, 0x08, 0x89, 0x03, 0x90, 0x0b, 0x32, 0x97, 0xf5, 0xb0, 0x02, 0x8a, 0xda, 0xc0, 0x6d, 0xb0, 0xd0, 0xd7, 0xa2, 0x50, 0x76, 0xac, 0x9d, 0x15, 0x50, 0x0b, 0x7b, 0x51, 0x15, 0x14, 0x67, 0x07, 0xef, 0x05, 0xc8, 0xcc, 0x0c, 0xdf, 0x4f, 0x2e, 0xa7, 0xc8, 0x89, 0xd4, 0x6c, 0x26, 0x86, 0x6a, 0x15, 0xd2, 0x52, 0x2d, 0xf9, 0x43, 0x09, 0xc0, 0x68, 0x1e, 0x4e, 0xbc, 0x09, 0x88, 0x58, 0xf8, 0x2a, 0xa6, 0x12, 0xcf, 0x7f, 0xae, 0xa6, 0xe4, 0x3f, 0xde, 0x86, 0x9a, 0x8e, 0x00, 0x89, 0x89, 0x3e, 0x9e, 0x4b, 0x9d, 0xb4, 0x04, 0xc8, 0x73, 0xea, 0x29, 0x10, 0x20, 0x1f, 0xd8, 0x93, 0x09, 0xd0, 0xbf, 0x32, 0x60, 0xc1, 0x53, 0x4e, 0x4d, 0x80, 0x62, 0x4c, 0xbe, 0xbd, 0xd8, 0x49, 0x47, 0x4a, 0xbc, 0xa9, 0xfb, 0x2a, 0x91, 0x12, 0xcf, 0xab, 0x04, 0x52, 0xf2, 0x87, 0x8c, 0xdf, 0xf5, 0x29, 0x49, 0xc9, 0x53, 0xb8, 0xe1, 0xf8, 0xda, 0xf1, 0x1a, 0xf9, 0xe3, 0x2c, 0x38, 0x1d, 0xce, 0xc3, 0x40, 0x81, 0x94, 0x26, 0x16, 0xc8, 0x26, 0x58, 0xbc, 0xdf, 0x57, 0xd5, 0x21, 0x1f, 0x83, 0xaf, 0x4a, 0xda, 0xa5, 0xf5, 0xbb, 0xc2, 0x72, 0xf1, 0x47, 0x31, 0x3a, 0x28, 0xd6, 0x32, 0x5a, 0x2f, 0x73, 0x5f, 0xb4, 0x5e, 0xe6, 0x8f, 0x50, 0x2f, 0xe3, 0x29, 0x47, 0xf6, 0x48, 0x94, 0x63, 0xba, 0x62, 0x19, 0xb3, 0x71, 0x4d, 0x3c, 0xfa, 0x8f, 0x25, 0xb0, 0x14, 0x7f, 0xe0, 0x86, 0x2a, 0x98, 0xeb, 0xe1, 0x07, 0xfe, 0x8b, 0x8f, 0x49, 0x45, 0xa4, 0x4f, 0x15, 0xb5, 0x66, 0x3f, 0x19, 0xd5, 0x6e, 0x6b, 0x74, 0xd7, 0x6c, 0x51, 0x53, 0xd1, 0xba, 0x76, 0xe5, 0xdd, 0x0e, 0x60, 0xa1, 0x10, 0x36, 0x7c, 0x0f, 0x14, 0x7a, 0xf8, 0x41, 0xab, 0x6f, 0x76, 0xe3, 0x2a, 0x64, 0xba, 0x7e, 0x78, 0x02, 0x6c, 0x0b, 0x14, 0xe4, 0xe2, 0xc9, 0x9f, 0x4b, 0x60, 0x39, 0xa1, 0xaa, 0x7e, 0x83, 0x46, 0xf9, 0x57, 0x09, 0x9c, 0x0b, 0x8c, 0x92, 0xa5, 0x25, 0xb9, 0xdf, 0x57, 0x79, 0x86, 0x0a, 0x26, 0x73, 0x09, 0x14, 0x0d, 0x6c, 0x52, 0xc5, 0xe5, 0xc1, 0xf9, 0xc6, 0xec, 0x78, 0x54, 0x2d, 0x36, 0x9d, 0x46, 0xe4, 0xc9, 0x63, 0xe6, 0x26, 0xf3, 0xec, 0xe6, 0x46, 0xfe, 0x9f, 0x04, 0xf2, 0xad, 0x36, 0x56, 0xc9, 0x31, 0x10, 0x97, 0xcd, 0x00, 0x71, 0x49, 0x7e, 0x14, 0xe0, 0xfe, 0x24, 0x72, 0x96, 0xad, 0x10, 0x67, 0xb9, 0x30, 0x01, 0xe7, 0xc9, 0x74, 0xe5, 0x75, 0x50, 0x74, 0xbb, 0x9b, 0x6e, 0x2f, 0x95, 0x7f, 0x9f, 0x01, 0x25, 0x5f, 0x17, 0x53, 0xee, 0xc4, 0xf7, 0x02, 0xe5, 0x87, 0xed, 0x31, 0x6b, 0x69, 0x06, 0x52, 0x73, 0x4a, 0xcd, 0x5b, 0x1a, 0x35, 0xfd, 0x67, 0xd5, 0x68, 0x05, 0x7a, 0x03, 0xcc, 0x51, 0x6c, 0x76, 0x09, 0x75, 0x64, 0x7c, 0xc2, 0x8a, 0xde, 0xdd, 0xcd, 0x9d, 0x80, 0x14, 0x85, 0xb4, 0x57, 0x6e, 0x80, 0xd9, 0x40, 0x67, 0xf0, 0x34, 0xc8, 0x1e, 0x92, 0xa1, 0xcd, 0xe0, 0x10, 0xfb, 0x09, 0x17, 0x41, 0x7e, 0x80, 0xd5, 0xbe, 0x1d, 0xa2, 0x45, 0x64, 0x7f, 0x5c, 0xcf, 0xbc, 0x26, 0xc9, 0xbf, 0x61, 0x93, 0xe3, 0xa5, 0xc2, 0x31, 0x44, 0xd7, 0xdb, 0x81, 0xe8, 0x4a, 0x7e, 0x9f, 0xf4, 0x27, 0x68, 0x52, 0x8c, 0xa1, 0x50, 0x8c, 0xbd, 0x98, 0x0a, 0xed, 0xc9, 0x91, 0xf6, 0xef, 0x0c, 0x58, 0xf4, 0x69, 0x7b, 0xcc, 0xf8, 0xfb, 0x01, 0x66, 0xbc, 0x1a, 0x62, 0xc6, 0xe5, 0x38, 0x9b, 0x6f, 0xa9, 0xf1, 0x64, 0x6a, 0xfc, 0x17, 0x09, 0xcc, 0xfb, 0xe6, 0xee, 0x18, 0xb8, 0xf1, 0xed, 0x20, 0x37, 0xbe, 0x90, 0x26, 0x68, 0x12, 0xc8, 0xf1, 0x75, 0xb0, 0xe0, 0x53, 0xda, 0x35, 0x3b, 0x8a, 0x86, 0x55, 0x0b, 0x9e, 0x07, 0x79, 0x8b, 0x62, 0x93, 0x3a, 0x45, 0xc4, 0xb1, 0x6d, 0xb1, 0x46, 0x64, 0xcb, 0xe4, 0xff, 0x48, 0xa0, 0xee, 0x33, 0x6e, 0x12, 0xd3, 0x52, 0x2c, 0x4a, 0x34, 0x7a, 0x57, 0x57, 0xfb, 0x3d, 0xb2, 0xa1, 0x62, 0xa5, 0x87, 0x08, 0x6b, 0x50, 0x74, 0xad, 0xa9, 0xab, 0x4a, 0x7b, 0x08, 0x31, 0x28, 0x7d, 0x70, 0x40, 0xb4, 0x4d, 0xa2, 0x12, 0x2a, 0x5e, 0xe0, 0x8a, 0x8d, 0x37, 0x9d, 0x07, 0xa9, 0x77, 0x3d, 0xd1, 0xe3, 0x51, 0x75, 0x35, 0x0d, 0x22, 0x8f, 0x50, 0x3f, 0x26, 0xfc, 0x19, 0x00, 0xec, 0x93, 0xef, 0x65, 0x1d, 0x11, 0xac, 0x6f, 0x38, 0x19, 0xfd, 0xae, 0x2b, 0x99, 0xaa, 0x03, 0x1f, 0xa2, 0xfc, 0xc7, 0x42, 0x60, 0xbd, 0xbf, 0xf1, 0xb7, 0x9c, 0xbf, 0x00, 0x8b, 0x03, 0x6f, 0x76, 0x1c, 0x05, 0xc6, 0xbf, 0xb3, 0xe1, 0x93, 0xbc, 0x0b, 0x1f, 0x37, 0xaf, 0x1e, 0xeb, 0xbf, 0x1b, 0x03, 0x87, 0x62, 0x3b, 0x81, 0xaf, 0x80, 0x12, 0xe3, 0xcd, 0x4a, 0x9b, 0xec, 0xe0, 0x9e, 0x93, 0x8b, 0xee, 0x03, 0x66, 0xcb, 0x13, 0x21, 0xbf, 0x1e, 0x3c, 0x00, 0x0b, 0x86, 0xde, 0xd9, 0xc6, 0x1a, 0xee, 0x12, 0x46, 0x04, 0xed, 0xa5, 0xe4, 0x57, 0x9f, 0xc5, 0xc6, 0xab, 0xce, 0xb5, 0x56, 0x33, 0xaa, 0xf2, 0x78, 0x54, 0x5d, 0x8e, 0x69, 0xe6, 0x41, 0x10, 0x07, 0x09, 0xcd, 0xc8, 0xa3, 0xbb, 0xfd, 0xe8, 0xb0, 0x96, 0x26, 0x29, 0x8f, 0xf8, 0xec, 0x9e, 0x74, 0xb3, 0x5b, 0x38, 0xd2, 0xcd, 0x6e, 0xcc, 0x11, 0xb7, 0x38, 0xe5, 0x11, 0xf7, 0x63, 0x09, 0x5c, 0x30, 0x52, 0xe4, 0x52, 0x19, 0xf0, 0xb9, 0xb9, 0x95, 0x66, 0x6e, 0xd2, 0xe4, 0x66, 0x63, 0x75, 0x3c, 0xaa, 0x5e, 0x48, 0xa3, 0x89, 0x52, 0xf9, 0x07, 0xef, 0x82, 0x82, 0x2e, 0xf6, 0xc0, 0x72, 0x89, 0xfb, 0x7a, 0x39, 0x8d, 0xaf, 0xce, 0xbe, 0x69, 0xa7, 0xa5, 0xf3, 0x85, 0x5c, 0x2c, 0xf9, 0xc3, 0x3c, 0x38, 0x13, 0xa9, 0xe0, 0x5f, 0xe2, 0xfd, 0x75, 0xe4, 0x30, 0x9d, 0x9d, 0xe2, 0x30, 0xbd, 0x0e, 0xe6, 0xc5, 0x5f, 0x22, 0x42, 0x67, 0x71, 0x37, 0x60, 0x36, 0x82, 0x62, 0x14, 0xd6, 0x8f, 0xbb, 0x3f, 0xcf, 0x4f, 0x79, 0x7f, 0xee, 0xf7, 0x42, 0xfc, 0xc5, 0xcf, 0x4e, 0xef, 0xa8, 0x17, 0xe2, 0x9f, 0x7e, 0x61, 0x7d, 0x46, 0x5c, 0x6d, 0x54, 0x17, 0xe1, 0x64, 0x90, 0xb8, 0xee, 0x05, 0xa4, 0x28, 0xa4, 0xfd, 0x85, 0x9e, 0xfd, 0x71, 0xcc, 0xb3, 0xff, 0x95, 0x34, 0xb1, 0x96, 0xfe, 0xaa, 0x3c, 0xf6, 0xd2, 0xa3, 0x34, 0xfd, 0xa5, 0x87, 0xfc, 0x77, 0x09, 0x3c, 0x97, 0xb8, 0x6b, 0xc1, 0xf5, 0x00, 0xad, 0xbc, 0x12, 0xa2, 0x95, 0xdf, 0x4b, 0x34, 0xf4, 0x71, 0x4b, 0x33, 0xfe, 0x16, 0xfd, 0xf5, 0x74, 0xb7, 0xe8, 0x31, 0x27, 0xe1, 0xc9, 0xd7, 0xe9, 0x8d, 0x1f, 0x3c, 0x7c, 0x54, 0x39, 0xf1, 0xc9, 0xa3, 0xca, 0x89, 0xcf, 0x1e, 0x55, 0x4e, 0xfc, 0x72, 0x5c, 0x91, 0x1e, 0x8e, 0x2b, 0xd2, 0x27, 0xe3, 0x8a, 0xf4, 0xd9, 0xb8, 0x22, 0xfd, 0x63, 0x5c, 0x91, 0x7e, 0xfb, 0x79, 0xe5, 0xc4, 0x7b, 0xcb, 0x09, 0x7f, 0x3a, 0xfe, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd1, 0xcb, 0x7d, 0xc7, 0xa7, 0x2c, 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.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 *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.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] = 0x12 } 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 *StatefulSetOrdinals) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *StatefulSetOrdinals) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StatefulSetOrdinals) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i = encodeVarintGenerated(dAtA, i, uint64(m.Start)) i-- dAtA[i] = 0x8 return len(dAtA) - i, nil } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.WhenScaled) copy(dAtA[i:], m.WhenScaled) i = encodeVarintGenerated(dAtA, i, uint64(len(m.WhenScaled))) i-- dAtA[i] = 0x12 i -= len(m.WhenDeleted) copy(dAtA[i:], m.WhenDeleted) i = encodeVarintGenerated(dAtA, i, uint64(len(m.WhenDeleted))) 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.Ordinals != nil { { size, err := m.Ordinals.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x5a } if m.PersistentVolumeClaimRetentionPolicy != nil { { size, err := m.PersistentVolumeClaimRetentionPolicy.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x52 } i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds)) i-- dAtA[i] = 0x48 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 i = encodeVarintGenerated(dAtA, i, uint64(m.AvailableReplicas)) i-- dAtA[i] = 0x58 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)) } if m.MaxSurge != nil { l = m.MaxSurge.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)) } if m.MaxUnavailable != nil { l = m.MaxUnavailable.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 *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 *StatefulSetOrdinals) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 1 + sovGenerated(uint64(m.Start)) return n } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.WhenDeleted) n += 1 + l + sovGenerated(uint64(l)) l = len(m.WhenScaled) 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)) } n += 1 + sovGenerated(uint64(m.MinReadySeconds)) if m.PersistentVolumeClaimRetentionPolicy != nil { l = m.PersistentVolumeClaimRetentionPolicy.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.Ordinals != nil { l = m.Ordinals.Size() n += 1 + l + sovGenerated(uint64(l)) } 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)) } } n += 1 + sovGenerated(uint64(m.AvailableReplicas)) 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) + `,`, `MaxSurge:` + strings.Replace(fmt.Sprintf("%v", this.MaxSurge), "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) + `,`, `MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "intstr.IntOrString", 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 *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 *StatefulSetOrdinals) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&StatefulSetOrdinals{`, `Start:` + fmt.Sprintf("%v", this.Start) + `,`, `}`, }, "") return s } func (this *StatefulSetPersistentVolumeClaimRetentionPolicy) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&StatefulSetPersistentVolumeClaimRetentionPolicy{`, `WhenDeleted:` + fmt.Sprintf("%v", this.WhenDeleted) + `,`, `WhenScaled:` + fmt.Sprintf("%v", this.WhenScaled) + `,`, `}`, }, "") 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) + `,`, `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`, `PersistentVolumeClaimRetentionPolicy:` + strings.Replace(this.PersistentVolumeClaimRetentionPolicy.String(), "StatefulSetPersistentVolumeClaimRetentionPolicy", "StatefulSetPersistentVolumeClaimRetentionPolicy", 1) + `,`, `Ordinals:` + strings.Replace(this.Ordinals.String(), "StatefulSetOrdinals", "StatefulSetOrdinals", 1) + `,`, `}`, }, "") 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 + `,`, `AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`, `}`, }, "") 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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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 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) || (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) || (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 case 2: 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) || (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) || (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) || (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) || (iNdEx+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) || (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) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StatefulSetOrdinals) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: StatefulSetOrdinals: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StatefulSetOrdinals: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) } m.Start = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Start |= int32(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: StatefulSetPersistentVolumeClaimRetentionPolicy: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StatefulSetPersistentVolumeClaimRetentionPolicy: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field WhenDeleted", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.WhenDeleted = PersistentVolumeClaimRetentionPolicyType(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field WhenScaled", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.WhenScaled = PersistentVolumeClaimRetentionPolicyType(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 case 9: 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 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeClaimRetentionPolicy", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.PersistentVolumeClaimRetentionPolicy == nil { m.PersistentVolumeClaimRetentionPolicy = &StatefulSetPersistentVolumeClaimRetentionPolicy{} } if err := m.PersistentVolumeClaimRetentionPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 11: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Ordinals", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Ordinals == nil { m.Ordinals = &StatefulSetOrdinals{} } if err := m.Ordinals.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 case 11: 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 } } default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/apps/v1beta2/generated.proto000066400000000000000000001106241453636404600215740ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/apps/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). // The only allowed template.spec.restartPolicy value is "Always". // 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; // Total number of nodes that should be running the daemon pod and have one // or more of the daemon pod running with a Ready Condition by passing the readinessProbe. 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. // The only allowed template.spec.restartPolicy value is "Always". 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; // readyReplicas is the number of pods targeted by this Deployment controller with a Ready Condition. // +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 observed 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; // readyReplicas is the number of pods targeted by this ReplicaSet controller with a Ready Condition. // +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 if MaxSurge is 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; // The maximum number of nodes with an existing available DaemonSet pod that // can have an updated DaemonSet pod during during an update. // 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 to a minimum of 1. // Default value is 0. // 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 a new pod created before the old pod is marked as deleted. // The update starts by launching new pods on 30% of nodes. Once an updated // pod is available (Ready for at least minReadySeconds) the old DaemonSet pod // on that node is marked deleted. If the old pod becomes unavailable for any // reason (Ready transitions to false, is evicted, or is drained) an updated // pod is immediatedly created on that node without considering surge limits. // Allowing surge implies the possibility that the resources consumed by the // daemonset on any given node can double if the readiness check fails, and // so resource intensive daemonsets should take into account that they may // cause evictions during disruption. // +optional optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2; } // 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 // for updates. During a rolling update, all pods from ordinal Replicas-1 to // Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. // This is helpful in being able to do a canary based deployment. The default value is 0. // +optional optional int32 partition = 1; // 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 up. This can not be 0. // Defaults to 1. This field is alpha-level and is only honored by servers that enable the // MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to // Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it // will be counted towards MaxUnavailable. // +optional optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 2; } // 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; // selector is a label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ // +optional // +mapType=atomic 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; } // StatefulSetOrdinals describes the policy used for replica ordinal assignment // in this StatefulSet. message StatefulSetOrdinals { // start is the number representing the first replica's index. It may be used // to number replicas from an alternate index (eg: 1-indexed) over the default // 0-indexed names, or to orchestrate progressive movement of replicas from // one StatefulSet to another. // If set, replica indices will be in the range: // [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). // If unset, defaults to 0. Replica indices will be in the range: // [0, .spec.replicas). // +optional optional int32 start = 1; } // StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs // created from the StatefulSet VolumeClaimTemplates. message StatefulSetPersistentVolumeClaimRetentionPolicy { // WhenDeleted specifies what happens to PVCs created from StatefulSet // VolumeClaimTemplates when the StatefulSet is deleted. The default policy // of `Retain` causes PVCs to not be affected by StatefulSet deletion. The // `Delete` policy causes those PVCs to be deleted. optional string whenDeleted = 1; // WhenScaled specifies what happens to PVCs created from StatefulSet // VolumeClaimTemplates when the StatefulSet is scaled down. The default // policy of `Retain` causes PVCs to not be affected by a scaledown. The // `Delete` policy causes the associated PVCs for any excess pods above // the replica count to be deleted. optional string whenScaled = 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. Each pod will be named with the format // -. For example, a pod in a StatefulSet named // "web" with index number "3" would be named "web-3". // The only allowed template.spec.restartPolicy value is "Always". 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; // 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 = 9; // PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from // the StatefulSet VolumeClaimTemplates. This requires the // StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. // +optional optional StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy = 10; // ordinals controls the numbering of replica indices in a StatefulSet. The // default ordinals behavior assigns a "0" index to the first replica and // increments the index by one for each additional replica requested. Using // the ordinals field requires the StatefulSetStartOrdinal feature gate to be // enabled, which is beta. // +optional optional StatefulSetOrdinals ordinals = 11; } // 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 this StatefulSet controller with 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; // Total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet. // +optional optional int32 availableReplicas = 11; } // 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; } golang-k8s-api-0.29.0/apps/v1beta2/register.go000066400000000000000000000035611453636404600207250ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to 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 } golang-k8s-api-0.29.0/apps/v1beta2/types.go000066400000000000000000001500061453636404600202420ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" "k8s.io/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"` // selector is a label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ // +optional // +mapType=atomic 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.8 // +k8s:prerelease-lifecycle-gen:deprecated=1.9 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=autoscaling,v1,Scale // 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 // +genclient:method=ApplyScale,verb=apply,subresource=scale,input=Scale,result=Scale // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.8 // +k8s:prerelease-lifecycle-gen:deprecated=1.9 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,StatefulSet // 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 // for updates. During a rolling update, all pods from ordinal Replicas-1 to // Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. // This is helpful in being able to do a canary based deployment. The default value is 0. // +optional Partition *int32 `json:"partition,omitempty" protobuf:"varint,1,opt,name=partition"` // 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 up. This can not be 0. // Defaults to 1. This field is alpha-level and is only honored by servers that enable the // MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to // Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it // will be counted towards MaxUnavailable. // +optional MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty" protobuf:"varint,2,opt,name=maxUnavailable"` } // PersistentVolumeClaimRetentionPolicyType is a string enumeration of the policies that will determine // when volumes from the VolumeClaimTemplates will be deleted when the controlling StatefulSet is // deleted or scaled down. type PersistentVolumeClaimRetentionPolicyType string const ( // RetainPersistentVolumeClaimRetentionPolicyType is the default // PersistentVolumeClaimRetentionPolicy and specifies that // PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates // will not be deleted. RetainPersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Retain" // RetentionPersistentVolumeClaimRetentionPolicyType specifies that // PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates // will be deleted in the scenario specified in // StatefulSetPersistentVolumeClaimRetentionPolicy. RetentionPersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Delete" ) // StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs // created from the StatefulSet VolumeClaimTemplates. type StatefulSetPersistentVolumeClaimRetentionPolicy struct { // WhenDeleted specifies what happens to PVCs created from StatefulSet // VolumeClaimTemplates when the StatefulSet is deleted. The default policy // of `Retain` causes PVCs to not be affected by StatefulSet deletion. The // `Delete` policy causes those PVCs to be deleted. WhenDeleted PersistentVolumeClaimRetentionPolicyType `json:"whenDeleted,omitempty" protobuf:"bytes,1,opt,name=whenDeleted,casttype=PersistentVolumeClaimRetentionPolicyType"` // WhenScaled specifies what happens to PVCs created from StatefulSet // VolumeClaimTemplates when the StatefulSet is scaled down. The default // policy of `Retain` causes PVCs to not be affected by a scaledown. The // `Delete` policy causes the associated PVCs for any excess pods above // the replica count to be deleted. WhenScaled PersistentVolumeClaimRetentionPolicyType `json:"whenScaled,omitempty" protobuf:"bytes,2,opt,name=whenScaled,casttype=PersistentVolumeClaimRetentionPolicyType"` } // StatefulSetOrdinals describes the policy used for replica ordinal assignment // in this StatefulSet. type StatefulSetOrdinals struct { // start is the number representing the first replica's index. It may be used // to number replicas from an alternate index (eg: 1-indexed) over the default // 0-indexed names, or to orchestrate progressive movement of replicas from // one StatefulSet to another. // If set, replica indices will be in the range: // [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). // If unset, defaults to 0. Replica indices will be in the range: // [0, .spec.replicas). // +optional Start int32 `json:"start" protobuf:"varint,1,opt,name=start"` } // 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. Each pod will be named with the format // -. For example, a pod in a StatefulSet named // "web" with index number "3" would be named "web-3". // The only allowed template.spec.restartPolicy value is "Always". 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"` // 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,9,opt,name=minReadySeconds"` // PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from // the StatefulSet VolumeClaimTemplates. This requires the // StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. // +optional PersistentVolumeClaimRetentionPolicy *StatefulSetPersistentVolumeClaimRetentionPolicy `json:"persistentVolumeClaimRetentionPolicy,omitempty" protobuf:"bytes,10,opt,name=persistentVolumeClaimRetentionPolicy"` // ordinals controls the numbering of replica indices in a StatefulSet. The // default ordinals behavior assigns a "0" index to the first replica and // increments the index by one for each additional replica requested. Using // the ordinals field requires the StatefulSetStartOrdinal feature gate to be // enabled, which is beta. // +optional Ordinals *StatefulSetOrdinals `json:"ordinals,omitempty" protobuf:"bytes,11,opt,name=ordinals"` } // 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 this StatefulSet controller with 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"` // Total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet. // +optional AvailableReplicas int32 `json:"availableReplicas" protobuf:"varint,11,opt,name=availableReplicas"` } 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=k8s.io/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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.8 // +k8s:prerelease-lifecycle-gen:deprecated=1.9 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,StatefulSetList // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.8 // +k8s:prerelease-lifecycle-gen:deprecated=1.9 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,Deployment // 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. // The only allowed template.spec.restartPolicy value is "Always". 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"` // readyReplicas is the number of pods targeted by this Deployment controller with a Ready Condition. // +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=k8s.io/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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.8 // +k8s:prerelease-lifecycle-gen:deprecated=1.9 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,DeploymentList // 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 if MaxSurge is 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"` // The maximum number of nodes with an existing available DaemonSet pod that // can have an updated DaemonSet pod during during an update. // 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 to a minimum of 1. // Default value is 0. // 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 a new pod created before the old pod is marked as deleted. // The update starts by launching new pods on 30% of nodes. Once an updated // pod is available (Ready for at least minReadySeconds) the old DaemonSet pod // on that node is marked deleted. If the old pod becomes unavailable for any // reason (Ready transitions to false, is evicted, or is drained) an updated // pod is immediatedly created on that node without considering surge limits. // Allowing surge implies the possibility that the resources consumed by the // daemonset on any given node can double if the readiness check fails, and // so resource intensive daemonsets should take into account that they may // cause evictions during disruption. // +optional MaxSurge *intstr.IntOrString `json:"maxSurge,omitempty" protobuf:"bytes,2,opt,name=maxSurge"` } // 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). // The only allowed template.spec.restartPolicy value is "Always". // 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"` // Total number of nodes that should be running the daemon pod and have one // or more of the daemon pod running with a Ready Condition by passing the readinessProbe. 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=k8s.io/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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.8 // +k8s:prerelease-lifecycle-gen:deprecated=1.9 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,DaemonSet // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.8 // +k8s:prerelease-lifecycle-gen:deprecated=1.9 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,DaemonSetList // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.8 // +k8s:prerelease-lifecycle-gen:deprecated=1.9 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,ReplicaSet // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.8 // +k8s:prerelease-lifecycle-gen:deprecated=1.9 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,ReplicaSetList // 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 observed 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"` // readyReplicas is the number of pods targeted by this ReplicaSet controller with a Ready Condition. // +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=k8s.io/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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.8 // +k8s:prerelease-lifecycle-gen:deprecated=1.9 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,ControllerRevision // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.8 // +k8s:prerelease-lifecycle-gen:deprecated=1.9 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,ControllerRevisionList // 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"` } golang-k8s-api-0.29.0/apps/v1beta2/types_swagger_doc_generated.go000066400000000000000000001045151453636404600246300ustar00rootroot00000000000000/* 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-codegen.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). The only allowed template.spec.restartPolicy value is \"Always\". 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": "Total number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition by passing the readinessProbe.", "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. The only allowed template.spec.restartPolicy value is \"Always\".", "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": "readyReplicas is the number of pods targeted by this Deployment controller with a Ready Condition.", "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 observed 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": "readyReplicas is the number of pods targeted by this ReplicaSet controller with a Ready Condition.", "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 if MaxSurge is 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.", "maxSurge": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. 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 to a minimum of 1. Default value is 0. 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 a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.", } 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 for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.", "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 up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable.", } 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": "selector is a label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/", "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.\n\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_StatefulSetOrdinals = map[string]string{ "": "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.", "start": "start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:\n [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).\nIf unset, defaults to 0. Replica indices will be in the range:\n [0, .spec.replicas).", } func (StatefulSetOrdinals) SwaggerDoc() map[string]string { return map_StatefulSetOrdinals } var map_StatefulSetPersistentVolumeClaimRetentionPolicy = map[string]string{ "": "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.", "whenDeleted": "WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.", "whenScaled": "WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.", } func (StatefulSetPersistentVolumeClaimRetentionPolicy) SwaggerDoc() map[string]string { return map_StatefulSetPersistentVolumeClaimRetentionPolicy } 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. Each pod will be named with the format -. For example, a pod in a StatefulSet named \"web\" with index number \"3\" would be named \"web-3\". The only allowed template.spec.restartPolicy value is \"Always\".", "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.", "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)", "persistentVolumeClaimRetentionPolicy": "PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha.", "ordinals": "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested. Using the ordinals field requires the StatefulSetStartOrdinal feature gate to be enabled, which is beta.", } 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 this StatefulSet controller with 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.", "availableReplicas": "Total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet.", } 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 golang-k8s-api-0.29.0/apps/v1beta2/zz_generated.deepcopy.go000066400000000000000000000630121453636404600233660ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" intstr "k8s.io/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 } 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 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 } 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 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 *StatefulSetOrdinals) DeepCopyInto(out *StatefulSetOrdinals) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetOrdinals. func (in *StatefulSetOrdinals) DeepCopy() *StatefulSetOrdinals { if in == nil { return nil } out := new(StatefulSetOrdinals) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *StatefulSetPersistentVolumeClaimRetentionPolicy) DeepCopyInto(out *StatefulSetPersistentVolumeClaimRetentionPolicy) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetPersistentVolumeClaimRetentionPolicy. func (in *StatefulSetPersistentVolumeClaimRetentionPolicy) DeepCopy() *StatefulSetPersistentVolumeClaimRetentionPolicy { if in == nil { return nil } out := new(StatefulSetPersistentVolumeClaimRetentionPolicy) in.DeepCopyInto(out) return out } // 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 } if in.PersistentVolumeClaimRetentionPolicy != nil { in, out := &in.PersistentVolumeClaimRetentionPolicy, &out.PersistentVolumeClaimRetentionPolicy *out = new(StatefulSetPersistentVolumeClaimRetentionPolicy) **out = **in } if in.Ordinals != nil { in, out := &in.Ordinals, &out.Ordinals *out = new(StatefulSetOrdinals) **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 } golang-k8s-api-0.29.0/apps/v1beta2/zz_generated.prerelease-lifecycle.go000066400000000000000000000430631453636404600256460ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta2 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ControllerRevision) APILifecycleIntroduced() (major, minor int) { return 1, 8 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ControllerRevision) APILifecycleDeprecated() (major, minor int) { return 1, 9 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *ControllerRevision) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "ControllerRevision"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ControllerRevision) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ControllerRevisionList) APILifecycleIntroduced() (major, minor int) { return 1, 8 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ControllerRevisionList) APILifecycleDeprecated() (major, minor int) { return 1, 9 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *ControllerRevisionList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "ControllerRevisionList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ControllerRevisionList) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *DaemonSet) APILifecycleIntroduced() (major, minor int) { return 1, 8 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *DaemonSet) APILifecycleDeprecated() (major, minor int) { return 1, 9 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *DaemonSet) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "DaemonSet"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *DaemonSet) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *DaemonSetList) APILifecycleIntroduced() (major, minor int) { return 1, 8 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *DaemonSetList) APILifecycleDeprecated() (major, minor int) { return 1, 9 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *DaemonSetList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "DaemonSetList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *DaemonSetList) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *Deployment) APILifecycleIntroduced() (major, minor int) { return 1, 8 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *Deployment) APILifecycleDeprecated() (major, minor int) { return 1, 9 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *Deployment) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "Deployment"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *Deployment) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *DeploymentList) APILifecycleIntroduced() (major, minor int) { return 1, 8 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *DeploymentList) APILifecycleDeprecated() (major, minor int) { return 1, 9 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *DeploymentList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "DeploymentList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *DeploymentList) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ReplicaSet) APILifecycleIntroduced() (major, minor int) { return 1, 8 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ReplicaSet) APILifecycleDeprecated() (major, minor int) { return 1, 9 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *ReplicaSet) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "ReplicaSet"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ReplicaSet) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ReplicaSetList) APILifecycleIntroduced() (major, minor int) { return 1, 8 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ReplicaSetList) APILifecycleDeprecated() (major, minor int) { return 1, 9 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *ReplicaSetList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "ReplicaSetList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ReplicaSetList) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *Scale) APILifecycleIntroduced() (major, minor int) { return 1, 8 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *Scale) APILifecycleDeprecated() (major, minor int) { return 1, 9 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *Scale) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "autoscaling", Version: "v1", Kind: "Scale"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *Scale) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *StatefulSet) APILifecycleIntroduced() (major, minor int) { return 1, 8 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *StatefulSet) APILifecycleDeprecated() (major, minor int) { return 1, 9 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *StatefulSet) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "StatefulSet"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *StatefulSet) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *StatefulSetList) APILifecycleIntroduced() (major, minor int) { return 1, 8 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *StatefulSetList) APILifecycleDeprecated() (major, minor int) { return 1, 9 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *StatefulSetList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "StatefulSetList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *StatefulSetList) APILifecycleRemoved() (major, minor int) { return 1, 16 } golang-k8s-api-0.29.0/authentication/000077500000000000000000000000001453636404600173555ustar00rootroot00000000000000golang-k8s-api-0.29.0/authentication/OWNERS000066400000000000000000000002371453636404600203170ustar00rootroot00000000000000# See the OWNERS docs at https://go.k8s.io/owners reviewers: - sig-auth-authenticators-approvers - sig-auth-authenticators-reviewers labels: - sig/auth golang-k8s-api-0.29.0/authentication/v1/000077500000000000000000000000001453636404600177035ustar00rootroot00000000000000golang-k8s-api-0.29.0/authentication/v1/doc.go000066400000000000000000000013471453636404600210040ustar00rootroot00000000000000/* 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 "k8s.io/api/authentication/v1" golang-k8s-api-0.29.0/authentication/v1/generated.pb.go000066400000000000000000002201431453636404600225720ustar00rootroot00000000000000/* 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/k8s.io/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 "k8s.io/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.GoGoProtoPackageIsVersion3 // 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 *SelfSubjectReview) Reset() { *m = SelfSubjectReview{} } func (*SelfSubjectReview) ProtoMessage() {} func (*SelfSubjectReview) Descriptor() ([]byte, []int) { return fileDescriptor_2953ea822e7ffe1e, []int{2} } func (m *SelfSubjectReview) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SelfSubjectReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *SelfSubjectReview) XXX_Merge(src proto.Message) { xxx_messageInfo_SelfSubjectReview.Merge(m, src) } func (m *SelfSubjectReview) XXX_Size() int { return m.Size() } func (m *SelfSubjectReview) XXX_DiscardUnknown() { xxx_messageInfo_SelfSubjectReview.DiscardUnknown(m) } var xxx_messageInfo_SelfSubjectReview proto.InternalMessageInfo func (m *SelfSubjectReviewStatus) Reset() { *m = SelfSubjectReviewStatus{} } func (*SelfSubjectReviewStatus) ProtoMessage() {} func (*SelfSubjectReviewStatus) Descriptor() ([]byte, []int) { return fileDescriptor_2953ea822e7ffe1e, []int{3} } func (m *SelfSubjectReviewStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SelfSubjectReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *SelfSubjectReviewStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_SelfSubjectReviewStatus.Merge(m, src) } func (m *SelfSubjectReviewStatus) XXX_Size() int { return m.Size() } func (m *SelfSubjectReviewStatus) XXX_DiscardUnknown() { xxx_messageInfo_SelfSubjectReviewStatus.DiscardUnknown(m) } var xxx_messageInfo_SelfSubjectReviewStatus proto.InternalMessageInfo func (m *TokenRequest) Reset() { *m = TokenRequest{} } func (*TokenRequest) ProtoMessage() {} func (*TokenRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2953ea822e7ffe1e, []int{4} } 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{5} } 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{6} } 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{7} } 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{8} } 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{9} } 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{10} } 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((*SelfSubjectReview)(nil), "k8s.io.api.authentication.v1.SelfSubjectReview") proto.RegisterType((*SelfSubjectReviewStatus)(nil), "k8s.io.api.authentication.v1.SelfSubjectReviewStatus") 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/k8s.io/api/authentication/v1/generated.proto", fileDescriptor_2953ea822e7ffe1e) } var fileDescriptor_2953ea822e7ffe1e = []byte{ // 958 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x4b, 0x6f, 0x23, 0x45, 0x10, 0xf6, 0xf8, 0x11, 0xd9, 0xe5, 0x4d, 0x48, 0x7a, 0x59, 0x61, 0x85, 0xc5, 0x0e, 0xb3, 0x12, 0x8a, 0x80, 0x9d, 0xd9, 0x58, 0x3c, 0x56, 0x8b, 0x84, 0x94, 0x21, 0x16, 0x58, 0x08, 0x76, 0xd5, 0x4e, 0x02, 0x42, 0x42, 0xa2, 0x3d, 0xae, 0x38, 0x83, 0x77, 0x1e, 0xcc, 0xf4, 0x98, 0xf5, 0x6d, 0x7f, 0x02, 0x47, 0x90, 0x38, 0xf0, 0x23, 0x90, 0xf8, 0x0b, 0x39, 0xae, 0x10, 0x87, 0x3d, 0x20, 0x8b, 0x0c, 0x57, 0x8e, 0x9c, 0x38, 0xa1, 0xee, 0xe9, 0xf8, 0x99, 0x4c, 0x7c, 0xda, 0x9b, 0xa7, 0x1e, 0x5f, 0x55, 0x7d, 0x55, 0x5d, 0x65, 0x68, 0x0d, 0xee, 0x47, 0x86, 0xe3, 0x9b, 0x83, 0xb8, 0x8b, 0xa1, 0x87, 0x1c, 0x23, 0x73, 0x88, 0x5e, 0xcf, 0x0f, 0x4d, 0xa5, 0x60, 0x81, 0x63, 0xb2, 0x98, 0x9f, 0xa2, 0xc7, 0x1d, 0x9b, 0x71, 0xc7, 0xf7, 0xcc, 0xe1, 0x9e, 0xd9, 0x47, 0x0f, 0x43, 0xc6, 0xb1, 0x67, 0x04, 0xa1, 0xcf, 0x7d, 0x72, 0x3b, 0xb5, 0x36, 0x58, 0xe0, 0x18, 0xf3, 0xd6, 0xc6, 0x70, 0x6f, 0xfb, 0x6e, 0xdf, 0xe1, 0xa7, 0x71, 0xd7, 0xb0, 0x7d, 0xd7, 0xec, 0xfb, 0x7d, 0xdf, 0x94, 0x4e, 0xdd, 0xf8, 0x44, 0x7e, 0xc9, 0x0f, 0xf9, 0x2b, 0x05, 0xdb, 0x7e, 0x67, 0x1a, 0xda, 0x65, 0xf6, 0xa9, 0xe3, 0x61, 0x38, 0x32, 0x83, 0x41, 0x5f, 0x08, 0x22, 0xd3, 0x45, 0xce, 0x2e, 0x49, 0x61, 0xdb, 0xbc, 0xca, 0x2b, 0x8c, 0x3d, 0xee, 0xb8, 0xb8, 0xe4, 0xf0, 0xde, 0x75, 0x0e, 0x91, 0x7d, 0x8a, 0x2e, 0x5b, 0xf4, 0xd3, 0x7f, 0xd7, 0xe0, 0x65, 0xcb, 0x8f, 0xbd, 0xde, 0xc3, 0xee, 0xb7, 0x68, 0x73, 0x8a, 0x27, 0x18, 0xa2, 0x67, 0x23, 0xd9, 0x81, 0xe2, 0xc0, 0xf1, 0x7a, 0x35, 0x6d, 0x47, 0xdb, 0xad, 0x58, 0x37, 0xce, 0xc6, 0x8d, 0x5c, 0x32, 0x6e, 0x14, 0x3f, 0x75, 0xbc, 0x1e, 0x95, 0x1a, 0xd2, 0x04, 0x60, 0x81, 0x73, 0x8c, 0x61, 0xe4, 0xf8, 0x5e, 0x2d, 0x2f, 0xed, 0x88, 0xb2, 0x83, 0xfd, 0x47, 0x6d, 0xa5, 0xa1, 0x33, 0x56, 0x02, 0xd5, 0x63, 0x2e, 0xd6, 0x0a, 0xf3, 0xa8, 0x9f, 0x33, 0x17, 0xa9, 0xd4, 0x10, 0x0b, 0x0a, 0x71, 0xfb, 0xa0, 0x56, 0x94, 0x06, 0xf7, 0x94, 0x41, 0xe1, 0xa8, 0x7d, 0xf0, 0xdf, 0xb8, 0xf1, 0xfa, 0x55, 0x45, 0xf2, 0x51, 0x80, 0x91, 0x71, 0xd4, 0x3e, 0xa0, 0xc2, 0x59, 0x7f, 0x1f, 0xa0, 0xf5, 0x84, 0x87, 0xec, 0x98, 0x3d, 0x8e, 0x91, 0x34, 0xa0, 0xe4, 0x70, 0x74, 0xa3, 0x9a, 0xb6, 0x53, 0xd8, 0xad, 0x58, 0x95, 0x64, 0xdc, 0x28, 0xb5, 0x85, 0x80, 0xa6, 0xf2, 0x07, 0xe5, 0x1f, 0x7f, 0x69, 0xe4, 0x9e, 0xfe, 0xb9, 0x93, 0xd3, 0xff, 0xd0, 0x60, 0xab, 0x83, 0x8f, 0x4f, 0x3a, 0xb1, 0x62, 0x63, 0xe8, 0xe0, 0xf7, 0xe4, 0x1b, 0x28, 0x8b, 0x3e, 0xf5, 0x18, 0x67, 0x92, 0x8e, 0x6a, 0xf3, 0x9e, 0x31, 0x1d, 0x91, 0x49, 0x26, 0x46, 0x30, 0xe8, 0x0b, 0x41, 0x64, 0x08, 0x6b, 0x63, 0xb8, 0x67, 0xa4, 0x9c, 0x7e, 0x86, 0x9c, 0x4d, 0x89, 0x99, 0xca, 0xe8, 0x04, 0x95, 0x7c, 0x0d, 0x6b, 0x11, 0x67, 0x3c, 0x8e, 0x24, 0x8d, 0xd5, 0xe6, 0xbb, 0x46, 0xd6, 0x08, 0x1a, 0x4b, 0x29, 0x76, 0xa4, 0xb3, 0xb5, 0xa1, 0x82, 0xac, 0xa5, 0xdf, 0x54, 0x81, 0xea, 0x3e, 0xbc, 0x72, 0x85, 0x0b, 0x39, 0x84, 0x72, 0x1c, 0x61, 0xd8, 0xf6, 0x4e, 0x7c, 0x55, 0xdb, 0x1b, 0xd9, 0xb1, 0x8f, 0x94, 0xb5, 0xb5, 0xa9, 0x82, 0x95, 0x2f, 0x24, 0x74, 0x82, 0xa4, 0xff, 0x9c, 0x87, 0x1b, 0x87, 0xfe, 0x00, 0x3d, 0x8a, 0xdf, 0xc5, 0x18, 0xf1, 0x17, 0x40, 0xe1, 0x23, 0x28, 0x46, 0x01, 0xda, 0x8a, 0x40, 0x23, 0xbb, 0x88, 0xd9, 0xdc, 0x3a, 0x01, 0xda, 0xd3, 0x49, 0x14, 0x5f, 0x54, 0x22, 0x91, 0x2f, 0x27, 0x4d, 0x29, 0x2c, 0x65, 0x7c, 0x1d, 0x66, 0x76, 0x3f, 0xfe, 0xd5, 0x60, 0x73, 0x31, 0x05, 0xf2, 0x16, 0x54, 0x58, 0xdc, 0x73, 0xc4, 0xe3, 0xbb, 0x18, 0xd5, 0xf5, 0x64, 0xdc, 0xa8, 0xec, 0x5f, 0x08, 0xe9, 0x54, 0x4f, 0x3e, 0x82, 0x2d, 0x7c, 0x12, 0x38, 0xa1, 0x8c, 0xde, 0x41, 0xdb, 0xf7, 0x7a, 0x91, 0x7c, 0x33, 0x05, 0xeb, 0x56, 0x32, 0x6e, 0x6c, 0xb5, 0x16, 0x95, 0x74, 0xd9, 0x9e, 0x78, 0xb0, 0xd1, 0x9d, 0x7b, 0xfa, 0xaa, 0xd0, 0x66, 0x76, 0xa1, 0x97, 0xad, 0x0b, 0x8b, 0x24, 0xe3, 0xc6, 0xc6, 0xbc, 0x86, 0x2e, 0xa0, 0xeb, 0xbf, 0x6a, 0x40, 0x96, 0x59, 0x22, 0x77, 0xa0, 0xc4, 0x85, 0x54, 0xad, 0x9a, 0x75, 0x45, 0x5a, 0x29, 0x35, 0x4d, 0x75, 0x64, 0x04, 0x37, 0xa7, 0x05, 0x1c, 0x3a, 0x2e, 0x46, 0x9c, 0xb9, 0x81, 0xea, 0xf6, 0x9b, 0xab, 0xcd, 0x92, 0x70, 0xb3, 0x5e, 0x55, 0xf0, 0x37, 0x5b, 0xcb, 0x70, 0xf4, 0xb2, 0x18, 0xfa, 0x4f, 0x79, 0xa8, 0xaa, 0xb4, 0x5f, 0xd0, 0x3a, 0x78, 0x38, 0x37, 0xcb, 0x77, 0x57, 0x9a, 0x3b, 0xf9, 0xa6, 0xaf, 0x1a, 0xe5, 0x2f, 0x16, 0x46, 0xd9, 0x5c, 0x1d, 0x32, 0x7b, 0x92, 0x6d, 0x78, 0x69, 0x21, 0xfe, 0x6a, 0xed, 0x9c, 0x1b, 0xf6, 0x7c, 0xf6, 0xb0, 0xeb, 0xff, 0x68, 0xb0, 0xb5, 0x94, 0x12, 0xf9, 0x00, 0xd6, 0x67, 0x32, 0xc7, 0xf4, 0x52, 0x95, 0xad, 0x5b, 0x2a, 0xde, 0xfa, 0xfe, 0xac, 0x92, 0xce, 0xdb, 0x92, 0x4f, 0xa0, 0x28, 0x96, 0x95, 0x62, 0x78, 0xd5, 0x95, 0x37, 0xa1, 0x56, 0x48, 0xa8, 0x44, 0x98, 0xaf, 0xa4, 0x78, 0xcd, 0xb3, 0xbd, 0x03, 0x25, 0x0c, 0x43, 0x3f, 0x54, 0xf7, 0x6f, 0xc2, 0x4d, 0x4b, 0x08, 0x69, 0xaa, 0xd3, 0x7f, 0xcb, 0xc3, 0x64, 0xa7, 0x92, 0xb7, 0xd3, 0xfd, 0x2c, 0x8f, 0x66, 0x4a, 0xe8, 0xdc, 0xde, 0x15, 0x72, 0x3a, 0xb1, 0x20, 0xaf, 0x41, 0x21, 0x76, 0x7a, 0xea, 0x16, 0x57, 0x67, 0x8e, 0x27, 0x15, 0x72, 0xa2, 0xc3, 0x5a, 0x3f, 0xf4, 0xe3, 0x40, 0x8c, 0x81, 0x48, 0x14, 0x44, 0x47, 0x3f, 0x96, 0x12, 0xaa, 0x34, 0xe4, 0x18, 0x4a, 0x28, 0x6e, 0xa7, 0xac, 0xa5, 0xda, 0xdc, 0x5b, 0x8d, 0x1a, 0x43, 0xde, 0xdb, 0x96, 0xc7, 0xc3, 0xd1, 0x4c, 0x55, 0x42, 0x46, 0x53, 0xb8, 0xed, 0xae, 0xba, 0xc9, 0xd2, 0x86, 0x6c, 0x42, 0x61, 0x80, 0xa3, 0xb4, 0x22, 0x2a, 0x7e, 0x92, 0x0f, 0xa1, 0x34, 0x14, 0xe7, 0x5a, 0xb5, 0x64, 0x37, 0x3b, 0xee, 0xf4, 0xbc, 0xd3, 0xd4, 0xed, 0x41, 0xfe, 0xbe, 0x66, 0x59, 0x67, 0xe7, 0xf5, 0xdc, 0xb3, 0xf3, 0x7a, 0xee, 0xf9, 0x79, 0x3d, 0xf7, 0x34, 0xa9, 0x6b, 0x67, 0x49, 0x5d, 0x7b, 0x96, 0xd4, 0xb5, 0xe7, 0x49, 0x5d, 0xfb, 0x2b, 0xa9, 0x6b, 0x3f, 0xfc, 0x5d, 0xcf, 0x7d, 0x75, 0x3b, 0xeb, 0xcf, 0xe0, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0d, 0x9a, 0x38, 0x17, 0x44, 0x0a, 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 *SelfSubjectReview) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *SelfSubjectReview) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SelfSubjectReview) 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 *SelfSubjectReviewStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *SelfSubjectReviewStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SelfSubjectReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { size, err := m.UserInfo.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } 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 *SelfSubjectReview) 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 *SelfSubjectReviewStatus) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.UserInfo.Size() 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 *SelfSubjectReview) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&SelfSubjectReview{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SelfSubjectReviewStatus", "SelfSubjectReviewStatus", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *SelfSubjectReviewStatus) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&SelfSubjectReviewStatus{`, `UserInfo:` + strings.Replace(strings.Replace(this.UserInfo.String(), "UserInfo", "UserInfo", 1), `&`, ``, 1) + `,`, `}`, }, "") 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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SelfSubjectReview) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: SelfSubjectReview: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SelfSubjectReview: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SelfSubjectReviewStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: SelfSubjectReviewStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SelfSubjectReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (iNdEx+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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/authentication/v1/generated.proto000066400000000000000000000171701453636404600227340ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/authentication/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; } // SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. // When using impersonation, users will receive the user info of the user being impersonated. If impersonation or // request header authentication is used, any extra keys will have their case ignored and returned as lowercase. message SelfSubjectReview { // 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; // Status is filled in by the server with the user attributes. optional SelfSubjectReviewStatus status = 2; } // SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. message SelfSubjectReviewStatus { // User attributes of the user making this request. // +optional optional UserInfo userInfo = 1; } // TokenRequest requests a token for a given service account. message TokenRequest { // 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 holds information about the request being evaluated optional TokenRequestSpec spec = 2; // Status is filled in by the server and indicates whether the token can be authenticated. // +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 identify 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 { // 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 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; } golang-k8s-api-0.29.0/authentication/v1/register.go000066400000000000000000000033331453636404600220600ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &TokenReview{}, &TokenRequest{}, &SelfSubjectReview{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/authentication/v1/types.go000066400000000000000000000234601453636404600214030ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/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" // ImpersonateUIDHeader is used to impersonate a particular UID during an API server request ImpersonateUIDHeader = "Impersonate-Uid" // 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:onlyVerbs=create // +k8s:deepcopy-gen:interfaces=k8s.io/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"` // 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 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=k8s.io/apimachinery/pkg/runtime.Object // TokenRequest requests a token for a given service account. type TokenRequest 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 holds information about the request being evaluated Spec TokenRequestSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // Status is filled in by the server and indicates whether the token can be authenticated. // +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 identify 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=k8s.io/apimachinery/pkg/types.UID"` } // +genclient // +genclient:nonNamespaced // +genclient:onlyVerbs=create // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. // When using impersonation, users will receive the user info of the user being impersonated. If impersonation or // request header authentication is used, any extra keys will have their case ignored and returned as lowercase. type SelfSubjectReview 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"` // Status is filled in by the server with the user attributes. Status SelfSubjectReviewStatus `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"` } // SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. type SelfSubjectReviewStatus struct { // User attributes of the user making this request. // +optional UserInfo UserInfo `json:"userInfo,omitempty" protobuf:"bytes,1,opt,name=userInfo"` } golang-k8s-api-0.29.0/authentication/v1/types_swagger_doc_generated.go000066400000000000000000000171231453636404600257640ustar00rootroot00000000000000/* 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-codegen.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_SelfSubjectReview = map[string]string{ "": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.", "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "status": "Status is filled in by the server with the user attributes.", } func (SelfSubjectReview) SwaggerDoc() map[string]string { return map_SelfSubjectReview } var map_SelfSubjectReviewStatus = map[string]string{ "": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", "userInfo": "User attributes of the user making this request.", } func (SelfSubjectReviewStatus) SwaggerDoc() map[string]string { return map_SelfSubjectReviewStatus } var map_TokenRequest = map[string]string{ "": "TokenRequest requests a token for a given service account.", "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "spec": "Spec holds information about the request being evaluated", "status": "Status is filled in by the server and indicates whether the token can be authenticated.", } 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 identify 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.", "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "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 golang-k8s-api-0.29.0/authentication/v1/zz_generated.deepcopy.go000066400000000000000000000200351453636404600245220ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *BoundObjectReference) DeepCopyInto(out *BoundObjectReference) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BoundObjectReference. func (in *BoundObjectReference) DeepCopy() *BoundObjectReference { if in == nil { return nil } out := new(BoundObjectReference) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in 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 *SelfSubjectReview) DeepCopyInto(out *SelfSubjectReview) { *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 SelfSubjectReview. func (in *SelfSubjectReview) DeepCopy() *SelfSubjectReview { if in == nil { return nil } out := new(SelfSubjectReview) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *SelfSubjectReview) 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 *SelfSubjectReviewStatus) DeepCopyInto(out *SelfSubjectReviewStatus) { *out = *in in.UserInfo.DeepCopyInto(&out.UserInfo) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectReviewStatus. func (in *SelfSubjectReviewStatus) DeepCopy() *SelfSubjectReviewStatus { if in == nil { return nil } out := new(SelfSubjectReviewStatus) 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 } golang-k8s-api-0.29.0/authentication/v1alpha1/000077500000000000000000000000001453636404600207725ustar00rootroot00000000000000golang-k8s-api-0.29.0/authentication/v1alpha1/doc.go000066400000000000000000000014311453636404600220650ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 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 // +k8s:prerelease-lifecycle-gen=true package v1alpha1 // import "k8s.io/api/authentication/v1alpha1" golang-k8s-api-0.29.0/authentication/v1alpha1/generated.pb.go000066400000000000000000000357021453636404600236660ustar00rootroot00000000000000/* 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/k8s.io/api/authentication/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *SelfSubjectReview) Reset() { *m = SelfSubjectReview{} } func (*SelfSubjectReview) ProtoMessage() {} func (*SelfSubjectReview) Descriptor() ([]byte, []int) { return fileDescriptor_05a77aeb710b43c2, []int{0} } func (m *SelfSubjectReview) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SelfSubjectReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *SelfSubjectReview) XXX_Merge(src proto.Message) { xxx_messageInfo_SelfSubjectReview.Merge(m, src) } func (m *SelfSubjectReview) XXX_Size() int { return m.Size() } func (m *SelfSubjectReview) XXX_DiscardUnknown() { xxx_messageInfo_SelfSubjectReview.DiscardUnknown(m) } var xxx_messageInfo_SelfSubjectReview proto.InternalMessageInfo func (m *SelfSubjectReviewStatus) Reset() { *m = SelfSubjectReviewStatus{} } func (*SelfSubjectReviewStatus) ProtoMessage() {} func (*SelfSubjectReviewStatus) Descriptor() ([]byte, []int) { return fileDescriptor_05a77aeb710b43c2, []int{1} } func (m *SelfSubjectReviewStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SelfSubjectReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *SelfSubjectReviewStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_SelfSubjectReviewStatus.Merge(m, src) } func (m *SelfSubjectReviewStatus) XXX_Size() int { return m.Size() } func (m *SelfSubjectReviewStatus) XXX_DiscardUnknown() { xxx_messageInfo_SelfSubjectReviewStatus.DiscardUnknown(m) } var xxx_messageInfo_SelfSubjectReviewStatus proto.InternalMessageInfo func init() { proto.RegisterType((*SelfSubjectReview)(nil), "k8s.io.api.authentication.v1alpha1.SelfSubjectReview") proto.RegisterType((*SelfSubjectReviewStatus)(nil), "k8s.io.api.authentication.v1alpha1.SelfSubjectReviewStatus") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/authentication/v1alpha1/generated.proto", fileDescriptor_05a77aeb710b43c2) } var fileDescriptor_05a77aeb710b43c2 = []byte{ // 384 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xbd, 0x6e, 0xdb, 0x30, 0x14, 0x85, 0xc5, 0x0e, 0x86, 0xa1, 0x02, 0x45, 0xab, 0xa5, 0x86, 0x07, 0xba, 0xd0, 0x50, 0x74, 0x68, 0xc9, 0xba, 0x28, 0x8a, 0x02, 0xdd, 0x34, 0x35, 0x08, 0x82, 0x00, 0x72, 0xb2, 0x64, 0x0a, 0x25, 0x5f, 0x4b, 0x8c, 0x2c, 0x52, 0x10, 0x49, 0x05, 0xd9, 0xf2, 0x08, 0x79, 0x2c, 0x8f, 0x1e, 0x8d, 0x0c, 0x46, 0xac, 0xbc, 0x48, 0x20, 0x59, 0xb6, 0x11, 0x3b, 0xb6, 0x37, 0xde, 0xc3, 0xfb, 0x9d, 0x7b, 0xf8, 0x63, 0x9f, 0x26, 0x7f, 0x15, 0xe1, 0x92, 0x26, 0x26, 0x80, 0x5c, 0x80, 0x06, 0x45, 0x0b, 0x10, 0x43, 0x99, 0xd3, 0x66, 0x83, 0x65, 0x9c, 0x32, 0xa3, 0x63, 0x10, 0x9a, 0x87, 0x4c, 0x73, 0x29, 0x68, 0xd1, 0x67, 0xe3, 0x2c, 0x66, 0x7d, 0x1a, 0x81, 0x80, 0x9c, 0x69, 0x18, 0x92, 0x2c, 0x97, 0x5a, 0x3a, 0xee, 0x92, 0x21, 0x2c, 0xe3, 0xe4, 0x35, 0x43, 0x56, 0x4c, 0xf7, 0x47, 0xc4, 0x75, 0x6c, 0x02, 0x12, 0xca, 0x94, 0x46, 0x32, 0x92, 0xb4, 0x46, 0x03, 0x33, 0xaa, 0xab, 0xba, 0xa8, 0x57, 0x4b, 0xcb, 0xee, 0xf7, 0x43, 0x31, 0xb6, 0x03, 0x74, 0x7f, 0x6f, 0xba, 0x53, 0x16, 0xc6, 0x5c, 0x40, 0x7e, 0x47, 0xb3, 0x24, 0xaa, 0x04, 0x45, 0x53, 0xd0, 0xec, 0x2d, 0x8a, 0xee, 0xa3, 0x72, 0x23, 0x34, 0x4f, 0x61, 0x07, 0xf8, 0x73, 0x0c, 0x50, 0x61, 0x0c, 0x29, 0xdb, 0xe6, 0xdc, 0x47, 0x64, 0x7f, 0x1a, 0xc0, 0x78, 0x34, 0x30, 0xc1, 0x0d, 0x84, 0xda, 0x87, 0x82, 0xc3, 0xad, 0x73, 0x6d, 0xb7, 0xab, 0x64, 0x43, 0xa6, 0x59, 0x07, 0x7d, 0x41, 0xdf, 0xde, 0xff, 0xfa, 0x49, 0x36, 0x17, 0xb9, 0x1e, 0x40, 0xb2, 0x24, 0xaa, 0x04, 0x45, 0xaa, 0x6e, 0x52, 0xf4, 0xc9, 0x79, 0xed, 0x72, 0x06, 0x9a, 0x79, 0xce, 0x64, 0xde, 0xb3, 0xca, 0x79, 0xcf, 0xde, 0x68, 0xfe, 0xda, 0xd5, 0x09, 0xed, 0x96, 0xd2, 0x4c, 0x1b, 0xd5, 0x79, 0x57, 0xfb, 0xff, 0x23, 0xc7, 0x1f, 0x8a, 0xec, 0x04, 0x1d, 0xd4, 0x16, 0xde, 0x87, 0x66, 0x54, 0x6b, 0x59, 0xfb, 0x8d, 0xb5, 0x2b, 0xed, 0xcf, 0x7b, 0x10, 0xe7, 0xc2, 0x6e, 0x1b, 0x05, 0xf9, 0x89, 0x18, 0xc9, 0xe6, 0x84, 0x5f, 0x0f, 0x26, 0x20, 0x97, 0x4d, 0xb7, 0xf7, 0xb1, 0x19, 0xd6, 0x5e, 0x29, 0xfe, 0xda, 0xc9, 0xfb, 0x3f, 0x59, 0x60, 0x6b, 0xba, 0xc0, 0xd6, 0x6c, 0x81, 0xad, 0xfb, 0x12, 0xa3, 0x49, 0x89, 0xd1, 0xb4, 0xc4, 0x68, 0x56, 0x62, 0xf4, 0x54, 0x62, 0xf4, 0xf0, 0x8c, 0xad, 0x2b, 0xf7, 0xf8, 0x3f, 0x7e, 0x09, 0x00, 0x00, 0xff, 0xff, 0xec, 0xf9, 0xa3, 0xcd, 0x05, 0x03, 0x00, 0x00, } func (m *SelfSubjectReview) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *SelfSubjectReview) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SelfSubjectReview) 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 *SelfSubjectReviewStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *SelfSubjectReviewStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SelfSubjectReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { size, err := m.UserInfo.MarshalToSizedBuffer(dAtA[:i]) 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 *SelfSubjectReview) 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 *SelfSubjectReviewStatus) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.UserInfo.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 *SelfSubjectReview) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&SelfSubjectReview{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SelfSubjectReviewStatus", "SelfSubjectReviewStatus", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *SelfSubjectReviewStatus) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&SelfSubjectReviewStatus{`, `UserInfo:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.UserInfo), "UserInfo", "v11.UserInfo", 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 *SelfSubjectReview) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: SelfSubjectReview: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SelfSubjectReview: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SelfSubjectReviewStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: SelfSubjectReviewStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SelfSubjectReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/authentication/v1alpha1/generated.proto000066400000000000000000000037611453636404600240240ustar00rootroot00000000000000/* 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.v1alpha1; import "k8s.io/api/authentication/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/authentication/v1alpha1"; // SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. // When using impersonation, users will receive the user info of the user being impersonated. If impersonation or // request header authentication is used, any extra keys will have their case ignored and returned as lowercase. message SelfSubjectReview { // 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; // Status is filled in by the server with the user attributes. optional SelfSubjectReviewStatus status = 2; } // SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. message SelfSubjectReviewStatus { // User attributes of the user making this request. // +optional optional k8s.io.api.authentication.v1.UserInfo userInfo = 1; } golang-k8s-api-0.29.0/authentication/v1alpha1/register.go000066400000000000000000000033021453636404600231430ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "authentication.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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &SelfSubjectReview{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/authentication/v1alpha1/types.go000066400000000000000000000036521453636404600224730ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 "k8s.io/api/authentication/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +genclient:onlyVerbs=create // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.26 // SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. // When using impersonation, users will receive the user info of the user being impersonated. If impersonation or // request header authentication is used, any extra keys will have their case ignored and returned as lowercase. type SelfSubjectReview 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"` // Status is filled in by the server with the user attributes. Status SelfSubjectReviewStatus `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"` } // SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. type SelfSubjectReviewStatus struct { // User attributes of the user making this request. // +optional UserInfo v1.UserInfo `json:"userInfo,omitempty" protobuf:"bytes,1,opt,name=userInfo"` } golang-k8s-api-0.29.0/authentication/v1alpha1/types_swagger_doc_generated.go000066400000000000000000000043111453636404600270460ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_SelfSubjectReview = map[string]string{ "": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.", "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "status": "Status is filled in by the server with the user attributes.", } func (SelfSubjectReview) SwaggerDoc() map[string]string { return map_SelfSubjectReview } var map_SelfSubjectReviewStatus = map[string]string{ "": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", "userInfo": "User attributes of the user making this request.", } func (SelfSubjectReviewStatus) SwaggerDoc() map[string]string { return map_SelfSubjectReviewStatus } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/authentication/v1alpha1/zz_generated.deepcopy.go000066400000000000000000000041151453636404600256120ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SelfSubjectReview) DeepCopyInto(out *SelfSubjectReview) { *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 SelfSubjectReview. func (in *SelfSubjectReview) DeepCopy() *SelfSubjectReview { if in == nil { return nil } out := new(SelfSubjectReview) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *SelfSubjectReview) 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 *SelfSubjectReviewStatus) DeepCopyInto(out *SelfSubjectReviewStatus) { *out = *in in.UserInfo.DeepCopyInto(&out.UserInfo) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectReviewStatus. func (in *SelfSubjectReviewStatus) DeepCopy() *SelfSubjectReviewStatus { if in == nil { return nil } out := new(SelfSubjectReviewStatus) in.DeepCopyInto(out) return out } golang-k8s-api-0.29.0/authentication/v1alpha1/zz_generated.prerelease-lifecycle.go000066400000000000000000000035111453636404600300650ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1alpha1 // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *SelfSubjectReview) APILifecycleIntroduced() (major, minor int) { return 1, 26 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *SelfSubjectReview) APILifecycleDeprecated() (major, minor int) { return 1, 29 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *SelfSubjectReview) APILifecycleRemoved() (major, minor int) { return 1, 32 } golang-k8s-api-0.29.0/authentication/v1beta1/000077500000000000000000000000001453636404600206205ustar00rootroot00000000000000golang-k8s-api-0.29.0/authentication/v1beta1/doc.go000066400000000000000000000014271453636404600217200ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true package v1beta1 // import "k8s.io/api/authentication/v1beta1" golang-k8s-api-0.29.0/authentication/v1beta1/generated.pb.go000066400000000000000000001371701453636404600235160ustar00rootroot00000000000000/* 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/k8s.io/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.GoGoProtoPackageIsVersion3 // 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 *SelfSubjectReview) Reset() { *m = SelfSubjectReview{} } func (*SelfSubjectReview) ProtoMessage() {} func (*SelfSubjectReview) Descriptor() ([]byte, []int) { return fileDescriptor_77c9b20d3ad27844, []int{1} } func (m *SelfSubjectReview) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SelfSubjectReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *SelfSubjectReview) XXX_Merge(src proto.Message) { xxx_messageInfo_SelfSubjectReview.Merge(m, src) } func (m *SelfSubjectReview) XXX_Size() int { return m.Size() } func (m *SelfSubjectReview) XXX_DiscardUnknown() { xxx_messageInfo_SelfSubjectReview.DiscardUnknown(m) } var xxx_messageInfo_SelfSubjectReview proto.InternalMessageInfo func (m *SelfSubjectReviewStatus) Reset() { *m = SelfSubjectReviewStatus{} } func (*SelfSubjectReviewStatus) ProtoMessage() {} func (*SelfSubjectReviewStatus) Descriptor() ([]byte, []int) { return fileDescriptor_77c9b20d3ad27844, []int{2} } func (m *SelfSubjectReviewStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SelfSubjectReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *SelfSubjectReviewStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_SelfSubjectReviewStatus.Merge(m, src) } func (m *SelfSubjectReviewStatus) XXX_Size() int { return m.Size() } func (m *SelfSubjectReviewStatus) XXX_DiscardUnknown() { xxx_messageInfo_SelfSubjectReviewStatus.DiscardUnknown(m) } var xxx_messageInfo_SelfSubjectReviewStatus proto.InternalMessageInfo func (m *TokenReview) Reset() { *m = TokenReview{} } func (*TokenReview) ProtoMessage() {} func (*TokenReview) Descriptor() ([]byte, []int) { return fileDescriptor_77c9b20d3ad27844, []int{3} } 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{4} } 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{5} } 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{6} } 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((*SelfSubjectReview)(nil), "k8s.io.api.authentication.v1beta1.SelfSubjectReview") proto.RegisterType((*SelfSubjectReviewStatus)(nil), "k8s.io.api.authentication.v1beta1.SelfSubjectReviewStatus") 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/k8s.io/api/authentication/v1beta1/generated.proto", fileDescriptor_77c9b20d3ad27844) } var fileDescriptor_77c9b20d3ad27844 = []byte{ // 725 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x4f, 0x4f, 0x13, 0x41, 0x14, 0xef, 0xf6, 0x0f, 0x69, 0xa7, 0x56, 0x61, 0x12, 0x23, 0x69, 0xe2, 0x16, 0x6a, 0x62, 0x48, 0x80, 0x59, 0x21, 0x04, 0x09, 0x9e, 0x58, 0x25, 0x04, 0x13, 0x62, 0x32, 0x05, 0x0f, 0xea, 0xc1, 0xe9, 0xf6, 0xb1, 0x5d, 0x4b, 0x77, 0x37, 0xbb, 0xb3, 0x55, 0x6e, 0x7c, 0x04, 0x8f, 0x1e, 0x4d, 0xfc, 0x24, 0xde, 0x38, 0x72, 0xc4, 0xc4, 0x34, 0xb2, 0x7e, 0x02, 0xbf, 0x81, 0x99, 0xd9, 0x61, 0xdb, 0x82, 0x14, 0xb8, 0x78, 0xdb, 0xf9, 0xcd, 0xfb, 0xfd, 0xde, 0x7b, 0xbf, 0xf7, 0x32, 0x8b, 0x5e, 0x76, 0xd6, 0x42, 0xe2, 0x78, 0x46, 0x27, 0x6a, 0x42, 0xe0, 0x02, 0x87, 0xd0, 0xe8, 0x81, 0xdb, 0xf2, 0x02, 0x43, 0x5d, 0x30, 0xdf, 0x31, 0x58, 0xc4, 0xdb, 0xe0, 0x72, 0xc7, 0x62, 0xdc, 0xf1, 0x5c, 0xa3, 0xb7, 0xd4, 0x04, 0xce, 0x96, 0x0c, 0x1b, 0x5c, 0x08, 0x18, 0x87, 0x16, 0xf1, 0x03, 0x8f, 0x7b, 0x78, 0x36, 0xa1, 0x10, 0xe6, 0x3b, 0x64, 0x94, 0x42, 0x14, 0xa5, 0xba, 0x68, 0x3b, 0xbc, 0x1d, 0x35, 0x89, 0xe5, 0x75, 0x0d, 0xdb, 0xb3, 0x3d, 0x43, 0x32, 0x9b, 0xd1, 0xbe, 0x3c, 0xc9, 0x83, 0xfc, 0x4a, 0x14, 0xab, 0x0b, 0xe3, 0x8a, 0xb8, 0x98, 0xbf, 0xba, 0x32, 0x88, 0xee, 0x32, 0xab, 0xed, 0xb8, 0x10, 0x1c, 0x1a, 0x7e, 0xc7, 0x16, 0x40, 0x68, 0x74, 0x81, 0xb3, 0x7f, 0xb1, 0x8c, 0xab, 0x58, 0x41, 0xe4, 0x72, 0xa7, 0x0b, 0x97, 0x08, 0xab, 0xd7, 0x11, 0x42, 0xab, 0x0d, 0x5d, 0x76, 0x91, 0x57, 0x7f, 0x8a, 0xd0, 0xe6, 0x27, 0x1e, 0xb0, 0xd7, 0xec, 0x20, 0x02, 0x5c, 0x43, 0x05, 0x87, 0x43, 0x37, 0x9c, 0xd6, 0x66, 0x72, 0x73, 0x25, 0xb3, 0x14, 0xf7, 0x6b, 0x85, 0x6d, 0x01, 0xd0, 0x04, 0x5f, 0x2f, 0x7e, 0xf9, 0x5a, 0xcb, 0x1c, 0xfd, 0x9c, 0xc9, 0xd4, 0x7f, 0x68, 0x68, 0xaa, 0x01, 0x07, 0xfb, 0x8d, 0xa8, 0xf9, 0x01, 0x2c, 0x4e, 0xa1, 0xe7, 0xc0, 0x47, 0xfc, 0x1e, 0x15, 0x45, 0x4b, 0x2d, 0xc6, 0xd9, 0xb4, 0x36, 0xa3, 0xcd, 0x95, 0x97, 0x9f, 0x90, 0xc1, 0x00, 0xd2, 0xca, 0x88, 0xdf, 0xb1, 0x05, 0x10, 0x12, 0x11, 0x4d, 0x7a, 0x4b, 0xe4, 0x95, 0x54, 0xd9, 0x01, 0xce, 0x4c, 0x7c, 0xdc, 0xaf, 0x65, 0xe2, 0x7e, 0x0d, 0x0d, 0x30, 0x9a, 0xaa, 0xe2, 0x26, 0x9a, 0x08, 0x39, 0xe3, 0x51, 0x38, 0x9d, 0x95, 0xfa, 0xeb, 0xe4, 0xda, 0x01, 0x93, 0x4b, 0x75, 0x36, 0xa4, 0x82, 0x79, 0x57, 0x65, 0x9a, 0x48, 0xce, 0x54, 0x29, 0xd7, 0x3d, 0xf4, 0xe0, 0x0a, 0x0a, 0xde, 0x45, 0xc5, 0x28, 0x84, 0x60, 0xdb, 0xdd, 0xf7, 0x54, 0x83, 0x8f, 0xc7, 0x16, 0x40, 0xf6, 0x54, 0xb4, 0x39, 0xa9, 0x92, 0x15, 0xcf, 0x11, 0x9a, 0x2a, 0xd5, 0xbf, 0x65, 0x51, 0x79, 0xd7, 0xeb, 0x80, 0xfb, 0xdf, 0x6c, 0xdc, 0x45, 0xf9, 0xd0, 0x07, 0x4b, 0x99, 0xb8, 0x7c, 0x03, 0x13, 0x87, 0xea, 0x6b, 0xf8, 0x60, 0x99, 0x77, 0x94, 0x7e, 0x5e, 0x9c, 0xa8, 0x54, 0xc3, 0xef, 0xd2, 0xe1, 0xe4, 0xa4, 0xee, 0xca, 0x2d, 0x75, 0xc7, 0x8f, 0xc5, 0x42, 0xf7, 0x2e, 0x14, 0x81, 0x1f, 0xa1, 0x02, 0x17, 0x90, 0x74, 0xa9, 0x64, 0x56, 0x14, 0xb3, 0x90, 0xc4, 0x25, 0x77, 0x78, 0x1e, 0x95, 0x58, 0xd4, 0x72, 0xc0, 0xb5, 0x40, 0x6c, 0x8d, 0xd8, 0xec, 0x4a, 0xdc, 0xaf, 0x95, 0x36, 0xce, 0x41, 0x3a, 0xb8, 0xaf, 0xff, 0xd1, 0xd0, 0xd4, 0xa5, 0x92, 0xf0, 0x33, 0x54, 0x19, 0x2a, 0x1f, 0x5a, 0x32, 0x5f, 0xd1, 0xbc, 0xaf, 0xf2, 0x55, 0x36, 0x86, 0x2f, 0xe9, 0x68, 0x2c, 0xde, 0x41, 0x79, 0x31, 0x69, 0xe5, 0xf5, 0xfc, 0x0d, 0x3c, 0x49, 0x97, 0x26, 0x35, 0x59, 0x20, 0x54, 0xca, 0x8c, 0xb6, 0x93, 0x1f, 0xdf, 0x8e, 0x30, 0x08, 0x82, 0xc0, 0x0b, 0xe4, 0x40, 0x86, 0x0c, 0xda, 0x14, 0x20, 0x4d, 0xee, 0xea, 0xdf, 0xb3, 0x28, 0xdd, 0x4a, 0xbc, 0x90, 0x6c, 0xb8, 0xcb, 0xba, 0xa0, 0x5c, 0x1d, 0xd9, 0x5c, 0x81, 0xd3, 0x34, 0x02, 0x3f, 0x44, 0xb9, 0xc8, 0x69, 0xc9, 0xd6, 0x4a, 0x66, 0x59, 0x05, 0xe6, 0xf6, 0xb6, 0x5f, 0x50, 0x81, 0xe3, 0x3a, 0x9a, 0xb0, 0x03, 0x2f, 0xf2, 0xc5, 0x42, 0x88, 0x42, 0x91, 0x18, 0xeb, 0x96, 0x44, 0xa8, 0xba, 0xc1, 0x6f, 0x51, 0x01, 0xc4, 0x13, 0x24, 0x7b, 0x29, 0x2f, 0xaf, 0xde, 0xc2, 0x1f, 0x22, 0xdf, 0xae, 0x4d, 0x97, 0x07, 0x87, 0x43, 0xad, 0x09, 0x8c, 0x26, 0x9a, 0x55, 0x5b, 0xbd, 0x6f, 0x32, 0x06, 0x4f, 0xa2, 0x5c, 0x07, 0x0e, 0x93, 0xb6, 0xa8, 0xf8, 0xc4, 0xcf, 0x51, 0xa1, 0x27, 0x9e, 0x3e, 0x35, 0x9c, 0xc5, 0x1b, 0x24, 0x1f, 0xbc, 0x97, 0x34, 0xe1, 0xae, 0x67, 0xd7, 0x34, 0x73, 0xeb, 0xf8, 0x4c, 0xcf, 0x9c, 0x9c, 0xe9, 0x99, 0xd3, 0x33, 0x3d, 0x73, 0x14, 0xeb, 0xda, 0x71, 0xac, 0x6b, 0x27, 0xb1, 0xae, 0x9d, 0xc6, 0xba, 0xf6, 0x2b, 0xd6, 0xb5, 0xcf, 0xbf, 0xf5, 0xcc, 0x9b, 0xd9, 0x6b, 0x7f, 0x60, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xcb, 0x19, 0x49, 0x3f, 0xfd, 0x06, 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 *SelfSubjectReview) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *SelfSubjectReview) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SelfSubjectReview) 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 *SelfSubjectReviewStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *SelfSubjectReviewStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SelfSubjectReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { size, err := m.UserInfo.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } 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 *SelfSubjectReview) 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 *SelfSubjectReviewStatus) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.UserInfo.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 *SelfSubjectReview) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&SelfSubjectReview{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SelfSubjectReviewStatus", "SelfSubjectReviewStatus", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *SelfSubjectReviewStatus) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&SelfSubjectReviewStatus{`, `UserInfo:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.UserInfo), "UserInfo", "v11.UserInfo", 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 *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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SelfSubjectReview) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: SelfSubjectReview: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SelfSubjectReview: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SelfSubjectReviewStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: SelfSubjectReviewStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SelfSubjectReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (iNdEx+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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/authentication/v1beta1/generated.proto000066400000000000000000000123541453636404600236500ustar00rootroot00000000000000/* 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 "k8s.io/api/authentication/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/authentication/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; } // SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. // When using impersonation, users will receive the user info of the user being impersonated. If impersonation or // request header authentication is used, any extra keys will have their case ignored and returned as lowercase. message SelfSubjectReview { // 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; // Status is filled in by the server with the user attributes. optional SelfSubjectReviewStatus status = 2; } // SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. message SelfSubjectReviewStatus { // User attributes of the user making this request. // +optional optional k8s.io.api.authentication.v1.UserInfo userInfo = 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 { // 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 holds information about the request being evaluated optional TokenReviewSpec spec = 2; // Status is filled in by the server and indicates whether the token 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; } golang-k8s-api-0.29.0/authentication/v1beta1/register.go000066400000000000000000000033221453636404600227730ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &SelfSubjectReview{}, &TokenReview{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/authentication/v1beta1/types.go000066400000000000000000000140661453636404600223220ustar00rootroot00000000000000/* 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" v1 "k8s.io/api/authentication/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +genclient:onlyVerbs=create // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.4 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:replacement=authentication.k8s.io,v1,TokenReview // 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"` // 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 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 token 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)) } // +genclient // +genclient:nonNamespaced // +genclient:onlyVerbs=create // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.27 // SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. // When using impersonation, users will receive the user info of the user being impersonated. If impersonation or // request header authentication is used, any extra keys will have their case ignored and returned as lowercase. type SelfSubjectReview 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"` // Status is filled in by the server with the user attributes. Status SelfSubjectReviewStatus `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"` } // SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. type SelfSubjectReviewStatus struct { // User attributes of the user making this request. // +optional UserInfo v1.UserInfo `json:"userInfo,omitempty" protobuf:"bytes,1,opt,name=userInfo"` } golang-k8s-api-0.29.0/authentication/v1beta1/types_swagger_doc_generated.go000066400000000000000000000121451453636404600267000ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_SelfSubjectReview = map[string]string{ "": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.", "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "status": "Status is filled in by the server with the user attributes.", } func (SelfSubjectReview) SwaggerDoc() map[string]string { return map_SelfSubjectReview } var map_SelfSubjectReviewStatus = map[string]string{ "": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", "userInfo": "User attributes of the user making this request.", } func (SelfSubjectReviewStatus) SwaggerDoc() map[string]string { return map_SelfSubjectReviewStatus } 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.", "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "spec": "Spec holds information about the request being evaluated", "status": "Status is filled in by the server and indicates whether the token 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 golang-k8s-api-0.29.0/authentication/v1beta1/zz_generated.deepcopy.go000066400000000000000000000126101453636404600254370ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/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 *SelfSubjectReview) DeepCopyInto(out *SelfSubjectReview) { *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 SelfSubjectReview. func (in *SelfSubjectReview) DeepCopy() *SelfSubjectReview { if in == nil { return nil } out := new(SelfSubjectReview) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *SelfSubjectReview) 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 *SelfSubjectReviewStatus) DeepCopyInto(out *SelfSubjectReviewStatus) { *out = *in in.UserInfo.DeepCopyInto(&out.UserInfo) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectReviewStatus. func (in *SelfSubjectReviewStatus) DeepCopy() *SelfSubjectReviewStatus { if in == nil { return nil } out := new(SelfSubjectReviewStatus) 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 } golang-k8s-api-0.29.0/authentication/v1beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000066511453636404600277230ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta1 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *SelfSubjectReview) APILifecycleIntroduced() (major, minor int) { return 1, 27 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *SelfSubjectReview) APILifecycleDeprecated() (major, minor int) { return 1, 30 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *SelfSubjectReview) APILifecycleRemoved() (major, minor int) { return 1, 33 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *TokenReview) APILifecycleIntroduced() (major, minor int) { return 1, 4 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *TokenReview) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *TokenReview) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "authentication.k8s.io", Version: "v1", Kind: "TokenReview"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *TokenReview) APILifecycleRemoved() (major, minor int) { return 1, 22 } golang-k8s-api-0.29.0/authorization/000077500000000000000000000000001453636404600172365ustar00rootroot00000000000000golang-k8s-api-0.29.0/authorization/OWNERS000066400000000000000000000003151453636404600201750ustar00rootroot00000000000000# See the OWNERS docs at https://go.k8s.io/owners # approval on api packages bubbles to api-approvers reviewers: - sig-auth-authorizers-approvers - sig-auth-authorizers-reviewers labels: - sig/auth golang-k8s-api-0.29.0/authorization/v1/000077500000000000000000000000001453636404600175645ustar00rootroot00000000000000golang-k8s-api-0.29.0/authorization/v1/doc.go000066400000000000000000000013461453636404600206640ustar00rootroot00000000000000/* 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 "k8s.io/api/authorization/v1" golang-k8s-api-0.29.0/authorization/v1/generated.pb.go000066400000000000000000003120111453636404600224470ustar00rootroot00000000000000/* 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/k8s.io/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.GoGoProtoPackageIsVersion3 // 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/k8s.io/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, 0x57, 0x4f, 0x6f, 0x1b, 0x45, 0x14, 0xf7, 0xfa, 0x4f, 0x62, 0x8f, 0x1b, 0x92, 0x4e, 0x94, 0x66, 0x9b, 0x08, 0x3b, 0x5a, 0x24, 0x48, 0x45, 0xd9, 0x25, 0x56, 0xdb, 0x44, 0x95, 0x2a, 0x64, 0x2b, 0x11, 0x8a, 0xd4, 0x96, 0x6a, 0xa2, 0x44, 0xa2, 0x08, 0xc4, 0x78, 0x3d, 0xb1, 0x97, 0xd8, 0xbb, 0xcb, 0xcc, 0xac, 0x43, 0x38, 0x55, 0xe2, 0x0b, 0x70, 0xe4, 0xc0, 0x81, 0x6f, 0xc0, 0x05, 0x89, 0x1b, 0x07, 0x0e, 0x28, 0xc7, 0x1e, 0x8b, 0x84, 0x2c, 0xb2, 0x9c, 0xf9, 0x0e, 0x68, 0x66, 0xc7, 0xde, 0x75, 0xb2, 0x76, 0x13, 0x0e, 0xed, 0xa5, 0x37, 0xef, 0xfb, 0xfd, 0xde, 0x9b, 0x37, 0xef, 0xdf, 0x3c, 0x83, 0xed, 0xa3, 0x2d, 0x66, 0x3a, 0x9e, 0x75, 0x14, 0x34, 0x09, 0x75, 0x09, 0x27, 0xcc, 0xea, 0x13, 0xb7, 0xe5, 0x51, 0x4b, 0x01, 0xd8, 0x77, 0x2c, 0x1c, 0xf0, 0x8e, 0x47, 0x9d, 0x6f, 0x31, 0x77, 0x3c, 0xd7, 0xea, 0x6f, 0x58, 0x6d, 0xe2, 0x12, 0x8a, 0x39, 0x69, 0x99, 0x3e, 0xf5, 0xb8, 0x07, 0x57, 0x23, 0xb2, 0x89, 0x7d, 0xc7, 0x1c, 0x23, 0x9b, 0xfd, 0x8d, 0x95, 0x0f, 0xda, 0x0e, 0xef, 0x04, 0x4d, 0xd3, 0xf6, 0x7a, 0x56, 0xdb, 0x6b, 0x7b, 0x96, 0xd4, 0x69, 0x06, 0x87, 0xf2, 0x4b, 0x7e, 0xc8, 0x5f, 0x91, 0xad, 0x95, 0x3b, 0xf1, 0xc1, 0x3d, 0x6c, 0x77, 0x1c, 0x97, 0xd0, 0x13, 0xcb, 0x3f, 0x6a, 0x0b, 0x01, 0xb3, 0x7a, 0x84, 0xe3, 0x14, 0x0f, 0x56, 0xac, 0x49, 0x5a, 0x34, 0x70, 0xb9, 0xd3, 0x23, 0x17, 0x14, 0xee, 0xbd, 0x4c, 0x81, 0xd9, 0x1d, 0xd2, 0xc3, 0xe7, 0xf5, 0x8c, 0x4d, 0x00, 0x76, 0xbe, 0xe1, 0x14, 0x1f, 0xe0, 0x6e, 0x40, 0x60, 0x15, 0x14, 0x1c, 0x4e, 0x7a, 0x4c, 0xd7, 0xd6, 0x72, 0xeb, 0xa5, 0x46, 0x29, 0x1c, 0x54, 0x0b, 0xbb, 0x42, 0x80, 0x22, 0xf9, 0xfd, 0xe2, 0x0f, 0x3f, 0x55, 0x33, 0xcf, 0xfe, 0x5a, 0xcb, 0x18, 0xbf, 0x64, 0x81, 0xfe, 0xd0, 0xb3, 0x71, 0x77, 0x2f, 0x68, 0x7e, 0x45, 0x6c, 0x5e, 0xb7, 0x6d, 0xc2, 0x18, 0x22, 0x7d, 0x87, 0x1c, 0xc3, 0x2f, 0x41, 0x51, 0xdc, 0xac, 0x85, 0x39, 0xd6, 0xb5, 0x35, 0x6d, 0xbd, 0x5c, 0xfb, 0xd0, 0x8c, 0x63, 0x3a, 0x72, 0xd0, 0xf4, 0x8f, 0xda, 0x42, 0xc0, 0x4c, 0xc1, 0x36, 0xfb, 0x1b, 0xe6, 0x27, 0xd2, 0xd6, 0x23, 0xc2, 0x71, 0x03, 0x9e, 0x0e, 0xaa, 0x99, 0x70, 0x50, 0x05, 0xb1, 0x0c, 0x8d, 0xac, 0xc2, 0x03, 0x90, 0x67, 0x3e, 0xb1, 0xf5, 0xac, 0xb4, 0x7e, 0xc7, 0x9c, 0x92, 0x31, 0x33, 0xc5, 0xc3, 0x3d, 0x9f, 0xd8, 0x8d, 0x6b, 0xea, 0x84, 0xbc, 0xf8, 0x42, 0xd2, 0x1e, 0xfc, 0x02, 0xcc, 0x30, 0x8e, 0x79, 0xc0, 0xf4, 0x9c, 0xb4, 0x7c, 0xef, 0xca, 0x96, 0xa5, 0x76, 0xe3, 0x2d, 0x65, 0x7b, 0x26, 0xfa, 0x46, 0xca, 0xaa, 0xf1, 0x19, 0x58, 0x7a, 0xec, 0xb9, 0x88, 0x30, 0x2f, 0xa0, 0x36, 0xa9, 0x73, 0x4e, 0x9d, 0x66, 0xc0, 0x09, 0x83, 0x6b, 0x20, 0xef, 0x63, 0xde, 0x91, 0xe1, 0x2a, 0xc5, 0xae, 0x3d, 0xc1, 0xbc, 0x83, 0x24, 0x22, 0x18, 0x7d, 0x42, 0x9b, 0xf2, 0xca, 0x09, 0xc6, 0x01, 0xa1, 0x4d, 0x24, 0x11, 0xe3, 0x6b, 0x30, 0x9f, 0x30, 0x8e, 0x82, 0xae, 0xcc, 0xa8, 0x80, 0xc6, 0x32, 0x2a, 0x34, 0x18, 0x8a, 0xe4, 0xf0, 0x01, 0x98, 0x77, 0x63, 0x9d, 0x7d, 0xf4, 0x90, 0xe9, 0x59, 0x49, 0x5d, 0x0c, 0x07, 0xd5, 0xa4, 0x39, 0x01, 0xa1, 0xf3, 0x5c, 0xe3, 0xb7, 0x2c, 0x80, 0x29, 0xb7, 0xb1, 0x40, 0xc9, 0xc5, 0x3d, 0xc2, 0x7c, 0x6c, 0x13, 0x75, 0xa5, 0xeb, 0xca, 0xe1, 0xd2, 0xe3, 0x21, 0x80, 0x62, 0xce, 0xcb, 0x2f, 0x07, 0xdf, 0x01, 0x85, 0x36, 0xf5, 0x02, 0x5f, 0x26, 0xa6, 0xd4, 0x98, 0x53, 0x94, 0xc2, 0xc7, 0x42, 0x88, 0x22, 0x0c, 0xde, 0x02, 0xb3, 0x7d, 0x42, 0x99, 0xe3, 0xb9, 0x7a, 0x5e, 0xd2, 0xe6, 0x15, 0x6d, 0xf6, 0x20, 0x12, 0xa3, 0x21, 0x0e, 0x6f, 0x83, 0x22, 0x55, 0x8e, 0xeb, 0x05, 0xc9, 0x5d, 0x50, 0xdc, 0xe2, 0x28, 0x82, 0x23, 0x06, 0xbc, 0x0b, 0xca, 0x2c, 0x68, 0x8e, 0x14, 0x66, 0xa4, 0xc2, 0xa2, 0x52, 0x28, 0xef, 0xc5, 0x10, 0x4a, 0xf2, 0xc4, 0xb5, 0xc4, 0x1d, 0xf5, 0xd9, 0xf1, 0x6b, 0x89, 0x10, 0x20, 0x89, 0x18, 0xbf, 0x6b, 0xe0, 0xda, 0xd5, 0x32, 0xf6, 0x3e, 0x28, 0x61, 0xdf, 0x91, 0xd7, 0x1e, 0xe6, 0x6a, 0x4e, 0xc4, 0xb5, 0xfe, 0x64, 0x37, 0x12, 0xa2, 0x18, 0x17, 0xe4, 0xa1, 0x33, 0xa2, 0xa4, 0x47, 0xe4, 0xe1, 0x91, 0x0c, 0xc5, 0x38, 0xdc, 0x04, 0x73, 0xc3, 0x0f, 0x99, 0x24, 0x3d, 0x2f, 0x15, 0xae, 0x87, 0x83, 0xea, 0x1c, 0x4a, 0x02, 0x68, 0x9c, 0x67, 0xfc, 0x9a, 0x05, 0xcb, 0x7b, 0xa4, 0x7b, 0xf8, 0x7a, 0x66, 0xc1, 0xd3, 0xb1, 0x59, 0xb0, 0x35, 0xbd, 0x63, 0xd3, 0xbd, 0x7c, 0x6d, 0xf3, 0xe0, 0xc7, 0x2c, 0x58, 0x9d, 0xe2, 0x13, 0x3c, 0x06, 0x90, 0x5e, 0x68, 0x2f, 0x15, 0x47, 0x6b, 0xaa, 0x2f, 0x17, 0xbb, 0xb2, 0x71, 0x23, 0x1c, 0x54, 0x53, 0xba, 0x15, 0xa5, 0x1c, 0x01, 0xbf, 0xd3, 0xc0, 0x92, 0x9b, 0x36, 0xa9, 0x54, 0x98, 0x6b, 0x53, 0x0f, 0x4f, 0x9d, 0x71, 0x8d, 0x9b, 0xe1, 0xa0, 0x9a, 0x3e, 0xfe, 0x50, 0xfa, 0x59, 0xe2, 0x95, 0xb9, 0x91, 0x08, 0x8f, 0x68, 0x90, 0x57, 0x57, 0x57, 0x9f, 0x8e, 0xd5, 0xd5, 0xe6, 0x65, 0xeb, 0x2a, 0xe1, 0xe4, 0xc4, 0xb2, 0xfa, 0xfc, 0x5c, 0x59, 0xdd, 0xbd, 0x4c, 0x59, 0x25, 0x0d, 0x4f, 0xaf, 0xaa, 0x47, 0x60, 0x65, 0xb2, 0x43, 0x57, 0x1e, 0xce, 0xc6, 0xcf, 0x59, 0xb0, 0xf8, 0xe6, 0x99, 0xbf, 0x4a, 0x5b, 0xff, 0x91, 0x07, 0xcb, 0x6f, 0x5a, 0x7a, 0xd2, 0xa2, 0x13, 0x30, 0x42, 0xd5, 0x33, 0x3e, 0x4a, 0xce, 0x3e, 0x23, 0x14, 0x49, 0x04, 0x1a, 0x60, 0xa6, 0x1d, 0xbd, 0x6e, 0xd1, 0xfb, 0x03, 0x44, 0x80, 0xd5, 0xd3, 0xa6, 0x10, 0xd8, 0x02, 0x05, 0x22, 0xf6, 0x56, 0xbd, 0xb0, 0x96, 0x5b, 0x2f, 0xd7, 0x3e, 0xfa, 0x3f, 0x95, 0x61, 0xca, 0xcd, 0x77, 0xc7, 0xe5, 0xf4, 0x24, 0x5e, 0x27, 0xa4, 0x0c, 0x45, 0xc6, 0xe1, 0xdb, 0x20, 0x17, 0x38, 0x2d, 0xf5, 0xda, 0x97, 0x15, 0x25, 0xb7, 0xbf, 0xbb, 0x8d, 0x84, 0x7c, 0x05, 0xab, 0xe5, 0x59, 0x9a, 0x80, 0x0b, 0x20, 0x77, 0x44, 0x4e, 0xa2, 0x86, 0x42, 0xe2, 0x27, 0x7c, 0x00, 0x0a, 0x7d, 0xb1, 0x57, 0xab, 0xf8, 0xbe, 0x37, 0xd5, 0xc9, 0x78, 0x0d, 0x47, 0x91, 0xd6, 0xfd, 0xec, 0x96, 0x66, 0xfc, 0xa9, 0x81, 0x9b, 0x13, 0xcb, 0x4f, 0xac, 0x3b, 0xb8, 0xdb, 0xf5, 0x8e, 0x49, 0x4b, 0x1e, 0x5b, 0x8c, 0xd7, 0x9d, 0x7a, 0x24, 0x46, 0x43, 0x1c, 0xbe, 0x0b, 0x66, 0x5a, 0xc4, 0x75, 0x48, 0x4b, 0x2e, 0x46, 0xc5, 0xb8, 0x72, 0xb7, 0xa5, 0x14, 0x29, 0x54, 0xf0, 0x28, 0xc1, 0xcc, 0x73, 0xd5, 0x2a, 0x36, 0xe2, 0x21, 0x29, 0x45, 0x0a, 0x85, 0x75, 0x30, 0x4f, 0x84, 0x9b, 0xd2, 0xff, 0x1d, 0x4a, 0xbd, 0x61, 0x46, 0x97, 0x95, 0xc2, 0xfc, 0xce, 0x38, 0x8c, 0xce, 0xf3, 0x8d, 0x7f, 0xb3, 0x40, 0x9f, 0x34, 0xda, 0xe0, 0x61, 0xbc, 0x8b, 0x48, 0x50, 0xae, 0x43, 0xe5, 0xda, 0xad, 0x4b, 0x35, 0x88, 0xd0, 0x68, 0x2c, 0x29, 0x47, 0xe6, 0x92, 0xd2, 0xc4, 0xea, 0x22, 0x3f, 0x21, 0x05, 0x0b, 0xee, 0xf8, 0xce, 0x1c, 0x2d, 0x55, 0xe5, 0xda, 0xed, 0xcb, 0xb6, 0x83, 0x3c, 0x4d, 0x57, 0xa7, 0x2d, 0x9c, 0x03, 0x18, 0xba, 0x60, 0x1f, 0xd6, 0x00, 0x70, 0x5c, 0xdb, 0xeb, 0xf9, 0x5d, 0xc2, 0x89, 0x0c, 0x5b, 0x31, 0x9e, 0x83, 0xbb, 0x23, 0x04, 0x25, 0x58, 0x69, 0xf1, 0xce, 0x5f, 0x2d, 0xde, 0x8d, 0xfa, 0xe9, 0x59, 0x25, 0xf3, 0xfc, 0xac, 0x92, 0x79, 0x71, 0x56, 0xc9, 0x3c, 0x0b, 0x2b, 0xda, 0x69, 0x58, 0xd1, 0x9e, 0x87, 0x15, 0xed, 0x45, 0x58, 0xd1, 0xfe, 0x0e, 0x2b, 0xda, 0xf7, 0xff, 0x54, 0x32, 0x4f, 0x57, 0xa7, 0xfc, 0x53, 0xfe, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xea, 0x67, 0x63, 0x89, 0x60, 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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (iNdEx+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) || (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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/authorization/v1/generated.proto000066400000000000000000000276771453636404600226320ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/authorization/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 { // 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.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 { // 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.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 { // 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.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; } // SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. 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 { // 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.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; } golang-k8s-api-0.29.0/authorization/v1/register.go000066400000000000000000000034221453636404600217400ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &SelfSubjectRulesReview{}, &SelfSubjectAccessReview{}, &SubjectAccessReview{}, &LocalSubjectAccessReview{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/authorization/v1/types.go000066400000000000000000000342731453636404600212700ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +genclient:onlyVerbs=create // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // SubjectAccessReview checks whether or not a user or group can perform an action. type SubjectAccessReview 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.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:onlyVerbs=create // +k8s:deepcopy-gen:interfaces=k8s.io/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"` // Standard list 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 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:onlyVerbs=create // +k8s:deepcopy-gen:interfaces=k8s.io/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"` // Standard list 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 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:onlyVerbs=create // +k8s:deepcopy-gen:interfaces=k8s.io/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"` // Standard list 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 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"` } // SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. 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"` } golang-k8s-api-0.29.0/authorization/v1/types_swagger_doc_generated.go000066400000000000000000000276461453636404600256600ustar00rootroot00000000000000/* 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-codegen.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.", "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "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", "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "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.", "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "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{ "": "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.", "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.", "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "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 golang-k8s-api-0.29.0/authorization/v1/zz_generated.deepcopy.go000066400000000000000000000262521453636404600244120ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/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 } golang-k8s-api-0.29.0/authorization/v1beta1/000077500000000000000000000000001453636404600205015ustar00rootroot00000000000000golang-k8s-api-0.29.0/authorization/v1beta1/doc.go000066400000000000000000000014261453636404600216000ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true // +groupName=authorization.k8s.io package v1beta1 // import "k8s.io/api/authorization/v1beta1" golang-k8s-api-0.29.0/authorization/v1beta1/generated.pb.go000066400000000000000000003121651453636404600233760ustar00rootroot00000000000000/* 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/k8s.io/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.GoGoProtoPackageIsVersion3 // 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/k8s.io/api/authorization/v1beta1/generated.proto", fileDescriptor_43130d8376f09103) } var fileDescriptor_43130d8376f09103 = []byte{ // 1143 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0x4f, 0x6f, 0x1b, 0x45, 0x14, 0xf7, 0xfa, 0x4f, 0x62, 0x8f, 0x1b, 0x92, 0x4e, 0x94, 0x66, 0x1b, 0x84, 0x6d, 0x19, 0x09, 0x05, 0x51, 0x76, 0x49, 0x54, 0x48, 0x09, 0xf4, 0x10, 0x2b, 0x01, 0x45, 0x6a, 0x4b, 0x35, 0x51, 0x72, 0xa0, 0x12, 0x30, 0xbb, 0x9e, 0xd8, 0x8b, 0xed, 0xdd, 0x65, 0x66, 0xd6, 0x21, 0x88, 0x43, 0x8f, 0x1c, 0x39, 0x72, 0xe4, 0xc4, 0x77, 0xe0, 0x82, 0x04, 0xa7, 0x1c, 0x7b, 0x0c, 0x12, 0xb2, 0xc8, 0xf2, 0x21, 0xb8, 0xa2, 0x99, 0x1d, 0x7b, 0xd7, 0xc9, 0x26, 0x8e, 0x73, 0xa0, 0x97, 0xde, 0x3c, 0xef, 0xf7, 0x7b, 0x6f, 0xde, 0x7b, 0xf3, 0xde, 0xdb, 0x67, 0xb0, 0xdb, 0x79, 0xc0, 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, 0xbb, 0x2d, 0x87, 0xb7, 0x03, 0xcb, 0xb0, 0xbd, 0x9e, 0xd9, 0xf2, 0x5a, 0x9e, 0x29, 0x15, 0xad, 0xe0, 0x50, 0x9e, 0xe4, 0x41, 0xfe, 0x8a, 0x0c, 0xae, 0xdc, 0x8f, 0x5d, 0xe8, 0x61, 0xbb, 0xed, 0xb8, 0x84, 0x1e, 0x9b, 0x7e, 0xa7, 0x25, 0x04, 0xcc, 0xec, 0x11, 0x8e, 0xcd, 0xfe, 0x05, 0x37, 0x56, 0xcc, 0xcb, 0xb4, 0x68, 0xe0, 0x72, 0xa7, 0x47, 0x2e, 0x28, 0x7c, 0x30, 0x49, 0x81, 0xd9, 0x6d, 0xd2, 0xc3, 0xe7, 0xf5, 0xea, 0x1b, 0x00, 0xec, 0x7c, 0xcb, 0x29, 0x3e, 0xc0, 0xdd, 0x80, 0xc0, 0x2a, 0x28, 0x38, 0x9c, 0xf4, 0x98, 0xae, 0xd5, 0x72, 0xab, 0xa5, 0x46, 0x29, 0x1c, 0x54, 0x0b, 0xbb, 0x42, 0x80, 0x22, 0xf9, 0x66, 0xf1, 0xa7, 0x9f, 0xab, 0x99, 0xe7, 0x7f, 0xd5, 0x32, 0xf5, 0xdf, 0xb2, 0x40, 0x7f, 0xe4, 0xd9, 0xb8, 0xbb, 0x17, 0x58, 0x5f, 0x13, 0x9b, 0x6f, 0xd9, 0x36, 0x61, 0x0c, 0x91, 0xbe, 0x43, 0x8e, 0xe0, 0x57, 0xa0, 0x28, 0x22, 0x6b, 0x62, 0x8e, 0x75, 0xad, 0xa6, 0xad, 0x96, 0xd7, 0xdf, 0x33, 0xe2, 0xc4, 0x8e, 0x1c, 0x34, 0xfc, 0x4e, 0x4b, 0x08, 0x98, 0x21, 0xd8, 0x46, 0x7f, 0xcd, 0xf8, 0x4c, 0xda, 0x7a, 0x4c, 0x38, 0x6e, 0xc0, 0x93, 0x41, 0x35, 0x13, 0x0e, 0xaa, 0x20, 0x96, 0xa1, 0x91, 0x55, 0xf8, 0x0c, 0xe4, 0x99, 0x4f, 0x6c, 0x3d, 0x2b, 0xad, 0x7f, 0x68, 0x4c, 0x7a, 0x36, 0x23, 0xc5, 0xcd, 0x3d, 0x9f, 0xd8, 0x8d, 0x5b, 0xea, 0x9a, 0xbc, 0x38, 0x21, 0x69, 0x14, 0xda, 0x60, 0x86, 0x71, 0xcc, 0x03, 0xa6, 0xe7, 0xa4, 0xf9, 0x8f, 0x6e, 0x66, 0x5e, 0x9a, 0x68, 0xbc, 0xa6, 0x2e, 0x98, 0x89, 0xce, 0x48, 0x99, 0xae, 0x3f, 0x03, 0x4b, 0x4f, 0x3c, 0x17, 0x11, 0xe6, 0x05, 0xd4, 0x26, 0x5b, 0x9c, 0x53, 0xc7, 0x0a, 0x38, 0x61, 0xb0, 0x06, 0xf2, 0x3e, 0xe6, 0x6d, 0x99, 0xb8, 0x52, 0xec, 0xdf, 0x53, 0xcc, 0xdb, 0x48, 0x22, 0x82, 0xd1, 0x27, 0xd4, 0x92, 0xc1, 0x27, 0x18, 0x07, 0x84, 0x5a, 0x48, 0x22, 0xf5, 0x6f, 0xc0, 0x7c, 0xc2, 0x38, 0x0a, 0xba, 0xf2, 0x6d, 0x05, 0x34, 0xf6, 0xb6, 0x42, 0x83, 0xa1, 0x48, 0x0e, 0x1f, 0x82, 0x79, 0x37, 0xd6, 0xd9, 0x47, 0x8f, 0x98, 0x9e, 0x95, 0xd4, 0xc5, 0x70, 0x50, 0x4d, 0x9a, 0x13, 0x10, 0x3a, 0xcf, 0x15, 0x05, 0x01, 0x53, 0xa2, 0x31, 0x41, 0xc9, 0xc5, 0x3d, 0xc2, 0x7c, 0x6c, 0x13, 0x15, 0xd2, 0x6d, 0xe5, 0x70, 0xe9, 0xc9, 0x10, 0x40, 0x31, 0x67, 0x72, 0x70, 0xf0, 0x4d, 0x50, 0x68, 0x51, 0x2f, 0xf0, 0xe5, 0xeb, 0x94, 0x1a, 0x73, 0x8a, 0x52, 0xf8, 0x54, 0x08, 0x51, 0x84, 0xc1, 0xb7, 0xc1, 0x6c, 0x9f, 0x50, 0xe6, 0x78, 0xae, 0x9e, 0x97, 0xb4, 0x79, 0x45, 0x9b, 0x3d, 0x88, 0xc4, 0x68, 0x88, 0xc3, 0x7b, 0xa0, 0x48, 0x95, 0xe3, 0x7a, 0x41, 0x72, 0x17, 0x14, 0xb7, 0x38, 0xca, 0xe0, 0x88, 0x01, 0xdf, 0x07, 0x65, 0x16, 0x58, 0x23, 0x85, 0x19, 0xa9, 0xb0, 0xa8, 0x14, 0xca, 0x7b, 0x31, 0x84, 0x92, 0x3c, 0x11, 0x96, 0x88, 0x51, 0x9f, 0x1d, 0x0f, 0x4b, 0xa4, 0x00, 0x49, 0xa4, 0xfe, 0x87, 0x06, 0x6e, 0x4d, 0xf7, 0x62, 0xef, 0x80, 0x12, 0xf6, 0x1d, 0x19, 0xf6, 0xf0, 0xad, 0xe6, 0x44, 0x5e, 0xb7, 0x9e, 0xee, 0x46, 0x42, 0x14, 0xe3, 0x82, 0x3c, 0x74, 0x46, 0xd4, 0xf5, 0x88, 0x3c, 0xbc, 0x92, 0xa1, 0x18, 0x87, 0x1b, 0x60, 0x6e, 0x78, 0x90, 0x8f, 0xa4, 0xe7, 0xa5, 0xc2, 0xed, 0x70, 0x50, 0x9d, 0x43, 0x49, 0x00, 0x8d, 0xf3, 0xea, 0xbf, 0x67, 0xc1, 0xf2, 0x1e, 0xe9, 0x1e, 0xbe, 0x9c, 0xa9, 0xf0, 0xe5, 0xd8, 0x54, 0x78, 0x78, 0x8d, 0xb6, 0x4d, 0x77, 0xf5, 0xe5, 0x4e, 0x86, 0x5f, 0xb2, 0xe0, 0xf5, 0x2b, 0x1c, 0x83, 0xdf, 0x03, 0x48, 0x2f, 0x34, 0x9a, 0xca, 0xe8, 0xfd, 0xc9, 0x0e, 0x5d, 0x6c, 0xd2, 0xc6, 0x9d, 0x70, 0x50, 0x4d, 0x69, 0x5e, 0x94, 0x72, 0x0f, 0xfc, 0x41, 0x03, 0x4b, 0x6e, 0xda, 0xe0, 0x52, 0x59, 0xdf, 0x98, 0xec, 0x41, 0xea, 0xdc, 0x6b, 0xdc, 0x0d, 0x07, 0xd5, 0xf4, 0x91, 0x88, 0xd2, 0x2f, 0x14, 0x23, 0xe7, 0x4e, 0x22, 0x51, 0xa2, 0x69, 0xfe, 0xbf, 0x5a, 0xfb, 0x62, 0xac, 0xd6, 0x3e, 0x9e, 0xaa, 0xd6, 0x12, 0x9e, 0x5e, 0x5a, 0x6a, 0xd6, 0xb9, 0x52, 0xdb, 0xbc, 0x76, 0xa9, 0x25, 0xad, 0x5f, 0x5d, 0x69, 0x8f, 0xc1, 0xca, 0xe5, 0x5e, 0x4d, 0x3d, 0xba, 0xeb, 0xbf, 0x66, 0xc1, 0xe2, 0xab, 0x75, 0xe0, 0x66, 0x4d, 0x7f, 0x9a, 0x07, 0xcb, 0xaf, 0x1a, 0xfe, 0xea, 0x86, 0x17, 0x1f, 0xd1, 0x80, 0x11, 0xaa, 0x3e, 0xfc, 0xa3, 0xb7, 0xda, 0x67, 0x84, 0x22, 0x89, 0xc0, 0xda, 0x70, 0x37, 0x88, 0x3e, 0x58, 0x40, 0x64, 0x5a, 0x7d, 0x0b, 0xd5, 0x62, 0xe0, 0x80, 0x02, 0x11, 0x1b, 0xaf, 0x5e, 0xa8, 0xe5, 0x56, 0xcb, 0xeb, 0xdb, 0x37, 0xae, 0x15, 0x43, 0x2e, 0xce, 0x3b, 0x2e, 0xa7, 0xc7, 0xf1, 0x0e, 0x22, 0x65, 0x28, 0xba, 0x01, 0xbe, 0x01, 0x72, 0x81, 0xd3, 0x54, 0x2b, 0x42, 0x59, 0x51, 0x72, 0xfb, 0xbb, 0xdb, 0x48, 0xc8, 0x57, 0x0e, 0xd5, 0xee, 0x2d, 0x4d, 0xc0, 0x05, 0x90, 0xeb, 0x90, 0xe3, 0xa8, 0xcf, 0x90, 0xf8, 0x09, 0x1b, 0xa0, 0xd0, 0x17, 0x6b, 0xb9, 0xca, 0xf3, 0xbd, 0xc9, 0x9e, 0xc6, 0xab, 0x3c, 0x8a, 0x54, 0x37, 0xb3, 0x0f, 0xb4, 0xfa, 0x9f, 0x1a, 0xb8, 0x7b, 0x69, 0x41, 0x8a, 0x45, 0x09, 0x77, 0xbb, 0xde, 0x11, 0x69, 0xca, 0xbb, 0x8b, 0xf1, 0xa2, 0xb4, 0x15, 0x89, 0xd1, 0x10, 0x87, 0x6f, 0x81, 0x99, 0x26, 0x71, 0x1d, 0xd2, 0x94, 0x2b, 0x55, 0x31, 0xae, 0xe5, 0x6d, 0x29, 0x45, 0x0a, 0x15, 0x3c, 0x4a, 0x30, 0xf3, 0x5c, 0xb5, 0xc4, 0x8d, 0x78, 0x48, 0x4a, 0x91, 0x42, 0xe1, 0x16, 0x98, 0x27, 0xc2, 0x4d, 0x19, 0xc4, 0x0e, 0xa5, 0xde, 0xf0, 0x65, 0x97, 0x95, 0xc2, 0xfc, 0xce, 0x38, 0x8c, 0xce, 0xf3, 0xeb, 0xff, 0x66, 0x81, 0x7e, 0xd9, 0xd8, 0x83, 0x9d, 0x78, 0x8b, 0x91, 0xa0, 0x5c, 0xa4, 0xca, 0xeb, 0xc6, 0xf5, 0x5b, 0x46, 0xa8, 0x35, 0x96, 0x94, 0x37, 0x73, 0x49, 0x69, 0x62, 0xf3, 0x91, 0x47, 0x78, 0x04, 0x16, 0xdc, 0xf1, 0x95, 0x3b, 0xda, 0xc9, 0xca, 0xeb, 0x6b, 0x53, 0x35, 0x88, 0xbc, 0x52, 0x57, 0x57, 0x2e, 0x9c, 0x03, 0x18, 0xba, 0x70, 0x09, 0x5c, 0x07, 0xc0, 0x71, 0x6d, 0xaf, 0xe7, 0x77, 0x09, 0x27, 0x32, 0x81, 0xc5, 0x78, 0x5a, 0xee, 0x8e, 0x10, 0x94, 0x60, 0xa5, 0x65, 0x3e, 0x3f, 0x5d, 0xe6, 0x1b, 0x9f, 0x9c, 0x9c, 0x55, 0x32, 0x2f, 0xce, 0x2a, 0x99, 0xd3, 0xb3, 0x4a, 0xe6, 0x79, 0x58, 0xd1, 0x4e, 0xc2, 0x8a, 0xf6, 0x22, 0xac, 0x68, 0xa7, 0x61, 0x45, 0xfb, 0x3b, 0xac, 0x68, 0x3f, 0xfe, 0x53, 0xc9, 0x7c, 0x5e, 0x9b, 0xf4, 0x0f, 0xfc, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x58, 0x16, 0x3a, 0xdf, 0xbd, 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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (iNdEx+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) || (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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/authorization/v1beta1/generated.proto000066400000000000000000000277071453636404600235410ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/authorization/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 { // 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.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 { // 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.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 { // 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.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; } // SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. 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 { // 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.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; } golang-k8s-api-0.29.0/authorization/v1beta1/register.go000066400000000000000000000034341453636404600226600ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &SelfSubjectRulesReview{}, &SelfSubjectAccessReview{}, &SubjectAccessReview{}, &LocalSubjectAccessReview{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/authorization/v1beta1/types.go000066400000000000000000000356611453636404600222070ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +genclient:onlyVerbs=create // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.2 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:replacement=authorization.k8s.io,v1,SubjectAccessReview // SubjectAccessReview checks whether or not a user or group can perform an action. type SubjectAccessReview 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.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:onlyVerbs=create // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.2 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:replacement=authorization.k8s.io,v1,SelfSubjectAccessReview // 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"` // Standard list 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 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:onlyVerbs=create // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.2 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:replacement=authorization.k8s.io,v1,LocalSubjectAccessReview // 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"` // Standard list 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 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:onlyVerbs=create // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.8 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:replacement=authorization.k8s.io,v1,SelfSubjectRulesReview // 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"` // Standard list 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 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"` } // SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. 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"` } golang-k8s-api-0.29.0/authorization/v1beta1/types_swagger_doc_generated.go000066400000000000000000000276521453636404600265720ustar00rootroot00000000000000/* 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-codegen.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.", "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "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", "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "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.", "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "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{ "": "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.", "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.", "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "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 golang-k8s-api-0.29.0/authorization/v1beta1/zz_generated.deepcopy.go000066400000000000000000000262571453636404600253340ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/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 } golang-k8s-api-0.29.0/authorization/v1beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000161521453636404600276010ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta1 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *LocalSubjectAccessReview) APILifecycleIntroduced() (major, minor int) { return 1, 2 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *LocalSubjectAccessReview) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *LocalSubjectAccessReview) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "authorization.k8s.io", Version: "v1", Kind: "LocalSubjectAccessReview"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *LocalSubjectAccessReview) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *SelfSubjectAccessReview) APILifecycleIntroduced() (major, minor int) { return 1, 2 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *SelfSubjectAccessReview) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *SelfSubjectAccessReview) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "authorization.k8s.io", Version: "v1", Kind: "SelfSubjectAccessReview"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *SelfSubjectAccessReview) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *SelfSubjectRulesReview) APILifecycleIntroduced() (major, minor int) { return 1, 8 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *SelfSubjectRulesReview) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *SelfSubjectRulesReview) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "authorization.k8s.io", Version: "v1", Kind: "SelfSubjectRulesReview"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *SelfSubjectRulesReview) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *SubjectAccessReview) APILifecycleIntroduced() (major, minor int) { return 1, 2 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *SubjectAccessReview) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *SubjectAccessReview) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "authorization.k8s.io", Version: "v1", Kind: "SubjectAccessReview"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *SubjectAccessReview) APILifecycleRemoved() (major, minor int) { return 1, 22 } golang-k8s-api-0.29.0/autoscaling/000077500000000000000000000000001453636404600166475ustar00rootroot00000000000000golang-k8s-api-0.29.0/autoscaling/OWNERS000066400000000000000000000002431453636404600176060ustar00rootroot00000000000000# See the OWNERS docs at https://go.k8s.io/owners reviewers: - thockin - smarterclayton - wojtek-t - deads2k - caesarxuchao - sttts - ncdc - dims golang-k8s-api-0.29.0/autoscaling/v1/000077500000000000000000000000001453636404600171755ustar00rootroot00000000000000golang-k8s-api-0.29.0/autoscaling/v1/doc.go000066400000000000000000000013001453636404600202630ustar00rootroot00000000000000/* 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 "k8s.io/api/autoscaling/v1" golang-k8s-api-0.29.0/autoscaling/v1/generated.pb.go000066400000000000000000004621411453636404600220720ustar00rootroot00000000000000/* 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/k8s.io/api/autoscaling/v1/generated.proto package v1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" k8s_io_api_core_v1 "k8s.io/api/core/v1" resource "k8s.io/apimachinery/pkg/api/resource" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *ContainerResourceMetricSource) Reset() { *m = ContainerResourceMetricSource{} } func (*ContainerResourceMetricSource) ProtoMessage() {} func (*ContainerResourceMetricSource) Descriptor() ([]byte, []int) { return fileDescriptor_2bb1f2101a7f10e2, []int{0} } func (m *ContainerResourceMetricSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ContainerResourceMetricSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ContainerResourceMetricSource) XXX_Merge(src proto.Message) { xxx_messageInfo_ContainerResourceMetricSource.Merge(m, src) } func (m *ContainerResourceMetricSource) XXX_Size() int { return m.Size() } func (m *ContainerResourceMetricSource) XXX_DiscardUnknown() { xxx_messageInfo_ContainerResourceMetricSource.DiscardUnknown(m) } var xxx_messageInfo_ContainerResourceMetricSource proto.InternalMessageInfo func (m *ContainerResourceMetricStatus) Reset() { *m = ContainerResourceMetricStatus{} } func (*ContainerResourceMetricStatus) ProtoMessage() {} func (*ContainerResourceMetricStatus) Descriptor() ([]byte, []int) { return fileDescriptor_2bb1f2101a7f10e2, []int{1} } func (m *ContainerResourceMetricStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ContainerResourceMetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ContainerResourceMetricStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_ContainerResourceMetricStatus.Merge(m, src) } func (m *ContainerResourceMetricStatus) XXX_Size() int { return m.Size() } func (m *ContainerResourceMetricStatus) XXX_DiscardUnknown() { xxx_messageInfo_ContainerResourceMetricStatus.DiscardUnknown(m) } var xxx_messageInfo_ContainerResourceMetricStatus proto.InternalMessageInfo func (m *CrossVersionObjectReference) Reset() { *m = CrossVersionObjectReference{} } func (*CrossVersionObjectReference) ProtoMessage() {} func (*CrossVersionObjectReference) Descriptor() ([]byte, []int) { return fileDescriptor_2bb1f2101a7f10e2, []int{2} } 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{3} } 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{4} } 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{5} } 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{6} } 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{7} } 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{8} } 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{9} } 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{10} } 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{11} } 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{12} } 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{13} } 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{14} } 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{15} } 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{16} } 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{17} } 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{18} } 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{19} } 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{20} } 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((*ContainerResourceMetricSource)(nil), "k8s.io.api.autoscaling.v1.ContainerResourceMetricSource") proto.RegisterType((*ContainerResourceMetricStatus)(nil), "k8s.io.api.autoscaling.v1.ContainerResourceMetricStatus") 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/k8s.io/api/autoscaling/v1/generated.proto", fileDescriptor_2bb1f2101a7f10e2) } var fileDescriptor_2bb1f2101a7f10e2 = []byte{ // 1608 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0x4d, 0x6c, 0xd4, 0xc6, 0x17, 0xcf, 0x7e, 0x24, 0x24, 0x6f, 0x43, 0x3e, 0x06, 0xfe, 0x90, 0x84, 0x3f, 0xeb, 0xc8, 0x7f, 0x84, 0xf2, 0x6f, 0x8b, 0xdd, 0x6c, 0x29, 0xa2, 0xa7, 0x2a, 0xde, 0x96, 0x82, 0x9a, 0x85, 0x30, 0x09, 0x94, 0x7e, 0x8a, 0x89, 0x77, 0xd8, 0x98, 0xac, 0xed, 0x95, 0xed, 0x5d, 0x11, 0x24, 0xa4, 0xf6, 0xd0, 0x7b, 0x2f, 0xb4, 0xd7, 0x56, 0xea, 0xb5, 0x67, 0xce, 0xbd, 0x71, 0xe4, 0x80, 0x54, 0x4e, 0xab, 0xe2, 0x1e, 0x7a, 0xe8, 0xa9, 0x57, 0x4e, 0x95, 0xc7, 0x63, 0xaf, 0xbd, 0xbb, 0x76, 0x36, 0x9b, 0x10, 0xb5, 0x15, 0xb7, 0x78, 0xe7, 0xbd, 0xdf, 0x9b, 0x79, 0xdf, 0xef, 0x05, 0x94, 0xed, 0x8b, 0xb6, 0xa4, 0x99, 0xf2, 0x76, 0x73, 0x93, 0x5a, 0x06, 0x75, 0xa8, 0x2d, 0xb7, 0xa8, 0x51, 0x35, 0x2d, 0x99, 0x1f, 0x90, 0x86, 0x26, 0x93, 0xa6, 0x63, 0xda, 0x2a, 0xa9, 0x6b, 0x46, 0x4d, 0x6e, 0x2d, 0xcb, 0x35, 0x6a, 0x50, 0x8b, 0x38, 0xb4, 0x2a, 0x35, 0x2c, 0xd3, 0x31, 0xd1, 0xbc, 0x4f, 0x2a, 0x91, 0x86, 0x26, 0x45, 0x48, 0xa5, 0xd6, 0xf2, 0xc2, 0xb9, 0x9a, 0xe6, 0x6c, 0x35, 0x37, 0x25, 0xd5, 0xd4, 0xe5, 0x9a, 0x59, 0x33, 0x65, 0xc6, 0xb1, 0xd9, 0xbc, 0xc3, 0xbe, 0xd8, 0x07, 0xfb, 0xcb, 0x47, 0x5a, 0x10, 0x23, 0x42, 0x55, 0xd3, 0xa2, 0x7d, 0xa4, 0x2d, 0x9c, 0xef, 0xd0, 0xe8, 0x44, 0xdd, 0xd2, 0x0c, 0x6a, 0xed, 0xc8, 0x8d, 0xed, 0x1a, 0x63, 0xb2, 0xa8, 0x6d, 0x36, 0x2d, 0x95, 0xee, 0x89, 0xcb, 0x96, 0x75, 0xea, 0x90, 0x7e, 0xb2, 0xe4, 0x24, 0x2e, 0xab, 0x69, 0x38, 0x9a, 0xde, 0x2b, 0xe6, 0xc2, 0x6e, 0x0c, 0xb6, 0xba, 0x45, 0x75, 0xd2, 0xcd, 0x27, 0xfe, 0x9e, 0x85, 0xd3, 0x65, 0xd3, 0x70, 0x88, 0xc7, 0x81, 0xf9, 0x23, 0x2a, 0xd4, 0xb1, 0x34, 0x75, 0x9d, 0xfd, 0x8d, 0xca, 0x90, 0x37, 0x88, 0x4e, 0xe7, 0x32, 0x8b, 0x99, 0xa5, 0x09, 0x45, 0x7e, 0xdc, 0x16, 0x46, 0xdc, 0xb6, 0x90, 0xbf, 0x4a, 0x74, 0xfa, 0xa2, 0x2d, 0x08, 0xbd, 0x8a, 0x93, 0x02, 0x18, 0x8f, 0x04, 0x33, 0x66, 0x74, 0x0b, 0xe6, 0x1c, 0x62, 0xd5, 0xa8, 0xb3, 0xd2, 0xa2, 0x16, 0xa9, 0xd1, 0x1b, 0x8e, 0x56, 0xd7, 0xee, 0x13, 0x47, 0x33, 0x8d, 0xb9, 0xec, 0x62, 0x66, 0x69, 0x54, 0xf9, 0xaf, 0xdb, 0x16, 0xe6, 0x36, 0x12, 0x68, 0x70, 0x22, 0x37, 0x6a, 0x01, 0x8a, 0x9d, 0xdd, 0x24, 0xf5, 0x26, 0x9d, 0xcb, 0x2d, 0x66, 0x96, 0x0a, 0x25, 0x49, 0xea, 0x38, 0x48, 0xa8, 0x15, 0xa9, 0xb1, 0x5d, 0x63, 0x1e, 0x13, 0x98, 0x4c, 0xba, 0xde, 0x24, 0x86, 0xa3, 0x39, 0x3b, 0xca, 0x09, 0xb7, 0x2d, 0xa0, 0x8d, 0x1e, 0x34, 0xdc, 0x47, 0x02, 0x92, 0x61, 0x42, 0x0d, 0xf4, 0x36, 0x37, 0xca, 0x74, 0x33, 0xcb, 0x75, 0x33, 0xd1, 0x51, 0x68, 0x87, 0x46, 0xfc, 0x33, 0x45, 0xd3, 0x0e, 0x71, 0x9a, 0xf6, 0xc1, 0x68, 0xfa, 0x53, 0x98, 0x57, 0x9b, 0x96, 0x45, 0x8d, 0x64, 0x55, 0x9f, 0x76, 0xdb, 0xc2, 0x7c, 0x39, 0x89, 0x08, 0x27, 0xf3, 0xa3, 0x07, 0x70, 0x2c, 0x7e, 0xb8, 0x1f, 0x6d, 0x9f, 0xe2, 0x0f, 0x3c, 0x56, 0xee, 0x85, 0xc4, 0xfd, 0xe4, 0xc4, 0x75, 0x9e, 0x1f, 0x40, 0xe7, 0x0f, 0x33, 0x70, 0xaa, 0x6c, 0x99, 0xb6, 0x7d, 0x93, 0x5a, 0xb6, 0x66, 0x1a, 0xd7, 0x36, 0xef, 0x52, 0xd5, 0xc1, 0xf4, 0x0e, 0xb5, 0xa8, 0xa1, 0x52, 0xb4, 0x08, 0xf9, 0x6d, 0xcd, 0xa8, 0x72, 0x8d, 0x4f, 0x06, 0x1a, 0xff, 0x50, 0x33, 0xaa, 0x98, 0x9d, 0x78, 0x14, 0xcc, 0x26, 0xd9, 0x38, 0x45, 0x44, 0xe1, 0x25, 0x00, 0xd2, 0xd0, 0xb8, 0x00, 0xa6, 0x8a, 0x09, 0x05, 0x71, 0x3a, 0x58, 0x59, 0xbb, 0xc2, 0x4f, 0x70, 0x84, 0x4a, 0xfc, 0x36, 0x07, 0xc7, 0xdf, 0xbf, 0xe7, 0x50, 0xcb, 0x20, 0xf5, 0x58, 0xb0, 0x95, 0x00, 0x74, 0xf6, 0x7d, 0xb5, 0xe3, 0x08, 0x21, 0x58, 0x25, 0x3c, 0xc1, 0x11, 0x2a, 0x64, 0xc2, 0x94, 0xff, 0xb5, 0x4e, 0xeb, 0x54, 0x75, 0x4c, 0x8b, 0x5d, 0xb6, 0x50, 0x7a, 0x2b, 0xcd, 0x1e, 0xb6, 0xe4, 0xa5, 0x1e, 0xa9, 0xb5, 0x2c, 0xad, 0x92, 0x4d, 0x5a, 0x0f, 0x58, 0x15, 0xe4, 0xb6, 0x85, 0xa9, 0x4a, 0x0c, 0x0e, 0x77, 0xc1, 0x23, 0x02, 0x05, 0x3f, 0x20, 0xf6, 0x63, 0xfd, 0x69, 0xb7, 0x2d, 0x14, 0x36, 0x3a, 0x30, 0x38, 0x8a, 0x99, 0x10, 0xd5, 0xf9, 0x97, 0x1d, 0xd5, 0xe2, 0xf7, 0xbd, 0x86, 0xf1, 0x63, 0xf3, 0x1f, 0x61, 0x98, 0x2d, 0x98, 0xe4, 0x61, 0xb3, 0x1f, 0xcb, 0x1c, 0xe7, 0xcf, 0x9a, 0x2c, 0x47, 0xb0, 0x70, 0x0c, 0x19, 0xed, 0xf4, 0x4f, 0x04, 0xc3, 0x19, 0xe8, 0xe4, 0x5e, 0x92, 0x80, 0xf8, 0x28, 0x0b, 0x27, 0x2f, 0x9b, 0x96, 0x76, 0xdf, 0x8b, 0xf2, 0xfa, 0x9a, 0x59, 0x5d, 0xe1, 0x95, 0x9f, 0x5a, 0xe8, 0x36, 0x8c, 0x7b, 0xda, 0xab, 0x12, 0x87, 0x30, 0x1b, 0x15, 0x4a, 0x6f, 0x0e, 0xa6, 0x6b, 0x3f, 0x31, 0x54, 0xa8, 0x43, 0x3a, 0x56, 0xed, 0xfc, 0x86, 0x43, 0x54, 0x74, 0x0b, 0xf2, 0x76, 0x83, 0xaa, 0xdc, 0x92, 0x17, 0xa4, 0xc4, 0x0e, 0x44, 0x4a, 0xb8, 0xe3, 0x7a, 0x83, 0xaa, 0x9d, 0x3c, 0xe2, 0x7d, 0x61, 0x86, 0x88, 0x6e, 0xc3, 0x98, 0xcd, 0x7c, 0x8d, 0x9b, 0xed, 0xe2, 0x10, 0xd8, 0x8c, 0x5f, 0x99, 0xe2, 0xe8, 0x63, 0xfe, 0x37, 0xe6, 0xb8, 0xe2, 0xd7, 0x39, 0x58, 0x4c, 0xe0, 0x2c, 0x9b, 0x46, 0x55, 0x63, 0x29, 0xfe, 0x32, 0xe4, 0x9d, 0x9d, 0x46, 0xe0, 0xe2, 0xe7, 0x83, 0x8b, 0x6e, 0xec, 0x34, 0xbc, 0x22, 0x74, 0x66, 0x37, 0x7e, 0x8f, 0x0e, 0x33, 0x04, 0xb4, 0x1a, 0x3e, 0x28, 0x1b, 0xc3, 0xe2, 0xd7, 0x7a, 0xd1, 0x16, 0xfa, 0x74, 0x5d, 0x52, 0x88, 0x14, 0xbf, 0xbc, 0x97, 0x11, 0xea, 0xc4, 0x76, 0x36, 0x2c, 0x62, 0xd8, 0xbe, 0x24, 0x4d, 0x0f, 0x3c, 0xfc, 0xb5, 0xc1, 0x8c, 0xec, 0x71, 0x28, 0x0b, 0xfc, 0x16, 0x68, 0xb5, 0x07, 0x0d, 0xf7, 0x91, 0x80, 0xce, 0xc2, 0x98, 0x45, 0x89, 0x6d, 0x1a, 0xbc, 0xe0, 0x84, 0xca, 0xc5, 0xec, 0x57, 0xcc, 0x4f, 0xd1, 0xff, 0xe1, 0x88, 0x4e, 0x6d, 0x9b, 0xd4, 0x28, 0xef, 0x06, 0xa6, 0x39, 0xe1, 0x91, 0x8a, 0xff, 0x33, 0x0e, 0xce, 0xc5, 0xa7, 0x19, 0x38, 0x95, 0xa0, 0xc7, 0x55, 0xcd, 0x76, 0xd0, 0x67, 0x3d, 0x5e, 0x2c, 0x0d, 0x98, 0x31, 0x34, 0xdb, 0xf7, 0xe1, 0x19, 0x2e, 0x7b, 0x3c, 0xf8, 0x25, 0xe2, 0xc1, 0x1f, 0xc1, 0xa8, 0xe6, 0x50, 0xdd, 0xb3, 0x4a, 0x6e, 0xa9, 0x50, 0x2a, 0xed, 0xdd, 0xcd, 0x94, 0xa3, 0x1c, 0x7e, 0xf4, 0x8a, 0x07, 0x84, 0x7d, 0x3c, 0xf1, 0x8f, 0x6c, 0xe2, 0xb3, 0x3c, 0x37, 0x47, 0x2d, 0x98, 0x62, 0x5f, 0x7e, 0x2a, 0xc6, 0xf4, 0x0e, 0x7f, 0x5c, 0x5a, 0x10, 0xa5, 0x14, 0x6f, 0xe5, 0x04, 0xbf, 0xc5, 0xd4, 0x7a, 0x0c, 0x15, 0x77, 0x49, 0x41, 0xcb, 0x50, 0xd0, 0x35, 0x03, 0xd3, 0x46, 0x5d, 0x53, 0x89, 0xcd, 0x7b, 0x20, 0x56, 0x7e, 0x2a, 0x9d, 0x9f, 0x71, 0x94, 0x06, 0xbd, 0x0d, 0x05, 0x9d, 0xdc, 0x0b, 0x59, 0x72, 0x8c, 0xe5, 0x18, 0x97, 0x57, 0xa8, 0x74, 0x8e, 0x70, 0x94, 0x0e, 0xdd, 0x85, 0xa2, 0x5f, 0x53, 0xca, 0x6b, 0x37, 0x22, 0x6d, 0xd3, 0x1a, 0xb5, 0x54, 0x6a, 0x38, 0x9e, 0x6b, 0xe4, 0x19, 0x92, 0xe8, 0xb6, 0x85, 0xe2, 0x46, 0x2a, 0x25, 0xde, 0x05, 0x49, 0xfc, 0x39, 0x07, 0xa7, 0x53, 0xd3, 0x00, 0xba, 0x04, 0xc8, 0xdc, 0xb4, 0xa9, 0xd5, 0xa2, 0xd5, 0x0f, 0xfc, 0xae, 0xdf, 0x6b, 0x50, 0x3c, 0x9d, 0xe7, 0xfc, 0x9a, 0x78, 0xad, 0xe7, 0x14, 0xf7, 0xe1, 0x40, 0x2a, 0x1c, 0xf5, 0xe2, 0xc2, 0xd7, 0xb2, 0xc6, 0x7b, 0xa1, 0xbd, 0x05, 0xdd, 0xac, 0xdb, 0x16, 0x8e, 0xae, 0x46, 0x41, 0x70, 0x1c, 0x13, 0xad, 0xc0, 0x34, 0x4f, 0xf6, 0x5d, 0x5a, 0x3f, 0xc9, 0xb5, 0x3e, 0x5d, 0x8e, 0x1f, 0xe3, 0x6e, 0x7a, 0x0f, 0xa2, 0x4a, 0x6d, 0xcd, 0xa2, 0xd5, 0x10, 0x22, 0x1f, 0x87, 0x78, 0x2f, 0x7e, 0x8c, 0xbb, 0xe9, 0x91, 0x0e, 0x02, 0x47, 0x4d, 0xb4, 0xe0, 0x28, 0x83, 0xfc, 0x9f, 0xdb, 0x16, 0x84, 0x72, 0x3a, 0x29, 0xde, 0x0d, 0x4b, 0x7c, 0x98, 0x07, 0xde, 0x3b, 0xb0, 0x00, 0x39, 0x1f, 0x4b, 0xbd, 0x8b, 0x5d, 0xa9, 0x77, 0x26, 0xda, 0x28, 0x46, 0xd2, 0xec, 0x75, 0x18, 0x33, 0x59, 0x64, 0x70, 0xbb, 0x9c, 0x4b, 0x09, 0xa7, 0xb0, 0xa4, 0x85, 0x40, 0x0a, 0x78, 0xb9, 0x8c, 0x87, 0x16, 0x07, 0x42, 0x57, 0x20, 0xdf, 0x30, 0xab, 0x41, 0x21, 0x7a, 0x3d, 0x05, 0x70, 0xcd, 0xac, 0xda, 0x31, 0xb8, 0x71, 0xef, 0xc6, 0xde, 0xaf, 0x98, 0x41, 0xa0, 0x8f, 0x61, 0x3c, 0x28, 0xf8, 0xbc, 0x3b, 0x90, 0x53, 0xe0, 0xfa, 0x0d, 0xa0, 0xca, 0xa4, 0x97, 0xc8, 0x82, 0x13, 0x1c, 0xc2, 0xa1, 0x07, 0x30, 0xab, 0x76, 0xcf, 0x53, 0x73, 0x47, 0x76, 0xad, 0x9d, 0xa9, 0xd3, 0xae, 0xf2, 0x1f, 0xb7, 0x2d, 0xcc, 0xf6, 0x90, 0xe0, 0x5e, 0x49, 0xde, 0xcb, 0x28, 0xef, 0x14, 0x99, 0x53, 0xa4, 0xbf, 0xac, 0x5f, 0xb7, 0xef, 0xbf, 0x2c, 0x38, 0xc1, 0x21, 0x9c, 0xf8, 0x5d, 0x1e, 0x26, 0x63, 0xdd, 0xe7, 0x21, 0x7b, 0x86, 0xdf, 0x46, 0x1c, 0x98, 0x67, 0xf8, 0x70, 0x07, 0xea, 0x19, 0x3e, 0xe4, 0x21, 0x79, 0x86, 0x2f, 0xec, 0x90, 0x3c, 0x23, 0xf2, 0xb2, 0x3e, 0x9e, 0xf1, 0x34, 0x07, 0xa8, 0x37, 0x88, 0xd1, 0x17, 0x30, 0xe6, 0x97, 0x8b, 0x7d, 0x96, 0xd4, 0xb0, 0xb9, 0xe1, 0xd5, 0x93, 0xa3, 0x76, 0x4d, 0x3f, 0xd9, 0x81, 0xa6, 0x1f, 0x7a, 0x10, 0x53, 0x62, 0x58, 0x73, 0x13, 0x27, 0xc5, 0xcf, 0x61, 0xdc, 0x0e, 0xc6, 0xab, 0xfc, 0xf0, 0xe3, 0x15, 0x53, 0x78, 0x38, 0x58, 0x85, 0x90, 0xa8, 0x0a, 0x93, 0x24, 0x3a, 0xe1, 0x8c, 0x0e, 0xf5, 0x8c, 0x19, 0x6f, 0x9c, 0x8a, 0x8d, 0x36, 0x31, 0x54, 0xf1, 0x97, 0x6e, 0xb3, 0xfa, 0x61, 0xff, 0x77, 0x34, 0xeb, 0xe1, 0xcd, 0x98, 0xff, 0x0a, 0xcb, 0xfe, 0x90, 0x85, 0x99, 0xee, 0x22, 0x39, 0xd4, 0x32, 0xe1, 0x7e, 0xdf, 0x8d, 0x48, 0x76, 0xa8, 0x4b, 0x87, 0x33, 0xd0, 0x80, 0xbb, 0xce, 0xa8, 0x25, 0x72, 0x07, 0x6e, 0x09, 0xf1, 0xc7, 0xb8, 0x8e, 0x86, 0x5f, 0xb8, 0x24, 0xac, 0x27, 0xb3, 0x87, 0xb4, 0x9e, 0x7c, 0xc9, 0x6a, 0xfa, 0x29, 0x0b, 0xc7, 0x5f, 0x6d, 0xe8, 0x07, 0xdf, 0xe5, 0x3d, 0xea, 0xd5, 0xd7, 0xab, 0x3d, 0xfb, 0x40, 0x2b, 0xb6, 0xaf, 0xb2, 0x30, 0xca, 0x46, 0xb3, 0x43, 0x58, 0xa8, 0x5d, 0x8a, 0x2d, 0xd4, 0xce, 0xa4, 0x54, 0x38, 0x76, 0xa3, 0xc4, 0xf5, 0xd9, 0xd5, 0xae, 0xf5, 0xd9, 0xd9, 0x5d, 0x91, 0xd2, 0x97, 0x65, 0xef, 0xc0, 0x44, 0x28, 0x10, 0xbd, 0xe1, 0xf5, 0xaa, 0x7c, 0xa6, 0xcc, 0x30, 0xdb, 0x86, 0x1b, 0x96, 0x70, 0x98, 0x0c, 0x29, 0x44, 0x0d, 0x0a, 0x11, 0x09, 0x7b, 0x63, 0xf6, 0xa8, 0xed, 0xe8, 0xba, 0x78, 0xa2, 0x43, 0xdd, 0x9b, 0x13, 0x94, 0x77, 0x1f, 0x3f, 0x2f, 0x8e, 0x3c, 0x79, 0x5e, 0x1c, 0x79, 0xf6, 0xbc, 0x38, 0xf2, 0xa5, 0x5b, 0xcc, 0x3c, 0x76, 0x8b, 0x99, 0x27, 0x6e, 0x31, 0xf3, 0xcc, 0x2d, 0x66, 0x7e, 0x75, 0x8b, 0x99, 0x6f, 0x7e, 0x2b, 0x8e, 0x7c, 0x32, 0x9f, 0xf8, 0x2f, 0xd5, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x5d, 0x92, 0x55, 0x29, 0x87, 0x1d, 0x00, 0x00, } func (m *ContainerResourceMetricSource) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ContainerResourceMetricSource) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ContainerResourceMetricSource) 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 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 *ContainerResourceMetricStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ContainerResourceMetricStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ContainerResourceMetricStatus) 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] = 0x22 { 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 *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.ContainerResource != nil { { size, err := m.ContainerResource.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a } 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.ContainerResource != nil { { size, err := m.ContainerResource.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a } 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 *ContainerResourceMetricSource) 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)) } l = len(m.Container) n += 1 + l + sovGenerated(uint64(l)) return n } func (m *ContainerResourceMetricStatus) 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)) l = len(m.Container) n += 1 + l + sovGenerated(uint64(l)) return n } 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)) } if m.ContainerResource != nil { l = m.ContainerResource.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)) } if m.ContainerResource != nil { l = m.ContainerResource.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 *ContainerResourceMetricSource) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ContainerResourceMetricSource{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `TargetAverageUtilization:` + valueToStringGenerated(this.TargetAverageUtilization) + `,`, `TargetAverageValue:` + strings.Replace(fmt.Sprintf("%v", this.TargetAverageValue), "Quantity", "resource.Quantity", 1) + `,`, `Container:` + fmt.Sprintf("%v", this.Container) + `,`, `}`, }, "") return s } func (this *ContainerResourceMetricStatus) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ContainerResourceMetricStatus{`, `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) + `,`, `Container:` + fmt.Sprintf("%v", this.Container) + `,`, `}`, }, "") return s } 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) + `,`, `ContainerResource:` + strings.Replace(this.ContainerResource.String(), "ContainerResourceMetricSource", "ContainerResourceMetricSource", 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) + `,`, `ContainerResource:` + strings.Replace(this.ContainerResource.String(), "ContainerResourceMetricStatus", "ContainerResourceMetricStatus", 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 *ContainerResourceMetricSource) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ContainerResourceMetricSource: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ContainerResourceMetricSource: 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 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ContainerResourceMetricStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ContainerResourceMetricStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ContainerResourceMetricStatus: 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 case 4: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } 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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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 case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContainerResource", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ContainerResource == nil { m.ContainerResource = &ContainerResourceMetricSource{} } if err := m.ContainerResource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContainerResource", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ContainerResource == nil { m.ContainerResource = &ContainerResourceMetricStatus{} } if err := m.ContainerResource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/autoscaling/v1/generated.proto000066400000000000000000000537641453636404600222370ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/api/resource/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/autoscaling/v1"; // ContainerResourceMetricSource indicates how to scale on a resource metric known to // Kubernetes, as specified in the requests and limits, describing a single container in // each of the pods of 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 into // 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 ContainerResourceMetricSource { // 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; // container is the name of the container in the pods of the scaling target. optional string container = 5; } // ContainerResourceMetricStatus indicates the current value of a resource metric known to // Kubernetes, as specified in requests and limits, describing a single container in 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 ContainerResourceMetricStatus { // 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; // container is the name of the container in the pods of the scaling taget optional string container = 4; } // CrossVersionObjectReference contains enough information to let you identify the referred resource. // +structType=atomic message CrossVersionObjectReference { // kind is the 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 is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names optional string name = 2; // apiVersion is the 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; // spec defines the 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; // 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; } // list of horizontal pod autoscaler objects. message HorizontalPodAutoscalerList { // 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; } // 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; // maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. optional int32 maxReplicas = 3; // targetCPUUtilizationPercentage is the 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 { // 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 the current number of replicas of pods managed by this autoscaler. optional int32 currentReplicas = 3; // desiredReplicas is the desired number of replicas of pods managed by this autoscaler. optional int32 desiredReplicas = 4; // currentCPUUtilizationPercentage is the 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 "ContainerResource", // "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. // Note: "ContainerResource" type is available on when the feature-gate // HPAContainerMetrics is enabled 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; // containerResource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes describing a single container in each pod of 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. // This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. // +optional optional ContainerResourceMetricSource containerResource = 7; // 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 "ContainerResource", // "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object. // Note: "ContainerResource" type is available on when the feature-gate // HPAContainerMetrics is enabled 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; // containerResource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes describing a single container in 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 ContainerResourceMetricStatus containerResource = 7; // 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; // spec 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; // status is the 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 { // replicas is the desired number of instances for the scaled object. // +optional optional int32 replicas = 1; } // ScaleStatus represents the current status of a scale subresource. message ScaleStatus { // replicas is the actual number of observed instances of the scaled object. optional int32 replicas = 1; // selector is the 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ // +optional optional string selector = 2; } golang-k8s-api-0.29.0/autoscaling/v1/register.go000066400000000000000000000033401453636404600213500ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &HorizontalPodAutoscaler{}, &HorizontalPodAutoscalerList{}, &Scale{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/autoscaling/v1/types.go000066400000000000000000000673001453636404600206760ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // CrossVersionObjectReference contains enough information to let you identify the referred resource. // +structType=atomic type CrossVersionObjectReference struct { // kind is the 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 is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names Name string `json:"name" protobuf:"bytes,2,opt,name=name"` // apiVersion is the 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"` // maxReplicas is the 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"` // targetCPUUtilizationPercentage is the 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 { // 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 the current number of replicas of pods managed by this autoscaler. CurrentReplicas int32 `json:"currentReplicas" protobuf:"varint,3,opt,name=currentReplicas"` // desiredReplicas is the desired number of replicas of pods managed by this autoscaler. DesiredReplicas int32 `json:"desiredReplicas" protobuf:"varint,4,opt,name=desiredReplicas"` // currentCPUUtilizationPercentage is the 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=k8s.io/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"` // spec defines the 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"` // status is the current information about the autoscaler. // +optional Status HorizontalPodAutoscalerStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // +k8s:deepcopy-gen:interfaces=k8s.io/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"` // items is the list of horizontal pod autoscaler objects. Items []HorizontalPodAutoscaler `json:"items" protobuf:"bytes,2,rep,name=items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/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"` // spec 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"` // status is the 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 { // replicas is the 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 { // replicas is the actual number of observed instances of the scaled object. Replicas int32 `json:"replicas" protobuf:"varint,1,opt,name=replicas"` // selector is the 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ // +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. // +enum type MetricSourceType string const ( // 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" // ContainerResourceMetricSourceType is a resource metric known to Kubernetes, as // specified in requests and limits, describing a single container in 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). ContainerResourceMetricSourceType MetricSourceType = "ContainerResource" // 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 "ContainerResource", // "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. // Note: "ContainerResource" type is available on when the feature-gate // HPAContainerMetrics is enabled 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"` // containerResource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes describing a single container in each pod of 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. // This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. // +optional ContainerResource *ContainerResourceMetricSource `json:"containerResource,omitempty" protobuf:"bytes,7,opt,name=containerResource"` // 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"` } // ContainerResourceMetricSource indicates how to scale on a resource metric known to // Kubernetes, as specified in the requests and limits, describing a single container in // each of the pods of 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 into // 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 ContainerResourceMetricSource 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"` // container is the name of the container in the pods of the scaling target. Container string `json:"container" protobuf:"bytes,5,opt,name=container"` } // 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 "ContainerResource", // "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object. // Note: "ContainerResource" type is available on when the feature-gate // HPAContainerMetrics is enabled 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"` // containerResource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes describing a single container in 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 ContainerResource *ContainerResourceMetricStatus `json:"containerResource,omitempty" protobuf:"bytes,7,opt,name=containerResource"` // 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 const ( // 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"` } // ContainerResourceMetricStatus indicates the current value of a resource metric known to // Kubernetes, as specified in requests and limits, describing a single container in 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 ContainerResourceMetricStatus 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"` // container is the name of the container in the pods of the scaling taget Container string `json:"container" protobuf:"bytes,4,opt,name=container"` } // 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"` } golang-k8s-api-0.29.0/autoscaling/v1/types_swagger_doc_generated.go000066400000000000000000000526401453636404600252610ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_ContainerResourceMetricSource = map[string]string{ "": "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in the requests and limits, describing a single container in each of the pods of 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 into 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.", "container": "container is the name of the container in the pods of the scaling target.", } func (ContainerResourceMetricSource) SwaggerDoc() map[string]string { return map_ContainerResourceMetricSource } var map_ContainerResourceMetricStatus = map[string]string{ "": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in 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.", "container": "container is the name of the container in the pods of the scaling taget", } func (ContainerResourceMetricStatus) SwaggerDoc() map[string]string { return map_ContainerResourceMetricStatus } var map_CrossVersionObjectReference = map[string]string{ "": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", "kind": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "name": "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", "apiVersion": "apiVersion is the 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": "spec defines the behaviour of 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{ "": "list of horizontal pod autoscaler objects.", "metadata": "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{ "": "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": "maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.", "targetCPUUtilizationPercentage": "targetCPUUtilizationPercentage is the 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": "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 the current number of replicas of pods managed by this autoscaler.", "desiredReplicas": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler.", "currentCPUUtilizationPercentage": "currentCPUUtilizationPercentage is the 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 \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", "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.", "containerResource": "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of 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. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.", "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 \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", "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.", "containerResource": "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in 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": "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": "status is the 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": "replicas is the 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": "replicas is the actual number of observed instances of the scaled object.", "selector": "selector is the 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/", } func (ScaleStatus) SwaggerDoc() map[string]string { return map_ScaleStatus } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/autoscaling/v1/zz_generated.deepcopy.go000066400000000000000000000415101453636404600240150ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ContainerResourceMetricSource) DeepCopyInto(out *ContainerResourceMetricSource) { *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 ContainerResourceMetricSource. func (in *ContainerResourceMetricSource) DeepCopy() *ContainerResourceMetricSource { if in == nil { return nil } out := new(ContainerResourceMetricSource) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ContainerResourceMetricStatus) DeepCopyInto(out *ContainerResourceMetricStatus) { *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 ContainerResourceMetricStatus. func (in *ContainerResourceMetricStatus) DeepCopy() *ContainerResourceMetricStatus { if in == nil { return nil } out := new(ContainerResourceMetricStatus) in.DeepCopyInto(out) return out } // 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.ContainerResource != nil { in, out := &in.ContainerResource, &out.ContainerResource *out = new(ContainerResourceMetricSource) (*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.ContainerResource != nil { in, out := &in.ContainerResource, &out.ContainerResource *out = new(ContainerResourceMetricStatus) (*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 } golang-k8s-api-0.29.0/autoscaling/v2/000077500000000000000000000000001453636404600171765ustar00rootroot00000000000000golang-k8s-api-0.29.0/autoscaling/v2/doc.go000066400000000000000000000013001453636404600202640ustar00rootroot00000000000000/* Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 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 v2 // import "k8s.io/api/autoscaling/v2" golang-k8s-api-0.29.0/autoscaling/v2/generated.pb.go000066400000000000000000005060201453636404600220660ustar00rootroot00000000000000/* 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/k8s.io/api/autoscaling/v2/generated.proto package v2 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" k8s_io_api_core_v1 "k8s.io/api/core/v1" resource "k8s.io/apimachinery/pkg/api/resource" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *ContainerResourceMetricSource) Reset() { *m = ContainerResourceMetricSource{} } func (*ContainerResourceMetricSource) ProtoMessage() {} func (*ContainerResourceMetricSource) Descriptor() ([]byte, []int) { return fileDescriptor_b14d4df4b5f3935e, []int{0} } func (m *ContainerResourceMetricSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ContainerResourceMetricSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ContainerResourceMetricSource) XXX_Merge(src proto.Message) { xxx_messageInfo_ContainerResourceMetricSource.Merge(m, src) } func (m *ContainerResourceMetricSource) XXX_Size() int { return m.Size() } func (m *ContainerResourceMetricSource) XXX_DiscardUnknown() { xxx_messageInfo_ContainerResourceMetricSource.DiscardUnknown(m) } var xxx_messageInfo_ContainerResourceMetricSource proto.InternalMessageInfo func (m *ContainerResourceMetricStatus) Reset() { *m = ContainerResourceMetricStatus{} } func (*ContainerResourceMetricStatus) ProtoMessage() {} func (*ContainerResourceMetricStatus) Descriptor() ([]byte, []int) { return fileDescriptor_b14d4df4b5f3935e, []int{1} } func (m *ContainerResourceMetricStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ContainerResourceMetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ContainerResourceMetricStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_ContainerResourceMetricStatus.Merge(m, src) } func (m *ContainerResourceMetricStatus) XXX_Size() int { return m.Size() } func (m *ContainerResourceMetricStatus) XXX_DiscardUnknown() { xxx_messageInfo_ContainerResourceMetricStatus.DiscardUnknown(m) } var xxx_messageInfo_ContainerResourceMetricStatus proto.InternalMessageInfo func (m *CrossVersionObjectReference) Reset() { *m = CrossVersionObjectReference{} } func (*CrossVersionObjectReference) ProtoMessage() {} func (*CrossVersionObjectReference) Descriptor() ([]byte, []int) { return fileDescriptor_b14d4df4b5f3935e, []int{2} } 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_b14d4df4b5f3935e, []int{3} } 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_b14d4df4b5f3935e, []int{4} } 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 *HPAScalingPolicy) Reset() { *m = HPAScalingPolicy{} } func (*HPAScalingPolicy) ProtoMessage() {} func (*HPAScalingPolicy) Descriptor() ([]byte, []int) { return fileDescriptor_b14d4df4b5f3935e, []int{5} } func (m *HPAScalingPolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *HPAScalingPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *HPAScalingPolicy) XXX_Merge(src proto.Message) { xxx_messageInfo_HPAScalingPolicy.Merge(m, src) } func (m *HPAScalingPolicy) XXX_Size() int { return m.Size() } func (m *HPAScalingPolicy) XXX_DiscardUnknown() { xxx_messageInfo_HPAScalingPolicy.DiscardUnknown(m) } var xxx_messageInfo_HPAScalingPolicy proto.InternalMessageInfo func (m *HPAScalingRules) Reset() { *m = HPAScalingRules{} } func (*HPAScalingRules) ProtoMessage() {} func (*HPAScalingRules) Descriptor() ([]byte, []int) { return fileDescriptor_b14d4df4b5f3935e, []int{6} } func (m *HPAScalingRules) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *HPAScalingRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *HPAScalingRules) XXX_Merge(src proto.Message) { xxx_messageInfo_HPAScalingRules.Merge(m, src) } func (m *HPAScalingRules) XXX_Size() int { return m.Size() } func (m *HPAScalingRules) XXX_DiscardUnknown() { xxx_messageInfo_HPAScalingRules.DiscardUnknown(m) } var xxx_messageInfo_HPAScalingRules proto.InternalMessageInfo func (m *HorizontalPodAutoscaler) Reset() { *m = HorizontalPodAutoscaler{} } func (*HorizontalPodAutoscaler) ProtoMessage() {} func (*HorizontalPodAutoscaler) Descriptor() ([]byte, []int) { return fileDescriptor_b14d4df4b5f3935e, []int{7} } 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 *HorizontalPodAutoscalerBehavior) Reset() { *m = HorizontalPodAutoscalerBehavior{} } func (*HorizontalPodAutoscalerBehavior) ProtoMessage() {} func (*HorizontalPodAutoscalerBehavior) Descriptor() ([]byte, []int) { return fileDescriptor_b14d4df4b5f3935e, []int{8} } func (m *HorizontalPodAutoscalerBehavior) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *HorizontalPodAutoscalerBehavior) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *HorizontalPodAutoscalerBehavior) XXX_Merge(src proto.Message) { xxx_messageInfo_HorizontalPodAutoscalerBehavior.Merge(m, src) } func (m *HorizontalPodAutoscalerBehavior) XXX_Size() int { return m.Size() } func (m *HorizontalPodAutoscalerBehavior) XXX_DiscardUnknown() { xxx_messageInfo_HorizontalPodAutoscalerBehavior.DiscardUnknown(m) } var xxx_messageInfo_HorizontalPodAutoscalerBehavior proto.InternalMessageInfo func (m *HorizontalPodAutoscalerCondition) Reset() { *m = HorizontalPodAutoscalerCondition{} } func (*HorizontalPodAutoscalerCondition) ProtoMessage() {} func (*HorizontalPodAutoscalerCondition) Descriptor() ([]byte, []int) { return fileDescriptor_b14d4df4b5f3935e, []int{9} } 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_b14d4df4b5f3935e, []int{10} } 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_b14d4df4b5f3935e, []int{11} } 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_b14d4df4b5f3935e, []int{12} } 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_b14d4df4b5f3935e, []int{13} } 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_b14d4df4b5f3935e, []int{14} } 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_b14d4df4b5f3935e, []int{15} } 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_b14d4df4b5f3935e, []int{16} } 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_b14d4df4b5f3935e, []int{17} } 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_b14d4df4b5f3935e, []int{18} } 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_b14d4df4b5f3935e, []int{19} } 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_b14d4df4b5f3935e, []int{20} } 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_b14d4df4b5f3935e, []int{21} } 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_b14d4df4b5f3935e, []int{22} } 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_b14d4df4b5f3935e, []int{23} } 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((*ContainerResourceMetricSource)(nil), "k8s.io.api.autoscaling.v2.ContainerResourceMetricSource") proto.RegisterType((*ContainerResourceMetricStatus)(nil), "k8s.io.api.autoscaling.v2.ContainerResourceMetricStatus") proto.RegisterType((*CrossVersionObjectReference)(nil), "k8s.io.api.autoscaling.v2.CrossVersionObjectReference") proto.RegisterType((*ExternalMetricSource)(nil), "k8s.io.api.autoscaling.v2.ExternalMetricSource") proto.RegisterType((*ExternalMetricStatus)(nil), "k8s.io.api.autoscaling.v2.ExternalMetricStatus") proto.RegisterType((*HPAScalingPolicy)(nil), "k8s.io.api.autoscaling.v2.HPAScalingPolicy") proto.RegisterType((*HPAScalingRules)(nil), "k8s.io.api.autoscaling.v2.HPAScalingRules") proto.RegisterType((*HorizontalPodAutoscaler)(nil), "k8s.io.api.autoscaling.v2.HorizontalPodAutoscaler") proto.RegisterType((*HorizontalPodAutoscalerBehavior)(nil), "k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerBehavior") proto.RegisterType((*HorizontalPodAutoscalerCondition)(nil), "k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerCondition") proto.RegisterType((*HorizontalPodAutoscalerList)(nil), "k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerList") proto.RegisterType((*HorizontalPodAutoscalerSpec)(nil), "k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerSpec") proto.RegisterType((*HorizontalPodAutoscalerStatus)(nil), "k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerStatus") proto.RegisterType((*MetricIdentifier)(nil), "k8s.io.api.autoscaling.v2.MetricIdentifier") proto.RegisterType((*MetricSpec)(nil), "k8s.io.api.autoscaling.v2.MetricSpec") proto.RegisterType((*MetricStatus)(nil), "k8s.io.api.autoscaling.v2.MetricStatus") proto.RegisterType((*MetricTarget)(nil), "k8s.io.api.autoscaling.v2.MetricTarget") proto.RegisterType((*MetricValueStatus)(nil), "k8s.io.api.autoscaling.v2.MetricValueStatus") proto.RegisterType((*ObjectMetricSource)(nil), "k8s.io.api.autoscaling.v2.ObjectMetricSource") proto.RegisterType((*ObjectMetricStatus)(nil), "k8s.io.api.autoscaling.v2.ObjectMetricStatus") proto.RegisterType((*PodsMetricSource)(nil), "k8s.io.api.autoscaling.v2.PodsMetricSource") proto.RegisterType((*PodsMetricStatus)(nil), "k8s.io.api.autoscaling.v2.PodsMetricStatus") proto.RegisterType((*ResourceMetricSource)(nil), "k8s.io.api.autoscaling.v2.ResourceMetricSource") proto.RegisterType((*ResourceMetricStatus)(nil), "k8s.io.api.autoscaling.v2.ResourceMetricStatus") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/autoscaling/v2/generated.proto", fileDescriptor_b14d4df4b5f3935e) } var fileDescriptor_b14d4df4b5f3935e = []byte{ // 1738 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x59, 0xcb, 0x8f, 0x13, 0xc9, 0x19, 0x9f, 0xb6, 0x3d, 0xaf, 0xf2, 0x3c, 0x8b, 0x97, 0x19, 0x84, 0x3d, 0xea, 0x90, 0x40, 0x48, 0x68, 0x07, 0x87, 0x20, 0x14, 0x0e, 0xd1, 0xf4, 0x90, 0x84, 0x11, 0x33, 0x19, 0x53, 0x06, 0x26, 0x89, 0x92, 0x88, 0x72, 0x77, 0x8d, 0xa7, 0x32, 0x76, 0xb7, 0xd5, 0xdd, 0x36, 0x0c, 0x52, 0xa4, 0x5c, 0x72, 0x8f, 0x12, 0xa1, 0x28, 0xff, 0x03, 0xca, 0x29, 0x11, 0x39, 0xec, 0x4a, 0x2b, 0xed, 0x1e, 0xb8, 0xac, 0xc4, 0x61, 0x0f, 0x9c, 0xac, 0xc5, 0x2b, 0xed, 0x71, 0xff, 0x00, 0x4e, 0xab, 0x7a, 0xf4, 0xd3, 0xaf, 0x31, 0x3b, 0x8c, 0x34, 0x37, 0x57, 0xd5, 0xf7, 0xfd, 0xbe, 0x47, 0x7d, 0xaf, 0x6a, 0x03, 0x7d, 0xff, 0x96, 0xab, 0x51, 0xbb, 0xb8, 0xdf, 0xaa, 0x12, 0xc7, 0x22, 0x1e, 0x71, 0x8b, 0x6d, 0x62, 0x99, 0xb6, 0x53, 0x94, 0x07, 0xb8, 0x49, 0x8b, 0xb8, 0xe5, 0xd9, 0xae, 0x81, 0xeb, 0xd4, 0xaa, 0x15, 0xdb, 0xa5, 0x62, 0x8d, 0x58, 0xc4, 0xc1, 0x1e, 0x31, 0xb5, 0xa6, 0x63, 0x7b, 0x36, 0x3c, 0x2f, 0x48, 0x35, 0xdc, 0xa4, 0x5a, 0x84, 0x54, 0x6b, 0x97, 0x56, 0xae, 0xd5, 0xa8, 0xb7, 0xd7, 0xaa, 0x6a, 0x86, 0xdd, 0x28, 0xd6, 0xec, 0x9a, 0x5d, 0xe4, 0x1c, 0xd5, 0xd6, 0x2e, 0x5f, 0xf1, 0x05, 0xff, 0x25, 0x90, 0x56, 0xd4, 0x88, 0x50, 0xc3, 0x76, 0x48, 0xb1, 0x7d, 0x3d, 0x29, 0x6d, 0xe5, 0x46, 0x48, 0xd3, 0xc0, 0xc6, 0x1e, 0xb5, 0x88, 0x73, 0x50, 0x6c, 0xee, 0xd7, 0x38, 0x93, 0x43, 0x5c, 0xbb, 0xe5, 0x18, 0x64, 0x2c, 0x2e, 0xb7, 0xd8, 0x20, 0x1e, 0xee, 0x27, 0xab, 0x38, 0x88, 0xcb, 0x69, 0x59, 0x1e, 0x6d, 0xf4, 0x8a, 0xb9, 0x39, 0x8a, 0xc1, 0x35, 0xf6, 0x48, 0x03, 0x27, 0xf9, 0xd4, 0xaf, 0x15, 0x70, 0x71, 0xdd, 0xb6, 0x3c, 0xcc, 0x38, 0x90, 0x34, 0x62, 0x8b, 0x78, 0x0e, 0x35, 0x2a, 0xfc, 0x37, 0x5c, 0x07, 0x19, 0x0b, 0x37, 0x48, 0x4e, 0x59, 0x55, 0xae, 0xcc, 0xea, 0xc5, 0x57, 0x9d, 0xc2, 0x44, 0xb7, 0x53, 0xc8, 0xfc, 0x06, 0x37, 0xc8, 0xbb, 0x4e, 0xa1, 0xd0, 0xeb, 0x38, 0xcd, 0x87, 0x61, 0x24, 0x88, 0x33, 0xc3, 0x6d, 0x30, 0xe5, 0x61, 0xa7, 0x46, 0xbc, 0x5c, 0x6a, 0x55, 0xb9, 0x92, 0x2d, 0x5d, 0xd6, 0x06, 0x5e, 0x9d, 0x26, 0xa4, 0x3f, 0xe0, 0xe4, 0xfa, 0x82, 0x94, 0x37, 0x25, 0xd6, 0x48, 0xc2, 0xc0, 0x22, 0x98, 0x35, 0x7c, 0xb5, 0x73, 0x69, 0xae, 0xda, 0xb2, 0x24, 0x9d, 0x0d, 0xed, 0x09, 0x69, 0xd4, 0x6f, 0x86, 0x18, 0xea, 0x61, 0xaf, 0xe5, 0x1e, 0x8d, 0xa1, 0x3b, 0x60, 0xda, 0x68, 0x39, 0x0e, 0xb1, 0x7c, 0x4b, 0x7f, 0x3c, 0xd2, 0xd2, 0x47, 0xb8, 0xde, 0x22, 0x42, 0x07, 0x7d, 0x51, 0x4a, 0x9d, 0x5e, 0x17, 0x20, 0xc8, 0x47, 0x1b, 0xdf, 0xe0, 0xe7, 0x0a, 0xb8, 0xb0, 0xee, 0xd8, 0xae, 0xfb, 0x88, 0x38, 0x2e, 0xb5, 0xad, 0xed, 0xea, 0x9f, 0x89, 0xe1, 0x21, 0xb2, 0x4b, 0x1c, 0x62, 0x19, 0x04, 0xae, 0x82, 0xcc, 0x3e, 0xb5, 0x4c, 0x69, 0xee, 0x9c, 0x6f, 0xee, 0x3d, 0x6a, 0x99, 0x88, 0x9f, 0x30, 0x0a, 0xee, 0x90, 0x54, 0x9c, 0x22, 0x62, 0x6d, 0x09, 0x00, 0xdc, 0xa4, 0x52, 0x80, 0xd4, 0x0a, 0x4a, 0x3a, 0xb0, 0x56, 0xde, 0x90, 0x27, 0x28, 0x42, 0xa5, 0x7e, 0xa4, 0x80, 0xd3, 0xbf, 0x7c, 0xea, 0x11, 0xc7, 0xc2, 0xf5, 0x58, 0xa0, 0x55, 0xc0, 0x54, 0x83, 0xaf, 0xb9, 0x4a, 0xd9, 0xd2, 0x8f, 0x46, 0x7a, 0x6e, 0xc3, 0x24, 0x96, 0x47, 0x77, 0x29, 0x71, 0xc2, 0x38, 0x11, 0x27, 0x48, 0x42, 0x1d, 0x79, 0xe0, 0xa9, 0x9f, 0xf5, 0xaa, 0x2f, 0xc2, 0xe7, 0x83, 0xa8, 0xff, 0xa1, 0xc2, 0x49, 0xfd, 0x8f, 0x02, 0x96, 0xee, 0x96, 0xd7, 0x2a, 0x82, 0xbb, 0x6c, 0xd7, 0xa9, 0x71, 0x00, 0x6f, 0x81, 0x8c, 0x77, 0xd0, 0xf4, 0x33, 0xe0, 0x92, 0x7f, 0xe1, 0x0f, 0x0e, 0x9a, 0x2c, 0x03, 0x4e, 0x27, 0xe9, 0xd9, 0x3e, 0xe2, 0x1c, 0xf0, 0x7b, 0x60, 0xb2, 0xcd, 0xe4, 0x72, 0x2d, 0x27, 0xf5, 0x79, 0xc9, 0x3a, 0xc9, 0x95, 0x41, 0xe2, 0x0c, 0xde, 0x06, 0xf3, 0x4d, 0xe2, 0x50, 0xdb, 0xac, 0x10, 0xc3, 0xb6, 0x4c, 0x97, 0x07, 0xcc, 0xa4, 0x7e, 0x46, 0x12, 0xcf, 0x97, 0xa3, 0x87, 0x28, 0x4e, 0xab, 0xfe, 0x3b, 0x05, 0x16, 0x43, 0x05, 0x50, 0xab, 0x4e, 0x5c, 0xf8, 0x27, 0xb0, 0xe2, 0x7a, 0xb8, 0x4a, 0xeb, 0xf4, 0x19, 0xf6, 0xa8, 0x6d, 0xed, 0x50, 0xcb, 0xb4, 0x9f, 0xc4, 0xd1, 0xf3, 0xdd, 0x4e, 0x61, 0xa5, 0x32, 0x90, 0x0a, 0x0d, 0x41, 0x80, 0xf7, 0xc0, 0x9c, 0x4b, 0xea, 0xc4, 0xf0, 0x84, 0xbd, 0xd2, 0x2f, 0x97, 0xbb, 0x9d, 0xc2, 0x5c, 0x25, 0xb2, 0xff, 0xae, 0x53, 0x38, 0x15, 0x73, 0x8c, 0x38, 0x44, 0x31, 0x66, 0xf8, 0x3b, 0x30, 0xd3, 0x64, 0xbf, 0x28, 0x71, 0x73, 0xa9, 0xd5, 0xf4, 0x88, 0x08, 0x49, 0xfa, 0x5a, 0x5f, 0x92, 0x5e, 0x9a, 0x29, 0x4b, 0x10, 0x14, 0xc0, 0xa9, 0x2f, 0x53, 0xe0, 0xdc, 0x5d, 0xdb, 0xa1, 0xcf, 0x58, 0xf2, 0xd7, 0xcb, 0xb6, 0xb9, 0x26, 0xc1, 0x88, 0x03, 0x1f, 0x83, 0x19, 0xd6, 0x64, 0x4c, 0xec, 0x61, 0x19, 0x98, 0x3f, 0x89, 0x88, 0x0d, 0x7a, 0x85, 0xd6, 0xdc, 0xaf, 0xb1, 0x0d, 0x57, 0x63, 0xd4, 0x5a, 0xfb, 0xba, 0x26, 0xea, 0xc5, 0x16, 0xf1, 0x70, 0x98, 0xd2, 0xe1, 0x1e, 0x0a, 0x50, 0xe1, 0x6f, 0x41, 0xc6, 0x6d, 0x12, 0x43, 0x06, 0xe8, 0xcd, 0x61, 0x46, 0xf5, 0xd7, 0xb1, 0xd2, 0x24, 0x46, 0x58, 0x5e, 0xd8, 0x0a, 0x71, 0x44, 0xf8, 0x18, 0x4c, 0xb9, 0x3c, 0x90, 0xf9, 0x5d, 0x66, 0x4b, 0xb7, 0xde, 0x03, 0x5b, 0x24, 0x42, 0x90, 0x5f, 0x62, 0x8d, 0x24, 0xae, 0xfa, 0xb9, 0x02, 0x0a, 0x03, 0x38, 0x75, 0xb2, 0x87, 0xdb, 0xd4, 0x76, 0xe0, 0x7d, 0x30, 0xcd, 0x77, 0x1e, 0x36, 0xa5, 0x03, 0xaf, 0x1e, 0xea, 0xde, 0x78, 0x88, 0xea, 0x59, 0x96, 0x7d, 0x15, 0xc1, 0x8e, 0x7c, 0x1c, 0xb8, 0x03, 0x66, 0xf9, 0xcf, 0x3b, 0xf6, 0x13, 0x4b, 0xfa, 0x6d, 0x1c, 0xd0, 0x79, 0x56, 0xf4, 0x2b, 0x3e, 0x00, 0x0a, 0xb1, 0xd4, 0xbf, 0xa5, 0xc1, 0xea, 0x00, 0x7b, 0xd6, 0x6d, 0xcb, 0xa4, 0x2c, 0xc6, 0xe1, 0xdd, 0x58, 0x9a, 0xdf, 0x48, 0xa4, 0xf9, 0xa5, 0x51, 0xfc, 0x91, 0xb4, 0xdf, 0x0c, 0x2e, 0x28, 0x15, 0xc3, 0x92, 0x6e, 0x7e, 0xd7, 0x29, 0xf4, 0x19, 0xac, 0xb4, 0x00, 0x29, 0x7e, 0x19, 0xb0, 0x0d, 0x60, 0x1d, 0xbb, 0xde, 0x03, 0x07, 0x5b, 0xae, 0x90, 0x44, 0x1b, 0x44, 0x5e, 0xfd, 0xd5, 0xc3, 0x05, 0x2d, 0xe3, 0xd0, 0x57, 0xa4, 0x16, 0x70, 0xb3, 0x07, 0x0d, 0xf5, 0x91, 0x00, 0x7f, 0x00, 0xa6, 0x1c, 0x82, 0x5d, 0xdb, 0xca, 0x65, 0xb8, 0x15, 0x41, 0xb0, 0x20, 0xbe, 0x8b, 0xe4, 0x29, 0xfc, 0x21, 0x98, 0x6e, 0x10, 0xd7, 0xc5, 0x35, 0x92, 0x9b, 0xe4, 0x84, 0x41, 0x79, 0xdd, 0x12, 0xdb, 0xc8, 0x3f, 0x57, 0xbf, 0x50, 0xc0, 0x85, 0x01, 0x7e, 0xdc, 0xa4, 0xae, 0x07, 0xff, 0xd0, 0x93, 0x95, 0xda, 0xe1, 0x0c, 0x64, 0xdc, 0x3c, 0x27, 0x83, 0x7a, 0xe0, 0xef, 0x44, 0x32, 0x72, 0x07, 0x4c, 0x52, 0x8f, 0x34, 0xfc, 0x3a, 0x53, 0x1a, 0x3f, 0x6d, 0xc2, 0x0a, 0xbe, 0xc1, 0x80, 0x90, 0xc0, 0x53, 0x5f, 0xa6, 0x07, 0x9a, 0xc5, 0xd2, 0x16, 0xb6, 0xc1, 0x02, 0x5f, 0xc9, 0x9e, 0x49, 0x76, 0xa5, 0x71, 0xc3, 0x8a, 0xc2, 0x90, 0x19, 0x45, 0x3f, 0x2b, 0xb5, 0x58, 0xa8, 0xc4, 0x50, 0x51, 0x42, 0x0a, 0xbc, 0x0e, 0xb2, 0x0d, 0x6a, 0x21, 0xd2, 0xac, 0x53, 0x03, 0xbb, 0xb2, 0x09, 0x2d, 0x76, 0x3b, 0x85, 0xec, 0x56, 0xb8, 0x8d, 0xa2, 0x34, 0xf0, 0x67, 0x20, 0xdb, 0xc0, 0x4f, 0x03, 0x16, 0xd1, 0x2c, 0x4e, 0x49, 0x79, 0xd9, 0xad, 0xf0, 0x08, 0x45, 0xe9, 0x60, 0x99, 0xc5, 0x00, 0x6b, 0xb3, 0x6e, 0x2e, 0xc3, 0x9d, 0xfb, 0xfd, 0x91, 0x0d, 0x99, 0x97, 0xb7, 0x48, 0xa8, 0x70, 0x6e, 0xe4, 0xc3, 0x40, 0x13, 0xcc, 0x54, 0x65, 0xa9, 0xe1, 0x61, 0x95, 0x2d, 0xfd, 0xfc, 0x3d, 0xee, 0x4b, 0x22, 0xe8, 0x73, 0x2c, 0x24, 0xfc, 0x15, 0x0a, 0x90, 0xd5, 0x17, 0x19, 0x70, 0x71, 0x68, 0x89, 0x84, 0xbf, 0x02, 0xd0, 0xae, 0xba, 0xc4, 0x69, 0x13, 0xf3, 0xd7, 0xe2, 0x91, 0xc0, 0x66, 0x3a, 0x76, 0x7f, 0x69, 0xfd, 0x2c, 0xcb, 0xa6, 0xed, 0x9e, 0x53, 0xd4, 0x87, 0x03, 0x1a, 0x60, 0x9e, 0xe5, 0x98, 0xb8, 0x31, 0x2a, 0xc7, 0xc7, 0xf1, 0x12, 0x78, 0x99, 0x4d, 0x03, 0x9b, 0x51, 0x10, 0x14, 0xc7, 0x84, 0x6b, 0x60, 0x51, 0x4e, 0x32, 0x89, 0x1b, 0x3c, 0x27, 0xfd, 0xbc, 0xb8, 0x1e, 0x3f, 0x46, 0x49, 0x7a, 0x06, 0x61, 0x12, 0x97, 0x3a, 0xc4, 0x0c, 0x20, 0x32, 0x71, 0x88, 0x3b, 0xf1, 0x63, 0x94, 0xa4, 0x87, 0x35, 0xb0, 0x20, 0x51, 0xe5, 0xad, 0xe6, 0x26, 0x79, 0x4c, 0x8c, 0x1e, 0x32, 0x65, 0x5b, 0x0a, 0xe2, 0x7b, 0x3d, 0x06, 0x83, 0x12, 0xb0, 0xd0, 0x06, 0xc0, 0xf0, 0x8b, 0xa6, 0x9b, 0x9b, 0xe2, 0x42, 0x6e, 0x8f, 0x1f, 0x25, 0x41, 0xe1, 0x0d, 0x3b, 0x7a, 0xb0, 0xe5, 0xa2, 0x88, 0x08, 0xf5, 0x9f, 0x0a, 0x58, 0x4a, 0x0e, 0xa9, 0xc1, 0x7b, 0x40, 0x19, 0xf8, 0x1e, 0xf8, 0x23, 0x98, 0x11, 0x33, 0x8f, 0xed, 0xc8, 0x6b, 0xff, 0xe9, 0x21, 0xcb, 0x1a, 0xae, 0x92, 0x7a, 0x45, 0xb2, 0x8a, 0x20, 0xf6, 0x57, 0x28, 0x80, 0x54, 0x9f, 0x67, 0x00, 0x08, 0x73, 0x0a, 0xde, 0x88, 0xf5, 0xb1, 0xd5, 0x44, 0x1f, 0x5b, 0x8a, 0x3e, 0x2e, 0x22, 0x3d, 0xeb, 0x3e, 0x98, 0xb2, 0x79, 0x99, 0x91, 0x1a, 0x5e, 0x1b, 0xe2, 0xc7, 0x60, 0xde, 0x09, 0x80, 0x74, 0xc0, 0x1a, 0x83, 0xac, 0x53, 0x12, 0x08, 0x6e, 0x80, 0x4c, 0xd3, 0x36, 0xfd, 0x29, 0x65, 0xd8, 0x58, 0x57, 0xb6, 0x4d, 0x37, 0x06, 0x37, 0xc3, 0x34, 0x66, 0xbb, 0x88, 0x43, 0xb0, 0x29, 0xd1, 0xff, 0x94, 0xc0, 0xc3, 0x31, 0x5b, 0x2a, 0x0e, 0x81, 0xeb, 0xf7, 0x60, 0x17, 0xde, 0xf3, 0x4f, 0x50, 0x00, 0x07, 0xff, 0x02, 0x96, 0x8d, 0xe4, 0x03, 0x38, 0x37, 0x3d, 0x72, 0xb0, 0x1a, 0xfa, 0x75, 0x40, 0x3f, 0xd3, 0xed, 0x14, 0x96, 0x7b, 0x48, 0x50, 0xaf, 0x24, 0x66, 0x19, 0x91, 0xef, 0x26, 0x59, 0xe7, 0x86, 0x59, 0xd6, 0xef, 0x85, 0x28, 0x2c, 0xf3, 0x4f, 0x50, 0x00, 0xa7, 0xfe, 0x2b, 0x03, 0xe6, 0x62, 0x6f, 0xb1, 0x63, 0x8e, 0x0c, 0x91, 0xcc, 0x47, 0x16, 0x19, 0x02, 0xee, 0x48, 0x23, 0x43, 0x40, 0x1e, 0x53, 0x64, 0x08, 0x61, 0xc7, 0x14, 0x19, 0x11, 0xcb, 0xfa, 0x44, 0xc6, 0xa7, 0x29, 0x3f, 0x32, 0xc4, 0xb0, 0x70, 0xb8, 0xc8, 0x10, 0xb4, 0x91, 0xc8, 0xd8, 0x8e, 0x3e, 0x6f, 0x47, 0xcc, 0x6a, 0x9a, 0xef, 0x56, 0xed, 0x7e, 0x0b, 0x5b, 0x1e, 0xf5, 0x0e, 0xf4, 0xd9, 0x9e, 0xa7, 0xb0, 0x09, 0xe6, 0x70, 0x9b, 0x38, 0xb8, 0x46, 0xf8, 0xb6, 0x8c, 0x8f, 0x71, 0x71, 0x97, 0xd8, 0x4b, 0x74, 0x2d, 0x82, 0x83, 0x62, 0xa8, 0xac, 0xa5, 0xcb, 0xf5, 0x43, 0x2f, 0x78, 0xe2, 0xca, 0x2e, 0xc7, 0x5b, 0xfa, 0x5a, 0xcf, 0x29, 0xea, 0xc3, 0xa1, 0xfe, 0x23, 0x05, 0x96, 0x7b, 0x3e, 0x2e, 0x84, 0x4e, 0x51, 0x3e, 0x90, 0x53, 0x52, 0xc7, 0xe8, 0x94, 0xf4, 0xd8, 0x4e, 0xf9, 0x5f, 0x0a, 0xc0, 0xde, 0xfe, 0x00, 0x0f, 0xf8, 0x58, 0x61, 0x38, 0xb4, 0x4a, 0x4c, 0x71, 0xfc, 0x1d, 0x67, 0xe0, 0xe8, 0x38, 0x12, 0x85, 0x45, 0x49, 0x39, 0x47, 0xff, 0x91, 0x35, 0xfc, 0xa4, 0x95, 0x3e, 0xb2, 0x4f, 0x5a, 0xea, 0xc7, 0x49, 0xbf, 0x9d, 0xc0, 0xcf, 0x67, 0xfd, 0x6e, 0x39, 0x7d, 0x3c, 0xb7, 0xac, 0xfe, 0x5f, 0x01, 0x4b, 0xc9, 0x31, 0xe2, 0x84, 0x7c, 0x3b, 0xfd, 0x24, 0xae, 0xfa, 0x49, 0xfc, 0x6e, 0xfa, 0x42, 0x01, 0xa7, 0x4f, 0xce, 0xdf, 0x24, 0xea, 0x7f, 0x7b, 0xd5, 0x3d, 0x01, 0x7f, 0x76, 0xe8, 0xbf, 0x78, 0xf5, 0x36, 0x3f, 0xf1, 0xfa, 0x6d, 0x7e, 0xe2, 0xcd, 0xdb, 0xfc, 0xc4, 0x5f, 0xbb, 0x79, 0xe5, 0x55, 0x37, 0xaf, 0xbc, 0xee, 0xe6, 0x95, 0x37, 0xdd, 0xbc, 0xf2, 0x65, 0x37, 0xaf, 0xfc, 0xfd, 0xab, 0xfc, 0xc4, 0xef, 0xcf, 0x0f, 0xfc, 0xa7, 0xf0, 0xdb, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc5, 0xb7, 0xf9, 0x52, 0x5e, 0x1c, 0x00, 0x00, } func (m *ContainerResourceMetricSource) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ContainerResourceMetricSource) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ContainerResourceMetricSource) 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] = 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 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 *ContainerResourceMetricStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ContainerResourceMetricStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ContainerResourceMetricStatus) 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] = 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 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 *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 *HPAScalingPolicy) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *HPAScalingPolicy) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *HPAScalingPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i = encodeVarintGenerated(dAtA, i, uint64(m.PeriodSeconds)) i-- dAtA[i] = 0x18 i = encodeVarintGenerated(dAtA, i, uint64(m.Value)) i-- dAtA[i] = 0x10 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 *HPAScalingRules) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *HPAScalingRules) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *HPAScalingRules) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.StabilizationWindowSeconds != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.StabilizationWindowSeconds)) i-- dAtA[i] = 0x18 } if len(m.Policies) > 0 { for iNdEx := len(m.Policies) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Policies[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if m.SelectPolicy != nil { i -= len(*m.SelectPolicy) copy(dAtA[i:], *m.SelectPolicy) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SelectPolicy))) 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 *HorizontalPodAutoscalerBehavior) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *HorizontalPodAutoscalerBehavior) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *HorizontalPodAutoscalerBehavior) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.ScaleDown != nil { { size, err := m.ScaleDown.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } if m.ScaleUp != nil { { size, err := m.ScaleUp.MarshalToSizedBuffer(dAtA[:i]) if 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.Behavior != nil { { size, err := m.Behavior.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a } 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.ContainerResource != nil { { size, err := m.ContainerResource.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a } 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.ContainerResource != nil { { size, err := m.ContainerResource.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a } 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 *ContainerResourceMetricSource) 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)) l = len(m.Container) n += 1 + l + sovGenerated(uint64(l)) return n } func (m *ContainerResourceMetricStatus) 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)) l = len(m.Container) n += 1 + l + sovGenerated(uint64(l)) return n } 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 *HPAScalingPolicy) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Type) n += 1 + l + sovGenerated(uint64(l)) n += 1 + sovGenerated(uint64(m.Value)) n += 1 + sovGenerated(uint64(m.PeriodSeconds)) return n } func (m *HPAScalingRules) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.SelectPolicy != nil { l = len(*m.SelectPolicy) n += 1 + l + sovGenerated(uint64(l)) } if len(m.Policies) > 0 { for _, e := range m.Policies { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } if m.StabilizationWindowSeconds != nil { n += 1 + sovGenerated(uint64(*m.StabilizationWindowSeconds)) } 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 *HorizontalPodAutoscalerBehavior) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.ScaleUp != nil { l = m.ScaleUp.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.ScaleDown != nil { l = m.ScaleDown.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)) } } if m.Behavior != nil { l = m.Behavior.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)) } if m.ContainerResource != nil { l = m.ContainerResource.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)) } if m.ContainerResource != nil { l = m.ContainerResource.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 *ContainerResourceMetricSource) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ContainerResourceMetricSource{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Target:` + strings.Replace(strings.Replace(this.Target.String(), "MetricTarget", "MetricTarget", 1), `&`, ``, 1) + `,`, `Container:` + fmt.Sprintf("%v", this.Container) + `,`, `}`, }, "") return s } func (this *ContainerResourceMetricStatus) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ContainerResourceMetricStatus{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Current:` + strings.Replace(strings.Replace(this.Current.String(), "MetricValueStatus", "MetricValueStatus", 1), `&`, ``, 1) + `,`, `Container:` + fmt.Sprintf("%v", this.Container) + `,`, `}`, }, "") return s } 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 *HPAScalingPolicy) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&HPAScalingPolicy{`, `Type:` + fmt.Sprintf("%v", this.Type) + `,`, `Value:` + fmt.Sprintf("%v", this.Value) + `,`, `PeriodSeconds:` + fmt.Sprintf("%v", this.PeriodSeconds) + `,`, `}`, }, "") return s } func (this *HPAScalingRules) String() string { if this == nil { return "nil" } repeatedStringForPolicies := "[]HPAScalingPolicy{" for _, f := range this.Policies { repeatedStringForPolicies += strings.Replace(strings.Replace(f.String(), "HPAScalingPolicy", "HPAScalingPolicy", 1), `&`, ``, 1) + "," } repeatedStringForPolicies += "}" s := strings.Join([]string{`&HPAScalingRules{`, `SelectPolicy:` + valueToStringGenerated(this.SelectPolicy) + `,`, `Policies:` + repeatedStringForPolicies + `,`, `StabilizationWindowSeconds:` + valueToStringGenerated(this.StabilizationWindowSeconds) + `,`, `}`, }, "") 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 *HorizontalPodAutoscalerBehavior) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&HorizontalPodAutoscalerBehavior{`, `ScaleUp:` + strings.Replace(this.ScaleUp.String(), "HPAScalingRules", "HPAScalingRules", 1) + `,`, `ScaleDown:` + strings.Replace(this.ScaleDown.String(), "HPAScalingRules", "HPAScalingRules", 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 + `,`, `Behavior:` + strings.Replace(this.Behavior.String(), "HorizontalPodAutoscalerBehavior", "HorizontalPodAutoscalerBehavior", 1) + `,`, `}`, }, "") 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) + `,`, `ContainerResource:` + strings.Replace(this.ContainerResource.String(), "ContainerResourceMetricSource", "ContainerResourceMetricSource", 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) + `,`, `ContainerResource:` + strings.Replace(this.ContainerResource.String(), "ContainerResourceMetricStatus", "ContainerResourceMetricStatus", 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 *ContainerResourceMetricSource) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ContainerResourceMetricSource: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ContainerResourceMetricSource: 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 case 3: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ContainerResourceMetricStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ContainerResourceMetricStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ContainerResourceMetricStatus: 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 case 3: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } 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) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *HPAScalingPolicy) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: HPAScalingPolicy: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: HPAScalingPolicy: 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 = HPAScalingPolicyType(dAtA[iNdEx:postIndex]) 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 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 } } default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *HPAScalingRules) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: HPAScalingRules: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: HPAScalingRules: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SelectPolicy", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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 := ScalingPolicySelect(dAtA[iNdEx:postIndex]) m.SelectPolicy = &s iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Policies", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Policies = append(m.Policies, HPAScalingPolicy{}) if err := m.Policies[len(m.Policies)-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 StabilizationWindowSeconds", 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.StabilizationWindowSeconds = &v default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *HorizontalPodAutoscalerBehavior) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: HorizontalPodAutoscalerBehavior: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: HorizontalPodAutoscalerBehavior: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ScaleUp", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ScaleUp == nil { m.ScaleUp = &HPAScalingRules{} } if err := m.ScaleUp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ScaleDown", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ScaleDown == nil { m.ScaleDown = &HPAScalingRules{} } if err := m.ScaleDown.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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 case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Behavior", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Behavior == nil { m.Behavior = &HorizontalPodAutoscalerBehavior{} } if err := m.Behavior.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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 case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContainerResource", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ContainerResource == nil { m.ContainerResource = &ContainerResourceMetricSource{} } if err := m.ContainerResource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContainerResource", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ContainerResource == nil { m.ContainerResource = &ContainerResourceMetricStatus{} } if err := m.ContainerResource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/autoscaling/v2/generated.proto000066400000000000000000000524701453636404600222310ustar00rootroot00000000000000/* 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.v2; import "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/api/resource/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/autoscaling/v2"; // ContainerResourceMetricSource 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 ContainerResourceMetricSource { // 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; // container is the name of the container in the pods of the scaling target optional string container = 3; } // ContainerResourceMetricStatus indicates the current value of a resource metric known to // Kubernetes, as specified in requests and limits, describing a single container in 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 ContainerResourceMetricStatus { // 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; // container is the name of the container in the pods of the scaling target optional string container = 3; } // CrossVersionObjectReference contains enough information to let you identify the referred resource. message CrossVersionObjectReference { // kind is the 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 is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names optional string name = 2; // apiVersion is the 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; } // HPAScalingPolicy is a single policy which must hold true for a specified past interval. message HPAScalingPolicy { // type is used to specify the scaling policy. optional string type = 1; // value contains the amount of change which is permitted by the policy. // It must be greater than zero optional int32 value = 2; // periodSeconds specifies the window of time for which the policy should hold true. // PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). optional int32 periodSeconds = 3; } // HPAScalingRules configures the scaling behavior for one direction. // These Rules are applied after calculating DesiredReplicas from metrics for the HPA. // They can limit the scaling velocity by specifying scaling policies. // They can prevent flapping by specifying the stabilization window, so that the // number of replicas is not set instantly, instead, the safest value from the stabilization // window is chosen. message HPAScalingRules { // stabilizationWindowSeconds is the number of seconds for which past recommendations should be // considered while scaling up or scaling down. // StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). // If not set, use the default values: // - For scale up: 0 (i.e. no stabilization is done). // - For scale down: 300 (i.e. the stabilization window is 300 seconds long). // +optional optional int32 stabilizationWindowSeconds = 3; // selectPolicy is used to specify which policy should be used. // If not set, the default value Max is used. // +optional optional string selectPolicy = 1; // policies is a list of potential scaling polices which can be used during scaling. // At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid // +listType=atomic // +optional repeated HPAScalingPolicy policies = 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; } // HorizontalPodAutoscalerBehavior configures the scaling behavior of the target // in both Up and Down directions (scaleUp and scaleDown fields respectively). message HorizontalPodAutoscalerBehavior { // scaleUp is scaling policy for scaling Up. // If not set, the default value is the higher of: // * increase no more than 4 pods per 60 seconds // * double the number of pods per 60 seconds // No stabilization is used. // +optional optional HPAScalingRules scaleUp = 1; // scaleDown is scaling policy for scaling Down. // If not set, the default value is to allow to scale down to minReplicas pods, with a // 300 second stabilization window (i.e., the highest recommendation for // the last 300sec is used). // +optional optional HPAScalingRules scaleDown = 2; } // 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. // +listType=atomic // +optional repeated MetricSpec metrics = 4; // behavior configures the scaling behavior of the target // in both Up and Down directions (scaleUp and scaleDown fields respectively). // If not set, the default HPAScalingRules for scale up and scale down are used. // +optional optional HorizontalPodAutoscalerBehavior behavior = 5; } // 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 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. // +listType=atomic // +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. // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type // +optional 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 "ContainerResource", "External", // "Object", "Pods" or "Resource", each mapping to a matching field in the object. // Note: "ContainerResource" type is available on when the feature-gate // HPAContainerMetrics is enabled 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; // containerResource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes describing a single container in // each pod of 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. // This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. // +optional optional ContainerResourceMetricSource containerResource = 7; // 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 "ContainerResource", "External", // "Object", "Pods" or "Resource", each corresponds to a matching field in the object. // Note: "ContainerResource" type is available on when the feature-gate // HPAContainerMetrics is enabled 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; // container resource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes describing a single container in 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 ContainerResourceMetricStatus containerResource = 7; // 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 { // describedObject specifies the descriptions of a object,such as kind,name apiVersion 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; // DescribedObject specifies the descriptions of a object,such as kind,name apiVersion 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; } golang-k8s-api-0.29.0/autoscaling/v2/register.go000066400000000000000000000031031453636404600213460ustar00rootroot00000000000000/* Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package v2 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "autoscaling" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v2"} // 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 } golang-k8s-api-0.29.0/autoscaling/v2/types.go000066400000000000000000000707111453636404600206770ustar00rootroot00000000000000/* Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 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 v2 import ( v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/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. // +listType=atomic // +optional Metrics []MetricSpec `json:"metrics,omitempty" protobuf:"bytes,4,rep,name=metrics"` // behavior configures the scaling behavior of the target // in both Up and Down directions (scaleUp and scaleDown fields respectively). // If not set, the default HPAScalingRules for scale up and scale down are used. // +optional Behavior *HorizontalPodAutoscalerBehavior `json:"behavior,omitempty" protobuf:"bytes,5,opt,name=behavior"` } // CrossVersionObjectReference contains enough information to let you identify the referred resource. type CrossVersionObjectReference struct { // kind is the 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 is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names Name string `json:"name" protobuf:"bytes,2,opt,name=name"` // apiVersion is the 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 "ContainerResource", "External", // "Object", "Pods" or "Resource", each mapping to a matching field in the object. // Note: "ContainerResource" type is available on when the feature-gate // HPAContainerMetrics is enabled 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"` // containerResource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes describing a single container in // each pod of 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. // This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. // +optional ContainerResource *ContainerResourceMetricSource `json:"containerResource,omitempty" protobuf:"bytes,7,opt,name=containerResource"` // 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"` } // HorizontalPodAutoscalerBehavior configures the scaling behavior of the target // in both Up and Down directions (scaleUp and scaleDown fields respectively). type HorizontalPodAutoscalerBehavior struct { // scaleUp is scaling policy for scaling Up. // If not set, the default value is the higher of: // * increase no more than 4 pods per 60 seconds // * double the number of pods per 60 seconds // No stabilization is used. // +optional ScaleUp *HPAScalingRules `json:"scaleUp,omitempty" protobuf:"bytes,1,opt,name=scaleUp"` // scaleDown is scaling policy for scaling Down. // If not set, the default value is to allow to scale down to minReplicas pods, with a // 300 second stabilization window (i.e., the highest recommendation for // the last 300sec is used). // +optional ScaleDown *HPAScalingRules `json:"scaleDown,omitempty" protobuf:"bytes,2,opt,name=scaleDown"` } // ScalingPolicySelect is used to specify which policy should be used while scaling in a certain direction type ScalingPolicySelect string const ( // MaxChangePolicySelect selects the policy with the highest possible change. MaxChangePolicySelect ScalingPolicySelect = "Max" // MinChangePolicySelect selects the policy with the lowest possible change. MinChangePolicySelect ScalingPolicySelect = "Min" // DisabledPolicySelect disables the scaling in this direction. DisabledPolicySelect ScalingPolicySelect = "Disabled" ) // HPAScalingRules configures the scaling behavior for one direction. // These Rules are applied after calculating DesiredReplicas from metrics for the HPA. // They can limit the scaling velocity by specifying scaling policies. // They can prevent flapping by specifying the stabilization window, so that the // number of replicas is not set instantly, instead, the safest value from the stabilization // window is chosen. type HPAScalingRules struct { // stabilizationWindowSeconds is the number of seconds for which past recommendations should be // considered while scaling up or scaling down. // StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). // If not set, use the default values: // - For scale up: 0 (i.e. no stabilization is done). // - For scale down: 300 (i.e. the stabilization window is 300 seconds long). // +optional StabilizationWindowSeconds *int32 `json:"stabilizationWindowSeconds,omitempty" protobuf:"varint,3,opt,name=stabilizationWindowSeconds"` // selectPolicy is used to specify which policy should be used. // If not set, the default value Max is used. // +optional SelectPolicy *ScalingPolicySelect `json:"selectPolicy,omitempty" protobuf:"bytes,1,opt,name=selectPolicy"` // policies is a list of potential scaling polices which can be used during scaling. // At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid // +listType=atomic // +optional Policies []HPAScalingPolicy `json:"policies,omitempty" listType:"atomic" protobuf:"bytes,2,rep,name=policies"` } // HPAScalingPolicyType is the type of the policy which could be used while making scaling decisions. type HPAScalingPolicyType string const ( // PodsScalingPolicy is a policy used to specify a change in absolute number of pods. PodsScalingPolicy HPAScalingPolicyType = "Pods" // PercentScalingPolicy is a policy used to specify a relative amount of change with respect to // the current number of pods. PercentScalingPolicy HPAScalingPolicyType = "Percent" ) // HPAScalingPolicy is a single policy which must hold true for a specified past interval. type HPAScalingPolicy struct { // type is used to specify the scaling policy. Type HPAScalingPolicyType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=HPAScalingPolicyType"` // value contains the amount of change which is permitted by the policy. // It must be greater than zero Value int32 `json:"value" protobuf:"varint,2,opt,name=value"` // periodSeconds specifies the window of time for which the policy should hold true. // PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). PeriodSeconds int32 `json:"periodSeconds" protobuf:"varint,3,opt,name=periodSeconds"` } // MetricSourceType indicates the type of metric. type MetricSourceType string const ( // 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" // ContainerResourceMetricSourceType is a resource metric known to Kubernetes, as // specified in requests and limits, describing a single container in 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). ContainerResourceMetricSourceType MetricSourceType = "ContainerResource" // 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 specifies the descriptions of a object,such as kind,name apiVersion 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"` } // ContainerResourceMetricSource 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 ContainerResourceMetricSource 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"` // container is the name of the container in the pods of the scaling target Container string `json:"container" protobuf:"bytes,3,opt,name=container"` } // 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 const ( // 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. // +optional CurrentReplicas int32 `json:"currentReplicas,omitempty" 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. // +listType=atomic // +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. // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type // +optional Conditions []HorizontalPodAutoscalerCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" listType:"map" protobuf:"bytes,6,rep,name=conditions"` } // HorizontalPodAutoscalerConditionType are the valid conditions of // a HorizontalPodAutoscaler. type HorizontalPodAutoscalerConditionType string const ( // 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 "ContainerResource", "External", // "Object", "Pods" or "Resource", each corresponds to a matching field in the object. // Note: "ContainerResource" type is available on when the feature-gate // HPAContainerMetrics is enabled 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"` // container resource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes describing a single container in 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 ContainerResource *ContainerResourceMetricStatus `json:"containerResource,omitempty" protobuf:"bytes,7,opt,name=containerResource"` // 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 specifies the descriptions of a object,such as kind,name apiVersion 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"` } // ContainerResourceMetricStatus indicates the current value of a resource metric known to // Kubernetes, as specified in requests and limits, describing a single container in 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 ContainerResourceMetricStatus 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"` // container is the name of the container in the pods of the scaling target Container string `json:"container" protobuf:"bytes,3,opt,name=container"` } // 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=k8s.io/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"` } golang-k8s-api-0.29.0/autoscaling/v2/types_swagger_doc_generated.go000066400000000000000000000524571453636404600252700ustar00rootroot00000000000000/* 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 v2 // 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_ContainerResourceMetricSource = map[string]string{ "": "ContainerResourceMetricSource 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", "container": "container is the name of the container in the pods of the scaling target", } func (ContainerResourceMetricSource) SwaggerDoc() map[string]string { return map_ContainerResourceMetricSource } var map_ContainerResourceMetricStatus = map[string]string{ "": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in 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", "container": "container is the name of the container in the pods of the scaling target", } func (ContainerResourceMetricStatus) SwaggerDoc() map[string]string { return map_ContainerResourceMetricStatus } var map_CrossVersionObjectReference = map[string]string{ "": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", "kind": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "name": "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", "apiVersion": "apiVersion is the 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_HPAScalingPolicy = map[string]string{ "": "HPAScalingPolicy is a single policy which must hold true for a specified past interval.", "type": "type is used to specify the scaling policy.", "value": "value contains the amount of change which is permitted by the policy. It must be greater than zero", "periodSeconds": "periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).", } func (HPAScalingPolicy) SwaggerDoc() map[string]string { return map_HPAScalingPolicy } var map_HPAScalingRules = map[string]string{ "": "HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.", "stabilizationWindowSeconds": "stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).", "selectPolicy": "selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.", "policies": "policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid", } func (HPAScalingRules) SwaggerDoc() map[string]string { return map_HPAScalingRules } 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_HorizontalPodAutoscalerBehavior = map[string]string{ "": "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).", "scaleUp": "scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:\n * increase no more than 4 pods per 60 seconds\n * double the number of pods per 60 seconds\nNo stabilization is used.", "scaleDown": "scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used).", } func (HorizontalPodAutoscalerBehavior) SwaggerDoc() map[string]string { return map_HorizontalPodAutoscalerBehavior } 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.", "behavior": "behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used.", } 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 \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", "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.", "containerResource": "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of 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. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.", "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 \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", "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.", "containerResource": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in 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).", "describedObject": "describedObject specifies the descriptions of a object,such as kind,name apiVersion", "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", "describedObject": "DescribedObject specifies the descriptions of a object,such as kind,name apiVersion", } 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 golang-k8s-api-0.29.0/autoscaling/v2/zz_generated.deepcopy.go000066400000000000000000000435311453636404600240230ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 v2 import ( v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ContainerResourceMetricSource) DeepCopyInto(out *ContainerResourceMetricSource) { *out = *in in.Target.DeepCopyInto(&out.Target) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerResourceMetricSource. func (in *ContainerResourceMetricSource) DeepCopy() *ContainerResourceMetricSource { if in == nil { return nil } out := new(ContainerResourceMetricSource) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ContainerResourceMetricStatus) DeepCopyInto(out *ContainerResourceMetricStatus) { *out = *in in.Current.DeepCopyInto(&out.Current) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerResourceMetricStatus. func (in *ContainerResourceMetricStatus) DeepCopy() *ContainerResourceMetricStatus { if in == nil { return nil } out := new(ContainerResourceMetricStatus) in.DeepCopyInto(out) return out } // 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 *HPAScalingPolicy) DeepCopyInto(out *HPAScalingPolicy) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HPAScalingPolicy. func (in *HPAScalingPolicy) DeepCopy() *HPAScalingPolicy { if in == nil { return nil } out := new(HPAScalingPolicy) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *HPAScalingRules) DeepCopyInto(out *HPAScalingRules) { *out = *in if in.StabilizationWindowSeconds != nil { in, out := &in.StabilizationWindowSeconds, &out.StabilizationWindowSeconds *out = new(int32) **out = **in } if in.SelectPolicy != nil { in, out := &in.SelectPolicy, &out.SelectPolicy *out = new(ScalingPolicySelect) **out = **in } if in.Policies != nil { in, out := &in.Policies, &out.Policies *out = make([]HPAScalingPolicy, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HPAScalingRules. func (in *HPAScalingRules) DeepCopy() *HPAScalingRules { if in == nil { return nil } out := new(HPAScalingRules) 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 *HorizontalPodAutoscalerBehavior) DeepCopyInto(out *HorizontalPodAutoscalerBehavior) { *out = *in if in.ScaleUp != nil { in, out := &in.ScaleUp, &out.ScaleUp *out = new(HPAScalingRules) (*in).DeepCopyInto(*out) } if in.ScaleDown != nil { in, out := &in.ScaleDown, &out.ScaleDown *out = new(HPAScalingRules) (*in).DeepCopyInto(*out) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerBehavior. func (in *HorizontalPodAutoscalerBehavior) DeepCopy() *HorizontalPodAutoscalerBehavior { if in == nil { return nil } out := new(HorizontalPodAutoscalerBehavior) in.DeepCopyInto(out) return out } // 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]) } } if in.Behavior != nil { in, out := &in.Behavior, &out.Behavior *out = new(HorizontalPodAutoscalerBehavior) (*in).DeepCopyInto(*out) } 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.ContainerResource != nil { in, out := &in.ContainerResource, &out.ContainerResource *out = new(ContainerResourceMetricSource) (*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.ContainerResource != nil { in, out := &in.ContainerResource, &out.ContainerResource *out = new(ContainerResourceMetricStatus) (*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 } golang-k8s-api-0.29.0/autoscaling/v2beta1/000077500000000000000000000000001453636404600201135ustar00rootroot00000000000000golang-k8s-api-0.29.0/autoscaling/v2beta1/doc.go000066400000000000000000000013601453636404600212070ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true package v2beta1 // import "k8s.io/api/autoscaling/v2beta1" golang-k8s-api-0.29.0/autoscaling/v2beta1/generated.pb.go000066400000000000000000004361051453636404600230110ustar00rootroot00000000000000/* 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/k8s.io/api/autoscaling/v2beta1/generated.proto package v2beta1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" k8s_io_api_core_v1 "k8s.io/api/core/v1" resource "k8s.io/apimachinery/pkg/api/resource" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *ContainerResourceMetricSource) Reset() { *m = ContainerResourceMetricSource{} } func (*ContainerResourceMetricSource) ProtoMessage() {} func (*ContainerResourceMetricSource) Descriptor() ([]byte, []int) { return fileDescriptor_26c1bfc7a52d0478, []int{0} } func (m *ContainerResourceMetricSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ContainerResourceMetricSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ContainerResourceMetricSource) XXX_Merge(src proto.Message) { xxx_messageInfo_ContainerResourceMetricSource.Merge(m, src) } func (m *ContainerResourceMetricSource) XXX_Size() int { return m.Size() } func (m *ContainerResourceMetricSource) XXX_DiscardUnknown() { xxx_messageInfo_ContainerResourceMetricSource.DiscardUnknown(m) } var xxx_messageInfo_ContainerResourceMetricSource proto.InternalMessageInfo func (m *ContainerResourceMetricStatus) Reset() { *m = ContainerResourceMetricStatus{} } func (*ContainerResourceMetricStatus) ProtoMessage() {} func (*ContainerResourceMetricStatus) Descriptor() ([]byte, []int) { return fileDescriptor_26c1bfc7a52d0478, []int{1} } func (m *ContainerResourceMetricStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ContainerResourceMetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ContainerResourceMetricStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_ContainerResourceMetricStatus.Merge(m, src) } func (m *ContainerResourceMetricStatus) XXX_Size() int { return m.Size() } func (m *ContainerResourceMetricStatus) XXX_DiscardUnknown() { xxx_messageInfo_ContainerResourceMetricStatus.DiscardUnknown(m) } var xxx_messageInfo_ContainerResourceMetricStatus proto.InternalMessageInfo func (m *CrossVersionObjectReference) Reset() { *m = CrossVersionObjectReference{} } func (*CrossVersionObjectReference) ProtoMessage() {} func (*CrossVersionObjectReference) Descriptor() ([]byte, []int) { return fileDescriptor_26c1bfc7a52d0478, []int{2} } 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{3} } 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{4} } 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{5} } 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{6} } 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{7} } 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{8} } 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{9} } 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{10} } 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{11} } 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{12} } 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{13} } 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{14} } 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{15} } 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{16} } 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{17} } 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((*ContainerResourceMetricSource)(nil), "k8s.io.api.autoscaling.v2beta1.ContainerResourceMetricSource") proto.RegisterType((*ContainerResourceMetricStatus)(nil), "k8s.io.api.autoscaling.v2beta1.ContainerResourceMetricStatus") 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/k8s.io/api/autoscaling/v2beta1/generated.proto", fileDescriptor_26c1bfc7a52d0478) } var fileDescriptor_26c1bfc7a52d0478 = []byte{ // 1565 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0x4d, 0x6c, 0x1b, 0x45, 0x1b, 0x8e, 0xed, 0x4d, 0x9a, 0xbc, 0x4e, 0xf3, 0x33, 0xed, 0xd7, 0xba, 0xe9, 0x57, 0x3b, 0x5a, 0x7d, 0xfa, 0x94, 0xaf, 0xfa, 0xd8, 0x6d, 0x4d, 0xf8, 0x91, 0x10, 0x12, 0xb1, 0x0b, 0x6d, 0x45, 0xd2, 0x96, 0x49, 0x5a, 0x21, 0x68, 0x11, 0x93, 0xf5, 0xd4, 0x59, 0x62, 0xef, 0x5a, 0x3b, 0x63, 0xab, 0x29, 0x42, 0x42, 0x48, 0xdc, 0xb9, 0xc0, 0x19, 0x24, 0xae, 0x08, 0x71, 0x81, 0x33, 0xb7, 0x1e, 0x7b, 0x6c, 0x05, 0xb2, 0xa8, 0x39, 0x70, 0xe6, 0xda, 0x13, 0x9a, 0xd9, 0xd9, 0xf5, 0xae, 0xff, 0xe3, 0xa6, 0xe1, 0x47, 0xbd, 0x79, 0x77, 0xde, 0xf7, 0x79, 0x67, 0x9e, 0xf7, 0x6f, 0xde, 0x35, 0x5c, 0xdc, 0x7d, 0x99, 0x19, 0xb6, 0x6b, 0xee, 0xd6, 0xb7, 0xa9, 0xe7, 0x50, 0x4e, 0x99, 0xd9, 0xa0, 0x4e, 0xc9, 0xf5, 0x4c, 0xb5, 0x40, 0x6a, 0xb6, 0x49, 0xea, 0xdc, 0x65, 0x16, 0xa9, 0xd8, 0x4e, 0xd9, 0x6c, 0xe4, 0xb7, 0x29, 0x27, 0xe7, 0xcd, 0x32, 0x75, 0xa8, 0x47, 0x38, 0x2d, 0x19, 0x35, 0xcf, 0xe5, 0x2e, 0xca, 0xfa, 0xf2, 0x06, 0xa9, 0xd9, 0x46, 0x44, 0xde, 0x50, 0xf2, 0x4b, 0xcf, 0x95, 0x6d, 0xbe, 0x53, 0xdf, 0x36, 0x2c, 0xb7, 0x6a, 0x96, 0xdd, 0xb2, 0x6b, 0x4a, 0xb5, 0xed, 0xfa, 0x6d, 0xf9, 0x24, 0x1f, 0xe4, 0x2f, 0x1f, 0x6e, 0x49, 0x8f, 0x98, 0xb7, 0x5c, 0x8f, 0x9a, 0x8d, 0x2e, 0x93, 0x4b, 0xab, 0x6d, 0x99, 0x2a, 0xb1, 0x76, 0x6c, 0x87, 0x7a, 0x7b, 0x66, 0x6d, 0xb7, 0x2c, 0x95, 0x3c, 0xca, 0xdc, 0xba, 0x67, 0xd1, 0x7d, 0x69, 0x31, 0xb3, 0x4a, 0x39, 0xe9, 0x65, 0xcb, 0xec, 0xa7, 0xe5, 0xd5, 0x1d, 0x6e, 0x57, 0xbb, 0xcd, 0xbc, 0x38, 0x4c, 0x81, 0x59, 0x3b, 0xb4, 0x4a, 0x3a, 0xf5, 0xf4, 0xdf, 0x92, 0x70, 0xa6, 0xe8, 0x3a, 0x9c, 0x08, 0x0d, 0xac, 0x0e, 0xb1, 0x41, 0xb9, 0x67, 0x5b, 0x9b, 0xf2, 0x37, 0x2a, 0x82, 0xe6, 0x90, 0x2a, 0xcd, 0x24, 0x96, 0x13, 0x2b, 0x33, 0x05, 0xf3, 0x5e, 0x33, 0x37, 0xd1, 0x6a, 0xe6, 0xb4, 0x2b, 0xa4, 0x4a, 0x1f, 0x37, 0x73, 0xb9, 0x6e, 0xe2, 0x8c, 0x00, 0x46, 0x88, 0x60, 0xa9, 0x8c, 0xde, 0x86, 0x0c, 0x27, 0x5e, 0x99, 0xf2, 0xb5, 0x06, 0xf5, 0x48, 0x99, 0x5e, 0xe7, 0x76, 0xc5, 0xbe, 0x4b, 0xb8, 0xed, 0x3a, 0x99, 0xe4, 0x72, 0x62, 0x65, 0xb2, 0xf0, 0xef, 0x56, 0x33, 0x97, 0xd9, 0xea, 0x23, 0x83, 0xfb, 0x6a, 0xa3, 0x06, 0xa0, 0xd8, 0xda, 0x0d, 0x52, 0xa9, 0xd3, 0x4c, 0x6a, 0x39, 0xb1, 0x92, 0xce, 0x1b, 0x46, 0x3b, 0x4a, 0x42, 0x56, 0x8c, 0xda, 0x6e, 0x59, 0x86, 0x4d, 0xe0, 0x32, 0xe3, 0xad, 0x3a, 0x71, 0xb8, 0xcd, 0xf7, 0x0a, 0x27, 0x5a, 0xcd, 0x1c, 0xda, 0xea, 0x42, 0xc3, 0x3d, 0x2c, 0x20, 0x13, 0x66, 0xac, 0x80, 0xb7, 0x8c, 0x26, 0xb9, 0x59, 0x54, 0xdc, 0xcc, 0xb4, 0x09, 0x6d, 0xcb, 0xe8, 0xbf, 0x0f, 0x60, 0x9a, 0x13, 0x5e, 0x67, 0x07, 0xc3, 0xf4, 0xbb, 0x70, 0xca, 0xaa, 0x7b, 0x1e, 0x75, 0xfa, 0x53, 0x7d, 0xa6, 0xd5, 0xcc, 0x9d, 0x2a, 0xf6, 0x13, 0xc2, 0xfd, 0xf5, 0xd1, 0x47, 0x70, 0x2c, 0xbe, 0xf8, 0x24, 0x6c, 0x9f, 0x56, 0x07, 0x3c, 0x56, 0xec, 0x86, 0xc4, 0xbd, 0xec, 0xec, 0x9f, 0xf3, 0xcf, 0x13, 0x70, 0xba, 0xe8, 0xb9, 0x8c, 0xdd, 0xa0, 0x1e, 0xb3, 0x5d, 0xe7, 0xea, 0xf6, 0x07, 0xd4, 0xe2, 0x98, 0xde, 0xa6, 0x1e, 0x75, 0x2c, 0x8a, 0x96, 0x41, 0xdb, 0xb5, 0x9d, 0x92, 0x62, 0x7c, 0x36, 0x60, 0xfc, 0x4d, 0xdb, 0x29, 0x61, 0xb9, 0x22, 0x24, 0xa4, 0x4f, 0x92, 0x71, 0x89, 0x08, 0xe1, 0x79, 0x00, 0x52, 0xb3, 0x95, 0x01, 0x49, 0xc5, 0x4c, 0x01, 0x29, 0x39, 0x58, 0xbb, 0x76, 0x59, 0xad, 0xe0, 0x88, 0x94, 0xfe, 0x45, 0x0a, 0x8e, 0xbf, 0x7e, 0x87, 0x53, 0xcf, 0x21, 0x95, 0x58, 0xb2, 0xe5, 0x01, 0xaa, 0xf2, 0xf9, 0x4a, 0x3b, 0x10, 0x42, 0xb0, 0x8d, 0x70, 0x05, 0x47, 0xa4, 0x90, 0x0b, 0x73, 0xfe, 0xd3, 0x26, 0xad, 0x50, 0x8b, 0xbb, 0x9e, 0xdc, 0x6c, 0x3a, 0xff, 0xfc, 0x20, 0x7f, 0x30, 0x43, 0x94, 0x1e, 0xa3, 0x71, 0xde, 0x58, 0x27, 0xdb, 0xb4, 0x12, 0xa8, 0x16, 0x50, 0xab, 0x99, 0x9b, 0xdb, 0x88, 0xc1, 0xe1, 0x0e, 0x78, 0x44, 0x20, 0xed, 0x27, 0xc4, 0x93, 0x78, 0x7f, 0xbe, 0xd5, 0xcc, 0xa5, 0xb7, 0xda, 0x30, 0x38, 0x8a, 0xd9, 0x27, 0xab, 0xb5, 0xa7, 0x9d, 0xd5, 0xfa, 0x97, 0xdd, 0x8e, 0xf1, 0x73, 0xf3, 0x6f, 0xe1, 0x98, 0x1d, 0x98, 0x55, 0x69, 0xf3, 0x24, 0x9e, 0x39, 0xae, 0x8e, 0x35, 0x5b, 0x8c, 0x60, 0xe1, 0x18, 0x32, 0xda, 0xeb, 0x5d, 0x08, 0xc6, 0x73, 0xd0, 0xc9, 0xfd, 0x14, 0x01, 0xfd, 0xc7, 0x24, 0x9c, 0xbc, 0xe4, 0x7a, 0xf6, 0x5d, 0x91, 0xe5, 0x95, 0x6b, 0x6e, 0x69, 0x4d, 0xb5, 0x7f, 0xea, 0xa1, 0xf7, 0x61, 0x5a, 0xb0, 0x57, 0x22, 0x9c, 0x48, 0x1f, 0xa5, 0xf3, 0xe7, 0x46, 0xe3, 0xda, 0x2f, 0x0c, 0x1b, 0x94, 0x93, 0xb6, 0x57, 0xdb, 0xef, 0x70, 0x88, 0x8a, 0x6e, 0x81, 0xc6, 0x6a, 0xd4, 0x52, 0x9e, 0x7c, 0xc5, 0x18, 0x7c, 0x0d, 0x31, 0xfa, 0x6c, 0x74, 0xb3, 0x46, 0xad, 0x76, 0x31, 0x11, 0x4f, 0x58, 0xc2, 0x22, 0x0a, 0x53, 0x4c, 0x06, 0x9c, 0xf2, 0xdd, 0xab, 0xe3, 0x1a, 0x90, 0x20, 0x85, 0x39, 0x65, 0x62, 0xca, 0x7f, 0xc6, 0x0a, 0x5c, 0xff, 0x34, 0x05, 0xcb, 0x7d, 0x34, 0x8b, 0xae, 0x53, 0xb2, 0x65, 0xb1, 0xbf, 0x04, 0x1a, 0xdf, 0xab, 0x05, 0xc1, 0xbe, 0x1a, 0xec, 0x76, 0x6b, 0xaf, 0x26, 0xda, 0xd1, 0x7f, 0x86, 0xe9, 0x0b, 0x39, 0x2c, 0x11, 0xd0, 0x7a, 0x78, 0xaa, 0x64, 0x0c, 0x4b, 0x6d, 0xeb, 0x71, 0x33, 0xd7, 0xe3, 0xfe, 0x65, 0x84, 0x48, 0xf1, 0xcd, 0x8b, 0xda, 0x50, 0x21, 0x8c, 0x6f, 0x79, 0xc4, 0x61, 0xbe, 0x25, 0xbb, 0x1a, 0xc4, 0xfa, 0xd9, 0xd1, 0xdc, 0x2d, 0x34, 0x0a, 0x4b, 0x6a, 0x17, 0x68, 0xbd, 0x0b, 0x0d, 0xf7, 0xb0, 0x80, 0xfe, 0x0b, 0x53, 0x1e, 0x25, 0xcc, 0x75, 0x54, 0xeb, 0x09, 0xc9, 0xc5, 0xf2, 0x2d, 0x56, 0xab, 0xe8, 0x7f, 0x70, 0xa4, 0x4a, 0x19, 0x23, 0x65, 0x9a, 0x99, 0x94, 0x82, 0xf3, 0x4a, 0xf0, 0xc8, 0x86, 0xff, 0x1a, 0x07, 0xeb, 0xfa, 0xc3, 0x04, 0x9c, 0xee, 0xc3, 0xe3, 0xba, 0xcd, 0x38, 0xba, 0xd9, 0x15, 0xcf, 0xc6, 0x88, 0xb5, 0xc3, 0x66, 0x7e, 0x34, 0x2f, 0x28, 0xdb, 0xd3, 0xc1, 0x9b, 0x48, 0x2c, 0xdf, 0x84, 0x49, 0x9b, 0xd3, 0xaa, 0xf0, 0x4a, 0x6a, 0x25, 0x9d, 0x7f, 0x69, 0xcc, 0x58, 0x2b, 0x1c, 0x55, 0x36, 0x26, 0x2f, 0x0b, 0x34, 0xec, 0x83, 0xea, 0x3f, 0x25, 0xfb, 0x9e, 0x4d, 0x04, 0x3c, 0xfa, 0x10, 0xe6, 0xe4, 0x93, 0x5f, 0x99, 0x31, 0xbd, 0xad, 0x4e, 0x38, 0x34, 0xa7, 0x06, 0x34, 0xf4, 0xc2, 0x09, 0xb5, 0x95, 0xb9, 0xcd, 0x18, 0x34, 0xee, 0x30, 0x85, 0xce, 0x43, 0xba, 0x6a, 0x3b, 0x98, 0xd6, 0x2a, 0xb6, 0x45, 0x98, 0xba, 0x17, 0xc9, 0x96, 0xb4, 0xd1, 0x7e, 0x8d, 0xa3, 0x32, 0xe8, 0x05, 0x48, 0x57, 0xc9, 0x9d, 0x50, 0x25, 0x25, 0x55, 0x8e, 0x29, 0x7b, 0xe9, 0x8d, 0xf6, 0x12, 0x8e, 0xca, 0xa1, 0xeb, 0x22, 0x1a, 0x44, 0x95, 0x66, 0x19, 0x4d, 0xd2, 0x7c, 0x76, 0xd8, 0xf9, 0x54, 0x91, 0x17, 0x25, 0x22, 0x12, 0x39, 0x12, 0x02, 0x07, 0x58, 0xfa, 0xf7, 0x1a, 0x9c, 0x19, 0x98, 0xfb, 0xe8, 0x0d, 0x40, 0xee, 0x36, 0xa3, 0x5e, 0x83, 0x96, 0x2e, 0xfa, 0x97, 0x7e, 0x71, 0x3f, 0x11, 0x1c, 0xa7, 0xfc, 0x96, 0x78, 0xb5, 0x6b, 0x15, 0xf7, 0xd0, 0x40, 0x16, 0x1c, 0x15, 0xc9, 0xe0, 0x13, 0x6a, 0xab, 0xab, 0xd0, 0xfe, 0x32, 0x6d, 0xb1, 0xd5, 0xcc, 0x1d, 0x5d, 0x8f, 0x82, 0xe0, 0x38, 0x26, 0x5a, 0x83, 0x79, 0x55, 0xeb, 0x3b, 0x08, 0x3e, 0xa9, 0x18, 0x98, 0x2f, 0xc6, 0x97, 0x71, 0xa7, 0xbc, 0x80, 0x28, 0x51, 0x66, 0x7b, 0xb4, 0x14, 0x42, 0x68, 0x71, 0x88, 0x0b, 0xf1, 0x65, 0xdc, 0x29, 0x8f, 0x2a, 0x30, 0xa7, 0x50, 0x15, 0xdf, 0x99, 0x49, 0xe9, 0xb2, 0xff, 0x8f, 0xe8, 0x32, 0xbf, 0xe8, 0x86, 0x31, 0x58, 0x8c, 0x61, 0xe1, 0x0e, 0x6c, 0xc4, 0x01, 0xac, 0xa0, 0xc4, 0xb1, 0xcc, 0x94, 0xb4, 0xf4, 0xda, 0x98, 0x39, 0x18, 0xd6, 0xca, 0x76, 0xfb, 0x0a, 0x5f, 0x31, 0x1c, 0xb1, 0xa3, 0x7f, 0xab, 0x01, 0xb4, 0x23, 0x0c, 0xad, 0xc6, 0x8a, 0xfc, 0x72, 0x47, 0x91, 0x5f, 0x88, 0x5e, 0x4e, 0x23, 0x05, 0xfd, 0x06, 0x4c, 0xb9, 0x32, 0xf3, 0x54, 0x30, 0xe4, 0x87, 0x6d, 0x3b, 0xec, 0xa5, 0x21, 0x5a, 0x01, 0x44, 0xe9, 0x54, 0xf9, 0xab, 0xd0, 0xd0, 0x15, 0xd0, 0x6a, 0x6e, 0x29, 0x68, 0x7e, 0xe7, 0x86, 0xa1, 0x5e, 0x73, 0x4b, 0x2c, 0x86, 0x39, 0x2d, 0xf6, 0x2e, 0xde, 0x62, 0x89, 0x83, 0xde, 0x83, 0xe9, 0xe0, 0xba, 0xa1, 0xee, 0x26, 0xab, 0xc3, 0x30, 0x7b, 0xcd, 0xc0, 0x85, 0x59, 0x51, 0x41, 0x83, 0x15, 0x1c, 0x62, 0xa2, 0x4f, 0x12, 0xb0, 0x68, 0x75, 0xce, 0x74, 0x99, 0x23, 0xa3, 0xb5, 0xee, 0x81, 0x63, 0x77, 0xe1, 0x5f, 0xad, 0x66, 0x6e, 0xb1, 0x4b, 0x04, 0x77, 0x9b, 0x13, 0x87, 0xa4, 0xea, 0xca, 0x2a, 0x1b, 0xce, 0x08, 0x87, 0xec, 0x35, 0x7b, 0xf8, 0x87, 0x0c, 0x56, 0x70, 0x88, 0xa9, 0x7f, 0xa7, 0xc1, 0x6c, 0xec, 0x2e, 0xfc, 0x67, 0xc4, 0x8c, 0x9f, 0x5a, 0x07, 0x1b, 0x33, 0x3e, 0xe6, 0xc1, 0xc7, 0x8c, 0x8f, 0x7b, 0xa8, 0x31, 0xe3, 0x9b, 0x3c, 0xcc, 0x98, 0x89, 0x1c, 0xb2, 0x47, 0xcc, 0x3c, 0x4c, 0x01, 0xea, 0xce, 0x79, 0x64, 0xc1, 0x94, 0x3f, 0x74, 0x1d, 0x44, 0xaf, 0x0f, 0xef, 0x5f, 0xaa, 0xad, 0x2b, 0xe8, 0x8e, 0x51, 0x2d, 0x39, 0xd2, 0xa8, 0x46, 0x0f, 0x62, 0xa4, 0x0d, 0x2f, 0x03, 0x7d, 0xc7, 0xda, 0x5b, 0x30, 0xcd, 0x82, 0x59, 0x50, 0x1b, 0x7f, 0x16, 0x94, 0xac, 0x87, 0x53, 0x60, 0x08, 0x89, 0x4a, 0x30, 0x4b, 0xa2, 0xe3, 0xd8, 0xe4, 0x58, 0xc7, 0x58, 0x10, 0xb3, 0x5f, 0x6c, 0x0e, 0x8b, 0xa1, 0xea, 0x3f, 0x77, 0xfa, 0xd6, 0xaf, 0x0a, 0x7f, 0x59, 0xdf, 0x1e, 0xde, 0x54, 0xfc, 0x8f, 0x70, 0xef, 0x57, 0x49, 0x58, 0xe8, 0x6c, 0xac, 0x63, 0x7d, 0xfe, 0xb8, 0xdb, 0xf3, 0x1b, 0x4e, 0x72, 0xac, 0x4d, 0x87, 0xb3, 0xda, 0x88, 0x5f, 0x67, 0xa3, 0x9e, 0x48, 0x1d, 0xb8, 0x27, 0xf4, 0xaf, 0xe3, 0x1c, 0x8d, 0xff, 0x89, 0xa8, 0xcf, 0x07, 0xd5, 0xe4, 0x21, 0x7d, 0x50, 0x7d, 0xca, 0x34, 0x7d, 0x93, 0x84, 0xe3, 0xcf, 0xfe, 0x53, 0x18, 0xfd, 0xeb, 0xe3, 0x0f, 0xdd, 0x7c, 0x3d, 0xfb, 0x67, 0x60, 0x94, 0x40, 0x2e, 0x5c, 0xb8, 0xf7, 0x28, 0x3b, 0x71, 0xff, 0x51, 0x76, 0xe2, 0xc1, 0xa3, 0xec, 0xc4, 0xc7, 0xad, 0x6c, 0xe2, 0x5e, 0x2b, 0x9b, 0xb8, 0xdf, 0xca, 0x26, 0x1e, 0xb4, 0xb2, 0x89, 0x5f, 0x5a, 0xd9, 0xc4, 0x67, 0xbf, 0x66, 0x27, 0xde, 0xc9, 0x0e, 0xfe, 0x93, 0xf1, 0x8f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x09, 0x76, 0xa2, 0x69, 0x9e, 0x1c, 0x00, 0x00, } func (m *ContainerResourceMetricSource) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ContainerResourceMetricSource) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ContainerResourceMetricSource) 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] = 0x22 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 *ContainerResourceMetricStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ContainerResourceMetricStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ContainerResourceMetricStatus) 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] = 0x22 { 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 *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.ContainerResource != nil { { size, err := m.ContainerResource.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a } 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.ContainerResource != nil { { size, err := m.ContainerResource.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a } 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 *ContainerResourceMetricSource) 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)) } l = len(m.Container) n += 1 + l + sovGenerated(uint64(l)) return n } func (m *ContainerResourceMetricStatus) 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)) l = len(m.Container) n += 1 + l + sovGenerated(uint64(l)) return n } 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)) } if m.ContainerResource != nil { l = m.ContainerResource.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)) } if m.ContainerResource != nil { l = m.ContainerResource.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 *ContainerResourceMetricSource) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ContainerResourceMetricSource{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `TargetAverageUtilization:` + valueToStringGenerated(this.TargetAverageUtilization) + `,`, `TargetAverageValue:` + strings.Replace(fmt.Sprintf("%v", this.TargetAverageValue), "Quantity", "resource.Quantity", 1) + `,`, `Container:` + fmt.Sprintf("%v", this.Container) + `,`, `}`, }, "") return s } func (this *ContainerResourceMetricStatus) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ContainerResourceMetricStatus{`, `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) + `,`, `Container:` + fmt.Sprintf("%v", this.Container) + `,`, `}`, }, "") return s } 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) + `,`, `ContainerResource:` + strings.Replace(this.ContainerResource.String(), "ContainerResourceMetricSource", "ContainerResourceMetricSource", 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) + `,`, `ContainerResource:` + strings.Replace(this.ContainerResource.String(), "ContainerResourceMetricStatus", "ContainerResourceMetricStatus", 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 *ContainerResourceMetricSource) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ContainerResourceMetricSource: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ContainerResourceMetricSource: 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 case 4: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ContainerResourceMetricStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ContainerResourceMetricStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ContainerResourceMetricStatus: 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 case 4: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } 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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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 case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContainerResource", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ContainerResource == nil { m.ContainerResource = &ContainerResourceMetricSource{} } if err := m.ContainerResource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContainerResource", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ContainerResource == nil { m.ContainerResource = &ContainerResourceMetricStatus{} } if err := m.ContainerResource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/autoscaling/v2beta1/generated.proto000066400000000000000000000523641453636404600231500ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/api/resource/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/autoscaling/v2beta1"; // ContainerResourceMetricSource 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 ContainerResourceMetricSource { // 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; // container is the name of the container in the pods of the scaling target optional string container = 4; } // ContainerResourceMetricStatus indicates the current value of a resource metric known to // Kubernetes, as specified in requests and limits, describing a single container in 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 ContainerResourceMetricStatus { // 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; // container is the name of the container in the pods of the scaling target optional string container = 4; } // 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#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. // +optional 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 "ContainerResource", // "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. // Note: "ContainerResource" type is available on when the feature-gate // HPAContainerMetrics is enabled 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; // container resource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes describing a single container in // each pod of 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. // This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. // +optional optional ContainerResourceMetricSource containerResource = 7; // 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 "ContainerResource", // "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object. // Note: "ContainerResource" type is available on when the feature-gate // HPAContainerMetrics is enabled 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; // container resource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes describing a single container in 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 ContainerResourceMetricStatus containerResource = 7; // 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; } golang-k8s-api-0.29.0/autoscaling/v2beta1/register.go000066400000000000000000000033361453636404600222730ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &HorizontalPodAutoscaler{}, &HorizontalPodAutoscalerList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/autoscaling/v2beta1/types.go000066400000000000000000000654621453636404600216230ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/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: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#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 const ( // 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" // ContainerResourceMetricSourceType is a resource metric known to Kubernetes, as // specified in requests and limits, describing a single container in 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). ContainerResourceMetricSourceType MetricSourceType = "ContainerResource" // 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 "ContainerResource", // "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. // Note: "ContainerResource" type is available on when the feature-gate // HPAContainerMetrics is enabled 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"` // container resource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes describing a single container in // each pod of 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. // This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. // +optional ContainerResource *ContainerResourceMetricSource `json:"containerResource,omitempty" protobuf:"bytes,7,opt,name=containerResource"` // 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"` } // ContainerResourceMetricSource 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 ContainerResourceMetricSource 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"` // container is the name of the container in the pods of the scaling target Container string `json:"container" protobuf:"bytes,4,opt,name=container"` } // 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. // +optional Conditions []HorizontalPodAutoscalerCondition `json:"conditions" protobuf:"bytes,6,rep,name=conditions"` } // HorizontalPodAutoscalerConditionType are the valid conditions of // a HorizontalPodAutoscaler. type HorizontalPodAutoscalerConditionType string const ( // 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 "ContainerResource", // "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object. // Note: "ContainerResource" type is available on when the feature-gate // HPAContainerMetrics is enabled 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"` // container resource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes describing a single container in 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 ContainerResource *ContainerResourceMetricStatus `json:"containerResource,omitempty" protobuf:"bytes,7,opt,name=containerResource"` // 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"` } // ContainerResourceMetricStatus indicates the current value of a resource metric known to // Kubernetes, as specified in requests and limits, describing a single container in 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 ContainerResourceMetricStatus 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"` // container is the name of the container in the pods of the scaling target Container string `json:"container" protobuf:"bytes,4,opt,name=container"` } // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.8 // +k8s:prerelease-lifecycle-gen:deprecated=1.22 // +k8s:prerelease-lifecycle-gen:replacement=autoscaling,v2,HorizontalPodAutoscaler // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.8 // +k8s:prerelease-lifecycle-gen:deprecated=1.22 // +k8s:prerelease-lifecycle-gen:replacement=autoscaling,v2beta2,HorizontalPodAutoscalerList // 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"` } golang-k8s-api-0.29.0/autoscaling/v2beta1/types_swagger_doc_generated.go000066400000000000000000000506061453636404600261770ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_ContainerResourceMetricSource = map[string]string{ "": "ContainerResourceMetricSource 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.", "container": "container is the name of the container in the pods of the scaling target", } func (ContainerResourceMetricSource) SwaggerDoc() map[string]string { return map_ContainerResourceMetricSource } var map_ContainerResourceMetricStatus = map[string]string{ "": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in 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.", "container": "container is the name of the container in the pods of the scaling target", } func (ContainerResourceMetricStatus) SwaggerDoc() map[string]string { return map_ContainerResourceMetricStatus } 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#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 \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", "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.", "containerResource": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of 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. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.", "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 \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", "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.", "containerResource": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in 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 golang-k8s-api-0.29.0/autoscaling/v2beta1/zz_generated.deepcopy.go000066400000000000000000000367001453636404600247400ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ContainerResourceMetricSource) DeepCopyInto(out *ContainerResourceMetricSource) { *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 ContainerResourceMetricSource. func (in *ContainerResourceMetricSource) DeepCopy() *ContainerResourceMetricSource { if in == nil { return nil } out := new(ContainerResourceMetricSource) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ContainerResourceMetricStatus) DeepCopyInto(out *ContainerResourceMetricStatus) { *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 ContainerResourceMetricStatus. func (in *ContainerResourceMetricStatus) DeepCopy() *ContainerResourceMetricStatus { if in == nil { return nil } out := new(ContainerResourceMetricStatus) in.DeepCopyInto(out) return out } // 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.ContainerResource != nil { in, out := &in.ContainerResource, &out.ContainerResource *out = new(ContainerResourceMetricSource) (*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.ContainerResource != nil { in, out := &in.ContainerResource, &out.ContainerResource *out = new(ContainerResourceMetricStatus) (*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 } golang-k8s-api-0.29.0/autoscaling/v2beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000077071453636404600272210ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v2beta1 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *HorizontalPodAutoscaler) APILifecycleIntroduced() (major, minor int) { return 1, 8 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *HorizontalPodAutoscaler) APILifecycleDeprecated() (major, minor int) { return 1, 22 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *HorizontalPodAutoscaler) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "autoscaling", Version: "v2", Kind: "HorizontalPodAutoscaler"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *HorizontalPodAutoscaler) APILifecycleRemoved() (major, minor int) { return 1, 25 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *HorizontalPodAutoscalerList) APILifecycleIntroduced() (major, minor int) { return 1, 8 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *HorizontalPodAutoscalerList) APILifecycleDeprecated() (major, minor int) { return 1, 22 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *HorizontalPodAutoscalerList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "autoscaling", Version: "v2beta2", Kind: "HorizontalPodAutoscalerList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *HorizontalPodAutoscalerList) APILifecycleRemoved() (major, minor int) { return 1, 25 } golang-k8s-api-0.29.0/autoscaling/v2beta2/000077500000000000000000000000001453636404600201145ustar00rootroot00000000000000golang-k8s-api-0.29.0/autoscaling/v2beta2/doc.go000066400000000000000000000013601453636404600212100ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true package v2beta2 // import "k8s.io/api/autoscaling/v2beta2" golang-k8s-api-0.29.0/autoscaling/v2beta2/generated.pb.go000066400000000000000000005062651453636404600230170ustar00rootroot00000000000000/* 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/k8s.io/api/autoscaling/v2beta2/generated.proto package v2beta2 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" k8s_io_api_core_v1 "k8s.io/api/core/v1" resource "k8s.io/apimachinery/pkg/api/resource" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *ContainerResourceMetricSource) Reset() { *m = ContainerResourceMetricSource{} } func (*ContainerResourceMetricSource) ProtoMessage() {} func (*ContainerResourceMetricSource) Descriptor() ([]byte, []int) { return fileDescriptor_592ad94d7d6be24f, []int{0} } func (m *ContainerResourceMetricSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ContainerResourceMetricSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ContainerResourceMetricSource) XXX_Merge(src proto.Message) { xxx_messageInfo_ContainerResourceMetricSource.Merge(m, src) } func (m *ContainerResourceMetricSource) XXX_Size() int { return m.Size() } func (m *ContainerResourceMetricSource) XXX_DiscardUnknown() { xxx_messageInfo_ContainerResourceMetricSource.DiscardUnknown(m) } var xxx_messageInfo_ContainerResourceMetricSource proto.InternalMessageInfo func (m *ContainerResourceMetricStatus) Reset() { *m = ContainerResourceMetricStatus{} } func (*ContainerResourceMetricStatus) ProtoMessage() {} func (*ContainerResourceMetricStatus) Descriptor() ([]byte, []int) { return fileDescriptor_592ad94d7d6be24f, []int{1} } func (m *ContainerResourceMetricStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ContainerResourceMetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ContainerResourceMetricStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_ContainerResourceMetricStatus.Merge(m, src) } func (m *ContainerResourceMetricStatus) XXX_Size() int { return m.Size() } func (m *ContainerResourceMetricStatus) XXX_DiscardUnknown() { xxx_messageInfo_ContainerResourceMetricStatus.DiscardUnknown(m) } var xxx_messageInfo_ContainerResourceMetricStatus proto.InternalMessageInfo func (m *CrossVersionObjectReference) Reset() { *m = CrossVersionObjectReference{} } func (*CrossVersionObjectReference) ProtoMessage() {} func (*CrossVersionObjectReference) Descriptor() ([]byte, []int) { return fileDescriptor_592ad94d7d6be24f, []int{2} } 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{3} } 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{4} } 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 *HPAScalingPolicy) Reset() { *m = HPAScalingPolicy{} } func (*HPAScalingPolicy) ProtoMessage() {} func (*HPAScalingPolicy) Descriptor() ([]byte, []int) { return fileDescriptor_592ad94d7d6be24f, []int{5} } func (m *HPAScalingPolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *HPAScalingPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *HPAScalingPolicy) XXX_Merge(src proto.Message) { xxx_messageInfo_HPAScalingPolicy.Merge(m, src) } func (m *HPAScalingPolicy) XXX_Size() int { return m.Size() } func (m *HPAScalingPolicy) XXX_DiscardUnknown() { xxx_messageInfo_HPAScalingPolicy.DiscardUnknown(m) } var xxx_messageInfo_HPAScalingPolicy proto.InternalMessageInfo func (m *HPAScalingRules) Reset() { *m = HPAScalingRules{} } func (*HPAScalingRules) ProtoMessage() {} func (*HPAScalingRules) Descriptor() ([]byte, []int) { return fileDescriptor_592ad94d7d6be24f, []int{6} } func (m *HPAScalingRules) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *HPAScalingRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *HPAScalingRules) XXX_Merge(src proto.Message) { xxx_messageInfo_HPAScalingRules.Merge(m, src) } func (m *HPAScalingRules) XXX_Size() int { return m.Size() } func (m *HPAScalingRules) XXX_DiscardUnknown() { xxx_messageInfo_HPAScalingRules.DiscardUnknown(m) } var xxx_messageInfo_HPAScalingRules proto.InternalMessageInfo func (m *HorizontalPodAutoscaler) Reset() { *m = HorizontalPodAutoscaler{} } func (*HorizontalPodAutoscaler) ProtoMessage() {} func (*HorizontalPodAutoscaler) Descriptor() ([]byte, []int) { return fileDescriptor_592ad94d7d6be24f, []int{7} } 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 *HorizontalPodAutoscalerBehavior) Reset() { *m = HorizontalPodAutoscalerBehavior{} } func (*HorizontalPodAutoscalerBehavior) ProtoMessage() {} func (*HorizontalPodAutoscalerBehavior) Descriptor() ([]byte, []int) { return fileDescriptor_592ad94d7d6be24f, []int{8} } func (m *HorizontalPodAutoscalerBehavior) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *HorizontalPodAutoscalerBehavior) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *HorizontalPodAutoscalerBehavior) XXX_Merge(src proto.Message) { xxx_messageInfo_HorizontalPodAutoscalerBehavior.Merge(m, src) } func (m *HorizontalPodAutoscalerBehavior) XXX_Size() int { return m.Size() } func (m *HorizontalPodAutoscalerBehavior) XXX_DiscardUnknown() { xxx_messageInfo_HorizontalPodAutoscalerBehavior.DiscardUnknown(m) } var xxx_messageInfo_HorizontalPodAutoscalerBehavior proto.InternalMessageInfo func (m *HorizontalPodAutoscalerCondition) Reset() { *m = HorizontalPodAutoscalerCondition{} } func (*HorizontalPodAutoscalerCondition) ProtoMessage() {} func (*HorizontalPodAutoscalerCondition) Descriptor() ([]byte, []int) { return fileDescriptor_592ad94d7d6be24f, []int{9} } 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{10} } 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{11} } 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{12} } 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{13} } 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{14} } 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{15} } 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{16} } 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{17} } 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{18} } 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{19} } 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{20} } 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{21} } 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{22} } 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{23} } 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((*ContainerResourceMetricSource)(nil), "k8s.io.api.autoscaling.v2beta2.ContainerResourceMetricSource") proto.RegisterType((*ContainerResourceMetricStatus)(nil), "k8s.io.api.autoscaling.v2beta2.ContainerResourceMetricStatus") 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((*HPAScalingPolicy)(nil), "k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy") proto.RegisterType((*HPAScalingRules)(nil), "k8s.io.api.autoscaling.v2beta2.HPAScalingRules") proto.RegisterType((*HorizontalPodAutoscaler)(nil), "k8s.io.api.autoscaling.v2beta2.HorizontalPodAutoscaler") proto.RegisterType((*HorizontalPodAutoscalerBehavior)(nil), "k8s.io.api.autoscaling.v2beta2.HorizontalPodAutoscalerBehavior") 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/k8s.io/api/autoscaling/v2beta2/generated.proto", fileDescriptor_592ad94d7d6be24f) } var fileDescriptor_592ad94d7d6be24f = []byte{ // 1743 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x59, 0xcd, 0x6f, 0x1b, 0xc7, 0x15, 0xd7, 0x92, 0xd4, 0xd7, 0x50, 0x9f, 0xe3, 0x2f, 0x42, 0x86, 0x49, 0x61, 0x6b, 0xb4, 0xae, 0xd1, 0x2e, 0x2b, 0x56, 0x6d, 0x0d, 0x18, 0x45, 0xab, 0x95, 0x5b, 0xdb, 0xb0, 0x64, 0xab, 0x43, 0x59, 0x2d, 0x0a, 0xd9, 0xe8, 0x70, 0x77, 0x44, 0x4d, 0x45, 0xee, 0x12, 0xbb, 0x4b, 0xda, 0x72, 0x80, 0x20, 0x08, 0x90, 0x7b, 0x90, 0x20, 0xd7, 0xfc, 0x09, 0x09, 0x7c, 0x09, 0x90, 0x63, 0x3e, 0x60, 0x18, 0x41, 0x10, 0xf8, 0x16, 0xe7, 0x42, 0xc4, 0xcc, 0x31, 0xc7, 0xdc, 0x7c, 0x0a, 0xe6, 0x63, 0x3f, 0x49, 0x89, 0x94, 0x20, 0x29, 0xd0, 0x8d, 0x3b, 0xf3, 0xde, 0xef, 0xcd, 0x7b, 0xf3, 0x7b, 0x6f, 0xde, 0x0c, 0xc1, 0xcd, 0x9d, 0x6b, 0xae, 0x46, 0xed, 0xe2, 0x4e, 0xb3, 0x42, 0x1c, 0x8b, 0x78, 0xc4, 0x2d, 0xb6, 0x88, 0x65, 0xda, 0x4e, 0x51, 0x4e, 0xe0, 0x06, 0x2d, 0xe2, 0xa6, 0x67, 0xbb, 0x06, 0xae, 0x51, 0xab, 0x5a, 0x6c, 0x95, 0x2a, 0xc4, 0xc3, 0xa5, 0x62, 0x95, 0x58, 0xc4, 0xc1, 0x1e, 0x31, 0xb5, 0x86, 0x63, 0x7b, 0x36, 0xcc, 0x0b, 0x79, 0x0d, 0x37, 0xa8, 0x16, 0x91, 0xd7, 0xa4, 0xfc, 0xdc, 0xef, 0xab, 0xd4, 0xdb, 0x6e, 0x56, 0x34, 0xc3, 0xae, 0x17, 0xab, 0x76, 0xd5, 0x2e, 0x72, 0xb5, 0x4a, 0x73, 0x8b, 0x7f, 0xf1, 0x0f, 0xfe, 0x4b, 0xc0, 0xcd, 0xa9, 0x11, 0xf3, 0x86, 0xed, 0x90, 0x62, 0x6b, 0x21, 0x69, 0x72, 0x6e, 0x31, 0x94, 0xa9, 0x63, 0x63, 0x9b, 0x5a, 0xc4, 0xd9, 0x2d, 0x36, 0x76, 0xaa, 0x5c, 0xc9, 0x21, 0xae, 0xdd, 0x74, 0x0c, 0x72, 0x20, 0x2d, 0xb7, 0x58, 0x27, 0x1e, 0xee, 0x65, 0xab, 0xb8, 0x97, 0x96, 0xd3, 0xb4, 0x3c, 0x5a, 0xef, 0x36, 0xf3, 0xe7, 0x7e, 0x0a, 0xae, 0xb1, 0x4d, 0xea, 0x38, 0xa9, 0xa7, 0xfe, 0xa8, 0x80, 0x4b, 0xcb, 0xb6, 0xe5, 0x61, 0xa6, 0x81, 0xa4, 0x13, 0xab, 0xc4, 0x73, 0xa8, 0x51, 0xe6, 0xbf, 0xe1, 0x32, 0xc8, 0x58, 0xb8, 0x4e, 0x72, 0xca, 0xbc, 0x72, 0x65, 0x5c, 0x2f, 0x3e, 0x6f, 0x17, 0x86, 0x3a, 0xed, 0x42, 0xe6, 0x2e, 0xae, 0x93, 0xd7, 0xed, 0x42, 0xa1, 0x3b, 0x70, 0x9a, 0x0f, 0xc3, 0x44, 0x10, 0x57, 0x86, 0xeb, 0x60, 0xc4, 0xc3, 0x4e, 0x95, 0x78, 0xb9, 0xd4, 0xbc, 0x72, 0x25, 0x5b, 0xfa, 0x9d, 0xb6, 0xff, 0xfe, 0x69, 0x62, 0x09, 0xeb, 0x5c, 0x47, 0x9f, 0x92, 0x46, 0x47, 0xc4, 0x37, 0x92, 0x58, 0xb0, 0x08, 0xc6, 0x0d, 0x7f, 0xed, 0xb9, 0x34, 0x5f, 0xdf, 0xac, 0x14, 0x1d, 0x0f, 0x9d, 0x0a, 0x65, 0xd4, 0x9f, 0xf6, 0xf1, 0xd6, 0xc3, 0x5e, 0xd3, 0x3d, 0x1a, 0x6f, 0x37, 0xc1, 0xa8, 0xd1, 0x74, 0x1c, 0x62, 0xf9, 0xee, 0x2e, 0x0c, 0xe6, 0xee, 0x06, 0xae, 0x35, 0x89, 0x58, 0x88, 0x3e, 0x2d, 0x4d, 0x8f, 0x2e, 0x0b, 0x24, 0xe4, 0x43, 0x1e, 0xdc, 0xeb, 0x0f, 0x14, 0x70, 0x71, 0xd9, 0xb1, 0x5d, 0x77, 0x83, 0x38, 0x2e, 0xb5, 0xad, 0x7b, 0x95, 0xff, 0x13, 0xc3, 0x43, 0x64, 0x8b, 0x38, 0xc4, 0x32, 0x08, 0x9c, 0x07, 0x99, 0x1d, 0x6a, 0x99, 0xd2, 0xe7, 0x09, 0xdf, 0xe7, 0x3b, 0xd4, 0x32, 0x11, 0x9f, 0x61, 0x12, 0x3c, 0x2a, 0xa9, 0xb8, 0x44, 0xc4, 0xe5, 0x12, 0x00, 0xb8, 0x41, 0xa5, 0x01, 0xb9, 0x2a, 0x28, 0xe5, 0xc0, 0xd2, 0xda, 0x6d, 0x39, 0x83, 0x22, 0x52, 0xea, 0x33, 0x05, 0x9c, 0xfd, 0xc7, 0x63, 0x8f, 0x38, 0x16, 0xae, 0xc5, 0x28, 0xf7, 0x1f, 0x30, 0x52, 0xe7, 0xdf, 0x7c, 0x49, 0xd9, 0xd2, 0x1f, 0x06, 0x0b, 0xdf, 0x6d, 0x93, 0x58, 0x1e, 0xdd, 0xa2, 0xc4, 0x09, 0x19, 0x23, 0x66, 0x90, 0xc4, 0x3b, 0x1e, 0x1e, 0xaa, 0xdf, 0x74, 0x3b, 0x22, 0xd8, 0x74, 0x7c, 0x8e, 0x1c, 0x2b, 0xc5, 0xd4, 0x8f, 0x14, 0x30, 0x73, 0x6b, 0x6d, 0xa9, 0x2c, 0x20, 0xd6, 0xec, 0x1a, 0x35, 0x76, 0xe1, 0x35, 0x90, 0xf1, 0x76, 0x1b, 0x7e, 0x6a, 0x5c, 0xf6, 0x49, 0xb0, 0xbe, 0xdb, 0x60, 0xa9, 0x71, 0x36, 0x29, 0xcf, 0xc6, 0x11, 0xd7, 0x80, 0xbf, 0x02, 0xc3, 0x2d, 0x66, 0x97, 0x2f, 0x75, 0x58, 0x9f, 0x94, 0xaa, 0xc3, 0x7c, 0x31, 0x48, 0xcc, 0xc1, 0xeb, 0x60, 0xb2, 0x41, 0x1c, 0x6a, 0x9b, 0x65, 0x62, 0xd8, 0x96, 0xe9, 0x72, 0x12, 0x0d, 0xeb, 0xe7, 0xa4, 0xf0, 0xe4, 0x5a, 0x74, 0x12, 0xc5, 0x65, 0xd5, 0x0f, 0x53, 0x60, 0x3a, 0x5c, 0x00, 0x6a, 0xd6, 0x88, 0x0b, 0x1f, 0x82, 0x39, 0xd7, 0xc3, 0x15, 0x5a, 0xa3, 0x4f, 0xb0, 0x47, 0x6d, 0xeb, 0xdf, 0xd4, 0x32, 0xed, 0x47, 0x71, 0xf4, 0x7c, 0xa7, 0x5d, 0x98, 0x2b, 0xef, 0x29, 0x85, 0xf6, 0x41, 0x80, 0x77, 0xc0, 0x84, 0x4b, 0x6a, 0xc4, 0xf0, 0x84, 0xbf, 0x32, 0x2e, 0xbf, 0xe9, 0xb4, 0x0b, 0x13, 0xe5, 0xc8, 0xf8, 0xeb, 0x76, 0xe1, 0x4c, 0x2c, 0x30, 0x62, 0x12, 0xc5, 0x94, 0xe1, 0x43, 0x30, 0xd6, 0x60, 0xbf, 0x28, 0x71, 0x73, 0xa9, 0xf9, 0xf4, 0x20, 0x5c, 0x49, 0x06, 0x5c, 0x9f, 0x91, 0xa1, 0x1a, 0x5b, 0x93, 0x48, 0x28, 0xc0, 0x54, 0x3f, 0x4b, 0x81, 0x0b, 0xb7, 0x6c, 0x87, 0x3e, 0x61, 0x55, 0xa1, 0xb6, 0x66, 0x9b, 0x4b, 0x12, 0x91, 0x38, 0xf0, 0x7f, 0x60, 0x8c, 0x9d, 0x43, 0x26, 0xf6, 0x70, 0x0f, 0x9e, 0x06, 0xc7, 0x89, 0xd6, 0xd8, 0xa9, 0xb2, 0x01, 0x57, 0x63, 0xd2, 0x5a, 0x6b, 0x41, 0x13, 0x85, 0x64, 0x95, 0x78, 0x38, 0xcc, 0xf5, 0x70, 0x0c, 0x05, 0xa8, 0xf0, 0x01, 0xc8, 0xb8, 0x0d, 0x62, 0x48, 0xaa, 0x5e, 0xef, 0xeb, 0x59, 0xef, 0x85, 0x96, 0x1b, 0xc4, 0x08, 0x8b, 0x0f, 0xfb, 0x42, 0x1c, 0x16, 0x12, 0x30, 0xe2, 0x72, 0x4a, 0xf3, 0x5d, 0xcd, 0x96, 0xfe, 0x7a, 0x58, 0x03, 0x22, 0x2f, 0x82, 0x9c, 0x13, 0xdf, 0x48, 0x82, 0xab, 0xdf, 0x2a, 0xa0, 0xb0, 0x87, 0xa6, 0x4e, 0xb6, 0x71, 0x8b, 0xda, 0x0e, 0xdc, 0x00, 0xa3, 0x7c, 0xe4, 0x7e, 0x43, 0x86, 0xb2, 0x38, 0xf8, 0x36, 0x72, 0xda, 0xea, 0x59, 0x96, 0x91, 0x65, 0x81, 0x81, 0x7c, 0x30, 0xb8, 0x09, 0xc6, 0xf9, 0xcf, 0x1b, 0xf6, 0x23, 0x4b, 0x86, 0xf1, 0xc0, 0xc8, 0x93, 0xec, 0x84, 0x28, 0xfb, 0x28, 0x28, 0x04, 0x54, 0xdf, 0x49, 0x83, 0xf9, 0x3d, 0x3c, 0x5b, 0xb6, 0x2d, 0x93, 0x32, 0xf2, 0xc3, 0x5b, 0xb1, 0xfc, 0x5f, 0x4c, 0xe4, 0xff, 0xe5, 0x7e, 0xfa, 0x91, 0x7a, 0xb0, 0x12, 0xec, 0x57, 0x2a, 0x86, 0x25, 0x03, 0xfe, 0xba, 0x5d, 0xe8, 0xd1, 0x8f, 0x69, 0x01, 0x52, 0x7c, 0x5b, 0x60, 0x0b, 0xc0, 0x1a, 0x76, 0xbd, 0x75, 0x07, 0x5b, 0xae, 0xb0, 0x44, 0xeb, 0x44, 0x32, 0xe1, 0xea, 0x60, 0x44, 0x66, 0x1a, 0xfa, 0x9c, 0x5c, 0x05, 0x5c, 0xe9, 0x42, 0x43, 0x3d, 0x2c, 0xc0, 0x5f, 0x83, 0x11, 0x87, 0x60, 0xd7, 0xb6, 0x72, 0x19, 0xee, 0x45, 0x40, 0x1b, 0xc4, 0x47, 0x91, 0x9c, 0x85, 0xbf, 0x05, 0xa3, 0x75, 0xe2, 0xba, 0xb8, 0x4a, 0x72, 0xc3, 0x5c, 0x30, 0xa8, 0xbb, 0xab, 0x62, 0x18, 0xf9, 0xf3, 0xea, 0x77, 0x0a, 0xb8, 0xb8, 0x47, 0x1c, 0x57, 0xa8, 0xeb, 0xc1, 0xcd, 0xae, 0x4c, 0xd5, 0x06, 0x73, 0x90, 0x69, 0xf3, 0x3c, 0x0d, 0x6a, 0x84, 0x3f, 0x12, 0xc9, 0xd2, 0x4d, 0x30, 0x4c, 0x3d, 0x52, 0xf7, 0x0b, 0xd0, 0x5f, 0x0e, 0x99, 0x45, 0x61, 0x7d, 0xbf, 0xcd, 0xd0, 0x90, 0x00, 0x55, 0x9f, 0xa5, 0xf7, 0xf4, 0x8d, 0xa5, 0x32, 0x7c, 0x03, 0x4c, 0xf1, 0x2f, 0x79, 0xb6, 0x92, 0x2d, 0xe9, 0x61, 0xdf, 0x6a, 0xb1, 0x4f, 0x6b, 0xa3, 0x9f, 0x97, 0x4b, 0x99, 0x2a, 0xc7, 0xa0, 0x51, 0xc2, 0x14, 0x5c, 0x00, 0xd9, 0x3a, 0xb5, 0x10, 0x69, 0xd4, 0xa8, 0x81, 0x5d, 0x79, 0x4e, 0x4d, 0x77, 0xda, 0x85, 0xec, 0x6a, 0x38, 0x8c, 0xa2, 0x32, 0xf0, 0x4f, 0x20, 0x5b, 0xc7, 0x8f, 0x03, 0x15, 0x71, 0x9e, 0x9c, 0x91, 0xf6, 0xb2, 0xab, 0xe1, 0x14, 0x8a, 0xca, 0xc1, 0xfb, 0x8c, 0x0d, 0xec, 0x24, 0x76, 0x73, 0x19, 0x1e, 0xe6, 0xab, 0x83, 0x1d, 0xdc, 0xbc, 0xf8, 0x45, 0x98, 0xc3, 0x21, 0x90, 0x8f, 0x05, 0x29, 0x18, 0xab, 0xc8, 0x1a, 0xc4, 0x59, 0x96, 0x2d, 0xfd, 0xed, 0xb0, 0xdb, 0x27, 0x61, 0xf4, 0x09, 0x46, 0x13, 0xff, 0x0b, 0x05, 0xf0, 0xea, 0x27, 0x19, 0x70, 0x69, 0xdf, 0x02, 0x0a, 0xff, 0x09, 0xa0, 0x5d, 0x71, 0x89, 0xd3, 0x22, 0xe6, 0x4d, 0x71, 0xdf, 0x60, 0x4d, 0x21, 0xdb, 0xce, 0xb4, 0x7e, 0x9e, 0x65, 0xd8, 0xbd, 0xae, 0x59, 0xd4, 0x43, 0x03, 0x1a, 0x60, 0x92, 0xe5, 0x9d, 0xd8, 0x3b, 0x2a, 0xfb, 0xcf, 0x83, 0x25, 0xf5, 0x2c, 0x6b, 0x1d, 0x56, 0xa2, 0x20, 0x28, 0x8e, 0x09, 0x97, 0xc0, 0xb4, 0x6c, 0x7b, 0x12, 0x7b, 0x79, 0x41, 0x06, 0x7b, 0x7a, 0x39, 0x3e, 0x8d, 0x92, 0xf2, 0x0c, 0xc2, 0x24, 0x2e, 0x75, 0x88, 0x19, 0x40, 0x64, 0xe2, 0x10, 0x37, 0xe2, 0xd3, 0x28, 0x29, 0x0f, 0x6b, 0x60, 0x4a, 0xa2, 0xca, 0xad, 0xcd, 0x0d, 0x73, 0x76, 0x0c, 0xd8, 0xa0, 0xca, 0x93, 0x2b, 0xa0, 0xfb, 0x72, 0x0c, 0x0b, 0x25, 0xb0, 0xa1, 0x07, 0x80, 0xe1, 0x57, 0x53, 0x37, 0x37, 0xc2, 0x2d, 0xfd, 0xfd, 0x90, 0x7c, 0x09, 0xca, 0x72, 0xd8, 0x03, 0x04, 0x43, 0x2e, 0x8a, 0xd8, 0x51, 0xdf, 0x57, 0xc0, 0x4c, 0xb2, 0xc1, 0x0d, 0xae, 0x16, 0xca, 0x9e, 0x57, 0x8b, 0x07, 0x60, 0x4c, 0xb4, 0x4a, 0xb6, 0x23, 0x09, 0xf0, 0xc7, 0x01, 0x8b, 0x1e, 0xae, 0x90, 0x5a, 0x59, 0xaa, 0x0a, 0x3a, 0xfb, 0x5f, 0x28, 0x80, 0x54, 0x3f, 0xce, 0x00, 0x10, 0xa6, 0x18, 0x5c, 0x8c, 0x9d, 0x72, 0xf3, 0x89, 0x53, 0x6e, 0x26, 0x7a, 0x4f, 0x89, 0x9c, 0x68, 0x1b, 0x60, 0xc4, 0xe6, 0xa5, 0x47, 0xae, 0xb0, 0xd4, 0x2f, 0x98, 0x41, 0x9b, 0x14, 0xa0, 0xe9, 0x80, 0x9d, 0x1d, 0xb2, 0x80, 0x49, 0x34, 0x78, 0x17, 0x64, 0x1a, 0xb6, 0xe9, 0xf7, 0x35, 0x7d, 0x5b, 0xc2, 0x35, 0xdb, 0x74, 0x63, 0x98, 0x63, 0x6c, 0xed, 0x6c, 0x14, 0x71, 0x1c, 0xd6, 0x66, 0xfa, 0x2f, 0x15, 0x9c, 0xa2, 0xd9, 0xd2, 0x62, 0x3f, 0xcc, 0x5e, 0x8f, 0x02, 0x22, 0x98, 0xfe, 0x0c, 0x0a, 0x30, 0xe1, 0xdb, 0x0a, 0x98, 0x35, 0x92, 0x17, 0xec, 0xdc, 0xe8, 0x60, 0x5d, 0xd9, 0xbe, 0xef, 0x10, 0xfa, 0xb9, 0x4e, 0xbb, 0x30, 0xdb, 0x25, 0x82, 0xba, 0xcd, 0x31, 0x27, 0x89, 0xbc, 0x8d, 0xc9, 0x5a, 0xd8, 0xd7, 0xc9, 0x5e, 0xd7, 0x50, 0xe1, 0xa4, 0x3f, 0x83, 0x02, 0x4c, 0xf5, 0x69, 0x06, 0x4c, 0xc4, 0xae, 0x79, 0xbf, 0x04, 0x67, 0x44, 0xc2, 0x1f, 0x2d, 0x67, 0x04, 0xe6, 0xd1, 0x73, 0x46, 0xe0, 0x9e, 0x28, 0x67, 0x84, 0xc9, 0x93, 0xe4, 0x4c, 0xc4, 0xc9, 0x1e, 0x9c, 0xf9, 0x22, 0xe5, 0x73, 0x46, 0x34, 0x1d, 0x83, 0x71, 0x46, 0xc8, 0x46, 0x38, 0x73, 0x2f, 0x7a, 0x93, 0xee, 0xd3, 0xfd, 0x69, 0x7e, 0x84, 0xb5, 0x7f, 0x35, 0xb1, 0xe5, 0x51, 0x6f, 0x57, 0x1f, 0xef, 0xba, 0x75, 0x9b, 0x60, 0x02, 0xb7, 0x88, 0x83, 0xab, 0x84, 0x0f, 0x4b, 0xd2, 0x1c, 0x14, 0x77, 0x86, 0x5d, 0x7a, 0x97, 0x22, 0x38, 0x28, 0x86, 0xca, 0x1a, 0x02, 0xf9, 0x7d, 0xdf, 0x0b, 0x6e, 0xd3, 0xf2, 0x8c, 0xe4, 0x0d, 0xc1, 0x52, 0xd7, 0x2c, 0xea, 0xa1, 0xa1, 0xbe, 0x97, 0x02, 0xb3, 0x5d, 0xef, 0x18, 0x61, 0x50, 0x94, 0x63, 0x0a, 0x4a, 0xea, 0x04, 0x83, 0x92, 0x3e, 0x70, 0x50, 0xbe, 0x4c, 0x01, 0xd8, 0x7d, 0x9c, 0xc0, 0x37, 0x79, 0x53, 0x62, 0x38, 0xb4, 0x42, 0x4c, 0x31, 0x7d, 0x14, 0x0d, 0x75, 0xb4, 0xa3, 0x89, 0x62, 0xa3, 0xa4, 0xb1, 0x63, 0x7a, 0xf2, 0x0d, 0x5f, 0xd4, 0xd2, 0x47, 0xfb, 0xa2, 0xa6, 0x7e, 0x9d, 0x0c, 0xe3, 0xa9, 0x7e, 0xc2, 0xeb, 0xb5, 0xfd, 0xe9, 0x13, 0xdc, 0x7e, 0xf5, 0x73, 0x05, 0xcc, 0x24, 0xdb, 0x91, 0x53, 0xf7, 0xb0, 0xfb, 0x55, 0xdc, 0x89, 0xd3, 0xfd, 0xa8, 0xfb, 0x54, 0x01, 0x67, 0x4f, 0xd9, 0x3f, 0x3c, 0xea, 0xa7, 0xdd, 0x6b, 0x3e, 0x2d, 0xff, 0xd3, 0xe8, 0x37, 0x9e, 0xbf, 0xca, 0x0f, 0xbd, 0x78, 0x95, 0x1f, 0x7a, 0xf9, 0x2a, 0x3f, 0xf4, 0x56, 0x27, 0xaf, 0x3c, 0xef, 0xe4, 0x95, 0x17, 0x9d, 0xbc, 0xf2, 0xb2, 0x93, 0x57, 0xbe, 0xef, 0xe4, 0x95, 0x77, 0x7f, 0xc8, 0x0f, 0xfd, 0x37, 0xbf, 0xff, 0x1f, 0x9f, 0x3f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x10, 0x14, 0x03, 0x76, 0x32, 0x1d, 0x00, 0x00, } func (m *ContainerResourceMetricSource) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ContainerResourceMetricSource) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ContainerResourceMetricSource) 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] = 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 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 *ContainerResourceMetricStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ContainerResourceMetricStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ContainerResourceMetricStatus) 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] = 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 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 *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 *HPAScalingPolicy) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *HPAScalingPolicy) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *HPAScalingPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i = encodeVarintGenerated(dAtA, i, uint64(m.PeriodSeconds)) i-- dAtA[i] = 0x18 i = encodeVarintGenerated(dAtA, i, uint64(m.Value)) i-- dAtA[i] = 0x10 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 *HPAScalingRules) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *HPAScalingRules) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *HPAScalingRules) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.StabilizationWindowSeconds != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.StabilizationWindowSeconds)) i-- dAtA[i] = 0x18 } if len(m.Policies) > 0 { for iNdEx := len(m.Policies) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Policies[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if m.SelectPolicy != nil { i -= len(*m.SelectPolicy) copy(dAtA[i:], *m.SelectPolicy) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SelectPolicy))) 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 *HorizontalPodAutoscalerBehavior) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *HorizontalPodAutoscalerBehavior) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *HorizontalPodAutoscalerBehavior) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.ScaleDown != nil { { size, err := m.ScaleDown.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } if m.ScaleUp != nil { { size, err := m.ScaleUp.MarshalToSizedBuffer(dAtA[:i]) if 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.Behavior != nil { { size, err := m.Behavior.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a } 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.ContainerResource != nil { { size, err := m.ContainerResource.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a } 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.ContainerResource != nil { { size, err := m.ContainerResource.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a } 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 *ContainerResourceMetricSource) 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)) l = len(m.Container) n += 1 + l + sovGenerated(uint64(l)) return n } func (m *ContainerResourceMetricStatus) 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)) l = len(m.Container) n += 1 + l + sovGenerated(uint64(l)) return n } 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 *HPAScalingPolicy) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Type) n += 1 + l + sovGenerated(uint64(l)) n += 1 + sovGenerated(uint64(m.Value)) n += 1 + sovGenerated(uint64(m.PeriodSeconds)) return n } func (m *HPAScalingRules) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.SelectPolicy != nil { l = len(*m.SelectPolicy) n += 1 + l + sovGenerated(uint64(l)) } if len(m.Policies) > 0 { for _, e := range m.Policies { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } if m.StabilizationWindowSeconds != nil { n += 1 + sovGenerated(uint64(*m.StabilizationWindowSeconds)) } 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 *HorizontalPodAutoscalerBehavior) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.ScaleUp != nil { l = m.ScaleUp.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.ScaleDown != nil { l = m.ScaleDown.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)) } } if m.Behavior != nil { l = m.Behavior.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)) } if m.ContainerResource != nil { l = m.ContainerResource.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)) } if m.ContainerResource != nil { l = m.ContainerResource.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 *ContainerResourceMetricSource) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ContainerResourceMetricSource{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Target:` + strings.Replace(strings.Replace(this.Target.String(), "MetricTarget", "MetricTarget", 1), `&`, ``, 1) + `,`, `Container:` + fmt.Sprintf("%v", this.Container) + `,`, `}`, }, "") return s } func (this *ContainerResourceMetricStatus) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ContainerResourceMetricStatus{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Current:` + strings.Replace(strings.Replace(this.Current.String(), "MetricValueStatus", "MetricValueStatus", 1), `&`, ``, 1) + `,`, `Container:` + fmt.Sprintf("%v", this.Container) + `,`, `}`, }, "") return s } 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 *HPAScalingPolicy) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&HPAScalingPolicy{`, `Type:` + fmt.Sprintf("%v", this.Type) + `,`, `Value:` + fmt.Sprintf("%v", this.Value) + `,`, `PeriodSeconds:` + fmt.Sprintf("%v", this.PeriodSeconds) + `,`, `}`, }, "") return s } func (this *HPAScalingRules) String() string { if this == nil { return "nil" } repeatedStringForPolicies := "[]HPAScalingPolicy{" for _, f := range this.Policies { repeatedStringForPolicies += strings.Replace(strings.Replace(f.String(), "HPAScalingPolicy", "HPAScalingPolicy", 1), `&`, ``, 1) + "," } repeatedStringForPolicies += "}" s := strings.Join([]string{`&HPAScalingRules{`, `SelectPolicy:` + valueToStringGenerated(this.SelectPolicy) + `,`, `Policies:` + repeatedStringForPolicies + `,`, `StabilizationWindowSeconds:` + valueToStringGenerated(this.StabilizationWindowSeconds) + `,`, `}`, }, "") 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 *HorizontalPodAutoscalerBehavior) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&HorizontalPodAutoscalerBehavior{`, `ScaleUp:` + strings.Replace(this.ScaleUp.String(), "HPAScalingRules", "HPAScalingRules", 1) + `,`, `ScaleDown:` + strings.Replace(this.ScaleDown.String(), "HPAScalingRules", "HPAScalingRules", 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 + `,`, `Behavior:` + strings.Replace(this.Behavior.String(), "HorizontalPodAutoscalerBehavior", "HorizontalPodAutoscalerBehavior", 1) + `,`, `}`, }, "") 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) + `,`, `ContainerResource:` + strings.Replace(this.ContainerResource.String(), "ContainerResourceMetricSource", "ContainerResourceMetricSource", 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) + `,`, `ContainerResource:` + strings.Replace(this.ContainerResource.String(), "ContainerResourceMetricStatus", "ContainerResourceMetricStatus", 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 *ContainerResourceMetricSource) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ContainerResourceMetricSource: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ContainerResourceMetricSource: 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 case 3: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ContainerResourceMetricStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ContainerResourceMetricStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ContainerResourceMetricStatus: 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 case 3: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } 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) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *HPAScalingPolicy) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: HPAScalingPolicy: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: HPAScalingPolicy: 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 = HPAScalingPolicyType(dAtA[iNdEx:postIndex]) 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 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 } } default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *HPAScalingRules) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: HPAScalingRules: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: HPAScalingRules: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SelectPolicy", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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 := ScalingPolicySelect(dAtA[iNdEx:postIndex]) m.SelectPolicy = &s iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Policies", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Policies = append(m.Policies, HPAScalingPolicy{}) if err := m.Policies[len(m.Policies)-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 StabilizationWindowSeconds", 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.StabilizationWindowSeconds = &v default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *HorizontalPodAutoscalerBehavior) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: HorizontalPodAutoscalerBehavior: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: HorizontalPodAutoscalerBehavior: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ScaleUp", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ScaleUp == nil { m.ScaleUp = &HPAScalingRules{} } if err := m.ScaleUp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ScaleDown", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ScaleDown == nil { m.ScaleDown = &HPAScalingRules{} } if err := m.ScaleDown.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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 case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Behavior", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Behavior == nil { m.Behavior = &HorizontalPodAutoscalerBehavior{} } if err := m.Behavior.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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 case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContainerResource", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ContainerResource == nil { m.ContainerResource = &ContainerResourceMetricSource{} } if err := m.ContainerResource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContainerResource", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ContainerResource == nil { m.ContainerResource = &ContainerResourceMetricStatus{} } if err := m.ContainerResource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/autoscaling/v2beta2/generated.proto000066400000000000000000000517501453636404600231470ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/api/resource/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/autoscaling/v2beta2"; // ContainerResourceMetricSource 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 ContainerResourceMetricSource { // 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; // container is the name of the container in the pods of the scaling target optional string container = 3; } // ContainerResourceMetricStatus indicates the current value of a resource metric known to // Kubernetes, as specified in requests and limits, describing a single container in 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 ContainerResourceMetricStatus { // 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; // container is the name of the container in the pods of the scaling target optional string container = 3; } // CrossVersionObjectReference contains enough information to let you identify the referred resource. message CrossVersionObjectReference { // kind is the 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 is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names optional string name = 2; // apiVersion is the 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; } // HPAScalingPolicy is a single policy which must hold true for a specified past interval. message HPAScalingPolicy { // type is used to specify the scaling policy. optional string type = 1; // value contains the amount of change which is permitted by the policy. // It must be greater than zero optional int32 value = 2; // periodSeconds specifies the window of time for which the policy should hold true. // PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). optional int32 periodSeconds = 3; } // HPAScalingRules configures the scaling behavior for one direction. // These Rules are applied after calculating DesiredReplicas from metrics for the HPA. // They can limit the scaling velocity by specifying scaling policies. // They can prevent flapping by specifying the stabilization window, so that the // number of replicas is not set instantly, instead, the safest value from the stabilization // window is chosen. message HPAScalingRules { // stabilizationWindowSeconds is the number of seconds for which past recommendations should be // considered while scaling up or scaling down. // StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). // If not set, use the default values: // - For scale up: 0 (i.e. no stabilization is done). // - For scale down: 300 (i.e. the stabilization window is 300 seconds long). // +optional optional int32 stabilizationWindowSeconds = 3; // selectPolicy is used to specify which policy should be used. // If not set, the default value MaxPolicySelect is used. // +optional optional string selectPolicy = 1; // policies is a list of potential scaling polices which can be used during scaling. // At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid // +optional repeated HPAScalingPolicy policies = 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; } // HorizontalPodAutoscalerBehavior configures the scaling behavior of the target // in both Up and Down directions (scaleUp and scaleDown fields respectively). message HorizontalPodAutoscalerBehavior { // scaleUp is scaling policy for scaling Up. // If not set, the default value is the higher of: // * increase no more than 4 pods per 60 seconds // * double the number of pods per 60 seconds // No stabilization is used. // +optional optional HPAScalingRules scaleUp = 1; // scaleDown is scaling policy for scaling Down. // If not set, the default value is to allow to scale down to minReplicas pods, with a // 300 second stabilization window (i.e., the highest recommendation for // the last 300sec is used). // +optional optional HPAScalingRules scaleDown = 2; } // 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; // behavior configures the scaling behavior of the target // in both Up and Down directions (scaleUp and scaleDown fields respectively). // If not set, the default HPAScalingRules for scale up and scale down are used. // +optional optional HorizontalPodAutoscalerBehavior behavior = 5; } // 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. // +optional 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 "ContainerResource", "External", // "Object", "Pods" or "Resource", each mapping to a matching field in the object. // Note: "ContainerResource" type is available on when the feature-gate // HPAContainerMetrics is enabled 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; // container resource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes describing a single container in // each pod of 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. // This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. // +optional optional ContainerResourceMetricSource containerResource = 7; // 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 "ContainerResource", "External", // "Object", "Pods" or "Resource", each corresponds to a matching field in the object. // Note: "ContainerResource" type is available on when the feature-gate // HPAContainerMetrics is enabled 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; // containerResource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes describing a single container in 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 ContainerResourceMetricStatus containerResource = 7; // 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; // averageUtilization 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; } golang-k8s-api-0.29.0/autoscaling/v2beta2/register.go000066400000000000000000000031151453636404600222670ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 } golang-k8s-api-0.29.0/autoscaling/v2beta2/types.go000066400000000000000000000704331453636404600216160ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.12 // +k8s:prerelease-lifecycle-gen:deprecated=1.23 // +k8s:prerelease-lifecycle-gen:replacement=autoscaling,v2,HorizontalPodAutoscaler // 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"` // behavior configures the scaling behavior of the target // in both Up and Down directions (scaleUp and scaleDown fields respectively). // If not set, the default HPAScalingRules for scale up and scale down are used. // +optional Behavior *HorizontalPodAutoscalerBehavior `json:"behavior,omitempty" protobuf:"bytes,5,opt,name=behavior"` } // CrossVersionObjectReference contains enough information to let you identify the referred resource. type CrossVersionObjectReference struct { // kind is the 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 is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names Name string `json:"name" protobuf:"bytes,2,opt,name=name"` // apiVersion is the 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 "ContainerResource", "External", // "Object", "Pods" or "Resource", each mapping to a matching field in the object. // Note: "ContainerResource" type is available on when the feature-gate // HPAContainerMetrics is enabled 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"` // container resource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes describing a single container in // each pod of 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. // This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. // +optional ContainerResource *ContainerResourceMetricSource `json:"containerResource,omitempty" protobuf:"bytes,7,opt,name=containerResource"` // 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"` } // HorizontalPodAutoscalerBehavior configures the scaling behavior of the target // in both Up and Down directions (scaleUp and scaleDown fields respectively). type HorizontalPodAutoscalerBehavior struct { // scaleUp is scaling policy for scaling Up. // If not set, the default value is the higher of: // * increase no more than 4 pods per 60 seconds // * double the number of pods per 60 seconds // No stabilization is used. // +optional ScaleUp *HPAScalingRules `json:"scaleUp,omitempty" protobuf:"bytes,1,opt,name=scaleUp"` // scaleDown is scaling policy for scaling Down. // If not set, the default value is to allow to scale down to minReplicas pods, with a // 300 second stabilization window (i.e., the highest recommendation for // the last 300sec is used). // +optional ScaleDown *HPAScalingRules `json:"scaleDown,omitempty" protobuf:"bytes,2,opt,name=scaleDown"` } // ScalingPolicySelect is used to specify which policy should be used while scaling in a certain direction type ScalingPolicySelect string const ( // MaxPolicySelect selects the policy with the highest possible change. MaxPolicySelect ScalingPolicySelect = "Max" // MinPolicySelect selects the policy with the lowest possible change. MinPolicySelect ScalingPolicySelect = "Min" // DisabledPolicySelect disables the scaling in this direction. DisabledPolicySelect ScalingPolicySelect = "Disabled" ) // HPAScalingRules configures the scaling behavior for one direction. // These Rules are applied after calculating DesiredReplicas from metrics for the HPA. // They can limit the scaling velocity by specifying scaling policies. // They can prevent flapping by specifying the stabilization window, so that the // number of replicas is not set instantly, instead, the safest value from the stabilization // window is chosen. type HPAScalingRules struct { // stabilizationWindowSeconds is the number of seconds for which past recommendations should be // considered while scaling up or scaling down. // StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). // If not set, use the default values: // - For scale up: 0 (i.e. no stabilization is done). // - For scale down: 300 (i.e. the stabilization window is 300 seconds long). // +optional StabilizationWindowSeconds *int32 `json:"stabilizationWindowSeconds,omitempty" protobuf:"varint,3,opt,name=stabilizationWindowSeconds"` // selectPolicy is used to specify which policy should be used. // If not set, the default value MaxPolicySelect is used. // +optional SelectPolicy *ScalingPolicySelect `json:"selectPolicy,omitempty" protobuf:"bytes,1,opt,name=selectPolicy"` // policies is a list of potential scaling polices which can be used during scaling. // At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid // +optional Policies []HPAScalingPolicy `json:"policies,omitempty" protobuf:"bytes,2,rep,name=policies"` } // HPAScalingPolicyType is the type of the policy which could be used while making scaling decisions. type HPAScalingPolicyType string const ( // PodsScalingPolicy is a policy used to specify a change in absolute number of pods. PodsScalingPolicy HPAScalingPolicyType = "Pods" // PercentScalingPolicy is a policy used to specify a relative amount of change with respect to // the current number of pods. PercentScalingPolicy HPAScalingPolicyType = "Percent" ) // HPAScalingPolicy is a single policy which must hold true for a specified past interval. type HPAScalingPolicy struct { // type is used to specify the scaling policy. Type HPAScalingPolicyType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=HPAScalingPolicyType"` // value contains the amount of change which is permitted by the policy. // It must be greater than zero Value int32 `json:"value" protobuf:"varint,2,opt,name=value"` // periodSeconds specifies the window of time for which the policy should hold true. // PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). PeriodSeconds int32 `json:"periodSeconds" protobuf:"varint,3,opt,name=periodSeconds"` } // MetricSourceType indicates the type of metric. type MetricSourceType string const ( // 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" // ContainerResourceMetricSourceType is a resource metric known to Kubernetes, as // specified in requests and limits, describing a single container in 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). ContainerResourceMetricSourceType MetricSourceType = "ContainerResource" // 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"` } // ContainerResourceMetricSource 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 ContainerResourceMetricSource 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"` // container is the name of the container in the pods of the scaling target Container string `json:"container" protobuf:"bytes,3,opt,name=container"` } // 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 const ( // 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. // +optional Conditions []HorizontalPodAutoscalerCondition `json:"conditions" protobuf:"bytes,6,rep,name=conditions"` } // HorizontalPodAutoscalerConditionType are the valid conditions of // a HorizontalPodAutoscaler. type HorizontalPodAutoscalerConditionType string const ( // 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 "ContainerResource", "External", // "Object", "Pods" or "Resource", each corresponds to a matching field in the object. // Note: "ContainerResource" type is available on when the feature-gate // HPAContainerMetrics is enabled 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"` // containerResource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes describing a single container in 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 ContainerResource *ContainerResourceMetricStatus `json:"containerResource,omitempty" protobuf:"bytes,7,opt,name=containerResource"` // 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"` } // ContainerResourceMetricStatus indicates the current value of a resource metric known to // Kubernetes, as specified in requests and limits, describing a single container in 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 ContainerResourceMetricStatus 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"` // container is the name of the container in the pods of the scaling target Container string `json:"container" protobuf:"bytes,3,opt,name=container"` } // 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"` // averageUtilization 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.12 // +k8s:prerelease-lifecycle-gen:deprecated=1.22 // 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"` } golang-k8s-api-0.29.0/autoscaling/v2beta2/types_swagger_doc_generated.go000066400000000000000000000520601453636404600261740ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_ContainerResourceMetricSource = map[string]string{ "": "ContainerResourceMetricSource 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", "container": "container is the name of the container in the pods of the scaling target", } func (ContainerResourceMetricSource) SwaggerDoc() map[string]string { return map_ContainerResourceMetricSource } var map_ContainerResourceMetricStatus = map[string]string{ "": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in 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", "container": "container is the name of the container in the pods of the scaling target", } func (ContainerResourceMetricStatus) SwaggerDoc() map[string]string { return map_ContainerResourceMetricStatus } var map_CrossVersionObjectReference = map[string]string{ "": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", "kind": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "name": "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", "apiVersion": "apiVersion is the 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_HPAScalingPolicy = map[string]string{ "": "HPAScalingPolicy is a single policy which must hold true for a specified past interval.", "type": "type is used to specify the scaling policy.", "value": "value contains the amount of change which is permitted by the policy. It must be greater than zero", "periodSeconds": "periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).", } func (HPAScalingPolicy) SwaggerDoc() map[string]string { return map_HPAScalingPolicy } var map_HPAScalingRules = map[string]string{ "": "HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.", "stabilizationWindowSeconds": "stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).", "selectPolicy": "selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.", "policies": "policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid", } func (HPAScalingRules) SwaggerDoc() map[string]string { return map_HPAScalingRules } 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_HorizontalPodAutoscalerBehavior = map[string]string{ "": "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).", "scaleUp": "scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:\n * increase no more than 4 pods per 60 seconds\n * double the number of pods per 60 seconds\nNo stabilization is used.", "scaleDown": "scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used).", } func (HorizontalPodAutoscalerBehavior) SwaggerDoc() map[string]string { return map_HorizontalPodAutoscalerBehavior } 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.", "behavior": "behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used.", } 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 \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", "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.", "containerResource": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of 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. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.", "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 \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", "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.", "containerResource": "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in 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": "averageUtilization 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 golang-k8s-api-0.29.0/autoscaling/v2beta2/zz_generated.deepcopy.go000066400000000000000000000435361453636404600247460ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ContainerResourceMetricSource) DeepCopyInto(out *ContainerResourceMetricSource) { *out = *in in.Target.DeepCopyInto(&out.Target) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerResourceMetricSource. func (in *ContainerResourceMetricSource) DeepCopy() *ContainerResourceMetricSource { if in == nil { return nil } out := new(ContainerResourceMetricSource) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ContainerResourceMetricStatus) DeepCopyInto(out *ContainerResourceMetricStatus) { *out = *in in.Current.DeepCopyInto(&out.Current) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerResourceMetricStatus. func (in *ContainerResourceMetricStatus) DeepCopy() *ContainerResourceMetricStatus { if in == nil { return nil } out := new(ContainerResourceMetricStatus) in.DeepCopyInto(out) return out } // 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 *HPAScalingPolicy) DeepCopyInto(out *HPAScalingPolicy) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HPAScalingPolicy. func (in *HPAScalingPolicy) DeepCopy() *HPAScalingPolicy { if in == nil { return nil } out := new(HPAScalingPolicy) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *HPAScalingRules) DeepCopyInto(out *HPAScalingRules) { *out = *in if in.StabilizationWindowSeconds != nil { in, out := &in.StabilizationWindowSeconds, &out.StabilizationWindowSeconds *out = new(int32) **out = **in } if in.SelectPolicy != nil { in, out := &in.SelectPolicy, &out.SelectPolicy *out = new(ScalingPolicySelect) **out = **in } if in.Policies != nil { in, out := &in.Policies, &out.Policies *out = make([]HPAScalingPolicy, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HPAScalingRules. func (in *HPAScalingRules) DeepCopy() *HPAScalingRules { if in == nil { return nil } out := new(HPAScalingRules) 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 *HorizontalPodAutoscalerBehavior) DeepCopyInto(out *HorizontalPodAutoscalerBehavior) { *out = *in if in.ScaleUp != nil { in, out := &in.ScaleUp, &out.ScaleUp *out = new(HPAScalingRules) (*in).DeepCopyInto(*out) } if in.ScaleDown != nil { in, out := &in.ScaleDown, &out.ScaleDown *out = new(HPAScalingRules) (*in).DeepCopyInto(*out) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerBehavior. func (in *HorizontalPodAutoscalerBehavior) DeepCopy() *HorizontalPodAutoscalerBehavior { if in == nil { return nil } out := new(HorizontalPodAutoscalerBehavior) in.DeepCopyInto(out) return out } // 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]) } } if in.Behavior != nil { in, out := &in.Behavior, &out.Behavior *out = new(HorizontalPodAutoscalerBehavior) (*in).DeepCopyInto(*out) } 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.ContainerResource != nil { in, out := &in.ContainerResource, &out.ContainerResource *out = new(ContainerResourceMetricSource) (*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.ContainerResource != nil { in, out := &in.ContainerResource, &out.ContainerResource *out = new(ContainerResourceMetricStatus) (*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 } golang-k8s-api-0.29.0/autoscaling/v2beta2/zz_generated.prerelease-lifecycle.go000066400000000000000000000067721453636404600272230ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v2beta2 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *HorizontalPodAutoscaler) APILifecycleIntroduced() (major, minor int) { return 1, 12 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *HorizontalPodAutoscaler) APILifecycleDeprecated() (major, minor int) { return 1, 23 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *HorizontalPodAutoscaler) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "autoscaling", Version: "v2", Kind: "HorizontalPodAutoscaler"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *HorizontalPodAutoscaler) APILifecycleRemoved() (major, minor int) { return 1, 26 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *HorizontalPodAutoscalerList) APILifecycleIntroduced() (major, minor int) { return 1, 12 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *HorizontalPodAutoscalerList) APILifecycleDeprecated() (major, minor int) { return 1, 22 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *HorizontalPodAutoscalerList) APILifecycleRemoved() (major, minor int) { return 1, 25 } golang-k8s-api-0.29.0/batch/000077500000000000000000000000001453636404600154175ustar00rootroot00000000000000golang-k8s-api-0.29.0/batch/OWNERS000066400000000000000000000002751453636404600163630ustar00rootroot00000000000000# See the OWNERS docs at https://go.k8s.io/owners # approval on api packages bubbles to api-approvers reviewers: - sig-apps-api-reviewers - sig-apps-api-approvers labels: - sig/apps golang-k8s-api-0.29.0/batch/v1/000077500000000000000000000000001453636404600157455ustar00rootroot00000000000000golang-k8s-api-0.29.0/batch/v1/doc.go000066400000000000000000000012721453636404600170430ustar00rootroot00000000000000/* 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 "k8s.io/api/batch/v1" golang-k8s-api-0.29.0/batch/v1/generated.pb.go000066400000000000000000003631371453636404600206470ustar00rootroot00000000000000/* 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/k8s.io/api/batch/v1/generated.proto package v1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" k8s_io_api_core_v1 "k8s.io/api/core/v1" v11 "k8s.io/api/core/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" math "math" math_bits "math/bits" reflect "reflect" strings "strings" k8s_io_apimachinery_pkg_types "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *CronJob) Reset() { *m = CronJob{} } func (*CronJob) ProtoMessage() {} func (*CronJob) Descriptor() ([]byte, []int) { return fileDescriptor_3b52da57c93de713, []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_3b52da57c93de713, []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_3b52da57c93de713, []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_3b52da57c93de713, []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 *Job) Reset() { *m = Job{} } func (*Job) ProtoMessage() {} func (*Job) Descriptor() ([]byte, []int) { return fileDescriptor_3b52da57c93de713, []int{4} } 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{5} } 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{6} } 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{7} } 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{8} } 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 (m *JobTemplateSpec) Reset() { *m = JobTemplateSpec{} } func (*JobTemplateSpec) ProtoMessage() {} func (*JobTemplateSpec) Descriptor() ([]byte, []int) { return fileDescriptor_3b52da57c93de713, []int{9} } 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 (m *PodFailurePolicy) Reset() { *m = PodFailurePolicy{} } func (*PodFailurePolicy) ProtoMessage() {} func (*PodFailurePolicy) Descriptor() ([]byte, []int) { return fileDescriptor_3b52da57c93de713, []int{10} } func (m *PodFailurePolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PodFailurePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PodFailurePolicy) XXX_Merge(src proto.Message) { xxx_messageInfo_PodFailurePolicy.Merge(m, src) } func (m *PodFailurePolicy) XXX_Size() int { return m.Size() } func (m *PodFailurePolicy) XXX_DiscardUnknown() { xxx_messageInfo_PodFailurePolicy.DiscardUnknown(m) } var xxx_messageInfo_PodFailurePolicy proto.InternalMessageInfo func (m *PodFailurePolicyOnExitCodesRequirement) Reset() { *m = PodFailurePolicyOnExitCodesRequirement{} } func (*PodFailurePolicyOnExitCodesRequirement) ProtoMessage() {} func (*PodFailurePolicyOnExitCodesRequirement) Descriptor() ([]byte, []int) { return fileDescriptor_3b52da57c93de713, []int{11} } func (m *PodFailurePolicyOnExitCodesRequirement) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PodFailurePolicyOnExitCodesRequirement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PodFailurePolicyOnExitCodesRequirement) XXX_Merge(src proto.Message) { xxx_messageInfo_PodFailurePolicyOnExitCodesRequirement.Merge(m, src) } func (m *PodFailurePolicyOnExitCodesRequirement) XXX_Size() int { return m.Size() } func (m *PodFailurePolicyOnExitCodesRequirement) XXX_DiscardUnknown() { xxx_messageInfo_PodFailurePolicyOnExitCodesRequirement.DiscardUnknown(m) } var xxx_messageInfo_PodFailurePolicyOnExitCodesRequirement proto.InternalMessageInfo func (m *PodFailurePolicyOnPodConditionsPattern) Reset() { *m = PodFailurePolicyOnPodConditionsPattern{} } func (*PodFailurePolicyOnPodConditionsPattern) ProtoMessage() {} func (*PodFailurePolicyOnPodConditionsPattern) Descriptor() ([]byte, []int) { return fileDescriptor_3b52da57c93de713, []int{12} } func (m *PodFailurePolicyOnPodConditionsPattern) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PodFailurePolicyOnPodConditionsPattern) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PodFailurePolicyOnPodConditionsPattern) XXX_Merge(src proto.Message) { xxx_messageInfo_PodFailurePolicyOnPodConditionsPattern.Merge(m, src) } func (m *PodFailurePolicyOnPodConditionsPattern) XXX_Size() int { return m.Size() } func (m *PodFailurePolicyOnPodConditionsPattern) XXX_DiscardUnknown() { xxx_messageInfo_PodFailurePolicyOnPodConditionsPattern.DiscardUnknown(m) } var xxx_messageInfo_PodFailurePolicyOnPodConditionsPattern proto.InternalMessageInfo func (m *PodFailurePolicyRule) Reset() { *m = PodFailurePolicyRule{} } func (*PodFailurePolicyRule) ProtoMessage() {} func (*PodFailurePolicyRule) Descriptor() ([]byte, []int) { return fileDescriptor_3b52da57c93de713, []int{13} } func (m *PodFailurePolicyRule) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PodFailurePolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PodFailurePolicyRule) XXX_Merge(src proto.Message) { xxx_messageInfo_PodFailurePolicyRule.Merge(m, src) } func (m *PodFailurePolicyRule) XXX_Size() int { return m.Size() } func (m *PodFailurePolicyRule) XXX_DiscardUnknown() { xxx_messageInfo_PodFailurePolicyRule.DiscardUnknown(m) } var xxx_messageInfo_PodFailurePolicyRule proto.InternalMessageInfo func (m *UncountedTerminatedPods) Reset() { *m = UncountedTerminatedPods{} } func (*UncountedTerminatedPods) ProtoMessage() {} func (*UncountedTerminatedPods) Descriptor() ([]byte, []int) { return fileDescriptor_3b52da57c93de713, []int{14} } func (m *UncountedTerminatedPods) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *UncountedTerminatedPods) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *UncountedTerminatedPods) XXX_Merge(src proto.Message) { xxx_messageInfo_UncountedTerminatedPods.Merge(m, src) } func (m *UncountedTerminatedPods) XXX_Size() int { return m.Size() } func (m *UncountedTerminatedPods) XXX_DiscardUnknown() { xxx_messageInfo_UncountedTerminatedPods.DiscardUnknown(m) } var xxx_messageInfo_UncountedTerminatedPods proto.InternalMessageInfo func init() { proto.RegisterType((*CronJob)(nil), "k8s.io.api.batch.v1.CronJob") proto.RegisterType((*CronJobList)(nil), "k8s.io.api.batch.v1.CronJobList") proto.RegisterType((*CronJobSpec)(nil), "k8s.io.api.batch.v1.CronJobSpec") proto.RegisterType((*CronJobStatus)(nil), "k8s.io.api.batch.v1.CronJobStatus") 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") proto.RegisterType((*JobTemplateSpec)(nil), "k8s.io.api.batch.v1.JobTemplateSpec") proto.RegisterType((*PodFailurePolicy)(nil), "k8s.io.api.batch.v1.PodFailurePolicy") proto.RegisterType((*PodFailurePolicyOnExitCodesRequirement)(nil), "k8s.io.api.batch.v1.PodFailurePolicyOnExitCodesRequirement") proto.RegisterType((*PodFailurePolicyOnPodConditionsPattern)(nil), "k8s.io.api.batch.v1.PodFailurePolicyOnPodConditionsPattern") proto.RegisterType((*PodFailurePolicyRule)(nil), "k8s.io.api.batch.v1.PodFailurePolicyRule") proto.RegisterType((*UncountedTerminatedPods)(nil), "k8s.io.api.batch.v1.UncountedTerminatedPods") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/batch/v1/generated.proto", fileDescriptor_3b52da57c93de713) } var fileDescriptor_3b52da57c93de713 = []byte{ // 1797 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcd, 0x6f, 0x23, 0x49, 0x15, 0x8f, 0x93, 0x38, 0xb1, 0xcb, 0xf9, 0xf0, 0xd4, 0x64, 0x66, 0x4c, 0x58, 0xb9, 0xb3, 0x9e, 0xdd, 0x55, 0x16, 0x2d, 0xed, 0x9d, 0xec, 0x88, 0xe5, 0x5b, 0x3b, 0x9d, 0x61, 0x96, 0x09, 0xce, 0x8e, 0x29, 0x67, 0x40, 0x5a, 0x16, 0x44, 0xb9, 0xbb, 0xec, 0xf4, 0xa6, 0xdd, 0xd5, 0x74, 0x55, 0x47, 0x93, 0x0b, 0x42, 0xe2, 0x0f, 0x80, 0xbf, 0x82, 0x23, 0x17, 0x38, 0xc3, 0x0d, 0xcd, 0x71, 0xc5, 0x69, 0xc5, 0xa1, 0xc5, 0x34, 0x7f, 0x00, 0xf7, 0x20, 0x24, 0x54, 0xd5, 0xe5, 0xfe, 0x72, 0x77, 0xc8, 0xac, 0xc4, 0x88, 0x5b, 0xfa, 0xbd, 0xdf, 0xfb, 0xd5, 0xc7, 0x7b, 0xf5, 0x7b, 0x2f, 0x06, 0xdf, 0x3e, 0xfb, 0x3a, 0xd3, 0x6d, 0xda, 0x3f, 0x0b, 0xc6, 0xc4, 0x77, 0x09, 0x27, 0xac, 0x7f, 0x4e, 0x5c, 0x8b, 0xfa, 0x7d, 0xe5, 0xc0, 0x9e, 0xdd, 0x1f, 0x63, 0x6e, 0x9e, 0xf6, 0xcf, 0xef, 0xf5, 0xa7, 0xc4, 0x25, 0x3e, 0xe6, 0xc4, 0xd2, 0x3d, 0x9f, 0x72, 0x0a, 0x6f, 0xc6, 0x20, 0x1d, 0x7b, 0xb6, 0x2e, 0x41, 0xfa, 0xf9, 0xbd, 0xdd, 0xaf, 0x4e, 0x6d, 0x7e, 0x1a, 0x8c, 0x75, 0x93, 0xce, 0xfa, 0x53, 0x3a, 0xa5, 0x7d, 0x89, 0x1d, 0x07, 0x13, 0xf9, 0x25, 0x3f, 0xe4, 0x5f, 0x31, 0xc7, 0x6e, 0x2f, 0xb3, 0x90, 0x49, 0x7d, 0x52, 0xb2, 0xce, 0xee, 0xfd, 0x14, 0x33, 0xc3, 0xe6, 0xa9, 0xed, 0x12, 0xff, 0xa2, 0xef, 0x9d, 0x4d, 0x85, 0x81, 0xf5, 0x67, 0x84, 0xe3, 0xb2, 0xa8, 0x7e, 0x55, 0x94, 0x1f, 0xb8, 0xdc, 0x9e, 0x91, 0x85, 0x80, 0xaf, 0xfd, 0xb7, 0x00, 0x66, 0x9e, 0x92, 0x19, 0x2e, 0xc6, 0xf5, 0xfe, 0x55, 0x03, 0xeb, 0x87, 0x3e, 0x75, 0x8f, 0xe8, 0x18, 0xfe, 0x1c, 0x34, 0xc4, 0x7e, 0x2c, 0xcc, 0x71, 0xa7, 0xb6, 0x57, 0xdb, 0x6f, 0x1d, 0xbc, 0xab, 0xa7, 0xb7, 0x94, 0xd0, 0xea, 0xde, 0xd9, 0x54, 0x18, 0x98, 0x2e, 0xd0, 0xfa, 0xf9, 0x3d, 0xfd, 0xc9, 0xf8, 0x53, 0x62, 0xf2, 0x63, 0xc2, 0xb1, 0x01, 0x9f, 0x87, 0xda, 0x52, 0x14, 0x6a, 0x20, 0xb5, 0xa1, 0x84, 0x15, 0x1a, 0x60, 0x95, 0x79, 0xc4, 0xec, 0x2c, 0x4b, 0xf6, 0x3d, 0xbd, 0x24, 0x07, 0xba, 0xda, 0xcd, 0xc8, 0x23, 0xa6, 0xb1, 0xa1, 0xd8, 0x56, 0xc5, 0x17, 0x92, 0xb1, 0xf0, 0x08, 0xac, 0x31, 0x8e, 0x79, 0xc0, 0x3a, 0x2b, 0x92, 0xa5, 0x77, 0x25, 0x8b, 0x44, 0x1a, 0x5b, 0x8a, 0x67, 0x2d, 0xfe, 0x46, 0x8a, 0xa1, 0xf7, 0xfb, 0x1a, 0x68, 0x29, 0xe4, 0xc0, 0x66, 0x1c, 0x7e, 0xb2, 0x70, 0x03, 0xfa, 0xf5, 0x6e, 0x40, 0x44, 0xcb, 0xf3, 0xb7, 0xd5, 0x4a, 0x8d, 0xb9, 0x25, 0x73, 0xfa, 0x07, 0xa0, 0x6e, 0x73, 0x32, 0x63, 0x9d, 0xe5, 0xbd, 0x95, 0xfd, 0xd6, 0xc1, 0x6b, 0x57, 0x6d, 0xdc, 0xd8, 0x54, 0x44, 0xf5, 0xc7, 0x22, 0x04, 0xc5, 0x91, 0xbd, 0xbf, 0xae, 0x26, 0x1b, 0x16, 0x57, 0x02, 0xdf, 0x01, 0x0d, 0x91, 0x58, 0x2b, 0x70, 0x88, 0xdc, 0x70, 0x33, 0xdd, 0xc0, 0x48, 0xd9, 0x51, 0x82, 0x80, 0xfb, 0xa0, 0x21, 0x6a, 0xe1, 0x63, 0xea, 0x92, 0x4e, 0x43, 0xa2, 0x37, 0x04, 0xf2, 0x44, 0xd9, 0x50, 0xe2, 0x85, 0x4f, 0xc1, 0x1d, 0xc6, 0xb1, 0xcf, 0x6d, 0x77, 0xfa, 0x90, 0x60, 0xcb, 0xb1, 0x5d, 0x32, 0x22, 0x26, 0x75, 0x2d, 0x26, 0x73, 0xb7, 0x62, 0x7c, 0x39, 0x0a, 0xb5, 0x3b, 0xa3, 0x72, 0x08, 0xaa, 0x8a, 0x85, 0x9f, 0x80, 0x1b, 0x26, 0x75, 0xcd, 0xc0, 0xf7, 0x89, 0x6b, 0x5e, 0x0c, 0xa9, 0x63, 0x9b, 0x17, 0x32, 0x8d, 0x4d, 0x43, 0x57, 0xfb, 0xbe, 0x71, 0x58, 0x04, 0x5c, 0x96, 0x19, 0xd1, 0x22, 0x11, 0x7c, 0x13, 0xac, 0xb3, 0x80, 0x79, 0xc4, 0xb5, 0x3a, 0xab, 0x7b, 0xb5, 0xfd, 0x86, 0xd1, 0x8a, 0x42, 0x6d, 0x7d, 0x14, 0x9b, 0xd0, 0xdc, 0x07, 0x7f, 0x02, 0x5a, 0x9f, 0xd2, 0xf1, 0x09, 0x99, 0x79, 0x0e, 0xe6, 0xa4, 0x53, 0x97, 0x79, 0x7e, 0xa3, 0x34, 0x19, 0x47, 0x29, 0x4e, 0xd6, 0xe3, 0x4d, 0xb5, 0xc9, 0x56, 0xc6, 0x81, 0xb2, 0x6c, 0xf0, 0x67, 0x60, 0x97, 0x05, 0xa6, 0x49, 0x18, 0x9b, 0x04, 0xce, 0x11, 0x1d, 0xb3, 0xef, 0xdb, 0x8c, 0x53, 0xff, 0x62, 0x60, 0xcf, 0x6c, 0xde, 0x59, 0xdb, 0xab, 0xed, 0xd7, 0x8d, 0x6e, 0x14, 0x6a, 0xbb, 0xa3, 0x4a, 0x14, 0xba, 0x82, 0x01, 0x22, 0x70, 0x7b, 0x82, 0x6d, 0x87, 0x58, 0x0b, 0xdc, 0xeb, 0x92, 0x7b, 0x37, 0x0a, 0xb5, 0xdb, 0x8f, 0x4a, 0x11, 0xa8, 0x22, 0xb2, 0xf7, 0xa7, 0x65, 0xb0, 0x99, 0x7b, 0x2f, 0xf0, 0x07, 0x60, 0x0d, 0x9b, 0xdc, 0x3e, 0x17, 0x45, 0x25, 0x4a, 0xf5, 0x6e, 0xf6, 0x76, 0x84, 0xd2, 0xa5, 0xaf, 0x1e, 0x91, 0x09, 0x11, 0x49, 0x20, 0xe9, 0x23, 0x7b, 0x20, 0x43, 0x91, 0xa2, 0x80, 0x0e, 0x68, 0x3b, 0x98, 0xf1, 0x79, 0x3d, 0x8a, 0x6a, 0x93, 0xf9, 0x69, 0x1d, 0x7c, 0xe5, 0x7a, 0x8f, 0x4b, 0x44, 0x18, 0x3b, 0x51, 0xa8, 0xb5, 0x07, 0x05, 0x1e, 0xb4, 0xc0, 0x0c, 0x7d, 0x00, 0xa5, 0x2d, 0xb9, 0x42, 0xb9, 0x5e, 0xfd, 0xa5, 0xd7, 0xbb, 0x1d, 0x85, 0x1a, 0x1c, 0x2c, 0x30, 0xa1, 0x12, 0xf6, 0xde, 0x3f, 0x6b, 0x60, 0xe5, 0xd5, 0x08, 0xe8, 0x77, 0x73, 0x02, 0xfa, 0x5a, 0x55, 0xd1, 0x56, 0x8a, 0xe7, 0xa3, 0x82, 0x78, 0x76, 0x2b, 0x19, 0xae, 0x16, 0xce, 0xbf, 0xac, 0x80, 0x8d, 0x23, 0x3a, 0x3e, 0xa4, 0xae, 0x65, 0x73, 0x9b, 0xba, 0xf0, 0x3e, 0x58, 0xe5, 0x17, 0xde, 0x5c, 0x84, 0xf6, 0xe6, 0x4b, 0x9f, 0x5c, 0x78, 0xe4, 0x32, 0xd4, 0xda, 0x59, 0xac, 0xb0, 0x21, 0x89, 0x86, 0x83, 0x64, 0x3b, 0xcb, 0x32, 0xee, 0x7e, 0x7e, 0xb9, 0xcb, 0x50, 0x2b, 0x69, 0xb1, 0x7a, 0xc2, 0x94, 0xdf, 0x14, 0x9c, 0x82, 0x4d, 0x91, 0x9c, 0xa1, 0x4f, 0xc7, 0x71, 0x95, 0xad, 0xbc, 0x74, 0xd6, 0x6f, 0xa9, 0x0d, 0x6c, 0x0e, 0xb2, 0x44, 0x28, 0xcf, 0x0b, 0xcf, 0xe3, 0x1a, 0x3b, 0xf1, 0xb1, 0xcb, 0xe2, 0x23, 0x7d, 0xb1, 0x9a, 0xde, 0x55, 0xab, 0xc9, 0x3a, 0xcb, 0xb3, 0xa1, 0x92, 0x15, 0xe0, 0x5b, 0x60, 0xcd, 0x27, 0x98, 0x51, 0x57, 0xd6, 0x73, 0x33, 0xcd, 0x0e, 0x92, 0x56, 0xa4, 0xbc, 0xf0, 0x6d, 0xb0, 0x3e, 0x23, 0x8c, 0xe1, 0x29, 0x91, 0x8a, 0xd3, 0x34, 0xb6, 0x15, 0x70, 0xfd, 0x38, 0x36, 0xa3, 0xb9, 0xbf, 0xf7, 0xbb, 0x1a, 0x58, 0x7f, 0x35, 0xdd, 0xef, 0x3b, 0xf9, 0xee, 0xd7, 0xa9, 0xaa, 0xbc, 0x8a, 0xce, 0xf7, 0x9b, 0x86, 0xdc, 0xa8, 0xec, 0x7a, 0xf7, 0x40, 0xcb, 0xc3, 0x3e, 0x76, 0x1c, 0xe2, 0xd8, 0x6c, 0x26, 0xf7, 0x5a, 0x37, 0xb6, 0x85, 0x2e, 0x0f, 0x53, 0x33, 0xca, 0x62, 0x44, 0x88, 0x49, 0x67, 0x9e, 0x43, 0xc4, 0x65, 0xc6, 0xe5, 0xa6, 0x42, 0x0e, 0x53, 0x33, 0xca, 0x62, 0xe0, 0x13, 0x70, 0x2b, 0x56, 0xb0, 0x62, 0x07, 0x5c, 0x91, 0x1d, 0xf0, 0x4b, 0x51, 0xa8, 0xdd, 0x7a, 0x50, 0x06, 0x40, 0xe5, 0x71, 0x70, 0x0a, 0xda, 0x1e, 0xb5, 0x84, 0x38, 0x07, 0x3e, 0x51, 0xcd, 0xaf, 0x25, 0xef, 0xf9, 0xcd, 0xd2, 0xcb, 0x18, 0x16, 0xc0, 0xb1, 0x06, 0x16, 0xad, 0x68, 0x81, 0x14, 0xde, 0x07, 0x1b, 0x63, 0x6c, 0x9e, 0xd1, 0xc9, 0x24, 0xdb, 0x1a, 0xda, 0x51, 0xa8, 0x6d, 0x18, 0x19, 0x3b, 0xca, 0xa1, 0xe0, 0x00, 0xec, 0x64, 0xbf, 0x87, 0xc4, 0x7f, 0xec, 0x5a, 0xe4, 0x59, 0x67, 0x43, 0x46, 0x77, 0xa2, 0x50, 0xdb, 0x31, 0x4a, 0xfc, 0xa8, 0x34, 0x0a, 0x7e, 0x00, 0xda, 0x33, 0xfc, 0x2c, 0xee, 0x44, 0xd2, 0x42, 0x58, 0x67, 0x53, 0x32, 0xc9, 0x53, 0x1c, 0x17, 0x7c, 0x68, 0x01, 0x0d, 0x7f, 0x0a, 0x1a, 0x8c, 0x38, 0xc4, 0xe4, 0xd4, 0x57, 0x6f, 0xeb, 0xbd, 0x6b, 0x96, 0x23, 0x1e, 0x13, 0x67, 0xa4, 0x42, 0xe3, 0x11, 0x67, 0xfe, 0x85, 0x12, 0x4a, 0xf8, 0x4d, 0xb0, 0x35, 0xc3, 0x6e, 0x80, 0x13, 0xa4, 0x7c, 0x54, 0x0d, 0x03, 0x46, 0xa1, 0xb6, 0x75, 0x9c, 0xf3, 0xa0, 0x02, 0x12, 0xfe, 0x10, 0x34, 0xf8, 0x7c, 0x7e, 0x58, 0x93, 0x5b, 0x2b, 0xed, 0x90, 0x43, 0x6a, 0xe5, 0xc6, 0x87, 0xe4, 0x79, 0x24, 0xb3, 0x43, 0x42, 0x23, 0x26, 0x2e, 0xce, 0x1d, 0x55, 0x2a, 0x0f, 0x26, 0x9c, 0xf8, 0x8f, 0x6c, 0xd7, 0x66, 0xa7, 0xc4, 0x92, 0xa3, 0x5a, 0x3d, 0x9e, 0xb8, 0x4e, 0x4e, 0x06, 0x65, 0x10, 0x54, 0x15, 0x0b, 0x07, 0x60, 0x2b, 0xad, 0xe9, 0x63, 0x6a, 0x91, 0x4e, 0x53, 0x2a, 0xc2, 0x1b, 0xe2, 0x94, 0x87, 0x39, 0xcf, 0xe5, 0x82, 0x05, 0x15, 0x62, 0xb3, 0x13, 0x16, 0xb8, 0x62, 0xc2, 0xb2, 0xc0, 0x8e, 0x47, 0x2d, 0x44, 0x3c, 0x07, 0x9b, 0x64, 0x46, 0x5c, 0xae, 0x8a, 0x7d, 0x4b, 0x2e, 0xfd, 0xae, 0xa8, 0xa4, 0x61, 0x89, 0xff, 0xb2, 0xc2, 0x8e, 0x4a, 0xd9, 0x7a, 0xff, 0xae, 0x83, 0x66, 0x3a, 0xb2, 0x3c, 0x05, 0xc0, 0x9c, 0xf7, 0x05, 0xa6, 0xc6, 0x96, 0xd7, 0xab, 0x34, 0x26, 0xe9, 0x20, 0x69, 0xbb, 0x4d, 0x4c, 0x0c, 0x65, 0x88, 0xe0, 0x8f, 0x41, 0x53, 0x0e, 0xb3, 0x52, 0xe1, 0x97, 0x5f, 0x5a, 0xe1, 0x37, 0xa3, 0x50, 0x6b, 0x8e, 0xe6, 0x04, 0x28, 0xe5, 0x82, 0x93, 0x6c, 0x62, 0xbe, 0x60, 0xb7, 0x82, 0xf9, 0x24, 0xca, 0x25, 0x0a, 0xac, 0xa2, 0x67, 0xa8, 0x51, 0x6e, 0x55, 0x96, 0x51, 0xd5, 0x94, 0xd6, 0x07, 0x4d, 0x39, 0x76, 0x12, 0x8b, 0x58, 0xf2, 0x25, 0xd4, 0x8d, 0x1b, 0x0a, 0xda, 0x1c, 0xcd, 0x1d, 0x28, 0xc5, 0x08, 0xe2, 0x78, 0x9e, 0x54, 0x53, 0x6d, 0x42, 0x1c, 0xbf, 0x62, 0xa4, 0xbc, 0x42, 0x79, 0x39, 0xf1, 0x67, 0xb6, 0x8b, 0xc5, 0x7f, 0x04, 0x52, 0xf0, 0x94, 0xf2, 0x9e, 0xa4, 0x66, 0x94, 0xc5, 0xc0, 0x87, 0xa0, 0xad, 0x4e, 0x91, 0x6a, 0xc7, 0xba, 0xac, 0x9d, 0x8e, 0x5a, 0xa4, 0x7d, 0x58, 0xf0, 0xa3, 0x85, 0x08, 0xf8, 0x3e, 0xd8, 0x9c, 0xe4, 0xe4, 0x07, 0x48, 0x8a, 0x1b, 0xa2, 0xbd, 0xe7, 0xb5, 0x27, 0x8f, 0x83, 0xbf, 0xae, 0x81, 0x3b, 0x81, 0x6b, 0xd2, 0xc0, 0xe5, 0xc4, 0x9a, 0x6f, 0x92, 0x58, 0x43, 0x6a, 0x31, 0xf9, 0x16, 0x5b, 0x07, 0xef, 0x94, 0x16, 0xd6, 0xd3, 0xf2, 0x98, 0xf8, 0xe5, 0x56, 0x38, 0x51, 0xd5, 0x4a, 0x50, 0x03, 0x75, 0x9f, 0x60, 0xeb, 0x42, 0x3e, 0xd8, 0xba, 0xd1, 0x14, 0x1d, 0x11, 0x09, 0x03, 0x8a, 0xed, 0xbd, 0x3f, 0xd4, 0xc0, 0x76, 0xe1, 0x1f, 0x94, 0xff, 0xff, 0x09, 0xb4, 0x37, 0x06, 0x0b, 0x1d, 0x0c, 0x7e, 0x04, 0xea, 0x7e, 0xe0, 0x90, 0xf9, 0xb3, 0x7d, 0xfb, 0x5a, 0xdd, 0x10, 0x05, 0x0e, 0x49, 0x67, 0x05, 0xf1, 0xc5, 0x50, 0x4c, 0xd3, 0xfb, 0x5b, 0x0d, 0xbc, 0x55, 0x84, 0x3f, 0x71, 0xbf, 0xf7, 0xcc, 0xe6, 0x87, 0xd4, 0x22, 0x0c, 0x91, 0x5f, 0x04, 0xb6, 0x2f, 0xa5, 0x44, 0x14, 0x89, 0x49, 0x5d, 0x8e, 0xc5, 0xb5, 0x7c, 0x84, 0x67, 0xf3, 0x01, 0x56, 0x16, 0xc9, 0x61, 0xd6, 0x81, 0xf2, 0x38, 0x38, 0x02, 0x0d, 0xea, 0x11, 0x1f, 0x8b, 0xc6, 0x11, 0x0f, 0xaf, 0xef, 0xcf, 0xd5, 0xfd, 0x89, 0xb2, 0x5f, 0x86, 0xda, 0xdd, 0x2b, 0xb6, 0x31, 0x87, 0xa1, 0x84, 0x08, 0xf6, 0xc0, 0xda, 0x39, 0x76, 0x02, 0x22, 0x66, 0x8c, 0x95, 0xfd, 0xba, 0x01, 0xc4, 0x7b, 0xfa, 0x91, 0xb4, 0x20, 0xe5, 0xe9, 0xfd, 0xb9, 0xf4, 0x70, 0x43, 0x6a, 0xa5, 0x0a, 0x36, 0xc4, 0x9c, 0x13, 0xdf, 0x85, 0x1f, 0xe6, 0x86, 0xf2, 0xf7, 0x0a, 0x43, 0xf9, 0xdd, 0x92, 0xd1, 0x3a, 0x4b, 0xf3, 0xbf, 0x9a, 0xd3, 0x7b, 0xcf, 0x97, 0xc1, 0x4e, 0x59, 0x36, 0xe1, 0x07, 0xb1, 0x56, 0x51, 0x57, 0xed, 0x78, 0x3f, 0xab, 0x55, 0xd4, 0xbd, 0x0c, 0xb5, 0xdb, 0xc5, 0xb8, 0xd8, 0x83, 0x54, 0x1c, 0x74, 0x41, 0x8b, 0xa6, 0x37, 0xac, 0x8a, 0xf4, 0x5b, 0xd7, 0xaa, 0xa7, 0xf2, 0x02, 0x89, 0x95, 0x2a, 0xeb, 0xcb, 0x2e, 0x00, 0x7f, 0x09, 0xb6, 0x69, 0xfe, 0xee, 0x65, 0xe6, 0xae, 0xbf, 0x66, 0x59, 0xde, 0x8c, 0x3b, 0xea, 0xdc, 0xdb, 0x05, 0x3f, 0x2a, 0x2e, 0xd6, 0xfb, 0x63, 0x0d, 0x54, 0x29, 0x0b, 0x1c, 0x66, 0x15, 0x5d, 0xbc, 0xac, 0xa6, 0x71, 0x90, 0x53, 0xf3, 0xcb, 0x50, 0x7b, 0xbd, 0xea, 0x67, 0x43, 0x91, 0x76, 0xa6, 0x3f, 0x7d, 0xfc, 0x30, 0x2b, 0xf9, 0x1f, 0x26, 0x92, 0xbf, 0x2c, 0xe9, 0xfa, 0xa9, 0xdc, 0x5f, 0x8f, 0x4b, 0x85, 0x1b, 0xdf, 0x78, 0xfe, 0xa2, 0xbb, 0xf4, 0xd9, 0x8b, 0xee, 0xd2, 0xe7, 0x2f, 0xba, 0x4b, 0xbf, 0x8a, 0xba, 0xb5, 0xe7, 0x51, 0xb7, 0xf6, 0x59, 0xd4, 0xad, 0x7d, 0x1e, 0x75, 0x6b, 0x7f, 0x8f, 0xba, 0xb5, 0xdf, 0xfe, 0xa3, 0xbb, 0xf4, 0xf1, 0xcd, 0x92, 0xdf, 0x71, 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0x43, 0xdf, 0xa6, 0x7c, 0xf6, 0x15, 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.TimeZone != nil { i -= len(*m.TimeZone) copy(dAtA[i:], *m.TimeZone) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.TimeZone))) i-- dAtA[i] = 0x42 } 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.LastSuccessfulTime != nil { { size, err := m.LastSuccessfulTime.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a } 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 *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.PodReplacementPolicy != nil { i -= len(*m.PodReplacementPolicy) copy(dAtA[i:], *m.PodReplacementPolicy) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PodReplacementPolicy))) i-- dAtA[i] = 0x72 } if m.MaxFailedIndexes != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.MaxFailedIndexes)) i-- dAtA[i] = 0x68 } if m.BackoffLimitPerIndex != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.BackoffLimitPerIndex)) i-- dAtA[i] = 0x60 } if m.PodFailurePolicy != nil { { size, err := m.PodFailurePolicy.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x5a } if m.Suspend != nil { i-- if *m.Suspend { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x50 } if m.CompletionMode != nil { i -= len(*m.CompletionMode) copy(dAtA[i:], *m.CompletionMode) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.CompletionMode))) i-- dAtA[i] = 0x4a } 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 if m.Terminating != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.Terminating)) i-- dAtA[i] = 0x58 } if m.FailedIndexes != nil { i -= len(*m.FailedIndexes) copy(dAtA[i:], *m.FailedIndexes) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailedIndexes))) i-- dAtA[i] = 0x52 } if m.Ready != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.Ready)) i-- dAtA[i] = 0x48 } if m.UncountedTerminatedPods != nil { { size, err := m.UncountedTerminatedPods.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x42 } i -= len(m.CompletedIndexes) copy(dAtA[i:], m.CompletedIndexes) i = encodeVarintGenerated(dAtA, i, uint64(len(m.CompletedIndexes))) i-- dAtA[i] = 0x3a 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 (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 (m *PodFailurePolicy) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PodFailurePolicy) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PodFailurePolicy) 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] = 0xa } } return len(dAtA) - i, nil } func (m *PodFailurePolicyOnExitCodesRequirement) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PodFailurePolicyOnExitCodesRequirement) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PodFailurePolicyOnExitCodesRequirement) 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 = encodeVarintGenerated(dAtA, i, uint64(m.Values[iNdEx])) i-- dAtA[i] = 0x18 } } i -= len(m.Operator) copy(dAtA[i:], m.Operator) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operator))) i-- dAtA[i] = 0x12 if m.ContainerName != nil { 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 *PodFailurePolicyOnPodConditionsPattern) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PodFailurePolicyOnPodConditionsPattern) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PodFailurePolicyOnPodConditionsPattern) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l 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 *PodFailurePolicyRule) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PodFailurePolicyRule) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PodFailurePolicyRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.OnPodConditions) > 0 { for iNdEx := len(m.OnPodConditions) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.OnPodConditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } } if m.OnExitCodes != nil { { size, err := m.OnExitCodes.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } i -= len(m.Action) copy(dAtA[i:], m.Action) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Action))) i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *UncountedTerminatedPods) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *UncountedTerminatedPods) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *UncountedTerminatedPods) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Failed) > 0 { for iNdEx := len(m.Failed) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Failed[iNdEx]) copy(dAtA[i:], m.Failed[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Failed[iNdEx]))) i-- dAtA[i] = 0x12 } } if len(m.Succeeded) > 0 { for iNdEx := len(m.Succeeded) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Succeeded[iNdEx]) copy(dAtA[i:], m.Succeeded[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Succeeded[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 *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)) } if m.TimeZone != nil { l = len(*m.TimeZone) n += 1 + l + sovGenerated(uint64(l)) } 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)) } if m.LastSuccessfulTime != nil { l = m.LastSuccessfulTime.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } 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)) } if m.CompletionMode != nil { l = len(*m.CompletionMode) n += 1 + l + sovGenerated(uint64(l)) } if m.Suspend != nil { n += 2 } if m.PodFailurePolicy != nil { l = m.PodFailurePolicy.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.BackoffLimitPerIndex != nil { n += 1 + sovGenerated(uint64(*m.BackoffLimitPerIndex)) } if m.MaxFailedIndexes != nil { n += 1 + sovGenerated(uint64(*m.MaxFailedIndexes)) } if m.PodReplacementPolicy != nil { l = len(*m.PodReplacementPolicy) n += 1 + l + sovGenerated(uint64(l)) } 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)) l = len(m.CompletedIndexes) n += 1 + l + sovGenerated(uint64(l)) if m.UncountedTerminatedPods != nil { l = m.UncountedTerminatedPods.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.Ready != nil { n += 1 + sovGenerated(uint64(*m.Ready)) } if m.FailedIndexes != nil { l = len(*m.FailedIndexes) n += 1 + l + sovGenerated(uint64(l)) } if m.Terminating != nil { n += 1 + sovGenerated(uint64(*m.Terminating)) } 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 (m *PodFailurePolicy) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Rules) > 0 { for _, e := range m.Rules { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *PodFailurePolicyOnExitCodesRequirement) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.ContainerName != nil { l = len(*m.ContainerName) n += 1 + l + sovGenerated(uint64(l)) } l = len(m.Operator) n += 1 + l + sovGenerated(uint64(l)) if len(m.Values) > 0 { for _, e := range m.Values { n += 1 + sovGenerated(uint64(e)) } } return n } func (m *PodFailurePolicyOnPodConditionsPattern) 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)) return n } func (m *PodFailurePolicyRule) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Action) n += 1 + l + sovGenerated(uint64(l)) if m.OnExitCodes != nil { l = m.OnExitCodes.Size() n += 1 + l + sovGenerated(uint64(l)) } if len(m.OnPodConditions) > 0 { for _, e := range m.OnPodConditions { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *UncountedTerminatedPods) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Succeeded) > 0 { for _, s := range m.Succeeded { l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } if len(m.Failed) > 0 { for _, s := range m.Failed { 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 *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) + `,`, `TimeZone:` + valueToStringGenerated(this.TimeZone) + `,`, `}`, }, "") 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) + `,`, `LastSuccessfulTime:` + strings.Replace(fmt.Sprintf("%v", this.LastSuccessfulTime), "Time", "v1.Time", 1) + `,`, `}`, }, "") return s } 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) + `,`, `CompletionMode:` + valueToStringGenerated(this.CompletionMode) + `,`, `Suspend:` + valueToStringGenerated(this.Suspend) + `,`, `PodFailurePolicy:` + strings.Replace(this.PodFailurePolicy.String(), "PodFailurePolicy", "PodFailurePolicy", 1) + `,`, `BackoffLimitPerIndex:` + valueToStringGenerated(this.BackoffLimitPerIndex) + `,`, `MaxFailedIndexes:` + valueToStringGenerated(this.MaxFailedIndexes) + `,`, `PodReplacementPolicy:` + valueToStringGenerated(this.PodReplacementPolicy) + `,`, `}`, }, "") 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) + `,`, `CompletedIndexes:` + fmt.Sprintf("%v", this.CompletedIndexes) + `,`, `UncountedTerminatedPods:` + strings.Replace(this.UncountedTerminatedPods.String(), "UncountedTerminatedPods", "UncountedTerminatedPods", 1) + `,`, `Ready:` + valueToStringGenerated(this.Ready) + `,`, `FailedIndexes:` + valueToStringGenerated(this.FailedIndexes) + `,`, `Terminating:` + valueToStringGenerated(this.Terminating) + `,`, `}`, }, "") 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(this.Spec.String(), "JobSpec", "JobSpec", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *PodFailurePolicy) String() string { if this == nil { return "nil" } repeatedStringForRules := "[]PodFailurePolicyRule{" for _, f := range this.Rules { repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "PodFailurePolicyRule", "PodFailurePolicyRule", 1), `&`, ``, 1) + "," } repeatedStringForRules += "}" s := strings.Join([]string{`&PodFailurePolicy{`, `Rules:` + repeatedStringForRules + `,`, `}`, }, "") return s } func (this *PodFailurePolicyOnExitCodesRequirement) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PodFailurePolicyOnExitCodesRequirement{`, `ContainerName:` + valueToStringGenerated(this.ContainerName) + `,`, `Operator:` + fmt.Sprintf("%v", this.Operator) + `,`, `Values:` + fmt.Sprintf("%v", this.Values) + `,`, `}`, }, "") return s } func (this *PodFailurePolicyOnPodConditionsPattern) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PodFailurePolicyOnPodConditionsPattern{`, `Type:` + fmt.Sprintf("%v", this.Type) + `,`, `Status:` + fmt.Sprintf("%v", this.Status) + `,`, `}`, }, "") return s } func (this *PodFailurePolicyRule) String() string { if this == nil { return "nil" } repeatedStringForOnPodConditions := "[]PodFailurePolicyOnPodConditionsPattern{" for _, f := range this.OnPodConditions { repeatedStringForOnPodConditions += strings.Replace(strings.Replace(f.String(), "PodFailurePolicyOnPodConditionsPattern", "PodFailurePolicyOnPodConditionsPattern", 1), `&`, ``, 1) + "," } repeatedStringForOnPodConditions += "}" s := strings.Join([]string{`&PodFailurePolicyRule{`, `Action:` + fmt.Sprintf("%v", this.Action) + `,`, `OnExitCodes:` + strings.Replace(this.OnExitCodes.String(), "PodFailurePolicyOnExitCodesRequirement", "PodFailurePolicyOnExitCodesRequirement", 1) + `,`, `OnPodConditions:` + repeatedStringForOnPodConditions + `,`, `}`, }, "") return s } func (this *UncountedTerminatedPods) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&UncountedTerminatedPods{`, `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 *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) || (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) || (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 case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TimeZone", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.TimeZone = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field LastSuccessfulTime", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.LastSuccessfulTime == nil { m.LastSuccessfulTime = &v1.Time{} } if err := m.LastSuccessfulTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } 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) || (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) || (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) || (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 case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CompletionMode", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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 := CompletionMode(dAtA[iNdEx:postIndex]) m.CompletionMode = &s iNdEx = postIndex case 10: 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 11: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PodFailurePolicy", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.PodFailurePolicy == nil { m.PodFailurePolicy = &PodFailurePolicy{} } if err := m.PodFailurePolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 12: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field BackoffLimitPerIndex", 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.BackoffLimitPerIndex = &v case 13: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field MaxFailedIndexes", 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.MaxFailedIndexes = &v case 14: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PodReplacementPolicy", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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 := PodReplacementPolicy(dAtA[iNdEx:postIndex]) m.PodReplacementPolicy = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 } } case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CompletedIndexes", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.CompletedIndexes = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field UncountedTerminatedPods", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.UncountedTerminatedPods == nil { m.UncountedTerminatedPods = &UncountedTerminatedPods{} } if err := m.UncountedTerminatedPods.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 9: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Ready", 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.Ready = &v case 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field FailedIndexes", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.FailedIndexes = &s iNdEx = postIndex case 11: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Terminating", 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.Terminating = &v default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PodFailurePolicy) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PodFailurePolicy: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PodFailurePolicy: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: 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, PodFailurePolicyRule{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PodFailurePolicyOnExitCodesRequirement) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PodFailurePolicyOnExitCodesRequirement: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PodFailurePolicyOnExitCodesRequirement: 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 } s := string(dAtA[iNdEx:postIndex]) m.ContainerName = &s 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 = PodFailurePolicyOnExitCodesOperator(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: 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.Values = append(m.Values, 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.Values) == 0 { m.Values = 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.Values = append(m.Values, v) } } else { return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) } default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PodFailurePolicyOnPodConditionsPattern) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PodFailurePolicyOnPodConditionsPattern: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PodFailurePolicyOnPodConditionsPattern: 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 = k8s_io_api_core_v1.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 = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PodFailurePolicyRule) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PodFailurePolicyRule: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PodFailurePolicyRule: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: 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 = PodFailurePolicyAction(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field OnExitCodes", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.OnExitCodes == nil { m.OnExitCodes = &PodFailurePolicyOnExitCodesRequirement{} } if err := m.OnExitCodes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field OnPodConditions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.OnPodConditions = append(m.OnPodConditions, PodFailurePolicyOnPodConditionsPattern{}) if err := m.OnPodConditions[len(m.OnPodConditions)-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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *UncountedTerminatedPods) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: UncountedTerminatedPods: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: UncountedTerminatedPods: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Succeeded", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Succeeded = append(m.Succeeded, 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 Failed", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Failed = append(m.Failed, 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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/batch/v1/generated.proto000066400000000000000000000604171453636404600210000ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/batch/v1"; // 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; // The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. // If not specified, this will default to the time zone of the kube-controller-manager process. // The set of valid time zone names and the time zone offset is loaded from the system-wide time zone // database by the API server during CronJob validation and the controller manager during execution. // If no system-wide time zone database can be found a bundled version of the database is used instead. // If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host // configuration, the controller will stop creating new new Jobs and will create a system event with the // reason UnknownTimeZone. // More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones // +optional optional string timeZone = 8; // 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. Value must be non-negative integer. // Defaults to 3. // +optional optional int32 successfulJobsHistoryLimit = 6; // The number of failed finished jobs to retain. Value must be non-negative integer. // 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 // +listType=atomic 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; // Information when was the last time the job successfully completed. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastSuccessfulTime = 5; } // 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 null 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 continuously active before the system tries to terminate it; value // must be positive integer. If a Job is suspended (at creation or through an // update), this timer will effectively be stopped and reset when the Job is // resumed again. // +optional optional int64 activeDeadlineSeconds = 3; // Specifies the policy of handling failed pods. In particular, it allows to // specify the set of actions and conditions which need to be // satisfied to take the associated action. // If empty, the default behaviour applies - the counter of failed pods, // represented by the jobs's .status.failed field, is incremented and it is // checked against the backoffLimit. This field cannot be used in combination // with restartPolicy=OnFailure. // // This field is beta-level. It can be used when the `JobPodFailurePolicy` // feature gate is enabled (enabled by default). // +optional optional PodFailurePolicy podFailurePolicy = 11; // Specifies the number of retries before marking this job failed. // Defaults to 6 // +optional optional int32 backoffLimit = 7; // Specifies the limit for the number of retries within an // index before marking this index as failed. When enabled the number of // failures per index is kept in the pod's // batch.kubernetes.io/job-index-failure-count annotation. It can only // be set when Job's completionMode=Indexed, and the Pod's restart // policy is Never. The field is immutable. // This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` // feature gate is enabled (enabled by default). // +optional optional int32 backoffLimitPerIndex = 12; // Specifies the maximal number of failed indexes before marking the Job as // failed, when backoffLimitPerIndex is set. Once the number of failed // indexes exceeds this number the entire Job is marked as Failed and its // execution is terminated. When left as null the job continues execution of // all of its indexes and is marked with the `Complete` Job condition. // It can only be specified when backoffLimitPerIndex is set. // It can be null or up to completions. It is required and must be // less than or equal to 10^4 when is completions greater than 10^5. // This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` // feature gate is enabled (enabled by default). // +optional optional int32 maxFailedIndexes = 13; // 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. // The only allowed template.spec.restartPolicy values are "Never" or "OnFailure". // 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. // +optional optional int32 ttlSecondsAfterFinished = 8; // completionMode specifies how Pod completions are tracked. It can be // `NonIndexed` (default) or `Indexed`. // // `NonIndexed` means that the Job is considered complete when there have // been .spec.completions successfully completed Pods. Each Pod completion is // homologous to each other. // // `Indexed` means that the Pods of a // Job get an associated completion index from 0 to (.spec.completions - 1), // available in the annotation batch.kubernetes.io/job-completion-index. // The Job is considered complete when there is one successfully completed Pod // for each index. // When value is `Indexed`, .spec.completions must be specified and // `.spec.parallelism` must be less than or equal to 10^5. // In addition, The Pod name takes the form // `$(job-name)-$(index)-$(random-string)`, // the Pod hostname takes the form `$(job-name)-$(index)`. // // More completion modes can be added in the future. // If the Job controller observes a mode that it doesn't recognize, which // is possible during upgrades due to version skew, the controller // skips updates for the Job. // +optional optional string completionMode = 9; // suspend specifies whether the Job controller should create Pods or not. If // a Job is created with suspend set to true, no Pods are created by the Job // controller. If a Job is suspended after creation (i.e. the flag goes from // false to true), the Job controller will delete all active Pods associated // with this Job. Users must design their workload to gracefully handle this. // Suspending a Job will reset the StartTime field of the Job, effectively // resetting the ActiveDeadlineSeconds timer too. Defaults to false. // // +optional optional bool suspend = 10; // podReplacementPolicy specifies when to create replacement Pods. // Possible values are: // - TerminatingOrFailed means that we recreate pods // when they are terminating (has a metadata.deletionTimestamp) or failed. // - Failed means to wait until a previously created Pod is fully terminated (has phase // Failed or Succeeded) before creating a replacement Pod. // // When using podFailurePolicy, Failed is the the only allowed value. // TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. // This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. // This is on by default. // +optional optional string podReplacementPolicy = 14; } // JobStatus represents the current state of a Job. message JobStatus { // The latest available observations of an object's current state. When a Job // fails, one of the conditions will have type "Failed" and status true. When // a Job is suspended, one of the conditions will have type "Suspended" and // status true; when the Job is resumed, the status of this condition will // become false. When a Job is completed, one of the conditions will have // type "Complete" and status true. // More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ // +optional // +patchMergeKey=type // +patchStrategy=merge // +listType=atomic repeated JobCondition conditions = 1; // Represents time when the job controller started processing a job. When a // Job is created in the suspended state, this field is not set until the // first time it is resumed. This field is reset every time a Job is resumed // from suspension. 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. // The completion time is only set when the job finishes successfully. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.Time completionTime = 3; // The number of pending and 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; // The number of pods which are terminating (in phase Pending or Running // and have a deletionTimestamp). // // This field is beta-level. The job controller populates the field when // the feature gate JobPodReplacementPolicy is enabled (enabled by default). // +optional optional int32 terminating = 11; // completedIndexes holds the completed indexes when .spec.completionMode = // "Indexed" in a text format. The indexes are represented as decimal integers // separated by commas. The numbers are listed in increasing order. Three or // more consecutive numbers are compressed and represented by the first and // last element of the series, separated by a hyphen. // For example, if the completed indexes are 1, 3, 4, 5 and 7, they are // represented as "1,3-5,7". // +optional optional string completedIndexes = 7; // FailedIndexes holds the failed indexes when backoffLimitPerIndex=true. // The indexes are represented in the text format analogous as for the // `completedIndexes` field, ie. they are kept as decimal integers // separated by commas. The numbers are listed in increasing order. Three or // more consecutive numbers are compressed and represented by the first and // last element of the series, separated by a hyphen. // For example, if the failed indexes are 1, 3, 4, 5 and 7, they are // represented as "1,3-5,7". // This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` // feature gate is enabled (enabled by default). // +optional optional string failedIndexes = 10; // uncountedTerminatedPods holds the UIDs of Pods that have terminated but // the job controller hasn't yet accounted for in the status counters. // // The job controller creates pods with a finalizer. When a pod terminates // (succeeded or failed), the controller does three steps to account for it // in the job status: // // 1. Add the pod UID to the arrays in this field. // 2. Remove the pod finalizer. // 3. Remove the pod UID from the arrays while increasing the corresponding // counter. // // Old jobs might not be tracked using this field, in which case the field // remains null. // +optional optional UncountedTerminatedPods uncountedTerminatedPods = 8; // The number of pods which have a Ready condition. // +optional optional int32 ready = 9; } // 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 JobSpec spec = 2; } // PodFailurePolicy describes how failed pods influence the backoffLimit. message PodFailurePolicy { // A list of pod failure policy rules. The rules are evaluated in order. // Once a rule matches a Pod failure, the remaining of the rules are ignored. // When no rule matches the Pod failure, the default handling applies - the // counter of pod failures is incremented and it is checked against // the backoffLimit. At most 20 elements are allowed. // +listType=atomic repeated PodFailurePolicyRule rules = 1; } // PodFailurePolicyOnExitCodesRequirement describes the requirement for handling // a failed pod based on its container exit codes. In particular, it lookups the // .state.terminated.exitCode for each app container and init container status, // represented by the .status.containerStatuses and .status.initContainerStatuses // fields in the Pod status, respectively. Containers completed with success // (exit code 0) are excluded from the requirement check. message PodFailurePolicyOnExitCodesRequirement { // Restricts the check for exit codes to the container with the // specified name. When null, the rule applies to all containers. // When specified, it should match one the container or initContainer // names in the pod template. // +optional optional string containerName = 1; // Represents the relationship between the container exit code(s) and the // specified values. Containers completed with success (exit code 0) are // excluded from the requirement check. Possible values are: // // - In: the requirement is satisfied if at least one container exit code // (might be multiple if there are multiple containers not restricted // by the 'containerName' field) is in the set of specified values. // - NotIn: the requirement is satisfied if at least one container exit code // (might be multiple if there are multiple containers not restricted // by the 'containerName' field) is not in the set of specified values. // Additional values are considered to be added in the future. Clients should // react to an unknown operator by assuming the requirement is not satisfied. optional string operator = 2; // Specifies the set of values. Each returned container exit code (might be // multiple in case of multiple containers) is checked against this set of // values with respect to the operator. The list of values must be ordered // and must not contain duplicates. Value '0' cannot be used for the In operator. // At least one element is required. At most 255 elements are allowed. // +listType=set repeated int32 values = 3; } // PodFailurePolicyOnPodConditionsPattern describes a pattern for matching // an actual pod condition type. message PodFailurePolicyOnPodConditionsPattern { // Specifies the required Pod condition type. To match a pod condition // it is required that specified type equals the pod condition type. optional string type = 1; // Specifies the required Pod condition status. To match a pod condition // it is required that the specified status equals the pod condition status. // Defaults to True. optional string status = 2; } // PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. // One of onExitCodes and onPodConditions, but not both, can be used in each rule. message PodFailurePolicyRule { // Specifies the action taken on a pod failure when the requirements are satisfied. // Possible values are: // // - FailJob: indicates that the pod's job is marked as Failed and all // running pods are terminated. // - FailIndex: indicates that the pod's index is marked as Failed and will // not be restarted. // This value is beta-level. It can be used when the // `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). // - Ignore: indicates that the counter towards the .backoffLimit is not // incremented and a replacement pod is created. // - Count: indicates that the pod is handled in the default way - the // counter towards the .backoffLimit is incremented. // Additional values are considered to be added in the future. Clients should // react to an unknown action by skipping the rule. optional string action = 1; // Represents the requirement on the container exit codes. // +optional optional PodFailurePolicyOnExitCodesRequirement onExitCodes = 2; // Represents the requirement on the pod conditions. The requirement is represented // as a list of pod condition patterns. The requirement is satisfied if at // least one pattern matches an actual pod condition. At most 20 elements are allowed. // +listType=atomic // +optional repeated PodFailurePolicyOnPodConditionsPattern onPodConditions = 3; } // UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't // been accounted in Job status counters. message UncountedTerminatedPods { // succeeded holds UIDs of succeeded Pods. // +listType=set // +optional repeated string succeeded = 1; // failed holds UIDs of failed Pods. // +listType=set // +optional repeated string failed = 2; } golang-k8s-api-0.29.0/batch/v1/register.go000066400000000000000000000033061453636404600201220ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Job{}, &JobList{}, &CronJob{}, &CronJobList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/batch/v1/types.go000066400000000000000000001055151453636404600174470ustar00rootroot00000000000000/* 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 ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" ) const ( // All Kubernetes labels need to be prefixed with Kubernetes to distinguish them from end-user labels // More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#label-selector-and-annotation-conventions labelPrefix = "batch.kubernetes.io/" // CronJobScheduledTimestampAnnotation is the scheduled timestamp annotation for the Job. // It records the original/expected scheduled timestamp for the running job, represented in RFC3339. // The CronJob controller adds this annotation if the CronJobsScheduledAnnotation feature gate (beta in 1.28) is enabled. CronJobScheduledTimestampAnnotation = labelPrefix + "cronjob-scheduled-timestamp" JobCompletionIndexAnnotation = labelPrefix + "job-completion-index" // JobTrackingFinalizer is a finalizer for Job's pods. It prevents them from // being deleted before being accounted in the Job status. // // Additionally, the apiserver and job controller use this string as a Job // annotation, to mark Jobs that are being tracked using pod finalizers. // However, this behavior is deprecated in kubernetes 1.26. This means that, in // 1.27+, one release after JobTrackingWithFinalizers graduates to GA, the // apiserver and job controller will ignore this annotation and they will // always track jobs using finalizers. JobTrackingFinalizer = labelPrefix + "job-tracking" // The Job labels will use batch.kubernetes.io as a prefix for all labels // Historically the job controller uses unprefixed labels for job-name and controller-uid and // Kubernetes continutes to recognize those unprefixed labels for consistency. JobNameLabel = labelPrefix + "job-name" // ControllerUid is used to programatically get pods corresponding to a Job. // There is a corresponding label without the batch.kubernetes.io that we support for legacy reasons. ControllerUidLabel = labelPrefix + "controller-uid" // Annotation indicating the number of failures for the index corresponding // to the pod, which are counted towards the backoff limit. JobIndexFailureCountAnnotation = labelPrefix + "job-index-failure-count" // Annotation indicating the number of failures for the index corresponding // to the pod, which don't count towards the backoff limit, according to the // pod failure policy. When the annotation is absent zero is implied. JobIndexIgnoredFailureCountAnnotation = labelPrefix + "job-index-ignored-failure-count" ) // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/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=k8s.io/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"` } // CompletionMode specifies how Pod completions of a Job are tracked. // +enum type CompletionMode string const ( // NonIndexedCompletion is a Job completion mode. In this mode, the Job is // considered complete when there have been .spec.completions // successfully completed Pods. Pod completions are homologous to each other. NonIndexedCompletion CompletionMode = "NonIndexed" // IndexedCompletion is a Job completion mode. In this mode, the Pods of a // Job get an associated completion index from 0 to (.spec.completions - 1). // The Job is considered complete when a Pod completes for each completion // index. IndexedCompletion CompletionMode = "Indexed" ) // PodFailurePolicyAction specifies how a Pod failure is handled. // +enum type PodFailurePolicyAction string const ( // This is an action which might be taken on a pod failure - mark the // pod's job as Failed and terminate all running pods. PodFailurePolicyActionFailJob PodFailurePolicyAction = "FailJob" // This is an action which might be taken on a pod failure - mark the // Job's index as failed to avoid restarts within this index. This action // can only be used when backoffLimitPerIndex is set. // This value is beta-level. PodFailurePolicyActionFailIndex PodFailurePolicyAction = "FailIndex" // This is an action which might be taken on a pod failure - the counter towards // .backoffLimit, represented by the job's .status.failed field, is not // incremented and a replacement pod is created. PodFailurePolicyActionIgnore PodFailurePolicyAction = "Ignore" // This is an action which might be taken on a pod failure - the pod failure // is handled in the default way - the counter towards .backoffLimit, // represented by the job's .status.failed field, is incremented. PodFailurePolicyActionCount PodFailurePolicyAction = "Count" ) // +enum type PodFailurePolicyOnExitCodesOperator string const ( PodFailurePolicyOnExitCodesOpIn PodFailurePolicyOnExitCodesOperator = "In" PodFailurePolicyOnExitCodesOpNotIn PodFailurePolicyOnExitCodesOperator = "NotIn" ) // PodReplacementPolicy specifies the policy for creating pod replacements. // +enum type PodReplacementPolicy string const ( // TerminatingOrFailed means that we recreate pods // when they are terminating (has a metadata.deletionTimestamp) or failed. TerminatingOrFailed PodReplacementPolicy = "TerminatingOrFailed" // Failed means to wait until a previously created Pod is fully terminated (has phase // Failed or Succeeded) before creating a replacement Pod. Failed PodReplacementPolicy = "Failed" ) // PodFailurePolicyOnExitCodesRequirement describes the requirement for handling // a failed pod based on its container exit codes. In particular, it lookups the // .state.terminated.exitCode for each app container and init container status, // represented by the .status.containerStatuses and .status.initContainerStatuses // fields in the Pod status, respectively. Containers completed with success // (exit code 0) are excluded from the requirement check. type PodFailurePolicyOnExitCodesRequirement struct { // Restricts the check for exit codes to the container with the // specified name. When null, the rule applies to all containers. // When specified, it should match one the container or initContainer // names in the pod template. // +optional ContainerName *string `json:"containerName" protobuf:"bytes,1,opt,name=containerName"` // Represents the relationship between the container exit code(s) and the // specified values. Containers completed with success (exit code 0) are // excluded from the requirement check. Possible values are: // // - In: the requirement is satisfied if at least one container exit code // (might be multiple if there are multiple containers not restricted // by the 'containerName' field) is in the set of specified values. // - NotIn: the requirement is satisfied if at least one container exit code // (might be multiple if there are multiple containers not restricted // by the 'containerName' field) is not in the set of specified values. // Additional values are considered to be added in the future. Clients should // react to an unknown operator by assuming the requirement is not satisfied. Operator PodFailurePolicyOnExitCodesOperator `json:"operator" protobuf:"bytes,2,req,name=operator"` // Specifies the set of values. Each returned container exit code (might be // multiple in case of multiple containers) is checked against this set of // values with respect to the operator. The list of values must be ordered // and must not contain duplicates. Value '0' cannot be used for the In operator. // At least one element is required. At most 255 elements are allowed. // +listType=set Values []int32 `json:"values" protobuf:"varint,3,rep,name=values"` } // PodFailurePolicyOnPodConditionsPattern describes a pattern for matching // an actual pod condition type. type PodFailurePolicyOnPodConditionsPattern struct { // Specifies the required Pod condition type. To match a pod condition // it is required that specified type equals the pod condition type. Type corev1.PodConditionType `json:"type" protobuf:"bytes,1,req,name=type"` // Specifies the required Pod condition status. To match a pod condition // it is required that the specified status equals the pod condition status. // Defaults to True. Status corev1.ConditionStatus `json:"status" protobuf:"bytes,2,req,name=status"` } // PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. // One of onExitCodes and onPodConditions, but not both, can be used in each rule. type PodFailurePolicyRule struct { // Specifies the action taken on a pod failure when the requirements are satisfied. // Possible values are: // // - FailJob: indicates that the pod's job is marked as Failed and all // running pods are terminated. // - FailIndex: indicates that the pod's index is marked as Failed and will // not be restarted. // This value is beta-level. It can be used when the // `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). // - Ignore: indicates that the counter towards the .backoffLimit is not // incremented and a replacement pod is created. // - Count: indicates that the pod is handled in the default way - the // counter towards the .backoffLimit is incremented. // Additional values are considered to be added in the future. Clients should // react to an unknown action by skipping the rule. Action PodFailurePolicyAction `json:"action" protobuf:"bytes,1,req,name=action"` // Represents the requirement on the container exit codes. // +optional OnExitCodes *PodFailurePolicyOnExitCodesRequirement `json:"onExitCodes" protobuf:"bytes,2,opt,name=onExitCodes"` // Represents the requirement on the pod conditions. The requirement is represented // as a list of pod condition patterns. The requirement is satisfied if at // least one pattern matches an actual pod condition. At most 20 elements are allowed. // +listType=atomic // +optional OnPodConditions []PodFailurePolicyOnPodConditionsPattern `json:"onPodConditions" protobuf:"bytes,3,opt,name=onPodConditions"` } // PodFailurePolicy describes how failed pods influence the backoffLimit. type PodFailurePolicy struct { // A list of pod failure policy rules. The rules are evaluated in order. // Once a rule matches a Pod failure, the remaining of the rules are ignored. // When no rule matches the Pod failure, the default handling applies - the // counter of pod failures is incremented and it is checked against // the backoffLimit. At most 20 elements are allowed. // +listType=atomic Rules []PodFailurePolicyRule `json:"rules" protobuf:"bytes,1,opt,name=rules"` } // 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 null 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 continuously active before the system tries to terminate it; value // must be positive integer. If a Job is suspended (at creation or through an // update), this timer will effectively be stopped and reset when the Job is // resumed again. // +optional ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" protobuf:"varint,3,opt,name=activeDeadlineSeconds"` // Specifies the policy of handling failed pods. In particular, it allows to // specify the set of actions and conditions which need to be // satisfied to take the associated action. // If empty, the default behaviour applies - the counter of failed pods, // represented by the jobs's .status.failed field, is incremented and it is // checked against the backoffLimit. This field cannot be used in combination // with restartPolicy=OnFailure. // // This field is beta-level. It can be used when the `JobPodFailurePolicy` // feature gate is enabled (enabled by default). // +optional PodFailurePolicy *PodFailurePolicy `json:"podFailurePolicy,omitempty" protobuf:"bytes,11,opt,name=podFailurePolicy"` // 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"` // Specifies the limit for the number of retries within an // index before marking this index as failed. When enabled the number of // failures per index is kept in the pod's // batch.kubernetes.io/job-index-failure-count annotation. It can only // be set when Job's completionMode=Indexed, and the Pod's restart // policy is Never. The field is immutable. // This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` // feature gate is enabled (enabled by default). // +optional BackoffLimitPerIndex *int32 `json:"backoffLimitPerIndex,omitempty" protobuf:"varint,12,opt,name=backoffLimitPerIndex"` // Specifies the maximal number of failed indexes before marking the Job as // failed, when backoffLimitPerIndex is set. Once the number of failed // indexes exceeds this number the entire Job is marked as Failed and its // execution is terminated. When left as null the job continues execution of // all of its indexes and is marked with the `Complete` Job condition. // It can only be specified when backoffLimitPerIndex is set. // It can be null or up to completions. It is required and must be // less than or equal to 10^4 when is completions greater than 10^5. // This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` // feature gate is enabled (enabled by default). // +optional MaxFailedIndexes *int32 `json:"maxFailedIndexes,omitempty" protobuf:"varint,13,opt,name=maxFailedIndexes"` // 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. // The only allowed template.spec.restartPolicy values are "Never" or "OnFailure". // More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ Template corev1.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. // +optional TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty" protobuf:"varint,8,opt,name=ttlSecondsAfterFinished"` // completionMode specifies how Pod completions are tracked. It can be // `NonIndexed` (default) or `Indexed`. // // `NonIndexed` means that the Job is considered complete when there have // been .spec.completions successfully completed Pods. Each Pod completion is // homologous to each other. // // `Indexed` means that the Pods of a // Job get an associated completion index from 0 to (.spec.completions - 1), // available in the annotation batch.kubernetes.io/job-completion-index. // The Job is considered complete when there is one successfully completed Pod // for each index. // When value is `Indexed`, .spec.completions must be specified and // `.spec.parallelism` must be less than or equal to 10^5. // In addition, The Pod name takes the form // `$(job-name)-$(index)-$(random-string)`, // the Pod hostname takes the form `$(job-name)-$(index)`. // // More completion modes can be added in the future. // If the Job controller observes a mode that it doesn't recognize, which // is possible during upgrades due to version skew, the controller // skips updates for the Job. // +optional CompletionMode *CompletionMode `json:"completionMode,omitempty" protobuf:"bytes,9,opt,name=completionMode,casttype=CompletionMode"` // suspend specifies whether the Job controller should create Pods or not. If // a Job is created with suspend set to true, no Pods are created by the Job // controller. If a Job is suspended after creation (i.e. the flag goes from // false to true), the Job controller will delete all active Pods associated // with this Job. Users must design their workload to gracefully handle this. // Suspending a Job will reset the StartTime field of the Job, effectively // resetting the ActiveDeadlineSeconds timer too. Defaults to false. // // +optional Suspend *bool `json:"suspend,omitempty" protobuf:"varint,10,opt,name=suspend"` // podReplacementPolicy specifies when to create replacement Pods. // Possible values are: // - TerminatingOrFailed means that we recreate pods // when they are terminating (has a metadata.deletionTimestamp) or failed. // - Failed means to wait until a previously created Pod is fully terminated (has phase // Failed or Succeeded) before creating a replacement Pod. // // When using podFailurePolicy, Failed is the the only allowed value. // TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. // This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. // This is on by default. // +optional PodReplacementPolicy *PodReplacementPolicy `json:"podReplacementPolicy,omitempty" protobuf:"bytes,14,opt,name=podReplacementPolicy,casttype=podReplacementPolicy"` } // JobStatus represents the current state of a Job. type JobStatus struct { // The latest available observations of an object's current state. When a Job // fails, one of the conditions will have type "Failed" and status true. When // a Job is suspended, one of the conditions will have type "Suspended" and // status true; when the Job is resumed, the status of this condition will // become false. When a Job is completed, one of the conditions will have // type "Complete" and status true. // More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ // +optional // +patchMergeKey=type // +patchStrategy=merge // +listType=atomic Conditions []JobCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` // Represents time when the job controller started processing a job. When a // Job is created in the suspended state, this field is not set until the // first time it is resumed. This field is reset every time a Job is resumed // from suspension. 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. // The completion time is only set when the job finishes successfully. // +optional CompletionTime *metav1.Time `json:"completionTime,omitempty" protobuf:"bytes,3,opt,name=completionTime"` // The number of pending and 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"` // The number of pods which are terminating (in phase Pending or Running // and have a deletionTimestamp). // // This field is beta-level. The job controller populates the field when // the feature gate JobPodReplacementPolicy is enabled (enabled by default). // +optional Terminating *int32 `json:"terminating,omitempty" protobuf:"varint,11,opt,name=terminating"` // completedIndexes holds the completed indexes when .spec.completionMode = // "Indexed" in a text format. The indexes are represented as decimal integers // separated by commas. The numbers are listed in increasing order. Three or // more consecutive numbers are compressed and represented by the first and // last element of the series, separated by a hyphen. // For example, if the completed indexes are 1, 3, 4, 5 and 7, they are // represented as "1,3-5,7". // +optional CompletedIndexes string `json:"completedIndexes,omitempty" protobuf:"bytes,7,opt,name=completedIndexes"` // FailedIndexes holds the failed indexes when backoffLimitPerIndex=true. // The indexes are represented in the text format analogous as for the // `completedIndexes` field, ie. they are kept as decimal integers // separated by commas. The numbers are listed in increasing order. Three or // more consecutive numbers are compressed and represented by the first and // last element of the series, separated by a hyphen. // For example, if the failed indexes are 1, 3, 4, 5 and 7, they are // represented as "1,3-5,7". // This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` // feature gate is enabled (enabled by default). // +optional FailedIndexes *string `json:"failedIndexes,omitempty" protobuf:"bytes,10,opt,name=failedIndexes"` // uncountedTerminatedPods holds the UIDs of Pods that have terminated but // the job controller hasn't yet accounted for in the status counters. // // The job controller creates pods with a finalizer. When a pod terminates // (succeeded or failed), the controller does three steps to account for it // in the job status: // // 1. Add the pod UID to the arrays in this field. // 2. Remove the pod finalizer. // 3. Remove the pod UID from the arrays while increasing the corresponding // counter. // // Old jobs might not be tracked using this field, in which case the field // remains null. // +optional UncountedTerminatedPods *UncountedTerminatedPods `json:"uncountedTerminatedPods,omitempty" protobuf:"bytes,8,opt,name=uncountedTerminatedPods"` // The number of pods which have a Ready condition. // +optional Ready *int32 `json:"ready,omitempty" protobuf:"varint,9,opt,name=ready"` } // UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't // been accounted in Job status counters. type UncountedTerminatedPods struct { // succeeded holds UIDs of succeeded Pods. // +listType=set // +optional Succeeded []types.UID `json:"succeeded,omitempty" protobuf:"bytes,1,rep,name=succeeded,casttype=k8s.io/apimachinery/pkg/types.UID"` // failed holds UIDs of failed Pods. // +listType=set // +optional Failed []types.UID `json:"failed,omitempty" protobuf:"bytes,2,rep,name=failed,casttype=k8s.io/apimachinery/pkg/types.UID"` } type JobConditionType string // These are built-in conditions of a job. const ( // JobSuspended means the job has been suspended. JobSuspended JobConditionType = "Suspended" // JobComplete means the job has completed its execution. JobComplete JobConditionType = "Complete" // JobFailed means the job has failed its execution. JobFailed JobConditionType = "Failed" // FailureTarget means the job is about to fail its execution. JobFailureTarget JobConditionType = "FailureTarget" ) const ( // JobReasonPodFailurePolicy reason indicates a job failure condition is added due to // a failed pod matching a pod failure policy rule // https://kep.k8s.io/3329 // This is currently a beta field. JobReasonPodFailurePolicy string = "PodFailurePolicy" // JobReasonBackOffLimitExceeded reason indicates that pods within a job have failed a number of // times higher than backOffLimit times. JobReasonBackoffLimitExceeded string = "BackoffLimitExceeded" // JobReasponDeadlineExceeded means job duration is past ActiveDeadline JobReasonDeadlineExceeded string = "DeadlineExceeded" // JobReasonMaxFailedIndexesExceeded indicates that an indexed of a job failed // This const is used in beta-level feature: https://kep.k8s.io/3850. JobReasonMaxFailedIndexesExceeded string = "MaxFailedIndexesExceeded" // JobReasonFailedIndexes means Job has failed indexes. // This const is used in beta-level feature: https://kep.k8s.io/3850. JobReasonFailedIndexes string = "FailedIndexes" ) // 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 corev1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/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"` } // 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 JobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/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=k8s.io/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"` // The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. // If not specified, this will default to the time zone of the kube-controller-manager process. // The set of valid time zone names and the time zone offset is loaded from the system-wide time zone // database by the API server during CronJob validation and the controller manager during execution. // If no system-wide time zone database can be found a bundled version of the database is used instead. // If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host // configuration, the controller will stop creating new new Jobs and will create a system event with the // reason UnknownTimeZone. // More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones // +optional TimeZone *string `json:"timeZone,omitempty" protobuf:"bytes,8,opt,name=timeZone"` // 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. Value must be non-negative integer. // Defaults to 3. // +optional SuccessfulJobsHistoryLimit *int32 `json:"successfulJobsHistoryLimit,omitempty" protobuf:"varint,6,opt,name=successfulJobsHistoryLimit"` // The number of failed finished jobs to retain. Value must be non-negative integer. // 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. // +enum 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 // +listType=atomic Active []corev1.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"` // Information when was the last time the job successfully completed. // +optional LastSuccessfulTime *metav1.Time `json:"lastSuccessfulTime,omitempty" protobuf:"bytes,5,opt,name=lastSuccessfulTime"` } golang-k8s-api-0.29.0/batch/v1/types_swagger_doc_generated.go000066400000000000000000000554701453636404600240350ustar00rootroot00000000000000/* 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-codegen.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.", "timeZone": "The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones", "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:\n\n- \"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. Value must be non-negative integer. Defaults to 3.", "failedJobsHistoryLimit": "The number of failed finished jobs to retain. Value must be non-negative integer. 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.", "lastSuccessfulTime": "Information when was the last time the job successfully completed.", } func (CronJobStatus) SwaggerDoc() map[string]string { return map_CronJobStatus } 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 null 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 continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.", "podFailurePolicy": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.\n\nThis field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default).", "backoffLimit": "Specifies the number of retries before marking this job failed. Defaults to 6", "backoffLimitPerIndex": "Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", "maxFailedIndexes": "Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", "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. The only allowed template.spec.restartPolicy values are \"Never\" or \"OnFailure\". 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.", "completionMode": "completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\n\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\n\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\n\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.", "suspend": "suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.", "podReplacementPolicy": "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.", } 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. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", "startTime": "Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. 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. The completion time is only set when the job finishes successfully.", "active": "The number of pending and running pods.", "succeeded": "The number of pods which reached phase Succeeded.", "failed": "The number of pods which reached phase Failed.", "terminating": "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).\n\nThis field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).", "completedIndexes": "completedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\".", "failedIndexes": "FailedIndexes holds the failed indexes when backoffLimitPerIndex=true. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", "uncountedTerminatedPods": "uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status:\n\n1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nOld jobs might not be tracked using this field, in which case the field remains null.", "ready": "The number of pods which have a Ready condition.", } func (JobStatus) SwaggerDoc() map[string]string { return map_JobStatus } 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 } var map_PodFailurePolicy = map[string]string{ "": "PodFailurePolicy describes how failed pods influence the backoffLimit.", "rules": "A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.", } func (PodFailurePolicy) SwaggerDoc() map[string]string { return map_PodFailurePolicy } var map_PodFailurePolicyOnExitCodesRequirement = map[string]string{ "": "PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.", "containerName": "Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.", "operator": "Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are:\n\n- In: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is in the set of specified values.\n- NotIn: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is not in the set of specified values.\nAdditional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.", "values": "Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.", } func (PodFailurePolicyOnExitCodesRequirement) SwaggerDoc() map[string]string { return map_PodFailurePolicyOnExitCodesRequirement } var map_PodFailurePolicyOnPodConditionsPattern = map[string]string{ "": "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.", "type": "Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.", "status": "Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.", } func (PodFailurePolicyOnPodConditionsPattern) SwaggerDoc() map[string]string { return map_PodFailurePolicyOnPodConditionsPattern } var map_PodFailurePolicyRule = map[string]string{ "": "PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.", "action": "Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are:\n\n- FailJob: indicates that the pod's job is marked as Failed and all\n running pods are terminated.\n- FailIndex: indicates that the pod's index is marked as Failed and will\n not be restarted.\n This value is beta-level. It can be used when the\n `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).\n- Ignore: indicates that the counter towards the .backoffLimit is not\n incremented and a replacement pod is created.\n- Count: indicates that the pod is handled in the default way - the\n counter towards the .backoffLimit is incremented.\nAdditional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.", "onExitCodes": "Represents the requirement on the container exit codes.", "onPodConditions": "Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.", } func (PodFailurePolicyRule) SwaggerDoc() map[string]string { return map_PodFailurePolicyRule } var map_UncountedTerminatedPods = map[string]string{ "": "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.", "succeeded": "succeeded holds UIDs of succeeded Pods.", "failed": "failed holds UIDs of failed Pods.", } func (UncountedTerminatedPods) SwaggerDoc() map[string]string { return map_UncountedTerminatedPods } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/batch/v1/zz_generated.deepcopy.go000066400000000000000000000340161453636404600225700ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" types "k8s.io/apimachinery/pkg/types" ) // 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.TimeZone != nil { in, out := &in.TimeZone, &out.TimeZone *out = new(string) **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([]corev1.ObjectReference, len(*in)) copy(*out, *in) } if in.LastScheduleTime != nil { in, out := &in.LastScheduleTime, &out.LastScheduleTime *out = (*in).DeepCopy() } if in.LastSuccessfulTime != nil { in, out := &in.LastSuccessfulTime, &out.LastSuccessfulTime *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 *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.PodFailurePolicy != nil { in, out := &in.PodFailurePolicy, &out.PodFailurePolicy *out = new(PodFailurePolicy) (*in).DeepCopyInto(*out) } if in.BackoffLimit != nil { in, out := &in.BackoffLimit, &out.BackoffLimit *out = new(int32) **out = **in } if in.BackoffLimitPerIndex != nil { in, out := &in.BackoffLimitPerIndex, &out.BackoffLimitPerIndex *out = new(int32) **out = **in } if in.MaxFailedIndexes != nil { in, out := &in.MaxFailedIndexes, &out.MaxFailedIndexes *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 } if in.CompletionMode != nil { in, out := &in.CompletionMode, &out.CompletionMode *out = new(CompletionMode) **out = **in } if in.Suspend != nil { in, out := &in.Suspend, &out.Suspend *out = new(bool) **out = **in } if in.PodReplacementPolicy != nil { in, out := &in.PodReplacementPolicy, &out.PodReplacementPolicy *out = new(PodReplacementPolicy) **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() } if in.Terminating != nil { in, out := &in.Terminating, &out.Terminating *out = new(int32) **out = **in } if in.FailedIndexes != nil { in, out := &in.FailedIndexes, &out.FailedIndexes *out = new(string) **out = **in } if in.UncountedTerminatedPods != nil { in, out := &in.UncountedTerminatedPods, &out.UncountedTerminatedPods *out = new(UncountedTerminatedPods) (*in).DeepCopyInto(*out) } if in.Ready != nil { in, out := &in.Ready, &out.Ready *out = new(int32) **out = **in } 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 } // 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 } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PodFailurePolicy) DeepCopyInto(out *PodFailurePolicy) { *out = *in if in.Rules != nil { in, out := &in.Rules, &out.Rules *out = make([]PodFailurePolicyRule, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodFailurePolicy. func (in *PodFailurePolicy) DeepCopy() *PodFailurePolicy { if in == nil { return nil } out := new(PodFailurePolicy) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PodFailurePolicyOnExitCodesRequirement) DeepCopyInto(out *PodFailurePolicyOnExitCodesRequirement) { *out = *in if in.ContainerName != nil { in, out := &in.ContainerName, &out.ContainerName *out = new(string) **out = **in } if in.Values != nil { in, out := &in.Values, &out.Values *out = make([]int32, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodFailurePolicyOnExitCodesRequirement. func (in *PodFailurePolicyOnExitCodesRequirement) DeepCopy() *PodFailurePolicyOnExitCodesRequirement { if in == nil { return nil } out := new(PodFailurePolicyOnExitCodesRequirement) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PodFailurePolicyOnPodConditionsPattern) DeepCopyInto(out *PodFailurePolicyOnPodConditionsPattern) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodFailurePolicyOnPodConditionsPattern. func (in *PodFailurePolicyOnPodConditionsPattern) DeepCopy() *PodFailurePolicyOnPodConditionsPattern { if in == nil { return nil } out := new(PodFailurePolicyOnPodConditionsPattern) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PodFailurePolicyRule) DeepCopyInto(out *PodFailurePolicyRule) { *out = *in if in.OnExitCodes != nil { in, out := &in.OnExitCodes, &out.OnExitCodes *out = new(PodFailurePolicyOnExitCodesRequirement) (*in).DeepCopyInto(*out) } if in.OnPodConditions != nil { in, out := &in.OnPodConditions, &out.OnPodConditions *out = make([]PodFailurePolicyOnPodConditionsPattern, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodFailurePolicyRule. func (in *PodFailurePolicyRule) DeepCopy() *PodFailurePolicyRule { if in == nil { return nil } out := new(PodFailurePolicyRule) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *UncountedTerminatedPods) DeepCopyInto(out *UncountedTerminatedPods) { *out = *in if in.Succeeded != nil { in, out := &in.Succeeded, &out.Succeeded *out = make([]types.UID, len(*in)) copy(*out, *in) } if in.Failed != nil { in, out := &in.Failed, &out.Failed *out = make([]types.UID, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UncountedTerminatedPods. func (in *UncountedTerminatedPods) DeepCopy() *UncountedTerminatedPods { if in == nil { return nil } out := new(UncountedTerminatedPods) in.DeepCopyInto(out) return out } golang-k8s-api-0.29.0/batch/v1beta1/000077500000000000000000000000001453636404600166625ustar00rootroot00000000000000golang-k8s-api-0.29.0/batch/v1beta1/doc.go000066400000000000000000000013521453636404600177570ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true package v1beta1 // import "k8s.io/api/batch/v1beta1" golang-k8s-api-0.29.0/batch/v1beta1/generated.pb.go000066400000000000000000001205421453636404600215530ustar00rootroot00000000000000/* 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/k8s.io/api/batch/v1beta1/generated.proto package v1beta1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" v11 "k8s.io/api/core/v1" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // 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 *JobTemplateSpec) Reset() { *m = JobTemplateSpec{} } func (*JobTemplateSpec) ProtoMessage() {} func (*JobTemplateSpec) Descriptor() ([]byte, []int) { return fileDescriptor_e57b277b05179ae7, []int{4} } 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((*JobTemplateSpec)(nil), "k8s.io.api.batch.v1beta1.JobTemplateSpec") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/batch/v1beta1/generated.proto", fileDescriptor_e57b277b05179ae7) } var fileDescriptor_e57b277b05179ae7 = []byte{ // 787 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0x41, 0x6f, 0x1b, 0x45, 0x14, 0xc7, 0xbd, 0x49, 0x9c, 0xb8, 0xe3, 0x16, 0xd2, 0x01, 0xa5, 0x2b, 0x83, 0xd6, 0xc1, 0x55, 0x85, 0x41, 0x30, 0x4b, 0x22, 0x84, 0x38, 0x55, 0xea, 0x16, 0x15, 0x08, 0x41, 0x45, 0xe3, 0x72, 0xa9, 0x2a, 0xd4, 0xd9, 0xd9, 0x17, 0x67, 0x9a, 0xdd, 0x9d, 0xd5, 0xce, 0x6c, 0xa4, 0xdc, 0xb8, 0x70, 0xe7, 0xbb, 0x70, 0xe7, 0x9c, 0x63, 0x6f, 0xf4, 0xb4, 0x22, 0xcb, 0xb7, 0xe0, 0x84, 0x66, 0xbc, 0xb1, 0x5d, 0x7b, 0xdd, 0x84, 0x4b, 0x6f, 0x9e, 0x37, 0xff, 0xff, 0x6f, 0x9e, 0xde, 0x7b, 0xfb, 0x8c, 0x1e, 0x9c, 0x7c, 0xad, 0x88, 0x90, 0xfe, 0x49, 0x11, 0x42, 0x9e, 0x82, 0x06, 0xe5, 0x9f, 0x42, 0x1a, 0xc9, 0xdc, 0xaf, 0x2f, 0x58, 0x26, 0xfc, 0x90, 0x69, 0x7e, 0xec, 0x9f, 0xee, 0x85, 0xa0, 0xd9, 0x9e, 0x3f, 0x86, 0x14, 0x72, 0xa6, 0x21, 0x22, 0x59, 0x2e, 0xb5, 0xc4, 0xee, 0x44, 0x49, 0x58, 0x26, 0x88, 0x55, 0x92, 0x5a, 0xd9, 0xfb, 0x7c, 0x2c, 0xf4, 0x71, 0x11, 0x12, 0x2e, 0x13, 0x7f, 0x2c, 0xc7, 0xd2, 0xb7, 0x86, 0xb0, 0x38, 0xb2, 0x27, 0x7b, 0xb0, 0xbf, 0x26, 0xa0, 0xde, 0xdd, 0x86, 0x27, 0x17, 0x5f, 0xeb, 0x0d, 0xe6, 0x44, 0x5c, 0xe6, 0xd0, 0xa4, 0xf9, 0x72, 0xa6, 0x49, 0x18, 0x3f, 0x16, 0x29, 0xe4, 0x67, 0x7e, 0x76, 0x32, 0x36, 0x01, 0xe5, 0x27, 0xa0, 0x59, 0x93, 0xcb, 0x5f, 0xe5, 0xca, 0x8b, 0x54, 0x8b, 0x04, 0x96, 0x0c, 0x5f, 0x5d, 0x65, 0x50, 0xfc, 0x18, 0x12, 0xb6, 0xe8, 0x1b, 0xfc, 0xb6, 0x86, 0xb6, 0x1e, 0xe6, 0x32, 0x3d, 0x90, 0x21, 0x7e, 0x8e, 0x3a, 0x26, 0x9f, 0x88, 0x69, 0xe6, 0x3a, 0xbb, 0xce, 0xb0, 0xbb, 0xff, 0x05, 0x99, 0xd5, 0x73, 0x8a, 0x25, 0xd9, 0xc9, 0xd8, 0x04, 0x14, 0x31, 0x6a, 0x72, 0xba, 0x47, 0x1e, 0x87, 0x2f, 0x80, 0xeb, 0x1f, 0x41, 0xb3, 0x00, 0x9f, 0x97, 0xfd, 0x56, 0x55, 0xf6, 0xd1, 0x2c, 0x46, 0xa7, 0x54, 0xfc, 0x2d, 0xda, 0x50, 0x19, 0x70, 0x77, 0xcd, 0xd2, 0xef, 0x91, 0x55, 0xdd, 0x22, 0x75, 0x4a, 0xa3, 0x0c, 0x78, 0x70, 0xb3, 0x46, 0x6e, 0x98, 0x13, 0xb5, 0x00, 0xfc, 0x18, 0x6d, 0x2a, 0xcd, 0x74, 0xa1, 0xdc, 0x75, 0x8b, 0xfa, 0xf8, 0x6a, 0x94, 0x95, 0x07, 0xef, 0xd4, 0xb0, 0xcd, 0xc9, 0x99, 0xd6, 0x98, 0xc1, 0x1f, 0x0e, 0xea, 0xd6, 0xca, 0x43, 0xa1, 0x34, 0x7e, 0xb6, 0x54, 0x0b, 0x72, 0xbd, 0x5a, 0x18, 0xb7, 0xad, 0xc4, 0x76, 0xfd, 0x52, 0xe7, 0x32, 0x32, 0x57, 0x87, 0x47, 0xa8, 0x2d, 0x34, 0x24, 0xca, 0x5d, 0xdb, 0x5d, 0x1f, 0x76, 0xf7, 0x3f, 0xba, 0x32, 0xfb, 0xe0, 0x56, 0x4d, 0x6b, 0x7f, 0x6f, 0x7c, 0x74, 0x62, 0x1f, 0xfc, 0xb5, 0x31, 0xcd, 0xda, 0x14, 0x07, 0x7f, 0x86, 0x3a, 0xa6, 0xcf, 0x51, 0x11, 0x83, 0xcd, 0xfa, 0xc6, 0x2c, 0x8b, 0x51, 0x1d, 0xa7, 0x53, 0x05, 0x1e, 0xa2, 0x8e, 0x19, 0x8d, 0xa7, 0x32, 0x05, 0xb7, 0x63, 0xd5, 0x37, 0x8d, 0xf2, 0x49, 0x1d, 0xa3, 0xd3, 0x5b, 0xfc, 0x33, 0xba, 0xa3, 0x34, 0xcb, 0xb5, 0x48, 0xc7, 0xdf, 0x00, 0x8b, 0x62, 0x91, 0xc2, 0x08, 0xb8, 0x4c, 0x23, 0x65, 0x5b, 0xb9, 0x1e, 0x7c, 0x50, 0x95, 0xfd, 0x3b, 0xa3, 0x66, 0x09, 0x5d, 0xe5, 0xc5, 0xcf, 0xd0, 0x6d, 0x2e, 0x53, 0x5e, 0xe4, 0x39, 0xa4, 0xfc, 0xec, 0x27, 0x19, 0x0b, 0x7e, 0x66, 0x1b, 0x7a, 0x23, 0x20, 0x75, 0xde, 0xb7, 0x1f, 0x2e, 0x0a, 0xfe, 0x6d, 0x0a, 0xd2, 0x65, 0x10, 0xbe, 0x87, 0xb6, 0x54, 0xa1, 0x32, 0x48, 0x23, 0x77, 0x63, 0xd7, 0x19, 0x76, 0x82, 0x6e, 0x55, 0xf6, 0xb7, 0x46, 0x93, 0x10, 0xbd, 0xbc, 0xc3, 0xcf, 0x51, 0xf7, 0x85, 0x0c, 0x9f, 0x40, 0x92, 0xc5, 0x4c, 0x83, 0xdb, 0xb6, 0xcd, 0xfe, 0x64, 0x75, 0x47, 0x0e, 0x66, 0x62, 0x3b, 0x9e, 0xef, 0xd5, 0x99, 0x76, 0xe7, 0x2e, 0xe8, 0x3c, 0x12, 0xff, 0x82, 0x7a, 0xaa, 0xe0, 0x1c, 0x94, 0x3a, 0x2a, 0xe2, 0x03, 0x19, 0xaa, 0xef, 0x84, 0xd2, 0x32, 0x3f, 0x3b, 0x14, 0x89, 0xd0, 0xee, 0xe6, 0xae, 0x33, 0x6c, 0x07, 0x5e, 0x55, 0xf6, 0x7b, 0xa3, 0x95, 0x2a, 0xfa, 0x06, 0x02, 0xa6, 0x68, 0xe7, 0x88, 0x89, 0x18, 0xa2, 0x25, 0xf6, 0x96, 0x65, 0xf7, 0xaa, 0xb2, 0xbf, 0xf3, 0xa8, 0x51, 0x41, 0x57, 0x38, 0x07, 0x7f, 0xae, 0xa1, 0x5b, 0xaf, 0x7d, 0x39, 0xf8, 0x07, 0xb4, 0xc9, 0xb8, 0x16, 0xa7, 0x66, 0xb2, 0xcc, 0xd0, 0xde, 0x9d, 0x2f, 0x91, 0xd9, 0x7e, 0xb3, 0x4d, 0x40, 0xe1, 0x08, 0x4c, 0x27, 0x60, 0xf6, 0xb9, 0x3d, 0xb0, 0x56, 0x5a, 0x23, 0x70, 0x8c, 0xb6, 0x63, 0xa6, 0xf4, 0xe5, 0x50, 0x9a, 0x91, 0xb3, 0x4d, 0xea, 0xee, 0x7f, 0x7a, 0xbd, 0xcf, 0xcc, 0x38, 0x82, 0xf7, 0xab, 0xb2, 0xbf, 0x7d, 0xb8, 0xc0, 0xa1, 0x4b, 0x64, 0x9c, 0x23, 0x6c, 0x63, 0xd3, 0x12, 0xda, 0xf7, 0xda, 0xff, 0xfb, 0xbd, 0x9d, 0xaa, 0xec, 0xe3, 0xc3, 0x25, 0x12, 0x6d, 0xa0, 0x9b, 0x85, 0xf2, 0xee, 0xc2, 0xa8, 0xbc, 0x85, 0x05, 0x7b, 0xff, 0xb5, 0x05, 0xfb, 0x61, 0xd3, 0x14, 0x93, 0x37, 0xec, 0xd5, 0xe0, 0xfe, 0xf9, 0x85, 0xd7, 0x7a, 0x79, 0xe1, 0xb5, 0x5e, 0x5d, 0x78, 0xad, 0x5f, 0x2b, 0xcf, 0x39, 0xaf, 0x3c, 0xe7, 0x65, 0xe5, 0x39, 0xaf, 0x2a, 0xcf, 0xf9, 0xbb, 0xf2, 0x9c, 0xdf, 0xff, 0xf1, 0x5a, 0x4f, 0xdd, 0x55, 0xff, 0xc7, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x61, 0x72, 0xc3, 0xe0, 0xc3, 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.TimeZone != nil { i -= len(*m.TimeZone) copy(dAtA[i:], *m.TimeZone) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.TimeZone))) i-- dAtA[i] = 0x42 } 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.LastSuccessfulTime != nil { { size, err := m.LastSuccessfulTime.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a } 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 *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)) } if m.TimeZone != nil { l = len(*m.TimeZone) n += 1 + l + sovGenerated(uint64(l)) } 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)) } if m.LastSuccessfulTime != nil { l = m.LastSuccessfulTime.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) + `,`, `TimeZone:` + valueToStringGenerated(this.TimeZone) + `,`, `}`, }, "") 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) + `,`, `LastSuccessfulTime:` + strings.Replace(fmt.Sprintf("%v", this.LastSuccessfulTime), "Time", "v1.Time", 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) || (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) || (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 case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TimeZone", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.TimeZone = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field LastSuccessfulTime", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.LastSuccessfulTime == nil { m.LastSuccessfulTime = &v1.Time{} } if err := m.LastSuccessfulTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/batch/v1beta1/generated.proto000066400000000000000000000133731453636404600217140ustar00rootroot00000000000000/* 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 "k8s.io/api/batch/v1/generated.proto"; import "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/batch/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; // The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. // If not specified, this will default to the time zone of the kube-controller-manager process. // The set of valid time zone names and the time zone offset is loaded from the system-wide time zone // database by the API server during CronJob validation and the controller manager during execution. // If no system-wide time zone database can be found a bundled version of the database is used instead. // If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host // configuration, the controller will stop creating new new Jobs and will create a system event with the // reason UnknownTimeZone. // More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones // +optional optional string timeZone = 8; // 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 // +listType=atomic 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; // Information when was the last time the job successfully completed. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastSuccessfulTime = 5; } // 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; } golang-k8s-api-0.29.0/batch/v1beta1/register.go000066400000000000000000000032701453636404600210370ustar00rootroot00000000000000/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package v1beta1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &CronJob{}, &CronJobList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/batch/v1beta1/types.go000066400000000000000000000166511453636404600203660ustar00rootroot00000000000000/* 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 "k8s.io/api/batch/v1" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.8 // +k8s:prerelease-lifecycle-gen:deprecated=1.21 // +k8s:prerelease-lifecycle-gen:removed=1.25 // +k8s:prerelease-lifecycle-gen:replacement=batch,v1,CronJob // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.8 // +k8s:prerelease-lifecycle-gen:deprecated=1.21 // +k8s:prerelease-lifecycle-gen:removed=1.25 // +k8s:prerelease-lifecycle-gen:replacement=batch,v1,CronJobList // 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"` // The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. // If not specified, this will default to the time zone of the kube-controller-manager process. // The set of valid time zone names and the time zone offset is loaded from the system-wide time zone // database by the API server during CronJob validation and the controller manager during execution. // If no system-wide time zone database can be found a bundled version of the database is used instead. // If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host // configuration, the controller will stop creating new new Jobs and will create a system event with the // reason UnknownTimeZone. // More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones // +optional TimeZone *string `json:"timeZone,omitempty" protobuf:"bytes,8,opt,name=timeZone"` // 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 // +listType=atomic 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"` // Information when was the last time the job successfully completed. // +optional LastSuccessfulTime *metav1.Time `json:"lastSuccessfulTime,omitempty" protobuf:"bytes,5,opt,name=lastSuccessfulTime"` } golang-k8s-api-0.29.0/batch/v1beta1/types_swagger_doc_generated.go000066400000000000000000000131111453636404600247340ustar00rootroot00000000000000/* 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-codegen.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.", "timeZone": "The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones", "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:\n\n- \"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.", "lastSuccessfulTime": "Information when was the last time the job successfully completed.", } func (CronJobStatus) SwaggerDoc() map[string]string { return map_CronJobStatus } 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 golang-k8s-api-0.29.0/batch/v1beta1/zz_generated.deepcopy.go000066400000000000000000000115421453636404600235040ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *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.TimeZone != nil { in, out := &in.TimeZone, &out.TimeZone *out = new(string) **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() } if in.LastSuccessfulTime != nil { in, out := &in.LastSuccessfulTime, &out.LastSuccessfulTime *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 *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 } golang-k8s-api-0.29.0/batch/v1beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000074261453636404600257660ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta1 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *CronJob) APILifecycleIntroduced() (major, minor int) { return 1, 8 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *CronJob) APILifecycleDeprecated() (major, minor int) { return 1, 21 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *CronJob) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "batch", Version: "v1", Kind: "CronJob"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *CronJob) APILifecycleRemoved() (major, minor int) { return 1, 25 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *CronJobList) APILifecycleIntroduced() (major, minor int) { return 1, 8 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *CronJobList) APILifecycleDeprecated() (major, minor int) { return 1, 21 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *CronJobList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "batch", Version: "v1", Kind: "CronJobList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *CronJobList) APILifecycleRemoved() (major, minor int) { return 1, 25 } golang-k8s-api-0.29.0/certificates/000077500000000000000000000000001453636404600170035ustar00rootroot00000000000000golang-k8s-api-0.29.0/certificates/OWNERS000066400000000000000000000003171453636404600177440ustar00rootroot00000000000000# See the OWNERS docs at https://go.k8s.io/owners # approval on api packages bubbles to api-approvers reviewers: - sig-auth-certificates-approvers - sig-auth-certificates-reviewers labels: - sig/auth golang-k8s-api-0.29.0/certificates/v1/000077500000000000000000000000001453636404600173315ustar00rootroot00000000000000golang-k8s-api-0.29.0/certificates/v1/doc.go000066400000000000000000000013441453636404600204270ustar00rootroot00000000000000/* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 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 v1 // import "k8s.io/api/certificates/v1" golang-k8s-api-0.29.0/certificates/v1/generated.pb.go000066400000000000000000001534651453636404600222340ustar00rootroot00000000000000/* 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/k8s.io/api/certificates/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 "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *CertificateSigningRequest) Reset() { *m = CertificateSigningRequest{} } func (*CertificateSigningRequest) ProtoMessage() {} func (*CertificateSigningRequest) Descriptor() ([]byte, []int) { return fileDescriptor_17e045d0de66f3c7, []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_17e045d0de66f3c7, []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_17e045d0de66f3c7, []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_17e045d0de66f3c7, []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_17e045d0de66f3c7, []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_17e045d0de66f3c7, []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.v1.CertificateSigningRequest") proto.RegisterType((*CertificateSigningRequestCondition)(nil), "k8s.io.api.certificates.v1.CertificateSigningRequestCondition") proto.RegisterType((*CertificateSigningRequestList)(nil), "k8s.io.api.certificates.v1.CertificateSigningRequestList") proto.RegisterType((*CertificateSigningRequestSpec)(nil), "k8s.io.api.certificates.v1.CertificateSigningRequestSpec") proto.RegisterMapType((map[string]ExtraValue)(nil), "k8s.io.api.certificates.v1.CertificateSigningRequestSpec.ExtraEntry") proto.RegisterType((*CertificateSigningRequestStatus)(nil), "k8s.io.api.certificates.v1.CertificateSigningRequestStatus") proto.RegisterType((*ExtraValue)(nil), "k8s.io.api.certificates.v1.ExtraValue") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/certificates/v1/generated.proto", fileDescriptor_17e045d0de66f3c7) } var fileDescriptor_17e045d0de66f3c7 = []byte{ // 910 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xdf, 0x6e, 0x1b, 0xc5, 0x17, 0xf6, 0xc6, 0x7f, 0x62, 0x8f, 0xf3, 0x4b, 0xdb, 0xd1, 0x8f, 0x6a, 0xb1, 0x54, 0xaf, 0xb5, 0x82, 0x2a, 0x20, 0xd8, 0x25, 0x51, 0x81, 0x50, 0x10, 0x42, 0x9b, 0x46, 0xa8, 0x22, 0x05, 0x69, 0x92, 0x70, 0x51, 0xb8, 0xe8, 0x64, 0x7d, 0xba, 0x99, 0xba, 0xfb, 0x87, 0x99, 0x59, 0xab, 0xbe, 0xeb, 0x23, 0x70, 0xc9, 0x25, 0x2f, 0xc0, 0x33, 0x70, 0x9b, 0xcb, 0x5e, 0x16, 0x09, 0x59, 0xc4, 0x7d, 0x8b, 0x5c, 0xa1, 0x99, 0x1d, 0xaf, 0x1d, 0x27, 0x6e, 0x4b, 0xee, 0x76, 0xce, 0xf9, 0xce, 0xf7, 0x9d, 0x73, 0xe6, 0x9c, 0xd1, 0xa2, 0x9d, 0xc1, 0xb6, 0xf0, 0x58, 0xea, 0x0f, 0xf2, 0x23, 0xe0, 0x09, 0x48, 0x10, 0xfe, 0x10, 0x92, 0x7e, 0xca, 0x7d, 0xe3, 0xa0, 0x19, 0xf3, 0x43, 0xe0, 0x92, 0x3d, 0x66, 0x21, 0xd5, 0xee, 0x4d, 0x3f, 0x82, 0x04, 0x38, 0x95, 0xd0, 0xf7, 0x32, 0x9e, 0xca, 0x14, 0x77, 0x0a, 0xac, 0x47, 0x33, 0xe6, 0xcd, 0x63, 0xbd, 0xe1, 0x66, 0xe7, 0xe3, 0x88, 0xc9, 0xe3, 0xfc, 0xc8, 0x0b, 0xd3, 0xd8, 0x8f, 0xd2, 0x28, 0xf5, 0x75, 0xc8, 0x51, 0xfe, 0x58, 0x9f, 0xf4, 0x41, 0x7f, 0x15, 0x54, 0x1d, 0x77, 0x5e, 0x36, 0xe5, 0x70, 0x89, 0x5c, 0xe7, 0xce, 0x0c, 0x13, 0xd3, 0xf0, 0x98, 0x25, 0xc0, 0x47, 0x7e, 0x36, 0x88, 0x94, 0x41, 0xf8, 0x31, 0x48, 0x7a, 0x59, 0x94, 0xbf, 0x2c, 0x8a, 0xe7, 0x89, 0x64, 0x31, 0x5c, 0x08, 0xf8, 0xec, 0x4d, 0x01, 0x22, 0x3c, 0x86, 0x98, 0x2e, 0xc6, 0xb9, 0x7f, 0xae, 0xa0, 0x77, 0x77, 0x66, 0x5d, 0xd8, 0x67, 0x51, 0xc2, 0x92, 0x88, 0xc0, 0x2f, 0x39, 0x08, 0x89, 0x1f, 0xa1, 0xa6, 0xca, 0xb0, 0x4f, 0x25, 0xb5, 0xad, 0x9e, 0xb5, 0xd1, 0xde, 0xfa, 0xc4, 0x9b, 0xb5, 0xaf, 0x14, 0xf2, 0xb2, 0x41, 0xa4, 0x0c, 0xc2, 0x53, 0x68, 0x6f, 0xb8, 0xe9, 0xfd, 0x70, 0xf4, 0x04, 0x42, 0xf9, 0x00, 0x24, 0x0d, 0xf0, 0xc9, 0xd8, 0xa9, 0x4c, 0xc6, 0x0e, 0x9a, 0xd9, 0x48, 0xc9, 0x8a, 0x7f, 0x42, 0x35, 0x91, 0x41, 0x68, 0xaf, 0x68, 0xf6, 0x2f, 0xbc, 0xe5, 0x97, 0xe3, 0x2d, 0x4d, 0x73, 0x3f, 0x83, 0x30, 0x58, 0x33, 0x32, 0x35, 0x75, 0x22, 0x9a, 0x14, 0x87, 0xa8, 0x21, 0x24, 0x95, 0xb9, 0xb0, 0xab, 0x9a, 0xfe, 0xcb, 0xab, 0xd1, 0x6b, 0x8a, 0x60, 0xdd, 0x08, 0x34, 0x8a, 0x33, 0x31, 0xd4, 0xee, 0xab, 0x2a, 0x72, 0x97, 0xc6, 0xee, 0xa4, 0x49, 0x9f, 0x49, 0x96, 0x26, 0x78, 0x1b, 0xd5, 0xe4, 0x28, 0x03, 0xdd, 0xc6, 0x56, 0xf0, 0xde, 0x34, 0xdb, 0x83, 0x51, 0x06, 0x67, 0x63, 0xe7, 0xff, 0x8b, 0x78, 0x65, 0x27, 0x3a, 0x02, 0xef, 0x95, 0x55, 0x34, 0x74, 0xec, 0x9d, 0xf3, 0x89, 0x9c, 0x8d, 0x9d, 0x4b, 0xe6, 0xd0, 0x2b, 0x99, 0xce, 0xa7, 0x8b, 0x6f, 0xa3, 0x06, 0x07, 0x2a, 0xd2, 0x44, 0xb7, 0xbc, 0x35, 0x2b, 0x8b, 0x68, 0x2b, 0x31, 0x5e, 0xfc, 0x01, 0x5a, 0x8d, 0x41, 0x08, 0x1a, 0x81, 0x6e, 0x5e, 0x2b, 0xb8, 0x66, 0x80, 0xab, 0x0f, 0x0a, 0x33, 0x99, 0xfa, 0xf1, 0x13, 0xb4, 0xfe, 0x94, 0x0a, 0x79, 0x98, 0xf5, 0xa9, 0x84, 0x03, 0x16, 0x83, 0x5d, 0xd3, 0xed, 0xfe, 0xf0, 0xed, 0x66, 0x45, 0x45, 0x04, 0x37, 0x0d, 0xfb, 0xfa, 0xde, 0x39, 0x26, 0xb2, 0xc0, 0x8c, 0x87, 0x08, 0x2b, 0xcb, 0x01, 0xa7, 0x89, 0x28, 0x1a, 0xa5, 0xf4, 0xea, 0xff, 0x59, 0xaf, 0x63, 0xf4, 0xf0, 0xde, 0x05, 0x36, 0x72, 0x89, 0x82, 0xfb, 0x97, 0x85, 0x6e, 0x2d, 0xbd, 0xe5, 0x3d, 0x26, 0x24, 0xfe, 0xf9, 0xc2, 0xae, 0x78, 0x6f, 0x97, 0x8f, 0x8a, 0xd6, 0x9b, 0x72, 0xdd, 0xe4, 0xd4, 0x9c, 0x5a, 0xe6, 0xf6, 0xe4, 0x21, 0xaa, 0x33, 0x09, 0xb1, 0xb0, 0x57, 0x7a, 0xd5, 0x8d, 0xf6, 0xd6, 0xa7, 0x57, 0x9a, 0xe4, 0xe0, 0x7f, 0x46, 0xa1, 0x7e, 0x5f, 0x71, 0x91, 0x82, 0xd2, 0xfd, 0xa3, 0xf6, 0x9a, 0xda, 0xd4, 0x3a, 0xe1, 0xf7, 0xd1, 0x2a, 0x2f, 0x8e, 0xba, 0xb4, 0xb5, 0xa0, 0xad, 0x06, 0xc1, 0x20, 0xc8, 0xd4, 0x87, 0xb7, 0x10, 0x12, 0x2c, 0x4a, 0x80, 0x7f, 0x4f, 0x63, 0xb0, 0x57, 0xf5, 0xd8, 0x94, 0xeb, 0xbf, 0x5f, 0x7a, 0xc8, 0x1c, 0x0a, 0xef, 0xa0, 0x1b, 0xf0, 0x2c, 0x63, 0x9c, 0xea, 0x59, 0x85, 0x30, 0x4d, 0xfa, 0xc2, 0x6e, 0xf6, 0xac, 0x8d, 0x7a, 0xf0, 0xce, 0x64, 0xec, 0xdc, 0xd8, 0x5d, 0x74, 0x92, 0x8b, 0x78, 0xec, 0xa1, 0x46, 0xae, 0x46, 0x51, 0xd8, 0xf5, 0x5e, 0x75, 0xa3, 0x15, 0xdc, 0x54, 0x03, 0x7d, 0xa8, 0x2d, 0x67, 0x63, 0xa7, 0xf9, 0x1d, 0x8c, 0xf4, 0x81, 0x18, 0x14, 0xfe, 0x08, 0x35, 0x73, 0x01, 0x3c, 0x51, 0x69, 0x16, 0x6b, 0x50, 0xf6, 0xfe, 0xd0, 0xd8, 0x49, 0x89, 0xc0, 0xb7, 0x50, 0x35, 0x67, 0x7d, 0xb3, 0x06, 0x6d, 0x03, 0xac, 0x1e, 0xde, 0xbf, 0x47, 0x94, 0x1d, 0xbb, 0xa8, 0x11, 0xf1, 0x34, 0xcf, 0x84, 0x5d, 0xd3, 0xe2, 0x48, 0x89, 0x7f, 0xab, 0x2d, 0xc4, 0x78, 0x30, 0x43, 0x75, 0x78, 0x26, 0x39, 0xb5, 0x1b, 0xfa, 0xfa, 0xee, 0x5d, 0xf9, 0x9d, 0xf3, 0x76, 0x15, 0xcd, 0x6e, 0x22, 0xf9, 0x68, 0x76, 0x9b, 0xda, 0x46, 0x0a, 0x85, 0xce, 0x23, 0x84, 0x66, 0x18, 0x7c, 0x1d, 0x55, 0x07, 0x30, 0x2a, 0x5e, 0x1d, 0xa2, 0x3e, 0xf1, 0x57, 0xa8, 0x3e, 0xa4, 0x4f, 0x73, 0x30, 0x4f, 0xee, 0xed, 0xd7, 0xa5, 0xa2, 0x89, 0x7e, 0x54, 0x68, 0x52, 0x04, 0xdd, 0x5d, 0xd9, 0xb6, 0xdc, 0x13, 0x0b, 0x39, 0x6f, 0x78, 0x2d, 0x31, 0x47, 0x28, 0x9c, 0xbe, 0x40, 0xc2, 0xb6, 0x74, 0xd5, 0x5f, 0x5f, 0xa9, 0xea, 0xf2, 0x21, 0x9b, 0x8d, 0x52, 0x69, 0x12, 0x64, 0x4e, 0x05, 0x6f, 0xa2, 0xf6, 0x1c, 0xab, 0xae, 0x6f, 0x2d, 0xb8, 0x36, 0x19, 0x3b, 0xed, 0x39, 0x72, 0x32, 0x8f, 0x71, 0x3f, 0x37, 0xcd, 0xd2, 0x35, 0x62, 0x67, 0xba, 0x64, 0x96, 0xbe, 0xc8, 0xd6, 0xe2, 0xa6, 0xdc, 0x6d, 0xfe, 0xf6, 0xbb, 0x53, 0x79, 0xfe, 0x77, 0xaf, 0x12, 0x7c, 0x73, 0x72, 0xda, 0xad, 0xbc, 0x38, 0xed, 0x56, 0x5e, 0x9e, 0x76, 0x2b, 0xcf, 0x27, 0x5d, 0xeb, 0x64, 0xd2, 0xb5, 0x5e, 0x4c, 0xba, 0xd6, 0xcb, 0x49, 0xd7, 0xfa, 0x67, 0xd2, 0xb5, 0x7e, 0x7d, 0xd5, 0xad, 0x3c, 0xec, 0x2c, 0xff, 0x2f, 0xf9, 0x37, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x00, 0x0c, 0x1b, 0xcd, 0x08, 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 i -= len(m.Status) copy(dAtA[i:], m.Status) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) i-- dAtA[i] = 0x32 { size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a { 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 m.ExpirationSeconds != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.ExpirationSeconds)) i-- dAtA[i] = 0x40 } i -= len(m.SignerName) copy(dAtA[i:], m.SignerName) i = encodeVarintGenerated(dAtA, i, uint64(len(m.SignerName))) i-- dAtA[i] = 0x3a 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)) l = m.LastTransitionTime.Size() n += 1 + l + sovGenerated(uint64(l)) l = len(m.Status) 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)) } } l = len(m.SignerName) n += 1 + l + sovGenerated(uint64(l)) if m.ExpirationSeconds != nil { n += 1 + sovGenerated(uint64(*m.ExpirationSeconds)) } 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) + `,`, `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, `Status:` + fmt.Sprintf("%v", this.Status) + `,`, `}`, }, "") 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 + `,`, `SignerName:` + fmt.Sprintf("%v", this.SignerName) + `,`, `ExpirationSeconds:` + valueToStringGenerated(this.ExpirationSeconds) + `,`, `}`, }, "") 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) || (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 case 5: 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 6: 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > postIndex { return io.ErrUnexpectedEOF } iNdEx += skippy } } m.Extra[mapkey] = *mapvalue iNdEx = postIndex case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SignerName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.SignerName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 8: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ExpirationSeconds", 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.ExpirationSeconds = &v default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/certificates/v1/generated.proto000066400000000000000000000271341453636404600223630ustar00rootroot00000000000000/* 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.v1; import "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/certificates/v1"; // CertificateSigningRequest objects provide a mechanism to obtain x509 certificates // by submitting a certificate signing request, and having it asynchronously approved and issued. // // Kubelets use this API to obtain: // 1. client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client-kubelet" signerName). // 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the "kubernetes.io/kubelet-serving" signerName). // // This API can be used to request client certificates to authenticate to kube-apiserver // (with the "kubernetes.io/kube-apiserver-client" signerName), // or to obtain certificates from custom non-Kubernetes signers. message CertificateSigningRequest { // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; // spec contains the certificate request, and is immutable after creation. // Only the request, signerName, expirationSeconds, and usages fields can be set on creation. // Other fields are derived by Kubernetes and cannot be modified by users. optional CertificateSigningRequestSpec spec = 2; // status contains information about whether the request is approved or denied, // and the certificate issued by the signer, or the failure condition indicating signer failure. // +optional optional CertificateSigningRequestStatus status = 3; } // CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object message CertificateSigningRequestCondition { // type of the condition. Known conditions are "Approved", "Denied", and "Failed". // // An "Approved" condition is added via the /approval subresource, // indicating the request was approved and should be issued by the signer. // // A "Denied" condition is added via the /approval subresource, // indicating the request was denied and should not be issued by the signer. // // A "Failed" condition is added via the /status subresource, // indicating the signer failed to issue the certificate. // // Approved and Denied conditions are mutually exclusive. // Approved, Denied, and Failed conditions cannot be removed once added. // // Only one condition of a given type is allowed. optional string type = 1; // status of the condition, one of True, False, Unknown. // Approved, Denied, and Failed conditions may not be "False" or "Unknown". optional string status = 6; // reason indicates a brief reason for the request state // +optional optional string reason = 2; // message contains a human readable message with details about the request state // +optional optional string message = 3; // lastUpdateTime is the time of the last update to this condition // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 4; // lastTransitionTime is the time the condition last transitioned from one status to another. // If unset, when a new condition type is added or an existing condition's status is changed, // the server defaults this to the current time. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 5; } // CertificateSigningRequestList is a collection of CertificateSigningRequest objects message CertificateSigningRequestList { // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; // items is a collection of CertificateSigningRequest objects repeated CertificateSigningRequest items = 2; } // CertificateSigningRequestSpec contains the certificate request. message CertificateSigningRequestSpec { // request contains an x509 certificate signing request encoded in a "CERTIFICATE REQUEST" PEM block. // When serialized as JSON or YAML, the data is additionally base64-encoded. // +listType=atomic optional bytes request = 1; // signerName indicates the requested signer, and is a qualified name. // // List/watch requests for CertificateSigningRequests can filter on this field using a "spec.signerName=NAME" fieldSelector. // // Well-known Kubernetes signers are: // 1. "kubernetes.io/kube-apiserver-client": issues client certificates that can be used to authenticate to kube-apiserver. // Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the "csrsigning" controller in kube-controller-manager. // 2. "kubernetes.io/kube-apiserver-client-kubelet": issues client certificates that kubelets use to authenticate to kube-apiserver. // Requests for this signer can be auto-approved by the "csrapproving" controller in kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. // 3. "kubernetes.io/kubelet-serving" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely. // Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. // // More details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers // // Custom signerNames can also be specified. The signer defines: // 1. Trust distribution: how trust (CA bundles) are distributed. // 2. Permitted subjects: and behavior when a disallowed subject is requested. // 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested. // 4. Required, permitted, or forbidden key usages / extended key usages. // 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin. // 6. Whether or not requests for CA certificates are allowed. optional string signerName = 7; // expirationSeconds is the requested duration of validity of the issued // certificate. The certificate signer may issue a certificate with a different // validity duration so a client must check the delta between the notBefore and // and notAfter fields in the issued certificate to determine the actual duration. // // The v1.22+ in-tree implementations of the well-known Kubernetes signers will // honor this field as long as the requested duration is not greater than the // maximum duration they will honor per the --cluster-signing-duration CLI // flag to the Kubernetes controller manager. // // Certificate signers may not honor this field for various reasons: // // 1. Old signer that is unaware of the field (such as the in-tree // implementations prior to v1.22) // 2. Signer whose configured maximum is shorter than the requested duration // 3. Signer whose configured minimum is longer than the requested duration // // The minimum valid value for expirationSeconds is 600, i.e. 10 minutes. // // +optional optional int32 expirationSeconds = 8; // usages specifies a set of key usages requested in the issued certificate. // // Requests for TLS client certificates typically request: "digital signature", "key encipherment", "client auth". // // Requests for TLS serving certificates typically request: "key encipherment", "digital signature", "server auth". // // Valid values are: // "signing", "digital signature", "content commitment", // "key encipherment", "key agreement", "data encipherment", // "cert sign", "crl sign", "encipher only", "decipher only", "any", // "server auth", "client auth", // "code signing", "email protection", "s/mime", // "ipsec end system", "ipsec tunnel", "ipsec user", // "timestamping", "ocsp signing", "microsoft sgc", "netscape sgc" // +listType=atomic repeated string usages = 5; // username contains the name of the user that created the CertificateSigningRequest. // Populated by the API server on creation and immutable. // +optional optional string username = 2; // uid contains the uid of the user that created the CertificateSigningRequest. // Populated by the API server on creation and immutable. // +optional optional string uid = 3; // groups contains group membership of the user that created the CertificateSigningRequest. // Populated by the API server on creation and immutable. // +listType=atomic // +optional repeated string groups = 4; // extra contains extra attributes of the user that created the CertificateSigningRequest. // Populated by the API server on creation and immutable. // +optional map extra = 6; } // CertificateSigningRequestStatus contains conditions used to indicate // approved/denied/failed status of the request, and the issued certificate. message CertificateSigningRequestStatus { // conditions applied to the request. Known conditions are "Approved", "Denied", and "Failed". // +listType=map // +listMapKey=type // +optional repeated CertificateSigningRequestCondition conditions = 1; // certificate is populated with an issued certificate by the signer after an Approved condition is present. // This field is set via the /status subresource. Once populated, this field is immutable. // // If the certificate signing request is denied, a condition of type "Denied" is added and this field remains empty. // If the signer cannot issue the certificate, a condition of type "Failed" is added and this field remains empty. // // Validation requirements: // 1. certificate must contain one or more PEM blocks. // 2. All PEM blocks must have the "CERTIFICATE" label, contain no headers, and the encoded data // must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280. // 3. Non-PEM content may appear before or after the "CERTIFICATE" PEM blocks and is unvalidated, // to allow for explanatory text as described in section 5.2 of RFC7468. // // If more than one PEM block is present, and the definition of the requested spec.signerName // does not indicate otherwise, the first block is the issued certificate, // and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. // // The certificate is encoded in PEM format. // // When serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of: // // base64( // -----BEGIN CERTIFICATE----- // ... // -----END CERTIFICATE----- // ) // // +listType=atomic // +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; } golang-k8s-api-0.29.0/certificates/v1/register.go000066400000000000000000000037221453636404600215100ustar00rootroot00000000000000/* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "certificates.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 ( // SchemeBuilder is the scheme builder with scheme init functions to run for this API package SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder // AddToScheme is a global function that registers this API group & version to a scheme 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 } golang-k8s-api-0.29.0/certificates/v1/types.go000066400000000000000000000370231453636404600210310ustar00rootroot00000000000000/* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +genclient:method=UpdateApproval,verb=update,subresource=approval,input=k8s.io/api/certificates/v1.CertificateSigningRequest,result=k8s.io/api/certificates/v1.CertificateSigningRequest // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // CertificateSigningRequest objects provide a mechanism to obtain x509 certificates // by submitting a certificate signing request, and having it asynchronously approved and issued. // // Kubelets use this API to obtain: // 1. client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client-kubelet" signerName). // 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the "kubernetes.io/kubelet-serving" signerName). // // This API can be used to request client certificates to authenticate to kube-apiserver // (with the "kubernetes.io/kube-apiserver-client" signerName), // or to obtain certificates from custom non-Kubernetes signers. type CertificateSigningRequest struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // spec contains the certificate request, and is immutable after creation. // Only the request, signerName, expirationSeconds, and usages fields can be set on creation. // Other fields are derived by Kubernetes and cannot be modified by users. Spec CertificateSigningRequestSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // status contains information about whether the request is approved or denied, // and the certificate issued by the signer, or the failure condition indicating signer failure. // +optional Status CertificateSigningRequestStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // CertificateSigningRequestSpec contains the certificate request. type CertificateSigningRequestSpec struct { // request contains an x509 certificate signing request encoded in a "CERTIFICATE REQUEST" PEM block. // When serialized as JSON or YAML, the data is additionally base64-encoded. // +listType=atomic Request []byte `json:"request" protobuf:"bytes,1,opt,name=request"` // signerName indicates the requested signer, and is a qualified name. // // List/watch requests for CertificateSigningRequests can filter on this field using a "spec.signerName=NAME" fieldSelector. // // Well-known Kubernetes signers are: // 1. "kubernetes.io/kube-apiserver-client": issues client certificates that can be used to authenticate to kube-apiserver. // Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the "csrsigning" controller in kube-controller-manager. // 2. "kubernetes.io/kube-apiserver-client-kubelet": issues client certificates that kubelets use to authenticate to kube-apiserver. // Requests for this signer can be auto-approved by the "csrapproving" controller in kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. // 3. "kubernetes.io/kubelet-serving" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely. // Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. // // More details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers // // Custom signerNames can also be specified. The signer defines: // 1. Trust distribution: how trust (CA bundles) are distributed. // 2. Permitted subjects: and behavior when a disallowed subject is requested. // 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested. // 4. Required, permitted, or forbidden key usages / extended key usages. // 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin. // 6. Whether or not requests for CA certificates are allowed. SignerName string `json:"signerName" protobuf:"bytes,7,opt,name=signerName"` // expirationSeconds is the requested duration of validity of the issued // certificate. The certificate signer may issue a certificate with a different // validity duration so a client must check the delta between the notBefore and // and notAfter fields in the issued certificate to determine the actual duration. // // The v1.22+ in-tree implementations of the well-known Kubernetes signers will // honor this field as long as the requested duration is not greater than the // maximum duration they will honor per the --cluster-signing-duration CLI // flag to the Kubernetes controller manager. // // Certificate signers may not honor this field for various reasons: // // 1. Old signer that is unaware of the field (such as the in-tree // implementations prior to v1.22) // 2. Signer whose configured maximum is shorter than the requested duration // 3. Signer whose configured minimum is longer than the requested duration // // The minimum valid value for expirationSeconds is 600, i.e. 10 minutes. // // +optional ExpirationSeconds *int32 `json:"expirationSeconds,omitempty" protobuf:"varint,8,opt,name=expirationSeconds"` // usages specifies a set of key usages requested in the issued certificate. // // Requests for TLS client certificates typically request: "digital signature", "key encipherment", "client auth". // // Requests for TLS serving certificates typically request: "key encipherment", "digital signature", "server auth". // // Valid values are: // "signing", "digital signature", "content commitment", // "key encipherment", "key agreement", "data encipherment", // "cert sign", "crl sign", "encipher only", "decipher only", "any", // "server auth", "client auth", // "code signing", "email protection", "s/mime", // "ipsec end system", "ipsec tunnel", "ipsec user", // "timestamping", "ocsp signing", "microsoft sgc", "netscape sgc" // +listType=atomic Usages []KeyUsage `json:"usages,omitempty" protobuf:"bytes,5,opt,name=usages"` // username contains the name of the user that created the CertificateSigningRequest. // Populated by the API server on creation and immutable. // +optional Username string `json:"username,omitempty" protobuf:"bytes,2,opt,name=username"` // uid contains the uid of the user that created the CertificateSigningRequest. // Populated by the API server on creation and immutable. // +optional UID string `json:"uid,omitempty" protobuf:"bytes,3,opt,name=uid"` // groups contains group membership of the user that created the CertificateSigningRequest. // Populated by the API server on creation and immutable. // +listType=atomic // +optional Groups []string `json:"groups,omitempty" protobuf:"bytes,4,rep,name=groups"` // extra contains extra attributes of the user that created the CertificateSigningRequest. // Populated by the API server on creation and immutable. // +optional Extra map[string]ExtraValue `json:"extra,omitempty" protobuf:"bytes,6,rep,name=extra"` } // Built in signerName values that are honored by kube-controller-manager. const ( // "kubernetes.io/kube-apiserver-client" signer issues client certificates that can be used to authenticate to kube-apiserver. // Never auto-approved by kube-controller-manager. // Can be issued by the "csrsigning" controller in kube-controller-manager. KubeAPIServerClientSignerName = "kubernetes.io/kube-apiserver-client" // "kubernetes.io/kube-apiserver-client-kubelet" issues client certificates that kubelets use to authenticate to kube-apiserver. // Can be auto-approved by the "csrapproving" controller in kube-controller-manager. // Can be issued by the "csrsigning" controller in kube-controller-manager. KubeAPIServerClientKubeletSignerName = "kubernetes.io/kube-apiserver-client-kubelet" // "kubernetes.io/kubelet-serving" issues serving certificates that kubelets use to serve TLS endpoints, // which kube-apiserver can connect to securely. // Never auto-approved by kube-controller-manager. // Can be issued by the "csrsigning" controller in kube-controller-manager. KubeletServingSignerName = "kubernetes.io/kubelet-serving" ) // 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)) } // CertificateSigningRequestStatus contains conditions used to indicate // approved/denied/failed status of the request, and the issued certificate. type CertificateSigningRequestStatus struct { // conditions applied to the request. Known conditions are "Approved", "Denied", and "Failed". // +listType=map // +listMapKey=type // +optional Conditions []CertificateSigningRequestCondition `json:"conditions,omitempty" protobuf:"bytes,1,rep,name=conditions"` // certificate is populated with an issued certificate by the signer after an Approved condition is present. // This field is set via the /status subresource. Once populated, this field is immutable. // // If the certificate signing request is denied, a condition of type "Denied" is added and this field remains empty. // If the signer cannot issue the certificate, a condition of type "Failed" is added and this field remains empty. // // Validation requirements: // 1. certificate must contain one or more PEM blocks. // 2. All PEM blocks must have the "CERTIFICATE" label, contain no headers, and the encoded data // must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280. // 3. Non-PEM content may appear before or after the "CERTIFICATE" PEM blocks and is unvalidated, // to allow for explanatory text as described in section 5.2 of RFC7468. // // If more than one PEM block is present, and the definition of the requested spec.signerName // does not indicate otherwise, the first block is the issued certificate, // and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. // // The certificate is encoded in PEM format. // // When serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of: // // base64( // -----BEGIN CERTIFICATE----- // ... // -----END CERTIFICATE----- // ) // // +listType=atomic // +optional Certificate []byte `json:"certificate,omitempty" protobuf:"bytes,2,opt,name=certificate"` } // RequestConditionType is the type of a CertificateSigningRequestCondition type RequestConditionType string // Well-known condition types for certificate requests. const ( // Approved indicates the request was approved and should be issued by the signer. CertificateApproved RequestConditionType = "Approved" // Denied indicates the request was denied and should not be issued by the signer. CertificateDenied RequestConditionType = "Denied" // Failed indicates the signer failed to issue the certificate. CertificateFailed RequestConditionType = "Failed" ) // CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object type CertificateSigningRequestCondition struct { // type of the condition. Known conditions are "Approved", "Denied", and "Failed". // // An "Approved" condition is added via the /approval subresource, // indicating the request was approved and should be issued by the signer. // // A "Denied" condition is added via the /approval subresource, // indicating the request was denied and should not be issued by the signer. // // A "Failed" condition is added via the /status subresource, // indicating the signer failed to issue the certificate. // // Approved and Denied conditions are mutually exclusive. // Approved, Denied, and Failed conditions cannot be removed once added. // // Only one condition of a given type is allowed. Type RequestConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=RequestConditionType"` // status of the condition, one of True, False, Unknown. // Approved, Denied, and Failed conditions may not be "False" or "Unknown". Status v1.ConditionStatus `json:"status" protobuf:"bytes,6,opt,name=status,casttype=k8s.io/api/core/v1.ConditionStatus"` // reason indicates a brief reason for the request state // +optional Reason string `json:"reason,omitempty" protobuf:"bytes,2,opt,name=reason"` // message contains a human readable message with details about the request state // +optional Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` // lastUpdateTime is the time of the last update to this condition // +optional LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty" protobuf:"bytes,4,opt,name=lastUpdateTime"` // lastTransitionTime is the time the condition last transitioned from one status to another. // If unset, when a new condition type is added or an existing condition's status is changed, // the server defaults this to the current time. // +optional LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,5,opt,name=lastTransitionTime"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // CertificateSigningRequestList is a collection of CertificateSigningRequest objects type CertificateSigningRequestList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // items is a collection of CertificateSigningRequest objects Items []CertificateSigningRequest `json:"items" protobuf:"bytes,2,rep,name=items"` } // KeyUsage 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 // // +enum type KeyUsage string // Valid key usages const ( UsageSigning KeyUsage = "signing" UsageDigitalSignature KeyUsage = "digital signature" UsageContentCommitment 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" UsageNetscapeSGC KeyUsage = "netscape sgc" ) golang-k8s-api-0.29.0/certificates/v1/types_swagger_doc_generated.go000066400000000000000000000257131453636404600254160ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_CertificateSigningRequest = map[string]string{ "": "CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued.\n\nKubelets use this API to obtain:\n 1. client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client-kubelet\" signerName).\n 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \"kubernetes.io/kubelet-serving\" signerName).\n\nThis API can be used to request client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client\" signerName), or to obtain certificates from custom non-Kubernetes signers.", "spec": "spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users.", "status": "status contains information about whether the request is approved or denied, and the certificate issued by the signer, or the failure condition indicating signer failure.", } func (CertificateSigningRequest) SwaggerDoc() map[string]string { return map_CertificateSigningRequest } var map_CertificateSigningRequestCondition = map[string]string{ "": "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object", "type": "type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\".\n\nAn \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer.\n\nA \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer.\n\nA \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate.\n\nApproved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added.\n\nOnly one condition of a given type is allowed.", "status": "status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\".", "reason": "reason indicates a brief reason for the request state", "message": "message contains a human readable message with details about the request state", "lastUpdateTime": "lastUpdateTime is the time of the last update to this condition", "lastTransitionTime": "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time.", } func (CertificateSigningRequestCondition) SwaggerDoc() map[string]string { return map_CertificateSigningRequestCondition } var map_CertificateSigningRequestList = map[string]string{ "": "CertificateSigningRequestList is a collection of CertificateSigningRequest objects", "items": "items is a collection of CertificateSigningRequest objects", } func (CertificateSigningRequestList) SwaggerDoc() map[string]string { return map_CertificateSigningRequestList } var map_CertificateSigningRequestSpec = map[string]string{ "": "CertificateSigningRequestSpec contains the certificate request.", "request": "request contains an x509 certificate signing request encoded in a \"CERTIFICATE REQUEST\" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded.", "signerName": "signerName indicates the requested signer, and is a qualified name.\n\nList/watch requests for CertificateSigningRequests can filter on this field using a \"spec.signerName=NAME\" fieldSelector.\n\nWell-known Kubernetes signers are:\n 1. \"kubernetes.io/kube-apiserver-client\": issues client certificates that can be used to authenticate to kube-apiserver.\n Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 2. \"kubernetes.io/kube-apiserver-client-kubelet\": issues client certificates that kubelets use to authenticate to kube-apiserver.\n Requests for this signer can be auto-approved by the \"csrapproving\" controller in kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 3. \"kubernetes.io/kubelet-serving\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely.\n Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n\nMore details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers\n\nCustom signerNames can also be specified. The signer defines:\n 1. Trust distribution: how trust (CA bundles) are distributed.\n 2. Permitted subjects: and behavior when a disallowed subject is requested.\n 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested.\n 4. Required, permitted, or forbidden key usages / extended key usages.\n 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin.\n 6. Whether or not requests for CA certificates are allowed.", "expirationSeconds": "expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration.\n\nThe v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager.\n\nCertificate signers may not honor this field for various reasons:\n\n 1. Old signer that is unaware of the field (such as the in-tree\n implementations prior to v1.22)\n 2. Signer whose configured maximum is shorter than the requested duration\n 3. Signer whose configured minimum is longer than the requested duration\n\nThe minimum valid value for expirationSeconds is 600, i.e. 10 minutes.", "usages": "usages specifies a set of key usages requested in the issued certificate.\n\nRequests for TLS client certificates typically request: \"digital signature\", \"key encipherment\", \"client auth\".\n\nRequests for TLS serving certificates typically request: \"key encipherment\", \"digital signature\", \"server auth\".\n\nValid values are:\n \"signing\", \"digital signature\", \"content commitment\",\n \"key encipherment\", \"key agreement\", \"data encipherment\",\n \"cert sign\", \"crl sign\", \"encipher only\", \"decipher only\", \"any\",\n \"server auth\", \"client auth\",\n \"code signing\", \"email protection\", \"s/mime\",\n \"ipsec end system\", \"ipsec tunnel\", \"ipsec user\",\n \"timestamping\", \"ocsp signing\", \"microsoft sgc\", \"netscape sgc\"", "username": "username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", "uid": "uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", "groups": "groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", "extra": "extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", } func (CertificateSigningRequestSpec) SwaggerDoc() map[string]string { return map_CertificateSigningRequestSpec } var map_CertificateSigningRequestStatus = map[string]string{ "": "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.", "conditions": "conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\".", "certificate": "certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable.\n\nIf the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty.\n\nValidation requirements:\n 1. certificate must contain one or more PEM blocks.\n 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data\n must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280.\n 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated,\n to allow for explanatory text as described in section 5.2 of RFC7468.\n\nIf more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes.\n\nThe certificate is encoded in PEM format.\n\nWhen serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of:\n\n base64(", } func (CertificateSigningRequestStatus) SwaggerDoc() map[string]string { return map_CertificateSigningRequestStatus } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/certificates/v1/zz_generated.deepcopy.go000066400000000000000000000137541453636404600241620ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/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) in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) 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.ExpirationSeconds != nil { in, out := &in.ExpirationSeconds, &out.ExpirationSeconds *out = new(int32) **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 } golang-k8s-api-0.29.0/certificates/v1alpha1/000077500000000000000000000000001453636404600204205ustar00rootroot00000000000000golang-k8s-api-0.29.0/certificates/v1alpha1/doc.go000066400000000000000000000014261453636404600215170ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 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 // +k8s:prerelease-lifecycle-gen=true // +groupName=certificates.k8s.io package v1alpha1 // import "k8s.io/api/certificates/v1alpha1" golang-k8s-api-0.29.0/certificates/v1alpha1/generated.pb.go000066400000000000000000000531051453636404600233110ustar00rootroot00000000000000/* 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/k8s.io/api/certificates/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *ClusterTrustBundle) Reset() { *m = ClusterTrustBundle{} } func (*ClusterTrustBundle) ProtoMessage() {} func (*ClusterTrustBundle) Descriptor() ([]byte, []int) { return fileDescriptor_8915b0d419f9eda6, []int{0} } func (m *ClusterTrustBundle) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ClusterTrustBundle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ClusterTrustBundle) XXX_Merge(src proto.Message) { xxx_messageInfo_ClusterTrustBundle.Merge(m, src) } func (m *ClusterTrustBundle) XXX_Size() int { return m.Size() } func (m *ClusterTrustBundle) XXX_DiscardUnknown() { xxx_messageInfo_ClusterTrustBundle.DiscardUnknown(m) } var xxx_messageInfo_ClusterTrustBundle proto.InternalMessageInfo func (m *ClusterTrustBundleList) Reset() { *m = ClusterTrustBundleList{} } func (*ClusterTrustBundleList) ProtoMessage() {} func (*ClusterTrustBundleList) Descriptor() ([]byte, []int) { return fileDescriptor_8915b0d419f9eda6, []int{1} } func (m *ClusterTrustBundleList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ClusterTrustBundleList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ClusterTrustBundleList) XXX_Merge(src proto.Message) { xxx_messageInfo_ClusterTrustBundleList.Merge(m, src) } func (m *ClusterTrustBundleList) XXX_Size() int { return m.Size() } func (m *ClusterTrustBundleList) XXX_DiscardUnknown() { xxx_messageInfo_ClusterTrustBundleList.DiscardUnknown(m) } var xxx_messageInfo_ClusterTrustBundleList proto.InternalMessageInfo func (m *ClusterTrustBundleSpec) Reset() { *m = ClusterTrustBundleSpec{} } func (*ClusterTrustBundleSpec) ProtoMessage() {} func (*ClusterTrustBundleSpec) Descriptor() ([]byte, []int) { return fileDescriptor_8915b0d419f9eda6, []int{2} } func (m *ClusterTrustBundleSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ClusterTrustBundleSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ClusterTrustBundleSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_ClusterTrustBundleSpec.Merge(m, src) } func (m *ClusterTrustBundleSpec) XXX_Size() int { return m.Size() } func (m *ClusterTrustBundleSpec) XXX_DiscardUnknown() { xxx_messageInfo_ClusterTrustBundleSpec.DiscardUnknown(m) } var xxx_messageInfo_ClusterTrustBundleSpec proto.InternalMessageInfo func init() { proto.RegisterType((*ClusterTrustBundle)(nil), "k8s.io.api.certificates.v1alpha1.ClusterTrustBundle") proto.RegisterType((*ClusterTrustBundleList)(nil), "k8s.io.api.certificates.v1alpha1.ClusterTrustBundleList") proto.RegisterType((*ClusterTrustBundleSpec)(nil), "k8s.io.api.certificates.v1alpha1.ClusterTrustBundleSpec") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/certificates/v1alpha1/generated.proto", fileDescriptor_8915b0d419f9eda6) } var fileDescriptor_8915b0d419f9eda6 = []byte{ // 448 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xcf, 0x6b, 0x13, 0x41, 0x14, 0xc7, 0x77, 0x6a, 0x0b, 0xed, 0x44, 0x41, 0x56, 0x90, 0x90, 0xc3, 0x34, 0xe4, 0xd4, 0x8b, 0x33, 0x26, 0x54, 0xe9, 0x79, 0x05, 0xa1, 0xe0, 0x0f, 0xd8, 0x7a, 0xb1, 0x78, 0x70, 0x32, 0x79, 0xdd, 0x8c, 0xc9, 0xee, 0x0e, 0x33, 0xb3, 0x01, 0x6f, 0x82, 0xff, 0x80, 0x7f, 0x56, 0x8e, 0xd5, 0x53, 0x4f, 0xc5, 0xac, 0xff, 0x88, 0xcc, 0x64, 0x93, 0x5d, 0x5c, 0x25, 0xd2, 0xdb, 0xbe, 0x1f, 0x9f, 0xef, 0x7b, 0xdf, 0xb7, 0x0c, 0x3e, 0x9f, 0x9d, 0x19, 0x2a, 0x73, 0x36, 0x2b, 0xc6, 0xa0, 0x33, 0xb0, 0x60, 0xd8, 0x02, 0xb2, 0x49, 0xae, 0x59, 0x55, 0xe0, 0x4a, 0x32, 0x01, 0xda, 0xca, 0x2b, 0x29, 0xb8, 0x2f, 0x0f, 0xf9, 0x5c, 0x4d, 0xf9, 0x90, 0x25, 0x90, 0x81, 0xe6, 0x16, 0x26, 0x54, 0xe9, 0xdc, 0xe6, 0x61, 0x7f, 0x4d, 0x50, 0xae, 0x24, 0x6d, 0x12, 0x74, 0x43, 0xf4, 0x9e, 0x24, 0xd2, 0x4e, 0x8b, 0x31, 0x15, 0x79, 0xca, 0x92, 0x3c, 0xc9, 0x99, 0x07, 0xc7, 0xc5, 0x95, 0x8f, 0x7c, 0xe0, 0xbf, 0xd6, 0x82, 0xbd, 0xd3, 0x7a, 0x85, 0x94, 0x8b, 0xa9, 0xcc, 0x40, 0x7f, 0x66, 0x6a, 0x96, 0xb8, 0x84, 0x61, 0x29, 0x58, 0xce, 0x16, 0xad, 0x35, 0x7a, 0xec, 0x5f, 0x94, 0x2e, 0x32, 0x2b, 0x53, 0x68, 0x01, 0xcf, 0x77, 0x01, 0x46, 0x4c, 0x21, 0xe5, 0x7f, 0x72, 0x83, 0x1f, 0x08, 0x87, 0x2f, 0xe6, 0x85, 0xb1, 0xa0, 0xdf, 0xe9, 0xc2, 0xd8, 0xa8, 0xc8, 0x26, 0x73, 0x08, 0x3f, 0xe2, 0x43, 0xb7, 0xda, 0x84, 0x5b, 0xde, 0x45, 0x7d, 0x74, 0xd2, 0x19, 0x3d, 0xa5, 0xf5, 0x65, 0xb6, 0x13, 0xa8, 0x9a, 0x25, 0x2e, 0x61, 0xa8, 0xeb, 0xa6, 0x8b, 0x21, 0x7d, 0x3b, 0xfe, 0x04, 0xc2, 0xbe, 0x06, 0xcb, 0xa3, 0x70, 0x79, 0x7b, 0x1c, 0x94, 0xb7, 0xc7, 0xb8, 0xce, 0xc5, 0x5b, 0xd5, 0xf0, 0x12, 0xef, 0x1b, 0x05, 0xa2, 0xbb, 0xe7, 0xd5, 0xcf, 0xe8, 0xae, 0xbb, 0xd3, 0xf6, 0x96, 0x17, 0x0a, 0x44, 0x74, 0xbf, 0x9a, 0xb2, 0xef, 0xa2, 0xd8, 0x6b, 0x0e, 0xbe, 0x23, 0xfc, 0xb8, 0xdd, 0xfe, 0x4a, 0x1a, 0x1b, 0x7e, 0x68, 0x19, 0xa3, 0xff, 0x67, 0xcc, 0xd1, 0xde, 0xd6, 0xc3, 0x6a, 0xe0, 0xe1, 0x26, 0xd3, 0x30, 0xf5, 0x1e, 0x1f, 0x48, 0x0b, 0xa9, 0xe9, 0xee, 0xf5, 0xef, 0x9d, 0x74, 0x46, 0xa7, 0x77, 0x71, 0x15, 0x3d, 0xa8, 0x06, 0x1c, 0x9c, 0x3b, 0xa9, 0x78, 0xad, 0x38, 0xf8, 0xfa, 0x57, 0x4f, 0xce, 0x74, 0x38, 0xc2, 0xd8, 0xc8, 0x24, 0x03, 0xfd, 0x86, 0xa7, 0xe0, 0x5d, 0x1d, 0xd5, 0xc7, 0xbf, 0xd8, 0x56, 0xe2, 0x46, 0x57, 0xf8, 0x0c, 0x77, 0x6c, 0x2d, 0xe3, 0xff, 0xc2, 0x51, 0xf4, 0xa8, 0x82, 0x3a, 0x8d, 0x09, 0x71, 0xb3, 0x2f, 0x7a, 0xb9, 0x5c, 0x91, 0xe0, 0x7a, 0x45, 0x82, 0x9b, 0x15, 0x09, 0xbe, 0x94, 0x04, 0x2d, 0x4b, 0x82, 0xae, 0x4b, 0x82, 0x6e, 0x4a, 0x82, 0x7e, 0x96, 0x04, 0x7d, 0xfb, 0x45, 0x82, 0xcb, 0xfe, 0xae, 0x67, 0xf7, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x05, 0xe9, 0xaa, 0x07, 0xb2, 0x03, 0x00, 0x00, } func (m *ClusterTrustBundle) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ClusterTrustBundle) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ClusterTrustBundle) 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 *ClusterTrustBundleList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ClusterTrustBundleList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ClusterTrustBundleList) 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 *ClusterTrustBundleSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ClusterTrustBundleSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ClusterTrustBundleSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.TrustBundle) copy(dAtA[i:], m.TrustBundle) i = encodeVarintGenerated(dAtA, i, uint64(len(m.TrustBundle))) i-- dAtA[i] = 0x12 i -= len(m.SignerName) copy(dAtA[i:], m.SignerName) i = encodeVarintGenerated(dAtA, i, uint64(len(m.SignerName))) 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 *ClusterTrustBundle) 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 *ClusterTrustBundleList) 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 *ClusterTrustBundleSpec) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.SignerName) n += 1 + l + sovGenerated(uint64(l)) l = len(m.TrustBundle) 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 *ClusterTrustBundle) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ClusterTrustBundle{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ClusterTrustBundleSpec", "ClusterTrustBundleSpec", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *ClusterTrustBundleList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]ClusterTrustBundle{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ClusterTrustBundle", "ClusterTrustBundle", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&ClusterTrustBundleList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *ClusterTrustBundleSpec) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ClusterTrustBundleSpec{`, `SignerName:` + fmt.Sprintf("%v", this.SignerName) + `,`, `TrustBundle:` + fmt.Sprintf("%v", this.TrustBundle) + `,`, `}`, }, "") 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 *ClusterTrustBundle) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ClusterTrustBundle: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ClusterTrustBundle: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ClusterTrustBundleList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ClusterTrustBundleList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ClusterTrustBundleList: 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, ClusterTrustBundle{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ClusterTrustBundleSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ClusterTrustBundleSpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ClusterTrustBundleSpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SignerName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.SignerName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TrustBundle", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.TrustBundle = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/certificates/v1alpha1/generated.proto000066400000000000000000000102401453636404600234400ustar00rootroot00000000000000/* 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.v1alpha1; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/certificates/v1alpha1"; // ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors // (root certificates). // // ClusterTrustBundle objects are considered to be readable by any authenticated // user in the cluster, because they can be mounted by pods using the // `clusterTrustBundle` projection. All service accounts have read access to // ClusterTrustBundles by default. Users who only have namespace-level access // to a cluster can read ClusterTrustBundles by impersonating a serviceaccount // that they have access to. // // It can be optionally associated with a particular assigner, in which case it // contains one valid set of trust anchors for that signer. Signers may have // multiple associated ClusterTrustBundles; each is an independent set of trust // anchors for that signer. Admission control is used to enforce that only users // with permissions on the signer can create or modify the corresponding bundle. message ClusterTrustBundle { // metadata contains the object metadata. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; // spec contains the signer (if any) and trust anchors. optional ClusterTrustBundleSpec spec = 2; } // ClusterTrustBundleList is a collection of ClusterTrustBundle objects message ClusterTrustBundleList { // metadata contains the list metadata. // // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; // items is a collection of ClusterTrustBundle objects repeated ClusterTrustBundle items = 2; } // ClusterTrustBundleSpec contains the signer and trust anchors. message ClusterTrustBundleSpec { // signerName indicates the associated signer, if any. // // In order to create or update a ClusterTrustBundle that sets signerName, // you must have the following cluster-scoped permission: // group=certificates.k8s.io resource=signers resourceName= // verb=attest. // // If signerName is not empty, then the ClusterTrustBundle object must be // named with the signer name as a prefix (translating slashes to colons). // For example, for the signer name `example.com/foo`, valid // ClusterTrustBundle object names include `example.com:foo:abc` and // `example.com:foo:v1`. // // If signerName is empty, then the ClusterTrustBundle object's name must // not have such a prefix. // // List/watch requests for ClusterTrustBundles can filter on this field // using a `spec.signerName=NAME` field selector. // // +optional optional string signerName = 1; // trustBundle contains the individual X.509 trust anchors for this // bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates. // // The data must consist only of PEM certificate blocks that parse as valid // X.509 certificates. Each certificate must include a basic constraints // extension with the CA bit set. The API server will reject objects that // contain duplicate certificates, or that use PEM block headers. // // Users of ClusterTrustBundles, including Kubelet, are free to reorder and // deduplicate certificate blocks in this file according to their own logic, // as well as to drop PEM block headers and inter-block data. optional string trustBundle = 2; } golang-k8s-api-0.29.0/certificates/v1alpha1/register.go000066400000000000000000000037201453636404600225750ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "certificates.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) localSchemeBuilder = &SchemeBuilder // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &ClusterTrustBundle{}, &ClusterTrustBundleList{}, ) // Add the watch version that applies metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/certificates/v1alpha1/types.go000066400000000000000000000105011453636404600221100ustar00rootroot00000000000000/* Copyright 2023 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +k8s:prerelease-lifecycle-gen:introduced=1.26 // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors // (root certificates). // // ClusterTrustBundle objects are considered to be readable by any authenticated // user in the cluster, because they can be mounted by pods using the // `clusterTrustBundle` projection. All service accounts have read access to // ClusterTrustBundles by default. Users who only have namespace-level access // to a cluster can read ClusterTrustBundles by impersonating a serviceaccount // that they have access to. // // It can be optionally associated with a particular assigner, in which case it // contains one valid set of trust anchors for that signer. Signers may have // multiple associated ClusterTrustBundles; each is an independent set of trust // anchors for that signer. Admission control is used to enforce that only users // with permissions on the signer can create or modify the corresponding bundle. type ClusterTrustBundle struct { metav1.TypeMeta `json:",inline"` // metadata contains the object metadata. // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // spec contains the signer (if any) and trust anchors. Spec ClusterTrustBundleSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` } // ClusterTrustBundleSpec contains the signer and trust anchors. type ClusterTrustBundleSpec struct { // signerName indicates the associated signer, if any. // // In order to create or update a ClusterTrustBundle that sets signerName, // you must have the following cluster-scoped permission: // group=certificates.k8s.io resource=signers resourceName= // verb=attest. // // If signerName is not empty, then the ClusterTrustBundle object must be // named with the signer name as a prefix (translating slashes to colons). // For example, for the signer name `example.com/foo`, valid // ClusterTrustBundle object names include `example.com:foo:abc` and // `example.com:foo:v1`. // // If signerName is empty, then the ClusterTrustBundle object's name must // not have such a prefix. // // List/watch requests for ClusterTrustBundles can filter on this field // using a `spec.signerName=NAME` field selector. // // +optional SignerName string `json:"signerName,omitempty" protobuf:"bytes,1,opt,name=signerName"` // trustBundle contains the individual X.509 trust anchors for this // bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates. // // The data must consist only of PEM certificate blocks that parse as valid // X.509 certificates. Each certificate must include a basic constraints // extension with the CA bit set. The API server will reject objects that // contain duplicate certificates, or that use PEM block headers. // // Users of ClusterTrustBundles, including Kubelet, are free to reorder and // deduplicate certificate blocks in this file according to their own logic, // as well as to drop PEM block headers and inter-block data. TrustBundle string `json:"trustBundle" protobuf:"bytes,2,opt,name=trustBundle"` } // +k8s:prerelease-lifecycle-gen:introduced=1.26 // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // ClusterTrustBundleList is a collection of ClusterTrustBundle objects type ClusterTrustBundleList struct { metav1.TypeMeta `json:",inline"` // metadata contains the list metadata. // // +optional metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // items is a collection of ClusterTrustBundle objects Items []ClusterTrustBundle `json:"items" protobuf:"bytes,2,rep,name=items"` } golang-k8s-api-0.29.0/certificates/v1alpha1/types_swagger_doc_generated.go000066400000000000000000000105061453636404600264770ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_ClusterTrustBundle = map[string]string{ "": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to.\n\nIt can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.", "metadata": "metadata contains the object metadata.", "spec": "spec contains the signer (if any) and trust anchors.", } func (ClusterTrustBundle) SwaggerDoc() map[string]string { return map_ClusterTrustBundle } var map_ClusterTrustBundleList = map[string]string{ "": "ClusterTrustBundleList is a collection of ClusterTrustBundle objects", "metadata": "metadata contains the list metadata.", "items": "items is a collection of ClusterTrustBundle objects", } func (ClusterTrustBundleList) SwaggerDoc() map[string]string { return map_ClusterTrustBundleList } var map_ClusterTrustBundleSpec = map[string]string{ "": "ClusterTrustBundleSpec contains the signer and trust anchors.", "signerName": "signerName indicates the associated signer, if any.\n\nIn order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName= verb=attest.\n\nIf signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.\n\nIf signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.\n\nList/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.", "trustBundle": "trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.\n\nThe data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.\n\nUsers of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.", } func (ClusterTrustBundleSpec) SwaggerDoc() map[string]string { return map_ClusterTrustBundleSpec } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/certificates/v1alpha1/zz_generated.deepcopy.go000066400000000000000000000057551453636404600252530ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ClusterTrustBundle) DeepCopyInto(out *ClusterTrustBundle) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTrustBundle. func (in *ClusterTrustBundle) DeepCopy() *ClusterTrustBundle { if in == nil { return nil } out := new(ClusterTrustBundle) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *ClusterTrustBundle) 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 *ClusterTrustBundleList) DeepCopyInto(out *ClusterTrustBundleList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ClusterTrustBundle, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTrustBundleList. func (in *ClusterTrustBundleList) DeepCopy() *ClusterTrustBundleList { if in == nil { return nil } out := new(ClusterTrustBundleList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *ClusterTrustBundleList) 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 *ClusterTrustBundleSpec) DeepCopyInto(out *ClusterTrustBundleSpec) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTrustBundleSpec. func (in *ClusterTrustBundleSpec) DeepCopy() *ClusterTrustBundleSpec { if in == nil { return nil } out := new(ClusterTrustBundleSpec) in.DeepCopyInto(out) return out } golang-k8s-api-0.29.0/certificates/v1alpha1/zz_generated.prerelease-lifecycle.go000066400000000000000000000057361453636404600275260ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1alpha1 // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ClusterTrustBundle) APILifecycleIntroduced() (major, minor int) { return 1, 26 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ClusterTrustBundle) APILifecycleDeprecated() (major, minor int) { return 1, 29 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ClusterTrustBundle) APILifecycleRemoved() (major, minor int) { return 1, 32 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ClusterTrustBundleList) APILifecycleIntroduced() (major, minor int) { return 1, 26 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ClusterTrustBundleList) APILifecycleDeprecated() (major, minor int) { return 1, 29 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ClusterTrustBundleList) APILifecycleRemoved() (major, minor int) { return 1, 32 } golang-k8s-api-0.29.0/certificates/v1beta1/000077500000000000000000000000001453636404600202465ustar00rootroot00000000000000golang-k8s-api-0.29.0/certificates/v1beta1/doc.go000066400000000000000000000014241453636404600213430ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true // +groupName=certificates.k8s.io package v1beta1 // import "k8s.io/api/certificates/v1beta1" golang-k8s-api-0.29.0/certificates/v1beta1/generated.pb.go000066400000000000000000001537331453636404600231470ustar00rootroot00000000000000/* 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/k8s.io/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" k8s_io_api_core_v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // 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/k8s.io/api/certificates/v1beta1/generated.proto", fileDescriptor_09d156762b8218ef) } var fileDescriptor_09d156762b8218ef = []byte{ // 915 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x5d, 0x6f, 0x1b, 0x45, 0x17, 0xf6, 0xc6, 0x1f, 0xb1, 0xc7, 0x79, 0xd3, 0x76, 0xf4, 0x52, 0x2d, 0x96, 0xea, 0xb5, 0x2c, 0x40, 0xe1, 0x6b, 0x96, 0x54, 0x15, 0x44, 0xb9, 0x40, 0xb0, 0x21, 0x82, 0x88, 0x14, 0xa4, 0x49, 0xc2, 0x05, 0x42, 0xa2, 0xe3, 0xf5, 0xe9, 0x66, 0xea, 0xee, 0x07, 0x3b, 0xb3, 0xa6, 0xbe, 0xeb, 0x4f, 0xe0, 0x92, 0x4b, 0xfe, 0x03, 0x7f, 0x22, 0x5c, 0x20, 0xf5, 0xb2, 0x17, 0xc8, 0x22, 0xee, 0xbf, 0xc8, 0x15, 0x9a, 0xd9, 0xf1, 0xda, 0xb1, 0x13, 0x5c, 0xda, 0xbb, 0x9d, 0x67, 0xce, 0xf3, 0x3c, 0x67, 0xce, 0x9c, 0x33, 0x36, 0xfa, 0x6a, 0xb0, 0x23, 0x08, 0x8f, 0xdd, 0x41, 0xd6, 0x83, 0x34, 0x02, 0x09, 0xc2, 0x1d, 0x42, 0xd4, 0x8f, 0x53, 0xd7, 0x6c, 0xb0, 0x84, 0xbb, 0x3e, 0xa4, 0x92, 0x3f, 0xe4, 0x3e, 0xd3, 0xdb, 0xdb, 0x3d, 0x90, 0x6c, 0xdb, 0x0d, 0x20, 0x82, 0x94, 0x49, 0xe8, 0x93, 0x24, 0x8d, 0x65, 0x8c, 0x9d, 0x9c, 0x40, 0x58, 0xc2, 0xc9, 0x3c, 0x81, 0x18, 0x42, 0xeb, 0xc3, 0x80, 0xcb, 0xd3, 0xac, 0x47, 0xfc, 0x38, 0x74, 0x83, 0x38, 0x88, 0x5d, 0xcd, 0xeb, 0x65, 0x0f, 0xf5, 0x4a, 0x2f, 0xf4, 0x57, 0xae, 0xd7, 0xea, 0xce, 0x27, 0x10, 0xa7, 0xe0, 0x0e, 0x97, 0x3c, 0x5b, 0xf7, 0x66, 0x31, 0x21, 0xf3, 0x4f, 0x79, 0x04, 0xe9, 0xc8, 0x4d, 0x06, 0x81, 0x02, 0x84, 0x1b, 0x82, 0x64, 0x57, 0xb1, 0xdc, 0xeb, 0x58, 0x69, 0x16, 0x49, 0x1e, 0xc2, 0x12, 0xe1, 0xe3, 0x55, 0x04, 0xe1, 0x9f, 0x42, 0xc8, 0x16, 0x79, 0xdd, 0x3f, 0xd6, 0xd0, 0x9b, 0x7b, 0xb3, 0x52, 0x1c, 0xf1, 0x20, 0xe2, 0x51, 0x40, 0xe1, 0xa7, 0x0c, 0x84, 0xc4, 0x0f, 0x50, 0x5d, 0x65, 0xd8, 0x67, 0x92, 0xd9, 0x56, 0xc7, 0xda, 0x6a, 0xde, 0xfd, 0x88, 0xcc, 0x6a, 0x58, 0x18, 0x91, 0x64, 0x10, 0x28, 0x40, 0x10, 0x15, 0x4d, 0x86, 0xdb, 0xe4, 0xdb, 0xde, 0x23, 0xf0, 0xe5, 0x7d, 0x90, 0xcc, 0xc3, 0x67, 0x63, 0xa7, 0x34, 0x19, 0x3b, 0x68, 0x86, 0xd1, 0x42, 0x15, 0x3f, 0x40, 0x15, 0x91, 0x80, 0x6f, 0xaf, 0x69, 0xf5, 0x4f, 0xc9, 0x8a, 0x1b, 0x22, 0xd7, 0xe6, 0x7a, 0x94, 0x80, 0xef, 0x6d, 0x18, 0xaf, 0x8a, 0x5a, 0x51, 0xad, 0x8c, 0x4f, 0x51, 0x4d, 0x48, 0x26, 0x33, 0x61, 0x97, 0xb5, 0xc7, 0x67, 0xaf, 0xe1, 0xa1, 0x75, 0xbc, 0x4d, 0xe3, 0x52, 0xcb, 0xd7, 0xd4, 0xe8, 0x77, 0x5f, 0x94, 0x51, 0xf7, 0x5a, 0xee, 0x5e, 0x1c, 0xf5, 0xb9, 0xe4, 0x71, 0x84, 0x77, 0x50, 0x45, 0x8e, 0x12, 0xd0, 0x05, 0x6d, 0x78, 0x6f, 0x4d, 0x53, 0x3e, 0x1e, 0x25, 0x70, 0x31, 0x76, 0xfe, 0xbf, 0x18, 0xaf, 0x70, 0xaa, 0x19, 0xf8, 0xb0, 0x38, 0x4a, 0x4d, 0x73, 0xef, 0x5d, 0x4e, 0xe4, 0x62, 0xec, 0x5c, 0xd1, 0x91, 0xa4, 0x50, 0xba, 0x9c, 0x2e, 0x7e, 0x07, 0xd5, 0x52, 0x60, 0x22, 0x8e, 0x74, 0xf1, 0x1b, 0xb3, 0x63, 0x51, 0x8d, 0x52, 0xb3, 0x8b, 0xdf, 0x45, 0xeb, 0x21, 0x08, 0xc1, 0x02, 0xd0, 0x15, 0x6c, 0x78, 0x37, 0x4c, 0xe0, 0xfa, 0xfd, 0x1c, 0xa6, 0xd3, 0x7d, 0xfc, 0x08, 0x6d, 0x3e, 0x66, 0x42, 0x9e, 0x24, 0x7d, 0x26, 0xe1, 0x98, 0x87, 0x60, 0x57, 0x74, 0xcd, 0xdf, 0x7b, 0xb9, 0xae, 0x51, 0x0c, 0xef, 0xb6, 0x51, 0xdf, 0x3c, 0xbc, 0xa4, 0x44, 0x17, 0x94, 0xf1, 0x10, 0x61, 0x85, 0x1c, 0xa7, 0x2c, 0x12, 0x79, 0xa1, 0x94, 0x5f, 0xf5, 0x3f, 0xfb, 0xb5, 0x8c, 0x1f, 0x3e, 0x5c, 0x52, 0xa3, 0x57, 0x38, 0x74, 0xc7, 0x16, 0xba, 0x73, 0xed, 0x2d, 0x1f, 0x72, 0x21, 0xf1, 0x0f, 0x4b, 0x53, 0x43, 0x5e, 0x2e, 0x1f, 0xc5, 0xd6, 0x33, 0x73, 0xd3, 0xe4, 0x54, 0x9f, 0x22, 0x73, 0x13, 0xf3, 0x23, 0xaa, 0x72, 0x09, 0xa1, 0xb0, 0xd7, 0x3a, 0xe5, 0xad, 0xe6, 0xdd, 0xdd, 0x57, 0x6f, 0x67, 0xef, 0x7f, 0xc6, 0xa6, 0x7a, 0xa0, 0x04, 0x69, 0xae, 0xdb, 0xfd, 0xbd, 0xf2, 0x2f, 0x07, 0x54, 0x83, 0x85, 0xdf, 0x46, 0xeb, 0x69, 0xbe, 0xd4, 0xe7, 0xdb, 0xf0, 0x9a, 0xaa, 0x1b, 0x4c, 0x04, 0x9d, 0xee, 0x61, 0x82, 0x90, 0xe0, 0x41, 0x04, 0xe9, 0x37, 0x2c, 0x04, 0x7b, 0x3d, 0x6f, 0x32, 0xf5, 0x12, 0x1c, 0x15, 0x28, 0x9d, 0x8b, 0xc0, 0x7b, 0xe8, 0x16, 0x3c, 0x49, 0x78, 0xca, 0x74, 0xb3, 0x82, 0x1f, 0x47, 0x7d, 0x61, 0xd7, 0x3b, 0xd6, 0x56, 0xd5, 0x7b, 0x63, 0x32, 0x76, 0x6e, 0xed, 0x2f, 0x6e, 0xd2, 0xe5, 0x78, 0x4c, 0x50, 0x2d, 0x53, 0xbd, 0x28, 0xec, 0x6a, 0xa7, 0xbc, 0xd5, 0xf0, 0x6e, 0xab, 0x8e, 0x3e, 0xd1, 0xc8, 0xc5, 0xd8, 0xa9, 0x7f, 0x0d, 0x23, 0xbd, 0xa0, 0x26, 0x0a, 0x7f, 0x80, 0xea, 0x99, 0x80, 0x34, 0x52, 0x29, 0xe6, 0x73, 0x50, 0x14, 0xff, 0xc4, 0xe0, 0xb4, 0x88, 0xc0, 0x77, 0x50, 0x39, 0xe3, 0x7d, 0x33, 0x07, 0x4d, 0x13, 0x58, 0x3e, 0x39, 0xf8, 0x82, 0x2a, 0x1c, 0x77, 0x51, 0x2d, 0x48, 0xe3, 0x2c, 0x11, 0x76, 0x45, 0x9b, 0x23, 0x65, 0xfe, 0xa5, 0x46, 0xa8, 0xd9, 0xc1, 0x11, 0xaa, 0xc2, 0x13, 0x99, 0x32, 0xbb, 0xa6, 0xef, 0xef, 0xe0, 0xf5, 0x9e, 0x3c, 0xb2, 0xaf, 0xb4, 0xf6, 0x23, 0x99, 0x8e, 0x66, 0xd7, 0xa9, 0x31, 0x9a, 0xdb, 0xb4, 0x00, 0xa1, 0x59, 0x0c, 0xbe, 0x89, 0xca, 0x03, 0x18, 0xe5, 0x6f, 0x0f, 0x55, 0x9f, 0xf8, 0x73, 0x54, 0x1d, 0xb2, 0xc7, 0x19, 0x98, 0x27, 0xf8, 0xfd, 0x95, 0xf9, 0x68, 0xb5, 0xef, 0x14, 0x85, 0xe6, 0xcc, 0xdd, 0xb5, 0x1d, 0xab, 0xfb, 0xa7, 0x85, 0x9c, 0x15, 0x0f, 0x27, 0xfe, 0x19, 0x21, 0x7f, 0xfa, 0x18, 0x09, 0xdb, 0xd2, 0xe7, 0xdf, 0x7b, 0xf5, 0xf3, 0x17, 0x0f, 0xdb, 0xec, 0x37, 0xa6, 0x80, 0x04, 0x9d, 0xb3, 0xc2, 0xdb, 0xa8, 0x39, 0x27, 0xad, 0x4f, 0xba, 0xe1, 0xdd, 0x98, 0x8c, 0x9d, 0xe6, 0x9c, 0x38, 0x9d, 0x8f, 0xe9, 0x7e, 0x62, 0xca, 0xa6, 0x0f, 0x8a, 0x9d, 0xe9, 0xd0, 0x59, 0xfa, 0x5e, 0x1b, 0x8b, 0x43, 0xb3, 0x5b, 0xff, 0xf5, 0x37, 0xa7, 0xf4, 0xf4, 0xaf, 0x4e, 0xc9, 0xdb, 0x3f, 0x3b, 0x6f, 0x97, 0x9e, 0x9d, 0xb7, 0x4b, 0xcf, 0xcf, 0xdb, 0xa5, 0xa7, 0x93, 0xb6, 0x75, 0x36, 0x69, 0x5b, 0xcf, 0x26, 0x6d, 0xeb, 0xf9, 0xa4, 0x6d, 0xfd, 0x3d, 0x69, 0x5b, 0xbf, 0xbc, 0x68, 0x97, 0xbe, 0x77, 0x56, 0xfc, 0x77, 0xf9, 0x27, 0x00, 0x00, 0xff, 0xff, 0x7b, 0xe7, 0x9b, 0x78, 0xf6, 0x08, 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 i -= len(m.Status) copy(dAtA[i:], m.Status) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) i-- dAtA[i] = 0x32 { size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a { 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 m.ExpirationSeconds != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.ExpirationSeconds)) i-- dAtA[i] = 0x40 } if m.SignerName != nil { i -= len(*m.SignerName) copy(dAtA[i:], *m.SignerName) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SignerName))) i-- dAtA[i] = 0x3a } 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)) l = m.LastTransitionTime.Size() n += 1 + l + sovGenerated(uint64(l)) l = len(m.Status) 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)) } } if m.SignerName != nil { l = len(*m.SignerName) n += 1 + l + sovGenerated(uint64(l)) } if m.ExpirationSeconds != nil { n += 1 + sovGenerated(uint64(*m.ExpirationSeconds)) } 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) + `,`, `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, `Status:` + fmt.Sprintf("%v", this.Status) + `,`, `}`, }, "") 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 + `,`, `SignerName:` + valueToStringGenerated(this.SignerName) + `,`, `ExpirationSeconds:` + valueToStringGenerated(this.ExpirationSeconds) + `,`, `}`, }, "") 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) || (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 case 5: 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 6: 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > postIndex { return io.ErrUnexpectedEOF } iNdEx += skippy } } m.Extra[mapkey] = *mapvalue iNdEx = postIndex case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SignerName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.SignerName = &s iNdEx = postIndex case 8: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ExpirationSeconds", 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.ExpirationSeconds = &v default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/certificates/v1beta1/generated.proto000066400000000000000000000152461453636404600233010ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/certificates/v1beta1"; // Describes a certificate signing request message CertificateSigningRequest { // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; // spec contains the certificate request, and is immutable after creation. // Only the request, signerName, expirationSeconds, and usages fields can be set on creation. // Other fields are derived by Kubernetes and cannot be modified by users. optional CertificateSigningRequestSpec spec = 2; // Derived information about the request. // +optional optional CertificateSigningRequestStatus status = 3; } message CertificateSigningRequestCondition { // type of the condition. Known conditions include "Approved", "Denied", and "Failed". optional string type = 1; // Status of the condition, one of True, False, Unknown. // Approved, Denied, and Failed conditions may not be "False" or "Unknown". // Defaults to "True". // If unset, should be treated as "True". // +optional optional string status = 6; // 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; // lastTransitionTime is the time the condition last transitioned from one status to another. // If unset, when a new condition type is added or an existing condition's status is changed, // the server defaults this to the current time. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 5; } message CertificateSigningRequestList { // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; repeated CertificateSigningRequest items = 2; } // CertificateSigningRequestSpec contains the certificate request. message CertificateSigningRequestSpec { // Base64-encoded PKCS#10 CSR data // +listType=atomic optional bytes request = 1; // Requested signer for the request. It is a qualified name in the form: // `scope-hostname.io/name`. // If empty, it will be defaulted: // 1. If it's a kubelet client certificate, it is assigned // "kubernetes.io/kube-apiserver-client-kubelet". // 2. If it's a kubelet serving certificate, it is assigned // "kubernetes.io/kubelet-serving". // 3. Otherwise, it is assigned "kubernetes.io/legacy-unknown". // Distribution of trust for signers happens out of band. // You can select on this field using `spec.signerName`. // +optional optional string signerName = 7; // expirationSeconds is the requested duration of validity of the issued // certificate. The certificate signer may issue a certificate with a different // validity duration so a client must check the delta between the notBefore and // and notAfter fields in the issued certificate to determine the actual duration. // // The v1.22+ in-tree implementations of the well-known Kubernetes signers will // honor this field as long as the requested duration is not greater than the // maximum duration they will honor per the --cluster-signing-duration CLI // flag to the Kubernetes controller manager. // // Certificate signers may not honor this field for various reasons: // // 1. Old signer that is unaware of the field (such as the in-tree // implementations prior to v1.22) // 2. Signer whose configured maximum is shorter than the requested duration // 3. Signer whose configured minimum is longer than the requested duration // // The minimum valid value for expirationSeconds is 600, i.e. 10 minutes. // // +optional optional int32 expirationSeconds = 8; // 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 // // Valid values are: // "signing", // "digital signature", // "content commitment", // "key encipherment", // "key agreement", // "data encipherment", // "cert sign", // "crl sign", // "encipher only", // "decipher only", // "any", // "server auth", // "client auth", // "code signing", // "email protection", // "s/mime", // "ipsec end system", // "ipsec tunnel", // "ipsec user", // "timestamping", // "ocsp signing", // "microsoft sgc", // "netscape sgc" // +listType=atomic 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. // +listType=atomic // +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. // +listType=map // +listMapKey=type // +optional repeated CertificateSigningRequestCondition conditions = 1; // If request was approved, the controller will place the issued certificate here. // +listType=atomic // +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; } golang-k8s-api-0.29.0/certificates/v1beta1/register.go000066400000000000000000000036771453636404600224360ustar00rootroot00000000000000/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package v1beta1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to 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 } golang-k8s-api-0.29.0/certificates/v1beta1/types.go000066400000000000000000000246551453636404600217550ustar00rootroot00000000000000/* 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" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.12 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:replacement=certificates.k8s.io,v1,CertificateSigningRequest // Describes a certificate signing request type CertificateSigningRequest struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // spec contains the certificate request, and is immutable after creation. // Only the request, signerName, expirationSeconds, and usages fields can be set on creation. // Other fields are derived by Kubernetes and cannot be modified by users. Spec CertificateSigningRequestSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // Derived information about the request. // +optional Status CertificateSigningRequestStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // CertificateSigningRequestSpec contains the certificate request. type CertificateSigningRequestSpec struct { // Base64-encoded PKCS#10 CSR data // +listType=atomic Request []byte `json:"request" protobuf:"bytes,1,opt,name=request"` // Requested signer for the request. It is a qualified name in the form: // `scope-hostname.io/name`. // If empty, it will be defaulted: // 1. If it's a kubelet client certificate, it is assigned // "kubernetes.io/kube-apiserver-client-kubelet". // 2. If it's a kubelet serving certificate, it is assigned // "kubernetes.io/kubelet-serving". // 3. Otherwise, it is assigned "kubernetes.io/legacy-unknown". // Distribution of trust for signers happens out of band. // You can select on this field using `spec.signerName`. // +optional SignerName *string `json:"signerName,omitempty" protobuf:"bytes,7,opt,name=signerName"` // expirationSeconds is the requested duration of validity of the issued // certificate. The certificate signer may issue a certificate with a different // validity duration so a client must check the delta between the notBefore and // and notAfter fields in the issued certificate to determine the actual duration. // // The v1.22+ in-tree implementations of the well-known Kubernetes signers will // honor this field as long as the requested duration is not greater than the // maximum duration they will honor per the --cluster-signing-duration CLI // flag to the Kubernetes controller manager. // // Certificate signers may not honor this field for various reasons: // // 1. Old signer that is unaware of the field (such as the in-tree // implementations prior to v1.22) // 2. Signer whose configured maximum is shorter than the requested duration // 3. Signer whose configured minimum is longer than the requested duration // // The minimum valid value for expirationSeconds is 600, i.e. 10 minutes. // // +optional ExpirationSeconds *int32 `json:"expirationSeconds,omitempty" protobuf:"varint,8,opt,name=expirationSeconds"` // 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 // // Valid values are: // "signing", // "digital signature", // "content commitment", // "key encipherment", // "key agreement", // "data encipherment", // "cert sign", // "crl sign", // "encipher only", // "decipher only", // "any", // "server auth", // "client auth", // "code signing", // "email protection", // "s/mime", // "ipsec end system", // "ipsec tunnel", // "ipsec user", // "timestamping", // "ocsp signing", // "microsoft sgc", // "netscape sgc" // +listType=atomic 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. // +listType=atomic // +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"` } // Built in signerName values that are honoured by kube-controller-manager. // None of these usages are related to ServiceAccount token secrets // `.data[ca.crt]` in any way. const ( // Signs certificates that will be honored as client-certs by the // kube-apiserver. Never auto-approved by kube-controller-manager. KubeAPIServerClientSignerName = "kubernetes.io/kube-apiserver-client" // Signs client certificates that will be honored as client-certs by the // kube-apiserver for a kubelet. // May be auto-approved by kube-controller-manager. KubeAPIServerClientKubeletSignerName = "kubernetes.io/kube-apiserver-client-kubelet" // Signs serving certificates that are honored as a valid kubelet serving // certificate by the kube-apiserver, but has no other guarantees. KubeletServingSignerName = "kubernetes.io/kubelet-serving" // Has no guarantees for trust at all. Some distributions may honor these // as client certs, but that behavior is not standard kubernetes behavior. LegacyUnknownSignerName = "kubernetes.io/legacy-unknown" ) // 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. // +listType=map // +listMapKey=type // +optional Conditions []CertificateSigningRequestCondition `json:"conditions,omitempty" protobuf:"bytes,1,rep,name=conditions"` // If request was approved, the controller will place the issued certificate here. // +listType=atomic // +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" CertificateFailed RequestConditionType = "Failed" ) type CertificateSigningRequestCondition struct { // type of the condition. Known conditions include "Approved", "Denied", and "Failed". Type RequestConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=RequestConditionType"` // Status of the condition, one of True, False, Unknown. // Approved, Denied, and Failed conditions may not be "False" or "Unknown". // Defaults to "True". // If unset, should be treated as "True". // +optional Status v1.ConditionStatus `json:"status" protobuf:"bytes,6,opt,name=status,casttype=k8s.io/api/core/v1.ConditionStatus"` // 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"` // lastTransitionTime is the time the condition last transitioned from one status to another. // If unset, when a new condition type is added or an existing condition's status is changed, // the server defaults this to the current time. // +optional LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,5,opt,name=lastTransitionTime"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.12 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:replacement=certificates.k8s.io,v1,CertificateSigningRequestList 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" UsageContentCommitment 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" UsageNetscapeSGC KeyUsage = "netscape sgc" ) golang-k8s-api-0.29.0/certificates/v1beta1/types_swagger_doc_generated.go000066400000000000000000000137011453636404600263250ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_CertificateSigningRequest = map[string]string{ "": "Describes a certificate signing request", "spec": "spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users.", "status": "Derived information about the request.", } func (CertificateSigningRequest) SwaggerDoc() map[string]string { return map_CertificateSigningRequest } var map_CertificateSigningRequestCondition = map[string]string{ "type": "type of the condition. Known conditions include \"Approved\", \"Denied\", and \"Failed\".", "status": "Status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\". Defaults to \"True\". If unset, should be treated as \"True\".", "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", "lastTransitionTime": "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time.", } func (CertificateSigningRequestCondition) SwaggerDoc() map[string]string { return map_CertificateSigningRequestCondition } var map_CertificateSigningRequestSpec = map[string]string{ "": "CertificateSigningRequestSpec contains the certificate request.", "request": "Base64-encoded PKCS#10 CSR data", "signerName": "Requested signer for the request. It is a qualified name in the form: `scope-hostname.io/name`. If empty, it will be defaulted:\n 1. If it's a kubelet client certificate, it is assigned\n \"kubernetes.io/kube-apiserver-client-kubelet\".\n 2. If it's a kubelet serving certificate, it is assigned\n \"kubernetes.io/kubelet-serving\".\n 3. Otherwise, it is assigned \"kubernetes.io/legacy-unknown\".\nDistribution of trust for signers happens out of band. You can select on this field using `spec.signerName`.", "expirationSeconds": "expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration.\n\nThe v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager.\n\nCertificate signers may not honor this field for various reasons:\n\n 1. Old signer that is unaware of the field (such as the in-tree\n implementations prior to v1.22)\n 2. Signer whose configured maximum is shorter than the requested duration\n 3. Signer whose configured minimum is longer than the requested duration\n\nThe minimum valid value for expirationSeconds is 600, i.e. 10 minutes.", "usages": "allowedUsages specifies a set of usage contexts the key will be valid for. See:\n\thttps://tools.ietf.org/html/rfc5280#section-4.2.1.3\n\thttps://tools.ietf.org/html/rfc5280#section-4.2.1.12\n\nValid values are:\n \"signing\",\n \"digital signature\",\n \"content commitment\",\n \"key encipherment\",\n \"key agreement\",\n \"data encipherment\",\n \"cert sign\",\n \"crl sign\",\n \"encipher only\",\n \"decipher only\",\n \"any\",\n \"server auth\",\n \"client auth\",\n \"code signing\",\n \"email protection\",\n \"s/mime\",\n \"ipsec end system\",\n \"ipsec tunnel\",\n \"ipsec user\",\n \"timestamping\",\n \"ocsp signing\",\n \"microsoft sgc\",\n \"netscape sgc\"", "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 golang-k8s-api-0.29.0/certificates/v1beta1/zz_generated.deepcopy.go000066400000000000000000000141401453636404600250650ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/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) in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) 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.SignerName != nil { in, out := &in.SignerName, &out.SignerName *out = new(string) **out = **in } if in.ExpirationSeconds != nil { in, out := &in.ExpirationSeconds, &out.ExpirationSeconds *out = new(int32) **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 } golang-k8s-api-0.29.0/certificates/v1beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000077501453636404600273520ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta1 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *CertificateSigningRequest) APILifecycleIntroduced() (major, minor int) { return 1, 12 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *CertificateSigningRequest) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *CertificateSigningRequest) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "certificates.k8s.io", Version: "v1", Kind: "CertificateSigningRequest"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *CertificateSigningRequest) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *CertificateSigningRequestList) APILifecycleIntroduced() (major, minor int) { return 1, 12 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *CertificateSigningRequestList) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *CertificateSigningRequestList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "certificates.k8s.io", Version: "v1", Kind: "CertificateSigningRequestList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *CertificateSigningRequestList) APILifecycleRemoved() (major, minor int) { return 1, 22 } golang-k8s-api-0.29.0/code-of-conduct.md000066400000000000000000000002241453636404600176270ustar00rootroot00000000000000# Kubernetes Community Code of Conduct Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md) golang-k8s-api-0.29.0/coordination/000077500000000000000000000000001453636404600170265ustar00rootroot00000000000000golang-k8s-api-0.29.0/coordination/v1/000077500000000000000000000000001453636404600173545ustar00rootroot00000000000000golang-k8s-api-0.29.0/coordination/v1/doc.go000066400000000000000000000013441453636404600204520ustar00rootroot00000000000000/* 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 "k8s.io/api/coordination/v1" golang-k8s-api-0.29.0/coordination/v1/generated.pb.go000066400000000000000000000602231453636404600222440ustar00rootroot00000000000000/* 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/k8s.io/api/coordination/v1/generated.proto package v1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // 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/k8s.io/api/coordination/v1/generated.proto", fileDescriptor_929e1148ad9baca3) } var fileDescriptor_929e1148ad9baca3 = []byte{ // 539 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xcf, 0x6e, 0xd3, 0x4c, 0x14, 0xc5, 0xe3, 0x36, 0x91, 0x9a, 0xc9, 0xd7, 0x7e, 0x91, 0x95, 0x85, 0x95, 0x85, 0x5d, 0x22, 0x21, 0x75, 0xc3, 0x0c, 0xa9, 0x10, 0x42, 0xac, 0x8a, 0x41, 0x40, 0xa5, 0x54, 0x48, 0x6e, 0x57, 0xa8, 0x0b, 0x26, 0xf6, 0xc5, 0x19, 0x52, 0x7b, 0xcc, 0xcc, 0x38, 0xa8, 0x3b, 0x1e, 0x81, 0x2d, 0x8f, 0x01, 0x4f, 0x91, 0x65, 0x97, 0x5d, 0x59, 0xc4, 0xbc, 0x08, 0x9a, 0x49, 0xda, 0x84, 0xfc, 0x51, 0x2b, 0x76, 0x9e, 0x7b, 0xef, 0xf9, 0xdd, 0x73, 0xcf, 0xc2, 0xe8, 0xe5, 0xf0, 0x99, 0xc4, 0x8c, 0x93, 0x61, 0xde, 0x07, 0x91, 0x82, 0x02, 0x49, 0x46, 0x90, 0x46, 0x5c, 0x90, 0x59, 0x83, 0x66, 0x8c, 0x84, 0x9c, 0x8b, 0x88, 0xa5, 0x54, 0x31, 0x9e, 0x92, 0x51, 0x97, 0xc4, 0x90, 0x82, 0xa0, 0x0a, 0x22, 0x9c, 0x09, 0xae, 0xb8, 0xdd, 0x9e, 0xce, 0x62, 0x9a, 0x31, 0xbc, 0x38, 0x8b, 0x47, 0xdd, 0xf6, 0xa3, 0x98, 0xa9, 0x41, 0xde, 0xc7, 0x21, 0x4f, 0x48, 0xcc, 0x63, 0x4e, 0x8c, 0xa4, 0x9f, 0x7f, 0x34, 0x2f, 0xf3, 0x30, 0x5f, 0x53, 0x54, 0xfb, 0xc9, 0x7c, 0x6d, 0x42, 0xc3, 0x01, 0x4b, 0x41, 0x5c, 0x92, 0x6c, 0x18, 0xeb, 0x82, 0x24, 0x09, 0x28, 0xba, 0xc6, 0x40, 0x9b, 0x6c, 0x52, 0x89, 0x3c, 0x55, 0x2c, 0x81, 0x15, 0xc1, 0xd3, 0xbb, 0x04, 0x32, 0x1c, 0x40, 0x42, 0x97, 0x75, 0x9d, 0x9f, 0x16, 0xaa, 0xf5, 0x80, 0x4a, 0xb0, 0x3f, 0xa0, 0x1d, 0xed, 0x26, 0xa2, 0x8a, 0x3a, 0xd6, 0xbe, 0x75, 0xd0, 0x38, 0x7c, 0x8c, 0xe7, 0x31, 0xdc, 0x42, 0x71, 0x36, 0x8c, 0x75, 0x41, 0x62, 0x3d, 0x8d, 0x47, 0x5d, 0xfc, 0xae, 0xff, 0x09, 0x42, 0x75, 0x02, 0x8a, 0xfa, 0xf6, 0xb8, 0xf0, 0x2a, 0x65, 0xe1, 0xa1, 0x79, 0x2d, 0xb8, 0xa5, 0xda, 0x6f, 0x50, 0x55, 0x66, 0x10, 0x3a, 0x5b, 0x86, 0xfe, 0x10, 0x6f, 0x0e, 0x19, 0x1b, 0x4b, 0xa7, 0x19, 0x84, 0xfe, 0x7f, 0x33, 0x64, 0x55, 0xbf, 0x02, 0x03, 0xe8, 0xfc, 0xb0, 0x50, 0xdd, 0x4c, 0xf4, 0x98, 0x54, 0xf6, 0xf9, 0x8a, 0x71, 0x7c, 0x3f, 0xe3, 0x5a, 0x6d, 0x6c, 0x37, 0x67, 0x3b, 0x76, 0x6e, 0x2a, 0x0b, 0xa6, 0x5f, 0xa3, 0x1a, 0x53, 0x90, 0x48, 0x67, 0x6b, 0x7f, 0xfb, 0xa0, 0x71, 0xf8, 0xe0, 0x4e, 0xd7, 0xfe, 0xee, 0x8c, 0x56, 0x3b, 0xd6, 0xba, 0x60, 0x2a, 0xef, 0x7c, 0xdf, 0x9e, 0x79, 0xd6, 0x77, 0xd8, 0xcf, 0xd1, 0xde, 0x80, 0x5f, 0x44, 0x20, 0x8e, 0x23, 0x48, 0x15, 0x53, 0x97, 0xc6, 0x79, 0xdd, 0xb7, 0xcb, 0xc2, 0xdb, 0x7b, 0xfb, 0x57, 0x27, 0x58, 0x9a, 0xb4, 0x7b, 0xa8, 0x75, 0xa1, 0x41, 0xaf, 0x72, 0x61, 0x36, 0x9f, 0x42, 0xc8, 0xd3, 0x48, 0x9a, 0x58, 0x6b, 0xbe, 0x53, 0x16, 0x5e, 0xab, 0xb7, 0xa6, 0x1f, 0xac, 0x55, 0xd9, 0x7d, 0xd4, 0xa0, 0xe1, 0xe7, 0x9c, 0x09, 0x38, 0x63, 0x09, 0x38, 0xdb, 0x26, 0x40, 0x72, 0xbf, 0x00, 0x4f, 0x58, 0x28, 0xb8, 0x96, 0xf9, 0xff, 0x97, 0x85, 0xd7, 0x78, 0x31, 0xe7, 0x04, 0x8b, 0x50, 0xfb, 0x1c, 0xd5, 0x05, 0xa4, 0xf0, 0xc5, 0x6c, 0xa8, 0xfe, 0xdb, 0x86, 0xdd, 0xb2, 0xf0, 0xea, 0xc1, 0x0d, 0x25, 0x98, 0x03, 0xed, 0x23, 0xd4, 0x34, 0x97, 0x9d, 0x09, 0x9a, 0x4a, 0xa6, 0x6f, 0x93, 0x4e, 0xcd, 0x64, 0xd1, 0x2a, 0x0b, 0xaf, 0xd9, 0x5b, 0xea, 0x05, 0x2b, 0xd3, 0xfe, 0xd1, 0x78, 0xe2, 0x56, 0xae, 0x26, 0x6e, 0xe5, 0x7a, 0xe2, 0x56, 0xbe, 0x96, 0xae, 0x35, 0x2e, 0x5d, 0xeb, 0xaa, 0x74, 0xad, 0xeb, 0xd2, 0xb5, 0x7e, 0x95, 0xae, 0xf5, 0xed, 0xb7, 0x5b, 0x79, 0xdf, 0xde, 0xfc, 0x03, 0xf9, 0x13, 0x00, 0x00, 0xff, 0xff, 0xef, 0xe4, 0x75, 0x3b, 0x76, 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) || (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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/coordination/v1/generated.proto000066400000000000000000000052311453636404600224000ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/coordination/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; // spec contains the 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; } golang-k8s-api-0.29.0/coordination/v1/register.go000066400000000000000000000032631453636404600215330ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Lease{}, &LeaseList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/coordination/v1/types.go000066400000000000000000000055621453636404600210570ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/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"` // spec contains the 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=k8s.io/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"` } golang-k8s-api-0.29.0/coordination/v1/types_swagger_doc_generated.go000066400000000000000000000053411453636404600254340ustar00rootroot00000000000000/* 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-codegen.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": "spec contains the 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 golang-k8s-api-0.29.0/coordination/v1/zz_generated.deepcopy.go000066400000000000000000000064641453636404600242050ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/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 } golang-k8s-api-0.29.0/coordination/v1beta1/000077500000000000000000000000001453636404600202715ustar00rootroot00000000000000golang-k8s-api-0.29.0/coordination/v1beta1/doc.go000066400000000000000000000014241453636404600213660ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true // +groupName=coordination.k8s.io package v1beta1 // import "k8s.io/api/coordination/v1beta1" golang-k8s-api-0.29.0/coordination/v1beta1/generated.pb.go000066400000000000000000000603111453636404600231570ustar00rootroot00000000000000/* 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/k8s.io/api/coordination/v1beta1/generated.proto package v1beta1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // 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/k8s.io/api/coordination/v1beta1/generated.proto", fileDescriptor_daca6bcd2ff63a80) } var fileDescriptor_daca6bcd2ff63a80 = []byte{ // 543 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xc1, 0x6e, 0xd3, 0x4e, 0x10, 0xc6, 0xe3, 0xb6, 0x91, 0x9a, 0xcd, 0xbf, 0xfd, 0x47, 0x56, 0x0e, 0x56, 0x0e, 0x76, 0x95, 0x03, 0xaa, 0x90, 0xd8, 0x25, 0x15, 0x42, 0x88, 0x13, 0x58, 0x20, 0xb5, 0xc2, 0x15, 0x92, 0xdb, 0x13, 0xea, 0x81, 0xb5, 0x3d, 0x38, 0x4b, 0x6a, 0xaf, 0xd9, 0x5d, 0x07, 0xf5, 0xc6, 0x23, 0x70, 0xe5, 0x45, 0xe0, 0x15, 0x72, 0xec, 0xb1, 0x27, 0x8b, 0x98, 0x17, 0x41, 0xde, 0xb8, 0x4d, 0x48, 0x8a, 0x12, 0x71, 0xf3, 0xce, 0xcc, 0xf7, 0x9b, 0x6f, 0xbe, 0x83, 0xd1, 0xf1, 0xe8, 0x99, 0xc4, 0x8c, 0x93, 0x51, 0x1e, 0x80, 0x48, 0x41, 0x81, 0x24, 0x63, 0x48, 0x23, 0x2e, 0x48, 0xdd, 0xa0, 0x19, 0x23, 0x21, 0xe7, 0x22, 0x62, 0x29, 0x55, 0x8c, 0xa7, 0x64, 0x3c, 0x08, 0x40, 0xd1, 0x01, 0x89, 0x21, 0x05, 0x41, 0x15, 0x44, 0x38, 0x13, 0x5c, 0x71, 0xd3, 0x99, 0x09, 0x30, 0xcd, 0x18, 0x5e, 0x14, 0xe0, 0x5a, 0xd0, 0x7b, 0x14, 0x33, 0x35, 0xcc, 0x03, 0x1c, 0xf2, 0x84, 0xc4, 0x3c, 0xe6, 0x44, 0xeb, 0x82, 0xfc, 0x83, 0x7e, 0xe9, 0x87, 0xfe, 0x9a, 0xf1, 0x7a, 0x4f, 0xe6, 0x06, 0x12, 0x1a, 0x0e, 0x59, 0x0a, 0xe2, 0x8a, 0x64, 0xa3, 0xb8, 0x2a, 0x48, 0x92, 0x80, 0xa2, 0x64, 0xbc, 0xe2, 0xa2, 0x47, 0xfe, 0xa6, 0x12, 0x79, 0xaa, 0x58, 0x02, 0x2b, 0x82, 0xa7, 0xeb, 0x04, 0x32, 0x1c, 0x42, 0x42, 0x97, 0x75, 0xfd, 0x1f, 0x06, 0x6a, 0x7a, 0x40, 0x25, 0x98, 0xef, 0xd1, 0x6e, 0xe5, 0x26, 0xa2, 0x8a, 0x5a, 0xc6, 0x81, 0x71, 0xd8, 0x3e, 0x7a, 0x8c, 0xe7, 0x59, 0xdc, 0x41, 0x71, 0x36, 0x8a, 0xab, 0x82, 0xc4, 0xd5, 0x34, 0x1e, 0x0f, 0xf0, 0xdb, 0xe0, 0x23, 0x84, 0xea, 0x14, 0x14, 0x75, 0xcd, 0x49, 0xe1, 0x34, 0xca, 0xc2, 0x41, 0xf3, 0x9a, 0x7f, 0x47, 0x35, 0x3d, 0xb4, 0x23, 0x33, 0x08, 0xad, 0x2d, 0x4d, 0x7f, 0x88, 0xd7, 0x24, 0x8d, 0xb5, 0xaf, 0xb3, 0x0c, 0x42, 0xf7, 0xbf, 0x9a, 0xbb, 0x53, 0xbd, 0x7c, 0x4d, 0xe9, 0x7f, 0x37, 0x50, 0x4b, 0x4f, 0x78, 0x4c, 0x2a, 0xf3, 0x62, 0xc5, 0x3d, 0xde, 0xcc, 0x7d, 0xa5, 0xd6, 0xde, 0x3b, 0xf5, 0x8e, 0xdd, 0xdb, 0xca, 0x82, 0xf3, 0x37, 0xa8, 0xc9, 0x14, 0x24, 0xd2, 0xda, 0x3a, 0xd8, 0x3e, 0x6c, 0x1f, 0x3d, 0xd8, 0xcc, 0xba, 0xbb, 0x57, 0x23, 0x9b, 0x27, 0x95, 0xd8, 0x9f, 0x31, 0xfa, 0xdf, 0xb6, 0x6b, 0xe3, 0xd5, 0x31, 0xe6, 0x73, 0xb4, 0x3f, 0xe4, 0x97, 0x11, 0x88, 0x93, 0x08, 0x52, 0xc5, 0xd4, 0x95, 0xb6, 0xdf, 0x72, 0xcd, 0xb2, 0x70, 0xf6, 0x8f, 0xff, 0xe8, 0xf8, 0x4b, 0x93, 0xa6, 0x87, 0xba, 0x97, 0x15, 0xe8, 0x55, 0x2e, 0xf4, 0xfa, 0x33, 0x08, 0x79, 0x1a, 0x49, 0x1d, 0x70, 0xd3, 0xb5, 0xca, 0xc2, 0xe9, 0x7a, 0xf7, 0xf4, 0xfd, 0x7b, 0x55, 0x66, 0x80, 0xda, 0x34, 0xfc, 0x94, 0x33, 0x01, 0xe7, 0x2c, 0x01, 0x6b, 0x5b, 0xa7, 0x48, 0x36, 0x4b, 0xf1, 0x94, 0x85, 0x82, 0x57, 0x32, 0xf7, 0xff, 0xb2, 0x70, 0xda, 0x2f, 0xe7, 0x1c, 0x7f, 0x11, 0x6a, 0x5e, 0xa0, 0x96, 0x80, 0x14, 0x3e, 0xeb, 0x0d, 0x3b, 0xff, 0xb6, 0x61, 0xaf, 0x2c, 0x9c, 0x96, 0x7f, 0x4b, 0xf1, 0xe7, 0x40, 0xf3, 0x05, 0xea, 0xe8, 0xcb, 0xce, 0x05, 0x4d, 0x25, 0xab, 0x6e, 0x93, 0x56, 0x53, 0x67, 0xd1, 0x2d, 0x0b, 0xa7, 0xe3, 0x2d, 0xf5, 0xfc, 0x95, 0x69, 0xf7, 0xf5, 0x64, 0x6a, 0x37, 0xae, 0xa7, 0x76, 0xe3, 0x66, 0x6a, 0x37, 0xbe, 0x94, 0xb6, 0x31, 0x29, 0x6d, 0xe3, 0xba, 0xb4, 0x8d, 0x9b, 0xd2, 0x36, 0x7e, 0x96, 0xb6, 0xf1, 0xf5, 0x97, 0xdd, 0x78, 0xe7, 0xac, 0xf9, 0xa9, 0xfc, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xcc, 0x19, 0x0e, 0xd7, 0x8f, 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) || (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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/coordination/v1beta1/generated.proto000066400000000000000000000052431453636404600233200ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/coordination/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; // spec contains the 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; } golang-k8s-api-0.29.0/coordination/v1beta1/register.go000066400000000000000000000032751453636404600224530ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Lease{}, &LeaseList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/coordination/v1beta1/types.go000066400000000000000000000063231453636404600217700ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.12 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:replacement=coordination.k8s.io,v1,Lease // 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"` // spec contains the 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.12 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:replacement=coordination.k8s.io,v1,LeaseList // 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"` } golang-k8s-api-0.29.0/coordination/v1beta1/types_swagger_doc_generated.go000066400000000000000000000053461453636404600263560ustar00rootroot00000000000000/* 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-codegen.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": "spec contains the 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 golang-k8s-api-0.29.0/coordination/v1beta1/zz_generated.deepcopy.go000066400000000000000000000064711453636404600251200ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/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 } golang-k8s-api-0.29.0/coordination/v1beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000074401453636404600273710ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta1 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *Lease) APILifecycleIntroduced() (major, minor int) { return 1, 12 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *Lease) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *Lease) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "coordination.k8s.io", Version: "v1", Kind: "Lease"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *Lease) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *LeaseList) APILifecycleIntroduced() (major, minor int) { return 1, 12 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *LeaseList) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *LeaseList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "coordination.k8s.io", Version: "v1", Kind: "LeaseList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *LeaseList) APILifecycleRemoved() (major, minor int) { return 1, 22 } golang-k8s-api-0.29.0/core/000077500000000000000000000000001453636404600152665ustar00rootroot00000000000000golang-k8s-api-0.29.0/core/v1/000077500000000000000000000000001453636404600156145ustar00rootroot00000000000000golang-k8s-api-0.29.0/core/v1/annotation_key_constants.go000066400000000000000000000215001453636404600232570ustar00rootroot00000000000000/* 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/apis/core/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" // 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. // Deprecated: set a pod security context `seccompProfile` field. SeccompPodAnnotationKey string = "seccomp.security.alpha.kubernetes.io/pod" // SeccompContainerAnnotationKeyPrefix represents the key of a seccomp profile applied // to one container of a pod. // Deprecated: set a container security context `seccompProfile` field. SeccompContainerAnnotationKeyPrefix string = "container.seccomp.security.alpha.kubernetes.io/" // SeccompProfileRuntimeDefault represents the default seccomp profile used by container runtime. // Deprecated: set a pod or container security context `seccompProfile` of type "RuntimeDefault" instead. SeccompProfileRuntimeDefault string = "runtime/default" // SeccompProfileNameUnconfined is the unconfined seccomp profile. SeccompProfileNameUnconfined string = "unconfined" // SeccompLocalhostProfileNamePrefix is the prefix for specifying profiles loaded from the node's disk. SeccompLocalhostProfileNamePrefix = "localhost/" // AppArmorBetaContainerAnnotationKeyPrefix is the prefix to an annotation key specifying a container's apparmor profile. AppArmorBetaContainerAnnotationKeyPrefix = "container.apparmor.security.beta.kubernetes.io/" // AppArmorBetaDefaultProfileAnnotationKey is the annotation key specifying the default AppArmor profile. AppArmorBetaDefaultProfileAnnotationKey = "apparmor.security.beta.kubernetes.io/defaultProfileName" // AppArmorBetaAllowedProfilesAnnotationKey is the annotation key specifying the allowed AppArmor profiles. AppArmorBetaAllowedProfilesAnnotationKey = "apparmor.security.beta.kubernetes.io/allowedProfileNames" // AppArmorBetaProfileRuntimeDefault is the profile specifying the runtime default. AppArmorBetaProfileRuntimeDefault = "runtime/default" // AppArmorBetaProfileNamePrefix is the prefix for specifying profiles loaded on the node. AppArmorBetaProfileNamePrefix = "localhost/" // AppArmorBetaProfileNameUnconfined is the Unconfined AppArmor profile AppArmorBetaProfileNameUnconfined = "unconfined" // DeprecatedSeccompProfileDockerDefault represents the default seccomp profile used by docker. // Deprecated: set a pod or container security context `seccompProfile` of type "RuntimeDefault" instead. 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" // ObjectTTLAnnotationKey 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" // EndpointsOverCapacity will be set on an Endpoints resource when it // exceeds the maximum capacity of 1000 addresses. Initially the Endpoints // controller will set this annotation with a value of "warning". In a // future release, the controller may set this annotation with a value of // "truncated" to indicate that any addresses exceeding the limit of 1000 // have been truncated from the Endpoints resource. EndpointsOverCapacity = "endpoints.kubernetes.io/over-capacity" // 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" // PodDeletionCost can be used to set to an int32 that represent the cost of deleting // a pod compared to other pods belonging to the same ReplicaSet. Pods with lower // deletion cost are preferred to be deleted before pods with higher deletion cost. // Note that this is honored on a best-effort basis, and so it does not offer guarantees on // pod deletion order. // The implicit deletion cost for pods that don't set the annotation is 0, negative values are permitted. // // This annotation is beta-level and is only honored when PodDeletionCost feature is enabled. PodDeletionCost = "controller.kubernetes.io/pod-deletion-cost" // DeprecatedAnnotationTopologyAwareHints can be used to enable or disable // Topology Aware Hints for a Service. This may be set to "Auto" or // "Disabled". Any other value is treated as "Disabled". This annotation has // been deprecated in favor of the "service.kubernetes.io/topology-mode" // annotation. DeprecatedAnnotationTopologyAwareHints = "service.kubernetes.io/topology-aware-hints" // AnnotationTopologyMode can be used to enable or disable Topology Aware // Routing for a Service. Well known values are "Auto" and "Disabled". // Implementations may choose to develop new topology approaches, exposing // them with domain-prefixed values. For example, "example.com/lowest-rtt" // could be a valid implementation-specific value for this annotation. These // heuristics will often populate topology hints on EndpointSlices, but that // is not a requirement. AnnotationTopologyMode = "service.kubernetes.io/topology-mode" ) golang-k8s-api-0.29.0/core/v1/doc.go000066400000000000000000000013521453636404600167110ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1" golang-k8s-api-0.29.0/core/v1/generated.pb.go000066400000000000000000067426551453636404600205320ustar00rootroot00000000000000/* 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/k8s.io/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 "k8s.io/apimachinery/pkg/api/resource" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" math "math" math_bits "math/bits" reflect "reflect" strings "strings" k8s_io_apimachinery_pkg_types "k8s.io/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.GoGoProtoPackageIsVersion3 // 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 *ClaimSource) Reset() { *m = ClaimSource{} } func (*ClaimSource) ProtoMessage() {} func (*ClaimSource) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{15} } func (m *ClaimSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ClaimSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ClaimSource) XXX_Merge(src proto.Message) { xxx_messageInfo_ClaimSource.Merge(m, src) } func (m *ClaimSource) XXX_Size() int { return m.Size() } func (m *ClaimSource) XXX_DiscardUnknown() { xxx_messageInfo_ClaimSource.DiscardUnknown(m) } var xxx_messageInfo_ClaimSource proto.InternalMessageInfo func (m *ClientIPConfig) Reset() { *m = ClientIPConfig{} } func (*ClientIPConfig) ProtoMessage() {} func (*ClientIPConfig) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{16} } 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 *ClusterTrustBundleProjection) Reset() { *m = ClusterTrustBundleProjection{} } func (*ClusterTrustBundleProjection) ProtoMessage() {} func (*ClusterTrustBundleProjection) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{17} } func (m *ClusterTrustBundleProjection) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ClusterTrustBundleProjection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ClusterTrustBundleProjection) XXX_Merge(src proto.Message) { xxx_messageInfo_ClusterTrustBundleProjection.Merge(m, src) } func (m *ClusterTrustBundleProjection) XXX_Size() int { return m.Size() } func (m *ClusterTrustBundleProjection) XXX_DiscardUnknown() { xxx_messageInfo_ClusterTrustBundleProjection.DiscardUnknown(m) } var xxx_messageInfo_ClusterTrustBundleProjection proto.InternalMessageInfo func (m *ComponentCondition) Reset() { *m = ComponentCondition{} } func (*ComponentCondition) ProtoMessage() {} func (*ComponentCondition) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{18} } 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{19} } 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{20} } 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{21} } 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{22} } 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{23} } 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{24} } 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{25} } 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{26} } 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{27} } 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{28} } 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{29} } 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{30} } 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 *ContainerResizePolicy) Reset() { *m = ContainerResizePolicy{} } func (*ContainerResizePolicy) ProtoMessage() {} func (*ContainerResizePolicy) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{31} } func (m *ContainerResizePolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ContainerResizePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ContainerResizePolicy) XXX_Merge(src proto.Message) { xxx_messageInfo_ContainerResizePolicy.Merge(m, src) } func (m *ContainerResizePolicy) XXX_Size() int { return m.Size() } func (m *ContainerResizePolicy) XXX_DiscardUnknown() { xxx_messageInfo_ContainerResizePolicy.DiscardUnknown(m) } var xxx_messageInfo_ContainerResizePolicy proto.InternalMessageInfo func (m *ContainerState) Reset() { *m = ContainerState{} } func (*ContainerState) ProtoMessage() {} func (*ContainerState) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{32} } 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{33} } 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{34} } 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{35} } 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{36} } 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{37} } 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{38} } 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{39} } 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{40} } 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{41} } 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{42} } 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{43} } 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{44} } 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{45} } 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{46} } 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{47} } 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{48} } 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{49} } 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{50} } 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{51} } 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 *EphemeralVolumeSource) Reset() { *m = EphemeralVolumeSource{} } func (*EphemeralVolumeSource) ProtoMessage() {} func (*EphemeralVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{52} } func (m *EphemeralVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *EphemeralVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *EphemeralVolumeSource) XXX_Merge(src proto.Message) { xxx_messageInfo_EphemeralVolumeSource.Merge(m, src) } func (m *EphemeralVolumeSource) XXX_Size() int { return m.Size() } func (m *EphemeralVolumeSource) XXX_DiscardUnknown() { xxx_messageInfo_EphemeralVolumeSource.DiscardUnknown(m) } var xxx_messageInfo_EphemeralVolumeSource proto.InternalMessageInfo func (m *Event) Reset() { *m = Event{} } func (*Event) ProtoMessage() {} func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{53} } 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{54} } 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{55} } 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{56} } 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{57} } 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{58} } 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{59} } 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{60} } 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{61} } 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{62} } 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 *GRPCAction) Reset() { *m = GRPCAction{} } func (*GRPCAction) ProtoMessage() {} func (*GRPCAction) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{63} } func (m *GRPCAction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *GRPCAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *GRPCAction) XXX_Merge(src proto.Message) { xxx_messageInfo_GRPCAction.Merge(m, src) } func (m *GRPCAction) XXX_Size() int { return m.Size() } func (m *GRPCAction) XXX_DiscardUnknown() { xxx_messageInfo_GRPCAction.DiscardUnknown(m) } var xxx_messageInfo_GRPCAction proto.InternalMessageInfo func (m *GitRepoVolumeSource) Reset() { *m = GitRepoVolumeSource{} } func (*GitRepoVolumeSource) ProtoMessage() {} func (*GitRepoVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{64} } 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{65} } 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{66} } 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{67} } 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{68} } 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 *HostAlias) Reset() { *m = HostAlias{} } func (*HostAlias) ProtoMessage() {} func (*HostAlias) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{69} } 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 *HostIP) Reset() { *m = HostIP{} } func (*HostIP) ProtoMessage() {} func (*HostIP) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{70} } func (m *HostIP) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *HostIP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *HostIP) XXX_Merge(src proto.Message) { xxx_messageInfo_HostIP.Merge(m, src) } func (m *HostIP) XXX_Size() int { return m.Size() } func (m *HostIP) XXX_DiscardUnknown() { xxx_messageInfo_HostIP.DiscardUnknown(m) } var xxx_messageInfo_HostIP proto.InternalMessageInfo func (m *HostPathVolumeSource) Reset() { *m = HostPathVolumeSource{} } func (*HostPathVolumeSource) ProtoMessage() {} func (*HostPathVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{71} } 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{72} } 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{73} } 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{74} } 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{75} } 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 *LifecycleHandler) Reset() { *m = LifecycleHandler{} } func (*LifecycleHandler) ProtoMessage() {} func (*LifecycleHandler) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{76} } func (m *LifecycleHandler) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LifecycleHandler) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *LifecycleHandler) XXX_Merge(src proto.Message) { xxx_messageInfo_LifecycleHandler.Merge(m, src) } func (m *LifecycleHandler) XXX_Size() int { return m.Size() } func (m *LifecycleHandler) XXX_DiscardUnknown() { xxx_messageInfo_LifecycleHandler.DiscardUnknown(m) } var xxx_messageInfo_LifecycleHandler proto.InternalMessageInfo func (m *LimitRange) Reset() { *m = LimitRange{} } func (*LimitRange) ProtoMessage() {} func (*LimitRange) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{77} } 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{78} } 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{79} } 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{80} } 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{81} } 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{82} } 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{83} } 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{84} } 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{85} } 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 *ModifyVolumeStatus) Reset() { *m = ModifyVolumeStatus{} } func (*ModifyVolumeStatus) ProtoMessage() {} func (*ModifyVolumeStatus) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{86} } func (m *ModifyVolumeStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ModifyVolumeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ModifyVolumeStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_ModifyVolumeStatus.Merge(m, src) } func (m *ModifyVolumeStatus) XXX_Size() int { return m.Size() } func (m *ModifyVolumeStatus) XXX_DiscardUnknown() { xxx_messageInfo_ModifyVolumeStatus.DiscardUnknown(m) } var xxx_messageInfo_ModifyVolumeStatus proto.InternalMessageInfo func (m *NFSVolumeSource) Reset() { *m = NFSVolumeSource{} } func (*NFSVolumeSource) ProtoMessage() {} func (*NFSVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{87} } 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{88} } 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{89} } 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{90} } 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{91} } 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{92} } 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{93} } 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{94} } 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{95} } 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{96} } 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{97} } 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{98} } 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{99} } 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{100} } 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{101} } 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{102} } 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{103} } 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{104} } 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{105} } 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{106} } 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{107} } 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{108} } 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{109} } 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{110} } 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{111} } 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{112} } 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{113} } 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{114} } 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{115} } 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{116} } 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 *PersistentVolumeClaimTemplate) Reset() { *m = PersistentVolumeClaimTemplate{} } func (*PersistentVolumeClaimTemplate) ProtoMessage() {} func (*PersistentVolumeClaimTemplate) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{117} } func (m *PersistentVolumeClaimTemplate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PersistentVolumeClaimTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PersistentVolumeClaimTemplate) XXX_Merge(src proto.Message) { xxx_messageInfo_PersistentVolumeClaimTemplate.Merge(m, src) } func (m *PersistentVolumeClaimTemplate) XXX_Size() int { return m.Size() } func (m *PersistentVolumeClaimTemplate) XXX_DiscardUnknown() { xxx_messageInfo_PersistentVolumeClaimTemplate.DiscardUnknown(m) } var xxx_messageInfo_PersistentVolumeClaimTemplate proto.InternalMessageInfo func (m *PersistentVolumeClaimVolumeSource) Reset() { *m = PersistentVolumeClaimVolumeSource{} } func (*PersistentVolumeClaimVolumeSource) ProtoMessage() {} func (*PersistentVolumeClaimVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{118} } 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{119} } 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{120} } 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{121} } 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{122} } 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{123} } 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{124} } 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{125} } 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{126} } 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{127} } 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{128} } 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{129} } 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{130} } 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{131} } 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{132} } 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{133} } 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{134} } 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{135} } 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 *PodOS) Reset() { *m = PodOS{} } func (*PodOS) ProtoMessage() {} func (*PodOS) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{136} } func (m *PodOS) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PodOS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PodOS) XXX_Merge(src proto.Message) { xxx_messageInfo_PodOS.Merge(m, src) } func (m *PodOS) XXX_Size() int { return m.Size() } func (m *PodOS) XXX_DiscardUnknown() { xxx_messageInfo_PodOS.DiscardUnknown(m) } var xxx_messageInfo_PodOS proto.InternalMessageInfo func (m *PodPortForwardOptions) Reset() { *m = PodPortForwardOptions{} } func (*PodPortForwardOptions) ProtoMessage() {} func (*PodPortForwardOptions) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{137} } 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{138} } 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{139} } 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 *PodResourceClaim) Reset() { *m = PodResourceClaim{} } func (*PodResourceClaim) ProtoMessage() {} func (*PodResourceClaim) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{140} } func (m *PodResourceClaim) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PodResourceClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PodResourceClaim) XXX_Merge(src proto.Message) { xxx_messageInfo_PodResourceClaim.Merge(m, src) } func (m *PodResourceClaim) XXX_Size() int { return m.Size() } func (m *PodResourceClaim) XXX_DiscardUnknown() { xxx_messageInfo_PodResourceClaim.DiscardUnknown(m) } var xxx_messageInfo_PodResourceClaim proto.InternalMessageInfo func (m *PodResourceClaimStatus) Reset() { *m = PodResourceClaimStatus{} } func (*PodResourceClaimStatus) ProtoMessage() {} func (*PodResourceClaimStatus) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{141} } func (m *PodResourceClaimStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PodResourceClaimStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PodResourceClaimStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_PodResourceClaimStatus.Merge(m, src) } func (m *PodResourceClaimStatus) XXX_Size() int { return m.Size() } func (m *PodResourceClaimStatus) XXX_DiscardUnknown() { xxx_messageInfo_PodResourceClaimStatus.DiscardUnknown(m) } var xxx_messageInfo_PodResourceClaimStatus proto.InternalMessageInfo func (m *PodSchedulingGate) Reset() { *m = PodSchedulingGate{} } func (*PodSchedulingGate) ProtoMessage() {} func (*PodSchedulingGate) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{142} } func (m *PodSchedulingGate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PodSchedulingGate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PodSchedulingGate) XXX_Merge(src proto.Message) { xxx_messageInfo_PodSchedulingGate.Merge(m, src) } func (m *PodSchedulingGate) XXX_Size() int { return m.Size() } func (m *PodSchedulingGate) XXX_DiscardUnknown() { xxx_messageInfo_PodSchedulingGate.DiscardUnknown(m) } var xxx_messageInfo_PodSchedulingGate proto.InternalMessageInfo func (m *PodSecurityContext) Reset() { *m = PodSecurityContext{} } func (*PodSecurityContext) ProtoMessage() {} func (*PodSecurityContext) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{143} } 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{144} } 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{145} } 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{146} } 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{147} } 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{148} } 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{149} } 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{150} } 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 *PortStatus) Reset() { *m = PortStatus{} } func (*PortStatus) ProtoMessage() {} func (*PortStatus) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{151} } func (m *PortStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PortStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PortStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_PortStatus.Merge(m, src) } func (m *PortStatus) XXX_Size() int { return m.Size() } func (m *PortStatus) XXX_DiscardUnknown() { xxx_messageInfo_PortStatus.DiscardUnknown(m) } var xxx_messageInfo_PortStatus proto.InternalMessageInfo func (m *PortworxVolumeSource) Reset() { *m = PortworxVolumeSource{} } func (*PortworxVolumeSource) ProtoMessage() {} func (*PortworxVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{152} } 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{153} } 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{154} } 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{155} } 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{156} } 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 *ProbeHandler) Reset() { *m = ProbeHandler{} } func (*ProbeHandler) ProtoMessage() {} func (*ProbeHandler) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{157} } func (m *ProbeHandler) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ProbeHandler) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ProbeHandler) XXX_Merge(src proto.Message) { xxx_messageInfo_ProbeHandler.Merge(m, src) } func (m *ProbeHandler) XXX_Size() int { return m.Size() } func (m *ProbeHandler) XXX_DiscardUnknown() { xxx_messageInfo_ProbeHandler.DiscardUnknown(m) } var xxx_messageInfo_ProbeHandler proto.InternalMessageInfo func (m *ProjectedVolumeSource) Reset() { *m = ProjectedVolumeSource{} } func (*ProjectedVolumeSource) ProtoMessage() {} func (*ProjectedVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{158} } 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{159} } 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{160} } 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{161} } 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{162} } 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{163} } 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{164} } 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{165} } 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{166} } 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{167} } 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 *ResourceClaim) Reset() { *m = ResourceClaim{} } func (*ResourceClaim) ProtoMessage() {} func (*ResourceClaim) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{168} } func (m *ResourceClaim) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ResourceClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ResourceClaim) XXX_Merge(src proto.Message) { xxx_messageInfo_ResourceClaim.Merge(m, src) } func (m *ResourceClaim) XXX_Size() int { return m.Size() } func (m *ResourceClaim) XXX_DiscardUnknown() { xxx_messageInfo_ResourceClaim.DiscardUnknown(m) } var xxx_messageInfo_ResourceClaim proto.InternalMessageInfo func (m *ResourceFieldSelector) Reset() { *m = ResourceFieldSelector{} } func (*ResourceFieldSelector) ProtoMessage() {} func (*ResourceFieldSelector) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{169} } 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{170} } 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{171} } 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{172} } 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{173} } 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{174} } 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{175} } 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{176} } 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{177} } 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{178} } 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{179} } 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 *SeccompProfile) Reset() { *m = SeccompProfile{} } func (*SeccompProfile) ProtoMessage() {} func (*SeccompProfile) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{180} } func (m *SeccompProfile) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SeccompProfile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *SeccompProfile) XXX_Merge(src proto.Message) { xxx_messageInfo_SeccompProfile.Merge(m, src) } func (m *SeccompProfile) XXX_Size() int { return m.Size() } func (m *SeccompProfile) XXX_DiscardUnknown() { xxx_messageInfo_SeccompProfile.DiscardUnknown(m) } var xxx_messageInfo_SeccompProfile proto.InternalMessageInfo func (m *Secret) Reset() { *m = Secret{} } func (*Secret) ProtoMessage() {} func (*Secret) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{181} } 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{182} } 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{183} } 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{184} } 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{185} } 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{186} } 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{187} } 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{188} } 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{189} } 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{190} } 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{191} } 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{192} } 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{193} } 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{194} } 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{195} } 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{196} } 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{197} } 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{198} } 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{199} } 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 *SleepAction) Reset() { *m = SleepAction{} } func (*SleepAction) ProtoMessage() {} func (*SleepAction) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{200} } func (m *SleepAction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SleepAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *SleepAction) XXX_Merge(src proto.Message) { xxx_messageInfo_SleepAction.Merge(m, src) } func (m *SleepAction) XXX_Size() int { return m.Size() } func (m *SleepAction) XXX_DiscardUnknown() { xxx_messageInfo_SleepAction.DiscardUnknown(m) } var xxx_messageInfo_SleepAction proto.InternalMessageInfo func (m *StorageOSPersistentVolumeSource) Reset() { *m = StorageOSPersistentVolumeSource{} } func (*StorageOSPersistentVolumeSource) ProtoMessage() {} func (*StorageOSPersistentVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{201} } 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{202} } 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{203} } 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{204} } 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{205} } 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{206} } 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{207} } 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{208} } 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{209} } 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{210} } 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 *TypedObjectReference) Reset() { *m = TypedObjectReference{} } func (*TypedObjectReference) ProtoMessage() {} func (*TypedObjectReference) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{211} } func (m *TypedObjectReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *TypedObjectReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *TypedObjectReference) XXX_Merge(src proto.Message) { xxx_messageInfo_TypedObjectReference.Merge(m, src) } func (m *TypedObjectReference) XXX_Size() int { return m.Size() } func (m *TypedObjectReference) XXX_DiscardUnknown() { xxx_messageInfo_TypedObjectReference.DiscardUnknown(m) } var xxx_messageInfo_TypedObjectReference proto.InternalMessageInfo func (m *Volume) Reset() { *m = Volume{} } func (*Volume) ProtoMessage() {} func (*Volume) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{212} } 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{213} } 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{214} } 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{215} } 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{216} } 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 *VolumeResourceRequirements) Reset() { *m = VolumeResourceRequirements{} } func (*VolumeResourceRequirements) ProtoMessage() {} func (*VolumeResourceRequirements) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{217} } func (m *VolumeResourceRequirements) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *VolumeResourceRequirements) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *VolumeResourceRequirements) XXX_Merge(src proto.Message) { xxx_messageInfo_VolumeResourceRequirements.Merge(m, src) } func (m *VolumeResourceRequirements) XXX_Size() int { return m.Size() } func (m *VolumeResourceRequirements) XXX_DiscardUnknown() { xxx_messageInfo_VolumeResourceRequirements.DiscardUnknown(m) } var xxx_messageInfo_VolumeResourceRequirements proto.InternalMessageInfo func (m *VolumeSource) Reset() { *m = VolumeSource{} } func (*VolumeSource) ProtoMessage() {} func (*VolumeSource) Descriptor() ([]byte, []int) { return fileDescriptor_83c10c24ec417dc9, []int{218} } 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{219} } 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{220} } 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{221} } 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((*ClaimSource)(nil), "k8s.io.api.core.v1.ClaimSource") proto.RegisterType((*ClientIPConfig)(nil), "k8s.io.api.core.v1.ClientIPConfig") proto.RegisterType((*ClusterTrustBundleProjection)(nil), "k8s.io.api.core.v1.ClusterTrustBundleProjection") 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((*ContainerResizePolicy)(nil), "k8s.io.api.core.v1.ContainerResizePolicy") 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.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.ContainerStatus.AllocatedResourcesEntry") 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((*EphemeralVolumeSource)(nil), "k8s.io.api.core.v1.EphemeralVolumeSource") 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((*GRPCAction)(nil), "k8s.io.api.core.v1.GRPCAction") 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((*HostAlias)(nil), "k8s.io.api.core.v1.HostAlias") proto.RegisterType((*HostIP)(nil), "k8s.io.api.core.v1.HostIP") 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((*LifecycleHandler)(nil), "k8s.io.api.core.v1.LifecycleHandler") 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((*ModifyVolumeStatus)(nil), "k8s.io.api.core.v1.ModifyVolumeStatus") 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((map[ResourceName]ClaimResourceStatus)(nil), "k8s.io.api.core.v1.PersistentVolumeClaimStatus.AllocatedResourceStatusesEntry") proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.PersistentVolumeClaimStatus.AllocatedResourcesEntry") proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.PersistentVolumeClaimStatus.CapacityEntry") proto.RegisterType((*PersistentVolumeClaimTemplate)(nil), "k8s.io.api.core.v1.PersistentVolumeClaimTemplate") 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((*PodOS)(nil), "k8s.io.api.core.v1.PodOS") 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((*PodResourceClaim)(nil), "k8s.io.api.core.v1.PodResourceClaim") proto.RegisterType((*PodResourceClaimStatus)(nil), "k8s.io.api.core.v1.PodResourceClaimStatus") proto.RegisterType((*PodSchedulingGate)(nil), "k8s.io.api.core.v1.PodSchedulingGate") 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((*PortStatus)(nil), "k8s.io.api.core.v1.PortStatus") 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((*ProbeHandler)(nil), "k8s.io.api.core.v1.ProbeHandler") 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((*ResourceClaim)(nil), "k8s.io.api.core.v1.ResourceClaim") 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((*SeccompProfile)(nil), "k8s.io.api.core.v1.SeccompProfile") 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((*SleepAction)(nil), "k8s.io.api.core.v1.SleepAction") 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((*TypedObjectReference)(nil), "k8s.io.api.core.v1.TypedObjectReference") 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((*VolumeResourceRequirements)(nil), "k8s.io.api.core.v1.VolumeResourceRequirements") proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.VolumeResourceRequirements.LimitsEntry") proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.VolumeResourceRequirements.RequestsEntry") 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/k8s.io/api/core/v1/generated.proto", fileDescriptor_83c10c24ec417dc9) } var fileDescriptor_83c10c24ec417dc9 = []byte{ // 15465 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0xbd, 0x69, 0x90, 0x1c, 0xc9, 0x75, 0x18, 0xcc, 0xea, 0x9e, 0xab, 0xdf, 0xdc, 0x39, 0x00, 0x76, 0x30, 0x0b, 0xa0, 0xb1, 0xb5, 0xbb, 0x58, 0xec, 0x35, 0x20, 0xf6, 0x20, 0x97, 0xbb, 0xcb, 0x15, 0xe7, 0x04, 0x66, 0x31, 0x33, 0xe8, 0xcd, 0x1e, 0x00, 0xe4, 0x72, 0xc9, 0x8f, 0x85, 0xee, 0x9c, 0x99, 0xe2, 0x74, 0x57, 0xf5, 0x56, 0x55, 0x0f, 0x30, 0xf8, 0xc8, 0x90, 0x44, 0x7d, 0xa2, 0x44, 0x4a, 0x5f, 0x04, 0xe3, 0x0b, 0x7d, 0x47, 0x50, 0x0a, 0xc5, 0x17, 0x92, 0xac, 0xc3, 0xb4, 0x64, 0xd3, 0x94, 0x25, 0x59, 0xd4, 0xe5, 0x2b, 0x2c, 0x29, 0x1c, 0xb2, 0xac, 0x08, 0x8b, 0x0a, 0x2b, 0x3c, 0x32, 0x21, 0x47, 0x28, 0xf4, 0xc3, 0x92, 0x7c, 0xfc, 0xb0, 0x61, 0xd9, 0x72, 0xe4, 0x59, 0x99, 0x75, 0x74, 0xf7, 0x60, 0x07, 0xc3, 0x25, 0x63, 0xff, 0x75, 0xbf, 0xf7, 0xf2, 0x65, 0x56, 0x9e, 0x2f, 0xdf, 0x7b, 0xf9, 0x1e, 0xbc, 0xb2, 0xf3, 0x52, 0x38, 0xeb, 0xfa, 0x17, 0x76, 0xda, 0x37, 0x49, 0xe0, 0x91, 0x88, 0x84, 0x17, 0x76, 0x89, 0x57, 0xf7, 0x83, 0x0b, 0x02, 0xe1, 0xb4, 0xdc, 0x0b, 0x35, 0x3f, 0x20, 0x17, 0x76, 0x2f, 0x5e, 0xd8, 0x22, 0x1e, 0x09, 0x9c, 0x88, 0xd4, 0x67, 0x5b, 0x81, 0x1f, 0xf9, 0x08, 0x71, 0x9a, 0x59, 0xa7, 0xe5, 0xce, 0x52, 0x9a, 0xd9, 0xdd, 0x8b, 0x33, 0xcf, 0x6e, 0xb9, 0xd1, 0x76, 0xfb, 0xe6, 0x6c, 0xcd, 0x6f, 0x5e, 0xd8, 0xf2, 0xb7, 0xfc, 0x0b, 0x8c, 0xf4, 0x66, 0x7b, 0x93, 0xfd, 0x63, 0x7f, 0xd8, 0x2f, 0xce, 0x62, 0xe6, 0x85, 0xb8, 0x9a, 0xa6, 0x53, 0xdb, 0x76, 0x3d, 0x12, 0xec, 0x5d, 0x68, 0xed, 0x6c, 0xb1, 0x7a, 0x03, 0x12, 0xfa, 0xed, 0xa0, 0x46, 0x92, 0x15, 0x77, 0x2c, 0x15, 0x5e, 0x68, 0x92, 0xc8, 0xc9, 0x68, 0xee, 0xcc, 0x85, 0xbc, 0x52, 0x41, 0xdb, 0x8b, 0xdc, 0x66, 0xba, 0x9a, 0x0f, 0x74, 0x2b, 0x10, 0xd6, 0xb6, 0x49, 0xd3, 0x49, 0x95, 0x7b, 0x3e, 0xaf, 0x5c, 0x3b, 0x72, 0x1b, 0x17, 0x5c, 0x2f, 0x0a, 0xa3, 0x20, 0x59, 0xc8, 0xfe, 0x86, 0x05, 0x67, 0xe7, 0x6e, 0x54, 0x97, 0x1a, 0x4e, 0x18, 0xb9, 0xb5, 0xf9, 0x86, 0x5f, 0xdb, 0xa9, 0x46, 0x7e, 0x40, 0xae, 0xfb, 0x8d, 0x76, 0x93, 0x54, 0x59, 0x47, 0xa0, 0x67, 0x60, 0x68, 0x97, 0xfd, 0x5f, 0x59, 0x9c, 0xb6, 0xce, 0x5a, 0xe7, 0x4b, 0xf3, 0x13, 0xbf, 0xbd, 0x5f, 0x7e, 0xdf, 0xdd, 0xfd, 0xf2, 0xd0, 0x75, 0x01, 0xc7, 0x8a, 0x02, 0x9d, 0x83, 0x81, 0xcd, 0x70, 0x63, 0xaf, 0x45, 0xa6, 0x0b, 0x8c, 0x76, 0x4c, 0xd0, 0x0e, 0x2c, 0x57, 0x29, 0x14, 0x0b, 0x2c, 0xba, 0x00, 0xa5, 0x96, 0x13, 0x44, 0x6e, 0xe4, 0xfa, 0xde, 0x74, 0xf1, 0xac, 0x75, 0xbe, 0x7f, 0x7e, 0x52, 0x90, 0x96, 0x2a, 0x12, 0x81, 0x63, 0x1a, 0xda, 0x8c, 0x80, 0x38, 0xf5, 0xab, 0x5e, 0x63, 0x6f, 0xba, 0xef, 0xac, 0x75, 0x7e, 0x28, 0x6e, 0x06, 0x16, 0x70, 0xac, 0x28, 0xec, 0x2f, 0x17, 0x60, 0x68, 0x6e, 0x73, 0xd3, 0xf5, 0xdc, 0x68, 0x0f, 0x5d, 0x87, 0x11, 0xcf, 0xaf, 0x13, 0xf9, 0x9f, 0x7d, 0xc5, 0xf0, 0x73, 0x67, 0x67, 0xd3, 0x53, 0x69, 0x76, 0x5d, 0xa3, 0x9b, 0x9f, 0xb8, 0xbb, 0x5f, 0x1e, 0xd1, 0x21, 0xd8, 0xe0, 0x83, 0x30, 0x0c, 0xb7, 0xfc, 0xba, 0x62, 0x5b, 0x60, 0x6c, 0xcb, 0x59, 0x6c, 0x2b, 0x31, 0xd9, 0xfc, 0xf8, 0xdd, 0xfd, 0xf2, 0xb0, 0x06, 0xc0, 0x3a, 0x13, 0x74, 0x13, 0xc6, 0xe9, 0x5f, 0x2f, 0x72, 0x15, 0xdf, 0x22, 0xe3, 0xfb, 0x68, 0x1e, 0x5f, 0x8d, 0x74, 0x7e, 0xea, 0xee, 0x7e, 0x79, 0x3c, 0x01, 0xc4, 0x49, 0x86, 0xf6, 0x1d, 0x18, 0x9b, 0x8b, 0x22, 0xa7, 0xb6, 0x4d, 0xea, 0x7c, 0x04, 0xd1, 0x0b, 0xd0, 0xe7, 0x39, 0x4d, 0x22, 0xc6, 0xf7, 0xac, 0xe8, 0xd8, 0xbe, 0x75, 0xa7, 0x49, 0xee, 0xed, 0x97, 0x27, 0xae, 0x79, 0xee, 0xdb, 0x6d, 0x31, 0x2b, 0x28, 0x0c, 0x33, 0x6a, 0xf4, 0x1c, 0x40, 0x9d, 0xec, 0xba, 0x35, 0x52, 0x71, 0xa2, 0x6d, 0x31, 0xde, 0x48, 0x94, 0x85, 0x45, 0x85, 0xc1, 0x1a, 0x95, 0x7d, 0x1b, 0x4a, 0x73, 0xbb, 0xbe, 0x5b, 0xaf, 0xf8, 0xf5, 0x10, 0xed, 0xc0, 0x78, 0x2b, 0x20, 0x9b, 0x24, 0x50, 0xa0, 0x69, 0xeb, 0x6c, 0xf1, 0xfc, 0xf0, 0x73, 0xe7, 0x33, 0x3f, 0xd6, 0x24, 0x5d, 0xf2, 0xa2, 0x60, 0x6f, 0xfe, 0x21, 0x51, 0xdf, 0x78, 0x02, 0x8b, 0x93, 0x9c, 0xed, 0x7f, 0x5a, 0x80, 0xe3, 0x73, 0x77, 0xda, 0x01, 0x59, 0x74, 0xc3, 0x9d, 0xe4, 0x0c, 0xaf, 0xbb, 0xe1, 0xce, 0x7a, 0xdc, 0x03, 0x6a, 0x6a, 0x2d, 0x0a, 0x38, 0x56, 0x14, 0xe8, 0x59, 0x18, 0xa4, 0xbf, 0xaf, 0xe1, 0x15, 0xf1, 0xc9, 0x53, 0x82, 0x78, 0x78, 0xd1, 0x89, 0x9c, 0x45, 0x8e, 0xc2, 0x92, 0x06, 0xad, 0xc1, 0x70, 0x8d, 0x2d, 0xc8, 0xad, 0x35, 0xbf, 0x4e, 0xd8, 0x60, 0x96, 0xe6, 0x9f, 0xa6, 0xe4, 0x0b, 0x31, 0xf8, 0xde, 0x7e, 0x79, 0x9a, 0xb7, 0x4d, 0xb0, 0xd0, 0x70, 0x58, 0x2f, 0x8f, 0x6c, 0xb5, 0xbe, 0xfa, 0x18, 0x27, 0xc8, 0x58, 0x5b, 0xe7, 0xb5, 0xa5, 0xd2, 0xcf, 0x96, 0xca, 0x48, 0xf6, 0x32, 0x41, 0x17, 0xa1, 0x6f, 0xc7, 0xf5, 0xea, 0xd3, 0x03, 0x8c, 0xd7, 0x69, 0x3a, 0xe6, 0x57, 0x5c, 0xaf, 0x7e, 0x6f, 0xbf, 0x3c, 0x69, 0x34, 0x87, 0x02, 0x31, 0x23, 0xb5, 0xff, 0xb3, 0x05, 0x65, 0x86, 0x5b, 0x76, 0x1b, 0xa4, 0x42, 0x82, 0xd0, 0x0d, 0x23, 0xe2, 0x45, 0x46, 0x87, 0x3e, 0x07, 0x10, 0x92, 0x5a, 0x40, 0x22, 0xad, 0x4b, 0xd5, 0xc4, 0xa8, 0x2a, 0x0c, 0xd6, 0xa8, 0xe8, 0x86, 0x10, 0x6e, 0x3b, 0x01, 0x9b, 0x5f, 0xa2, 0x63, 0xd5, 0x86, 0x50, 0x95, 0x08, 0x1c, 0xd3, 0x18, 0x1b, 0x42, 0xb1, 0xdb, 0x86, 0x80, 0x3e, 0x0c, 0xe3, 0x71, 0x65, 0x61, 0xcb, 0xa9, 0xc9, 0x0e, 0x64, 0x4b, 0xa6, 0x6a, 0xa2, 0x70, 0x92, 0xd6, 0xfe, 0xdb, 0x96, 0x98, 0x3c, 0xf4, 0xab, 0xdf, 0xe5, 0xdf, 0x6a, 0xff, 0x8a, 0x05, 0x83, 0xf3, 0xae, 0x57, 0x77, 0xbd, 0x2d, 0xf4, 0x29, 0x18, 0xa2, 0x67, 0x53, 0xdd, 0x89, 0x1c, 0xb1, 0xef, 0xbd, 0x5f, 0x5b, 0x5b, 0xea, 0xa8, 0x98, 0x6d, 0xed, 0x6c, 0x51, 0x40, 0x38, 0x4b, 0xa9, 0xe9, 0x6a, 0xbb, 0x7a, 0xf3, 0xd3, 0xa4, 0x16, 0xad, 0x91, 0xc8, 0x89, 0x3f, 0x27, 0x86, 0x61, 0xc5, 0x15, 0x5d, 0x81, 0x81, 0xc8, 0x09, 0xb6, 0x48, 0x24, 0x36, 0xc0, 0xcc, 0x8d, 0x8a, 0x97, 0xc4, 0x74, 0x45, 0x12, 0xaf, 0x46, 0xe2, 0x63, 0x61, 0x83, 0x15, 0xc5, 0x82, 0x85, 0xfd, 0x3f, 0x06, 0xe1, 0xe4, 0x42, 0x75, 0x25, 0x67, 0x5e, 0x9d, 0x83, 0x81, 0x7a, 0xe0, 0xee, 0x92, 0x40, 0xf4, 0xb3, 0xe2, 0xb2, 0xc8, 0xa0, 0x58, 0x60, 0xd1, 0x4b, 0x30, 0xc2, 0x0f, 0xa4, 0xcb, 0x8e, 0x57, 0x6f, 0xc8, 0x2e, 0x3e, 0x26, 0xa8, 0x47, 0xae, 0x6b, 0x38, 0x6c, 0x50, 0x1e, 0x70, 0x52, 0x9d, 0x4b, 0x2c, 0xc6, 0xbc, 0xc3, 0xee, 0x0b, 0x16, 0x4c, 0xf0, 0x6a, 0xe6, 0xa2, 0x28, 0x70, 0x6f, 0xb6, 0x23, 0x12, 0x4e, 0xf7, 0xb3, 0x9d, 0x6e, 0x21, 0xab, 0xb7, 0x72, 0x7b, 0x60, 0xf6, 0x7a, 0x82, 0x0b, 0xdf, 0x04, 0xa7, 0x45, 0xbd, 0x13, 0x49, 0x34, 0x4e, 0x55, 0x8b, 0xbe, 0xcf, 0x82, 0x99, 0x9a, 0xef, 0x45, 0x81, 0xdf, 0x68, 0x90, 0xa0, 0xd2, 0xbe, 0xd9, 0x70, 0xc3, 0x6d, 0x3e, 0x4f, 0x31, 0xd9, 0x64, 0x3b, 0x41, 0xce, 0x18, 0x2a, 0x22, 0x31, 0x86, 0x67, 0xee, 0xee, 0x97, 0x67, 0x16, 0x72, 0x59, 0xe1, 0x0e, 0xd5, 0xa0, 0x1d, 0x40, 0xf4, 0x28, 0xad, 0x46, 0xce, 0x16, 0x89, 0x2b, 0x1f, 0xec, 0xbd, 0xf2, 0x13, 0x77, 0xf7, 0xcb, 0x68, 0x3d, 0xc5, 0x02, 0x67, 0xb0, 0x45, 0x6f, 0xc3, 0x31, 0x0a, 0x4d, 0x7d, 0xeb, 0x50, 0xef, 0xd5, 0x4d, 0xdf, 0xdd, 0x2f, 0x1f, 0x5b, 0xcf, 0x60, 0x82, 0x33, 0x59, 0xa3, 0xef, 0xb1, 0xe0, 0x64, 0xfc, 0xf9, 0x4b, 0xb7, 0x5b, 0x8e, 0x57, 0x8f, 0x2b, 0x2e, 0xf5, 0x5e, 0x31, 0xdd, 0x93, 0x4f, 0x2e, 0xe4, 0x71, 0xc2, 0xf9, 0x95, 0x20, 0x0f, 0xa6, 0x68, 0xd3, 0x92, 0x75, 0x43, 0xef, 0x75, 0x3f, 0x74, 0x77, 0xbf, 0x3c, 0xb5, 0x9e, 0xe6, 0x81, 0xb3, 0x18, 0xcf, 0x2c, 0xc0, 0xf1, 0xcc, 0xd9, 0x89, 0x26, 0xa0, 0xb8, 0x43, 0xb8, 0xd4, 0x55, 0xc2, 0xf4, 0x27, 0x3a, 0x06, 0xfd, 0xbb, 0x4e, 0xa3, 0x2d, 0x16, 0x26, 0xe6, 0x7f, 0x5e, 0x2e, 0xbc, 0x64, 0xd9, 0xff, 0xac, 0x08, 0xe3, 0x0b, 0xd5, 0x95, 0xfb, 0x5a, 0xf5, 0xfa, 0xb1, 0x57, 0xe8, 0x78, 0xec, 0xc5, 0x87, 0x68, 0x31, 0xf7, 0x10, 0xfd, 0xee, 0x8c, 0x25, 0xdb, 0xc7, 0x96, 0xec, 0x87, 0x72, 0x96, 0xec, 0x21, 0x2f, 0xd4, 0xdd, 0x9c, 0x59, 0xdb, 0xcf, 0x06, 0x30, 0x53, 0x42, 0x5a, 0xf5, 0x6b, 0x4e, 0x23, 0xb9, 0xd5, 0x1e, 0x70, 0xea, 0x1e, 0xce, 0x38, 0xd6, 0x60, 0x64, 0xc1, 0x69, 0x39, 0x37, 0xdd, 0x86, 0x1b, 0xb9, 0x24, 0x44, 0x4f, 0x40, 0xd1, 0xa9, 0xd7, 0x99, 0x74, 0x57, 0x9a, 0x3f, 0x7e, 0x77, 0xbf, 0x5c, 0x9c, 0xab, 0x53, 0x31, 0x03, 0x14, 0xd5, 0x1e, 0xa6, 0x14, 0xe8, 0x29, 0xe8, 0xab, 0x07, 0x7e, 0x6b, 0xba, 0xc0, 0x28, 0xe9, 0x2a, 0xef, 0x5b, 0x0c, 0xfc, 0x56, 0x82, 0x94, 0xd1, 0xd8, 0xbf, 0x55, 0x80, 0x53, 0x0b, 0xa4, 0xb5, 0xbd, 0x5c, 0xcd, 0x39, 0x2f, 0xce, 0xc3, 0x50, 0xd3, 0xf7, 0xdc, 0xc8, 0x0f, 0x42, 0x51, 0x35, 0x9b, 0x11, 0x6b, 0x02, 0x86, 0x15, 0x16, 0x9d, 0x85, 0xbe, 0x56, 0x2c, 0xc4, 0x8e, 0x48, 0x01, 0x98, 0x89, 0xaf, 0x0c, 0x43, 0x29, 0xda, 0x21, 0x09, 0xc4, 0x8c, 0x51, 0x14, 0xd7, 0x42, 0x12, 0x60, 0x86, 0x89, 0x25, 0x01, 0x2a, 0x23, 0x88, 0x13, 0x21, 0x21, 0x09, 0x50, 0x0c, 0xd6, 0xa8, 0x50, 0x05, 0x4a, 0x61, 0x62, 0x64, 0x7b, 0x5a, 0x9a, 0xa3, 0x4c, 0x54, 0x50, 0x23, 0x19, 0x33, 0x31, 0x4e, 0xb0, 0x81, 0xae, 0xa2, 0xc2, 0xd7, 0x0b, 0x80, 0x78, 0x17, 0x7e, 0x9b, 0x75, 0xdc, 0xb5, 0x74, 0xc7, 0xf5, 0xbe, 0x24, 0x0e, 0xab, 0xf7, 0xfe, 0x8b, 0x05, 0xa7, 0x16, 0x5c, 0xaf, 0x4e, 0x82, 0x9c, 0x09, 0xf8, 0x60, 0xee, 0xce, 0x07, 0x13, 0x52, 0x8c, 0x29, 0xd6, 0x77, 0x08, 0x53, 0xcc, 0xfe, 0x4b, 0x0b, 0x10, 0xff, 0xec, 0x77, 0xdd, 0xc7, 0x5e, 0x4b, 0x7f, 0xec, 0x21, 0x4c, 0x0b, 0xfb, 0xef, 0x5a, 0x30, 0xbc, 0xd0, 0x70, 0xdc, 0xa6, 0xf8, 0xd4, 0x05, 0x98, 0x94, 0x8a, 0x22, 0x06, 0xd6, 0x64, 0x7f, 0xba, 0xb9, 0x4d, 0xe2, 0x24, 0x12, 0xa7, 0xe9, 0xd1, 0xc7, 0xe1, 0xa4, 0x01, 0xdc, 0x20, 0xcd, 0x56, 0xc3, 0x89, 0xf4, 0x5b, 0x01, 0x3b, 0xfd, 0x71, 0x1e, 0x11, 0xce, 0x2f, 0x6f, 0xaf, 0xc2, 0xd8, 0x42, 0xc3, 0x25, 0x5e, 0xb4, 0x52, 0x59, 0xf0, 0xbd, 0x4d, 0x77, 0x0b, 0xbd, 0x0c, 0x63, 0x91, 0xdb, 0x24, 0x7e, 0x3b, 0xaa, 0x92, 0x9a, 0xef, 0xb1, 0xbb, 0xb6, 0x75, 0xbe, 0x7f, 0x1e, 0xdd, 0xdd, 0x2f, 0x8f, 0x6d, 0x18, 0x18, 0x9c, 0xa0, 0xb4, 0x7f, 0x9a, 0xee, 0xb4, 0x8d, 0x76, 0x18, 0x91, 0x60, 0x23, 0x68, 0x87, 0xd1, 0x7c, 0x9b, 0x4a, 0xcb, 0x95, 0xc0, 0xa7, 0x1d, 0xe8, 0xfa, 0x1e, 0x3a, 0x65, 0x28, 0x10, 0x86, 0xa4, 0xf2, 0x40, 0x28, 0x0a, 0x66, 0x01, 0x42, 0x77, 0xcb, 0x23, 0x81, 0xf6, 0x69, 0x63, 0x6c, 0x71, 0x2b, 0x28, 0xd6, 0x28, 0x50, 0x03, 0x46, 0x1b, 0xce, 0x4d, 0xd2, 0xa8, 0x92, 0x06, 0xa9, 0x45, 0x7e, 0x20, 0x54, 0x20, 0xcf, 0xf7, 0x76, 0x73, 0x59, 0xd5, 0x8b, 0xce, 0x4f, 0xde, 0xdd, 0x2f, 0x8f, 0x1a, 0x20, 0x6c, 0x32, 0xa7, 0x9b, 0x9d, 0xdf, 0xa2, 0x5f, 0xe1, 0x34, 0xf4, 0xeb, 0xf2, 0x55, 0x01, 0xc3, 0x0a, 0xab, 0x36, 0xbb, 0xbe, 0xbc, 0xcd, 0xce, 0xfe, 0x63, 0xba, 0x34, 0xfc, 0x66, 0xcb, 0xf7, 0x88, 0x17, 0x2d, 0xf8, 0x5e, 0x9d, 0x2b, 0xaf, 0x5e, 0x86, 0xbe, 0x88, 0x4e, 0x75, 0xde, 0x3d, 0xe7, 0x64, 0x41, 0x3a, 0xc1, 0xef, 0xed, 0x97, 0x4f, 0xa4, 0x4b, 0xb0, 0x25, 0xc0, 0xca, 0xa0, 0x0f, 0xc1, 0x40, 0x18, 0x39, 0x51, 0x3b, 0x14, 0x1d, 0xf7, 0x88, 0x5c, 0x28, 0x55, 0x06, 0xbd, 0xb7, 0x5f, 0x1e, 0x57, 0xc5, 0x38, 0x08, 0x8b, 0x02, 0xe8, 0x49, 0x18, 0x6c, 0x92, 0x30, 0x74, 0xb6, 0xa4, 0xa0, 0x33, 0x2e, 0xca, 0x0e, 0xae, 0x71, 0x30, 0x96, 0x78, 0xf4, 0x28, 0xf4, 0x93, 0x20, 0xf0, 0x03, 0xf1, 0x6d, 0xa3, 0x82, 0xb0, 0x7f, 0x89, 0x02, 0x31, 0xc7, 0xd9, 0xff, 0xd2, 0x82, 0x71, 0xd5, 0x56, 0x5e, 0xd7, 0x11, 0x5c, 0x30, 0xdf, 0x04, 0xa8, 0xc9, 0x0f, 0x0c, 0x99, 0x60, 0x30, 0xfc, 0xdc, 0xb9, 0x4c, 0x19, 0x2c, 0xd5, 0x8d, 0x31, 0x67, 0x05, 0x0a, 0xb1, 0xc6, 0xcd, 0xfe, 0x75, 0x0b, 0xa6, 0x12, 0x5f, 0xb4, 0xea, 0x86, 0x11, 0x7a, 0x2b, 0xf5, 0x55, 0xb3, 0x3d, 0x4e, 0x3e, 0x37, 0xe4, 0xdf, 0xa4, 0x76, 0x29, 0x09, 0xd1, 0xbe, 0xe8, 0x32, 0xf4, 0xbb, 0x11, 0x69, 0xca, 0x8f, 0x79, 0xb4, 0xe3, 0xc7, 0xf0, 0x56, 0xc5, 0x23, 0xb2, 0x42, 0x4b, 0x62, 0xce, 0xc0, 0xfe, 0xad, 0x22, 0x94, 0xf8, 0xfa, 0x5e, 0x73, 0x5a, 0x47, 0x30, 0x16, 0x4f, 0x43, 0xc9, 0x6d, 0x36, 0xdb, 0x91, 0x73, 0x53, 0x9c, 0xd4, 0x43, 0x7c, 0xd7, 0x5c, 0x91, 0x40, 0x1c, 0xe3, 0xd1, 0x0a, 0xf4, 0xb1, 0xa6, 0xf0, 0xaf, 0x7c, 0x22, 0xfb, 0x2b, 0x45, 0xdb, 0x67, 0x17, 0x9d, 0xc8, 0xe1, 0x42, 0xb2, 0x5a, 0x57, 0x14, 0x84, 0x19, 0x0b, 0xe4, 0x00, 0xdc, 0x74, 0x3d, 0x27, 0xd8, 0xa3, 0xb0, 0xe9, 0x22, 0x63, 0xf8, 0x6c, 0x67, 0x86, 0xf3, 0x8a, 0x9e, 0xb3, 0x55, 0x1f, 0x16, 0x23, 0xb0, 0xc6, 0x74, 0xe6, 0x83, 0x50, 0x52, 0xc4, 0x07, 0x91, 0x75, 0x67, 0x3e, 0x0c, 0xe3, 0x89, 0xba, 0xba, 0x15, 0x1f, 0xd1, 0x45, 0xe5, 0x5f, 0x65, 0x5b, 0x86, 0x68, 0xf5, 0x92, 0xb7, 0x2b, 0x8e, 0x98, 0x3b, 0x70, 0xac, 0x91, 0x71, 0x48, 0x89, 0x71, 0xed, 0xfd, 0x50, 0x3b, 0x25, 0x3e, 0xfb, 0x58, 0x16, 0x16, 0x67, 0xd6, 0x61, 0xec, 0x88, 0x85, 0x4e, 0x3b, 0x22, 0xdd, 0xef, 0x8e, 0xa9, 0xc6, 0x5f, 0x21, 0x7b, 0x6a, 0x53, 0xfd, 0x56, 0x36, 0xff, 0x34, 0xef, 0x7d, 0xbe, 0x5d, 0x0e, 0x0b, 0x06, 0xc5, 0x2b, 0x64, 0x8f, 0x0f, 0x85, 0xfe, 0x75, 0xc5, 0x8e, 0x5f, 0xf7, 0x55, 0x0b, 0x46, 0xd5, 0xd7, 0x1d, 0xc1, 0xbe, 0x30, 0x6f, 0xee, 0x0b, 0xa7, 0x3b, 0x4e, 0xf0, 0x9c, 0x1d, 0xe1, 0xeb, 0x05, 0x38, 0xa9, 0x68, 0xe8, 0xb5, 0x8f, 0xff, 0x11, 0xb3, 0xea, 0x02, 0x94, 0x3c, 0xa5, 0x00, 0xb5, 0x4c, 0xcd, 0x63, 0xac, 0xfe, 0x8c, 0x69, 0xe8, 0x91, 0xe7, 0xc5, 0x87, 0xf6, 0x88, 0x6e, 0x19, 0x10, 0x87, 0xfb, 0x3c, 0x14, 0xdb, 0x6e, 0x5d, 0x1c, 0x30, 0xef, 0x97, 0xbd, 0x7d, 0x6d, 0x65, 0xf1, 0xde, 0x7e, 0xf9, 0x91, 0x3c, 0xab, 0x14, 0x3d, 0xd9, 0xc2, 0xd9, 0x6b, 0x2b, 0x8b, 0x98, 0x16, 0x46, 0x73, 0x30, 0x2e, 0x45, 0x99, 0xeb, 0x54, 0x92, 0xf6, 0x3d, 0x71, 0x0e, 0x29, 0xf5, 0x3e, 0x36, 0xd1, 0x38, 0x49, 0x8f, 0x16, 0x61, 0x62, 0xa7, 0x7d, 0x93, 0x34, 0x48, 0xc4, 0x3f, 0xf8, 0x0a, 0xe1, 0xca, 0xef, 0x52, 0x7c, 0xe9, 0xbe, 0x92, 0xc0, 0xe3, 0x54, 0x09, 0xfb, 0x6f, 0xd8, 0x79, 0x20, 0x7a, 0x4f, 0x93, 0x6f, 0xbe, 0x95, 0xd3, 0xb9, 0x97, 0x59, 0x71, 0x85, 0xec, 0x6d, 0xf8, 0x54, 0x0e, 0xc9, 0x9e, 0x15, 0xc6, 0x9c, 0xef, 0xeb, 0x38, 0xe7, 0x7f, 0xb1, 0x00, 0xc7, 0x55, 0x0f, 0x18, 0xf2, 0xfd, 0xb7, 0x7b, 0x1f, 0x5c, 0x84, 0xe1, 0x3a, 0xd9, 0x74, 0xda, 0x8d, 0x48, 0x59, 0x62, 0xfa, 0xb9, 0x35, 0x6e, 0x31, 0x06, 0x63, 0x9d, 0xe6, 0x00, 0xdd, 0xf6, 0xf3, 0xa3, 0xec, 0x20, 0x8e, 0x1c, 0x3a, 0xc7, 0xd5, 0xaa, 0xb1, 0x72, 0x57, 0xcd, 0xa3, 0xd0, 0xef, 0x36, 0xa9, 0x60, 0x56, 0x30, 0xe5, 0xad, 0x15, 0x0a, 0xc4, 0x1c, 0x87, 0x1e, 0x87, 0xc1, 0x9a, 0xdf, 0x6c, 0x3a, 0x5e, 0x9d, 0x1d, 0x79, 0xa5, 0xf9, 0x61, 0x2a, 0xbb, 0x2d, 0x70, 0x10, 0x96, 0x38, 0x2a, 0x7c, 0x3b, 0xc1, 0x16, 0x57, 0x4f, 0x09, 0xe1, 0x7b, 0x2e, 0xd8, 0x0a, 0x31, 0x83, 0xd2, 0xdb, 0xf5, 0x2d, 0x3f, 0xd8, 0x71, 0xbd, 0xad, 0x45, 0x37, 0x10, 0x4b, 0x42, 0x9d, 0x85, 0x37, 0x14, 0x06, 0x6b, 0x54, 0x68, 0x19, 0xfa, 0x5b, 0x7e, 0x10, 0x85, 0xd3, 0x03, 0xac, 0xbb, 0x1f, 0xc9, 0xd9, 0x88, 0xf8, 0xd7, 0x56, 0xfc, 0x20, 0x8a, 0x3f, 0x80, 0xfe, 0x0b, 0x31, 0x2f, 0x8e, 0x56, 0x61, 0x90, 0x78, 0xbb, 0xcb, 0x81, 0xdf, 0x9c, 0x9e, 0xca, 0xe7, 0xb4, 0xc4, 0x49, 0xf8, 0x34, 0x8b, 0x65, 0x54, 0x01, 0xc6, 0x92, 0x05, 0xfa, 0x10, 0x14, 0x89, 0xb7, 0x3b, 0x3d, 0xc8, 0x38, 0xcd, 0xe4, 0x70, 0xba, 0xee, 0x04, 0xf1, 0x9e, 0xbf, 0xe4, 0xed, 0x62, 0x5a, 0x06, 0x7d, 0x0c, 0x4a, 0x72, 0xc3, 0x08, 0x85, 0xde, 0x37, 0x73, 0xc2, 0xca, 0x6d, 0x06, 0x93, 0xb7, 0xdb, 0x6e, 0x40, 0x9a, 0xc4, 0x8b, 0xc2, 0x78, 0x87, 0x94, 0xd8, 0x10, 0xc7, 0xdc, 0x50, 0x0d, 0x46, 0x02, 0x12, 0xba, 0x77, 0x48, 0xc5, 0x6f, 0xb8, 0xb5, 0xbd, 0xe9, 0x87, 0x58, 0xf3, 0x9e, 0xec, 0xd8, 0x65, 0x58, 0x2b, 0x10, 0xdb, 0x25, 0x74, 0x28, 0x36, 0x98, 0xa2, 0x37, 0x60, 0x34, 0x20, 0x61, 0xe4, 0x04, 0x91, 0xa8, 0x65, 0x5a, 0xd9, 0x11, 0x47, 0xb1, 0x8e, 0xe0, 0xd7, 0x89, 0xb8, 0x9a, 0x18, 0x83, 0x4d, 0x0e, 0xe8, 0x63, 0xd2, 0x48, 0xb2, 0xe6, 0xb7, 0xbd, 0x28, 0x9c, 0x2e, 0xb1, 0x76, 0x67, 0x9a, 0xaf, 0xaf, 0xc7, 0x74, 0x49, 0x2b, 0x0a, 0x2f, 0x8c, 0x0d, 0x56, 0xe8, 0x13, 0x30, 0xca, 0xff, 0x73, 0x23, 0x70, 0x38, 0x7d, 0x9c, 0xf1, 0x3e, 0x9b, 0xcf, 0x9b, 0x13, 0xce, 0x1f, 0x17, 0xcc, 0x47, 0x75, 0x68, 0x88, 0x4d, 0x6e, 0x08, 0xc3, 0x68, 0xc3, 0xdd, 0x25, 0x1e, 0x09, 0xc3, 0x4a, 0xe0, 0xdf, 0x24, 0x42, 0xa7, 0x7d, 0x32, 0xdb, 0x68, 0xec, 0xdf, 0x24, 0xe2, 0x12, 0xa8, 0x97, 0xc1, 0x26, 0x0b, 0x74, 0x0d, 0xc6, 0x02, 0xe2, 0xd4, 0xdd, 0x98, 0xe9, 0x70, 0x37, 0xa6, 0xec, 0xe2, 0x8c, 0x8d, 0x42, 0x38, 0xc1, 0x04, 0x5d, 0x85, 0x11, 0xd6, 0xe7, 0xed, 0x16, 0x67, 0x7a, 0xa2, 0x1b, 0x53, 0xe6, 0x73, 0x50, 0xd5, 0x8a, 0x60, 0x83, 0x01, 0x7a, 0x1d, 0x4a, 0x0d, 0x77, 0x93, 0xd4, 0xf6, 0x6a, 0x0d, 0x32, 0x3d, 0xc2, 0xb8, 0x65, 0x6e, 0x86, 0xab, 0x92, 0x88, 0xcb, 0xe7, 0xea, 0x2f, 0x8e, 0x8b, 0xa3, 0xeb, 0x70, 0x22, 0x22, 0x41, 0xd3, 0xf5, 0x1c, 0xba, 0x89, 0x89, 0x2b, 0x21, 0xb3, 0xe5, 0x8f, 0xb2, 0xd9, 0x75, 0x46, 0x8c, 0xc6, 0x89, 0x8d, 0x4c, 0x2a, 0x9c, 0x53, 0x1a, 0xdd, 0x86, 0xe9, 0x0c, 0x0c, 0x9f, 0xb7, 0xc7, 0x18, 0xe7, 0x57, 0x05, 0xe7, 0xe9, 0x8d, 0x1c, 0xba, 0x7b, 0x1d, 0x70, 0x38, 0x97, 0x3b, 0xba, 0x0a, 0xe3, 0x6c, 0xe7, 0xac, 0xb4, 0x1b, 0x0d, 0x51, 0xe1, 0x18, 0xab, 0xf0, 0x71, 0x29, 0x47, 0xac, 0x98, 0xe8, 0x7b, 0xfb, 0x65, 0x88, 0xff, 0xe1, 0x64, 0x69, 0x74, 0x93, 0x99, 0x8d, 0xdb, 0x81, 0x1b, 0xed, 0xd1, 0x55, 0x45, 0x6e, 0x47, 0xd3, 0xe3, 0x1d, 0x55, 0x68, 0x3a, 0xa9, 0xb2, 0x2d, 0xeb, 0x40, 0x9c, 0x64, 0x48, 0x8f, 0x82, 0x30, 0xaa, 0xbb, 0xde, 0xf4, 0x04, 0xbf, 0x4f, 0xc9, 0x9d, 0xb4, 0x4a, 0x81, 0x98, 0xe3, 0x98, 0xc9, 0x98, 0xfe, 0xb8, 0x4a, 0x4f, 0xdc, 0x49, 0x46, 0x18, 0x9b, 0x8c, 0x25, 0x02, 0xc7, 0x34, 0x54, 0x08, 0x8e, 0xa2, 0xbd, 0x69, 0xc4, 0x48, 0xd5, 0x86, 0xb8, 0xb1, 0xf1, 0x31, 0x4c, 0xe1, 0xf6, 0x4d, 0x18, 0x53, 0xdb, 0x04, 0xeb, 0x13, 0x54, 0x86, 0x7e, 0x26, 0xf6, 0x09, 0x85, 0x6f, 0x89, 0x36, 0x81, 0x89, 0x84, 0x98, 0xc3, 0x59, 0x13, 0xdc, 0x3b, 0x64, 0x7e, 0x2f, 0x22, 0x5c, 0x17, 0x51, 0xd4, 0x9a, 0x20, 0x11, 0x38, 0xa6, 0xb1, 0xff, 0x27, 0x17, 0x9f, 0xe3, 0x53, 0xa2, 0x87, 0x73, 0xf1, 0x19, 0x18, 0xda, 0xf6, 0xc3, 0x88, 0x52, 0xb3, 0x3a, 0xfa, 0x63, 0x81, 0xf9, 0xb2, 0x80, 0x63, 0x45, 0x81, 0x5e, 0x81, 0xd1, 0x9a, 0x5e, 0x81, 0x38, 0xd4, 0xd5, 0x36, 0x62, 0xd4, 0x8e, 0x4d, 0x5a, 0xf4, 0x12, 0x0c, 0x31, 0x37, 0xa8, 0x9a, 0xdf, 0x10, 0xd2, 0xa6, 0x94, 0x4c, 0x86, 0x2a, 0x02, 0x7e, 0x4f, 0xfb, 0x8d, 0x15, 0x35, 0x3a, 0x07, 0x03, 0xb4, 0x09, 0x2b, 0x15, 0x71, 0x9c, 0x2a, 0xdd, 0xe5, 0x65, 0x06, 0xc5, 0x02, 0x6b, 0xff, 0xba, 0xc5, 0x64, 0xa9, 0xf4, 0x9e, 0x8f, 0x2e, 0xb3, 0x43, 0x83, 0x9d, 0x20, 0x9a, 0xee, 0xf0, 0x31, 0xed, 0x24, 0x50, 0xb8, 0x7b, 0x89, 0xff, 0xd8, 0x28, 0x89, 0xde, 0x4c, 0x9e, 0x0c, 0x5c, 0xa0, 0x78, 0x41, 0x76, 0x41, 0xf2, 0x74, 0x78, 0x38, 0x3e, 0xe2, 0x68, 0x7b, 0x3a, 0x1d, 0x11, 0xf6, 0xff, 0x55, 0xd0, 0x66, 0x49, 0x35, 0x72, 0x22, 0x82, 0x2a, 0x30, 0x78, 0xcb, 0x71, 0x23, 0xd7, 0xdb, 0x12, 0x72, 0x5f, 0xe7, 0x83, 0x8e, 0x15, 0xba, 0xc1, 0x0b, 0x70, 0xe9, 0x45, 0xfc, 0xc1, 0x92, 0x0d, 0xe5, 0x18, 0xb4, 0x3d, 0x8f, 0x72, 0x2c, 0xf4, 0xca, 0x11, 0xf3, 0x02, 0x9c, 0xa3, 0xf8, 0x83, 0x25, 0x1b, 0xf4, 0x16, 0x80, 0xdc, 0x21, 0x48, 0x5d, 0xe8, 0x0e, 0x9f, 0xe9, 0xce, 0x74, 0x43, 0x95, 0xe1, 0xca, 0xc9, 0xf8, 0x3f, 0xd6, 0xf8, 0xd9, 0x91, 0x36, 0xa6, 0x7a, 0x63, 0xd0, 0xc7, 0xe9, 0x12, 0x75, 0x82, 0x88, 0xd4, 0xe7, 0x22, 0xd1, 0x39, 0x4f, 0xf5, 0x76, 0x39, 0xdc, 0x70, 0x9b, 0x44, 0x5f, 0xce, 0x82, 0x09, 0x8e, 0xf9, 0xd9, 0xbf, 0x5c, 0x84, 0xe9, 0xbc, 0xe6, 0xd2, 0x45, 0x43, 0x6e, 0xbb, 0xd1, 0x02, 0x15, 0x6b, 0x2d, 0x73, 0xd1, 0x2c, 0x09, 0x38, 0x56, 0x14, 0x74, 0xf6, 0x86, 0xee, 0x96, 0xbc, 0xdb, 0xf7, 0xc7, 0xb3, 0xb7, 0xca, 0xa0, 0x58, 0x60, 0x29, 0x5d, 0x40, 0x9c, 0x50, 0xf8, 0xe7, 0x69, 0xb3, 0x1c, 0x33, 0x28, 0x16, 0x58, 0x5d, 0xcb, 0xd8, 0xd7, 0x45, 0xcb, 0x68, 0x74, 0x51, 0xff, 0xe1, 0x76, 0x11, 0xfa, 0x24, 0xc0, 0xa6, 0xeb, 0xb9, 0xe1, 0x36, 0xe3, 0x3e, 0x70, 0x60, 0xee, 0x4a, 0x28, 0x5e, 0x56, 0x5c, 0xb0, 0xc6, 0x11, 0xbd, 0x08, 0xc3, 0x6a, 0x03, 0x59, 0x59, 0x64, 0xce, 0x0a, 0x9a, 0xf3, 0x57, 0xbc, 0x9b, 0x2e, 0x62, 0x9d, 0xce, 0xfe, 0x74, 0x72, 0xbe, 0x88, 0x15, 0xa0, 0xf5, 0xaf, 0xd5, 0x6b, 0xff, 0x16, 0x3a, 0xf7, 0xaf, 0xfd, 0xcd, 0x01, 0x18, 0x37, 0x2a, 0x6b, 0x87, 0x3d, 0xec, 0xb9, 0x97, 0xe8, 0x01, 0xe4, 0x44, 0x44, 0xac, 0x3f, 0xbb, 0xfb, 0x52, 0xd1, 0x0f, 0x29, 0xba, 0x02, 0x78, 0x79, 0xf4, 0x49, 0x28, 0x35, 0x9c, 0x90, 0x69, 0x2c, 0x89, 0x58, 0x77, 0xbd, 0x30, 0x8b, 0x2f, 0x84, 0x4e, 0x18, 0x69, 0xa7, 0x3e, 0xe7, 0x1d, 0xb3, 0xa4, 0x27, 0x25, 0x95, 0xaf, 0xa4, 0x03, 0xa8, 0x6a, 0x04, 0x15, 0xc2, 0xf6, 0x30, 0xc7, 0xa1, 0x97, 0xd8, 0xd6, 0x4a, 0x67, 0xc5, 0x02, 0x95, 0x46, 0xd9, 0x34, 0xeb, 0x37, 0x84, 0x6c, 0x85, 0xc3, 0x06, 0x65, 0x7c, 0x27, 0x1b, 0xe8, 0x70, 0x27, 0x7b, 0x12, 0x06, 0xd9, 0x0f, 0x35, 0x03, 0xd4, 0x68, 0xac, 0x70, 0x30, 0x96, 0xf8, 0xe4, 0x84, 0x19, 0xea, 0x6d, 0xc2, 0xd0, 0x5b, 0x9f, 0x98, 0xd4, 0xcc, 0x51, 0x64, 0x88, 0xef, 0x72, 0x62, 0xca, 0x63, 0x89, 0x43, 0x3f, 0x63, 0x01, 0x72, 0x1a, 0xf4, 0xb6, 0x4c, 0xc1, 0xea, 0x72, 0x03, 0x4c, 0xd4, 0x7e, 0xa5, 0x6b, 0xb7, 0xb7, 0xc3, 0xd9, 0xb9, 0x54, 0x69, 0xae, 0x29, 0x7d, 0x59, 0x34, 0x11, 0xa5, 0x09, 0xf4, 0xc3, 0x68, 0xd5, 0x0d, 0xa3, 0xcf, 0xfd, 0x49, 0xe2, 0x70, 0xca, 0x68, 0x12, 0xba, 0xa6, 0x5f, 0xbe, 0x86, 0x0f, 0x78, 0xf9, 0x1a, 0xcd, 0xbb, 0x78, 0xcd, 0xb4, 0xe1, 0xa1, 0x9c, 0x2f, 0xc8, 0xd0, 0xbf, 0x2e, 0xea, 0xfa, 0xd7, 0x2e, 0x5a, 0xbb, 0x59, 0x59, 0xc7, 0xec, 0x1b, 0x6d, 0xc7, 0x8b, 0xdc, 0x68, 0x4f, 0xd7, 0xd7, 0x3e, 0x05, 0x63, 0x8b, 0x0e, 0x69, 0xfa, 0xde, 0x92, 0x57, 0x6f, 0xf9, 0xae, 0x17, 0xa1, 0x69, 0xe8, 0x63, 0xc2, 0x07, 0xdf, 0x7a, 0xfb, 0x68, 0xef, 0x61, 0x06, 0xb1, 0xb7, 0xe0, 0xf8, 0xa2, 0x7f, 0xcb, 0xbb, 0xe5, 0x04, 0xf5, 0xb9, 0xca, 0x8a, 0xa6, 0x4f, 0x5a, 0x97, 0xfa, 0x0c, 0x2b, 0xff, 0xb6, 0xa8, 0x95, 0xe4, 0xd7, 0xa1, 0x65, 0xb7, 0x41, 0x72, 0xb4, 0x7e, 0xff, 0x6f, 0xc1, 0xa8, 0x29, 0xa6, 0x57, 0x36, 0x2b, 0x2b, 0xd7, 0x40, 0xff, 0x06, 0x0c, 0x6d, 0xba, 0xa4, 0x51, 0xc7, 0x64, 0x53, 0xf4, 0xce, 0x13, 0xf9, 0x2e, 0x7c, 0xcb, 0x94, 0x52, 0x19, 0xd7, 0x98, 0x36, 0x64, 0x59, 0x14, 0xc6, 0x8a, 0x0d, 0xda, 0x81, 0x09, 0xd9, 0x87, 0x12, 0x2b, 0xf6, 0x83, 0x27, 0x3b, 0x0d, 0xbc, 0xc9, 0xfc, 0xd8, 0xdd, 0xfd, 0xf2, 0x04, 0x4e, 0xb0, 0xc1, 0x29, 0xc6, 0xe8, 0x14, 0xf4, 0x35, 0xe9, 0xc9, 0xd7, 0xc7, 0xba, 0x9f, 0xa9, 0x3f, 0x98, 0x26, 0x87, 0x41, 0xed, 0x1f, 0xb3, 0xe0, 0xa1, 0x54, 0xcf, 0x08, 0x8d, 0xd6, 0x21, 0x8f, 0x42, 0x52, 0xc3, 0x54, 0xe8, 0xae, 0x61, 0xb2, 0xff, 0x8e, 0x05, 0xc7, 0x96, 0x9a, 0xad, 0x68, 0x6f, 0xd1, 0x35, 0xad, 0xe9, 0x1f, 0x84, 0x81, 0x26, 0xa9, 0xbb, 0xed, 0xa6, 0x18, 0xb9, 0xb2, 0x3c, 0x1d, 0xd6, 0x18, 0xf4, 0xde, 0x7e, 0x79, 0xb4, 0x1a, 0xf9, 0x81, 0xb3, 0x45, 0x38, 0x00, 0x0b, 0x72, 0x76, 0xc6, 0xba, 0x77, 0xc8, 0xaa, 0xdb, 0x74, 0xa3, 0xfb, 0x9b, 0xed, 0xc2, 0x10, 0x2e, 0x99, 0xe0, 0x98, 0x9f, 0xfd, 0x0d, 0x0b, 0xc6, 0xe5, 0xbc, 0x9f, 0xab, 0xd7, 0x03, 0x12, 0x86, 0x68, 0x06, 0x0a, 0x6e, 0x4b, 0xb4, 0x12, 0x44, 0x2b, 0x0b, 0x2b, 0x15, 0x5c, 0x70, 0x5b, 0x52, 0x9c, 0x67, 0x07, 0x50, 0xd1, 0xf4, 0x09, 0xb8, 0x2c, 0xe0, 0x58, 0x51, 0xa0, 0xf3, 0x30, 0xe4, 0xf9, 0x75, 0x2e, 0x11, 0x0b, 0x1b, 0x2b, 0xa5, 0x5c, 0x17, 0x30, 0xac, 0xb0, 0xa8, 0x02, 0x25, 0xee, 0x31, 0x1a, 0x4f, 0xda, 0x9e, 0xfc, 0x4e, 0xd9, 0x97, 0x6d, 0xc8, 0x92, 0x38, 0x66, 0x62, 0xff, 0xa6, 0x05, 0x23, 0xf2, 0xcb, 0x7a, 0xbc, 0xab, 0xd0, 0xa5, 0x15, 0xdf, 0x53, 0xe2, 0xa5, 0x45, 0xef, 0x1a, 0x0c, 0x63, 0x5c, 0x31, 0x8a, 0x07, 0xba, 0x62, 0x5c, 0x84, 0x61, 0xa7, 0xd5, 0xaa, 0x98, 0xf7, 0x13, 0x36, 0x95, 0xe6, 0x62, 0x30, 0xd6, 0x69, 0xec, 0x1f, 0x2d, 0xc0, 0x98, 0xfc, 0x82, 0x6a, 0xfb, 0x66, 0x48, 0x22, 0xb4, 0x01, 0x25, 0x87, 0x8f, 0x12, 0x91, 0x93, 0xfc, 0xd1, 0x6c, 0xbd, 0x99, 0x31, 0xa4, 0xb1, 0xa0, 0x35, 0x27, 0x4b, 0xe3, 0x98, 0x11, 0x6a, 0xc0, 0xa4, 0xe7, 0x47, 0xec, 0xd0, 0x55, 0xf8, 0x4e, 0xa6, 0xcc, 0x24, 0xf7, 0x93, 0x82, 0xfb, 0xe4, 0x7a, 0x92, 0x0b, 0x4e, 0x33, 0x46, 0x4b, 0x52, 0x17, 0x59, 0xcc, 0x57, 0x22, 0xe9, 0x03, 0x97, 0xad, 0x8a, 0xb4, 0x7f, 0xcd, 0x82, 0x92, 0x24, 0x3b, 0x0a, 0xab, 0xf5, 0x1a, 0x0c, 0x86, 0x6c, 0x10, 0x64, 0xd7, 0xd8, 0x9d, 0x1a, 0xce, 0xc7, 0x2b, 0x96, 0x25, 0xf8, 0xff, 0x10, 0x4b, 0x1e, 0xcc, 0x14, 0xa5, 0x9a, 0xff, 0x2e, 0x31, 0x45, 0xa9, 0xf6, 0xe4, 0x1c, 0x4a, 0x7f, 0xc6, 0xda, 0xac, 0xe9, 0x76, 0xa9, 0xc8, 0xdb, 0x0a, 0xc8, 0xa6, 0x7b, 0x3b, 0x29, 0xf2, 0x56, 0x18, 0x14, 0x0b, 0x2c, 0x7a, 0x0b, 0x46, 0x6a, 0xd2, 0x06, 0x11, 0xaf, 0xf0, 0x73, 0x1d, 0xed, 0x61, 0xca, 0x74, 0xca, 0x75, 0x68, 0x0b, 0x5a, 0x79, 0x6c, 0x70, 0x33, 0x3d, 0xa2, 0x8a, 0xdd, 0x3c, 0xa2, 0x62, 0xbe, 0xf9, 0xfe, 0x41, 0x3f, 0x6e, 0xc1, 0x00, 0xd7, 0x3d, 0xf7, 0xa6, 0xfa, 0xd7, 0x2c, 0xc9, 0x71, 0xdf, 0x5d, 0xa7, 0x40, 0x21, 0x69, 0xa0, 0x35, 0x28, 0xb1, 0x1f, 0x4c, 0x77, 0x5e, 0xcc, 0x7f, 0xb0, 0xc4, 0x6b, 0xd5, 0x1b, 0x78, 0x5d, 0x16, 0xc3, 0x31, 0x07, 0xfb, 0x47, 0x8a, 0x74, 0x77, 0x8b, 0x49, 0x8d, 0x43, 0xdf, 0x7a, 0x70, 0x87, 0x7e, 0xe1, 0x41, 0x1d, 0xfa, 0x5b, 0x30, 0x5e, 0xd3, 0xec, 0xce, 0xf1, 0x48, 0x9e, 0xef, 0x38, 0x49, 0x34, 0x13, 0x35, 0xd7, 0xce, 0x2d, 0x98, 0x4c, 0x70, 0x92, 0x2b, 0xfa, 0x38, 0x8c, 0xf0, 0x71, 0x16, 0xb5, 0x70, 0xa7, 0xb2, 0xc7, 0xf3, 0xe7, 0x8b, 0x5e, 0x05, 0xd7, 0xe6, 0x6a, 0xc5, 0xb1, 0xc1, 0xcc, 0xfe, 0x2b, 0x0b, 0xd0, 0x52, 0x6b, 0x9b, 0x34, 0x49, 0xe0, 0x34, 0x62, 0xf3, 0xd1, 0x17, 0x2d, 0x98, 0x26, 0x29, 0xf0, 0x82, 0xdf, 0x6c, 0x8a, 0xcb, 0x62, 0x8e, 0x3e, 0x63, 0x29, 0xa7, 0x8c, 0x7a, 0xd1, 0x35, 0x9d, 0x47, 0x81, 0x73, 0xeb, 0x43, 0x6b, 0x30, 0xc5, 0x4f, 0x49, 0x85, 0xd0, 0xbc, 0xb8, 0x1e, 0x16, 0x8c, 0xa7, 0x36, 0xd2, 0x24, 0x38, 0xab, 0x9c, 0xfd, 0x6b, 0xa3, 0x90, 0xdb, 0x8a, 0xf7, 0xec, 0x66, 0xef, 0xd9, 0xcd, 0xde, 0xb3, 0x9b, 0xbd, 0x67, 0x37, 0x7b, 0xcf, 0x6e, 0xf6, 0x9e, 0xdd, 0xec, 0x5d, 0x6a, 0x37, 0xfb, 0xbf, 0x2d, 0x38, 0xae, 0x8e, 0x2f, 0xe3, 0xc2, 0xfe, 0x19, 0x98, 0xe2, 0xcb, 0xcd, 0x70, 0xc6, 0x16, 0xc7, 0xf5, 0xc5, 0xcc, 0x99, 0x9b, 0x78, 0x34, 0x60, 0x14, 0xe4, 0xaf, 0xaf, 0x32, 0x10, 0x38, 0xab, 0x1a, 0xfb, 0x97, 0x87, 0xa0, 0x7f, 0x69, 0x97, 0x78, 0xd1, 0x11, 0x5c, 0x6d, 0x6a, 0x30, 0xe6, 0x7a, 0xbb, 0x7e, 0x63, 0x97, 0xd4, 0x39, 0xfe, 0x20, 0x37, 0xf0, 0x13, 0x82, 0xf5, 0xd8, 0x8a, 0xc1, 0x02, 0x27, 0x58, 0x3e, 0x08, 0xeb, 0xc3, 0x25, 0x18, 0xe0, 0x87, 0x8f, 0x30, 0x3d, 0x64, 0xee, 0xd9, 0xac, 0x13, 0xc5, 0x91, 0x1a, 0x5b, 0x46, 0xf8, 0xe1, 0x26, 0x8a, 0xa3, 0x4f, 0xc3, 0xd8, 0xa6, 0x1b, 0x84, 0xd1, 0x86, 0xdb, 0xa4, 0x47, 0x43, 0xb3, 0x75, 0x1f, 0xd6, 0x06, 0xd5, 0x0f, 0xcb, 0x06, 0x27, 0x9c, 0xe0, 0x8c, 0xb6, 0x60, 0xb4, 0xe1, 0xe8, 0x55, 0x0d, 0x1e, 0xb8, 0x2a, 0x75, 0x3a, 0xac, 0xea, 0x8c, 0xb0, 0xc9, 0x97, 0x2e, 0xa7, 0x1a, 0x53, 0x98, 0x0f, 0x31, 0x75, 0x86, 0x5a, 0x4e, 0x5c, 0x53, 0xce, 0x71, 0x54, 0x40, 0x63, 0x8e, 0xec, 0x25, 0x53, 0x40, 0xd3, 0xdc, 0xd5, 0x3f, 0x05, 0x25, 0x42, 0xbb, 0x90, 0x32, 0x16, 0x07, 0xcc, 0x85, 0xde, 0xda, 0xba, 0xe6, 0xd6, 0x02, 0xdf, 0xb4, 0xf3, 0x2c, 0x49, 0x4e, 0x38, 0x66, 0x8a, 0x16, 0x60, 0x20, 0x24, 0x81, 0xab, 0x74, 0xc9, 0x1d, 0x86, 0x91, 0x91, 0xf1, 0xe7, 0x7d, 0xfc, 0x37, 0x16, 0x45, 0xe9, 0xf4, 0x72, 0x98, 0x2a, 0x96, 0x1d, 0x06, 0xda, 0xf4, 0x9a, 0x63, 0x50, 0x2c, 0xb0, 0xe8, 0x75, 0x18, 0x0c, 0x48, 0x83, 0x19, 0x12, 0x47, 0x7b, 0x9f, 0xe4, 0xdc, 0x2e, 0xc9, 0xcb, 0x61, 0xc9, 0x00, 0x5d, 0x01, 0x14, 0x10, 0x2a, 0xe0, 0xb9, 0xde, 0x96, 0x72, 0xef, 0x16, 0x1b, 0xad, 0x12, 0xa4, 0x71, 0x4c, 0x21, 0x5f, 0x76, 0xe2, 0x8c, 0x62, 0xe8, 0x12, 0x4c, 0x2a, 0xe8, 0x8a, 0x17, 0x46, 0x0e, 0xdd, 0xe0, 0xc6, 0x19, 0x2f, 0xa5, 0x5f, 0xc1, 0x49, 0x02, 0x9c, 0x2e, 0x63, 0xff, 0x9c, 0x05, 0xbc, 0x9f, 0x8f, 0x40, 0xab, 0xf0, 0x9a, 0xa9, 0x55, 0x38, 0x99, 0x3b, 0x72, 0x39, 0x1a, 0x85, 0x9f, 0xb3, 0x60, 0x58, 0x1b, 0xd9, 0x78, 0xce, 0x5a, 0x1d, 0xe6, 0x6c, 0x1b, 0x26, 0xe8, 0x4c, 0xbf, 0x7a, 0x33, 0x24, 0xc1, 0x2e, 0xa9, 0xb3, 0x89, 0x59, 0xb8, 0xbf, 0x89, 0xa9, 0x5c, 0x49, 0x57, 0x13, 0x0c, 0x71, 0xaa, 0x0a, 0xfb, 0x53, 0xb2, 0xa9, 0xca, 0xf3, 0xb6, 0xa6, 0xc6, 0x3c, 0xe1, 0x79, 0xab, 0x46, 0x15, 0xc7, 0x34, 0x74, 0xa9, 0x6d, 0xfb, 0x61, 0x94, 0xf4, 0xbc, 0xbd, 0xec, 0x87, 0x11, 0x66, 0x18, 0xfb, 0x79, 0x80, 0xa5, 0xdb, 0xa4, 0xc6, 0x67, 0xac, 0x7e, 0xe9, 0xb1, 0xf2, 0x2f, 0x3d, 0xf6, 0x1f, 0x58, 0x30, 0xb6, 0xbc, 0x60, 0x9c, 0x5c, 0xb3, 0x00, 0xfc, 0xa6, 0x76, 0xe3, 0xc6, 0xba, 0x74, 0xff, 0xe0, 0x16, 0x70, 0x05, 0xc5, 0x1a, 0x05, 0x3a, 0x09, 0xc5, 0x46, 0xdb, 0x13, 0x6a, 0xcf, 0x41, 0x7a, 0x3c, 0xae, 0xb6, 0x3d, 0x4c, 0x61, 0xda, 0xab, 0xae, 0x62, 0xcf, 0xaf, 0xba, 0xba, 0x46, 0x73, 0x41, 0x65, 0xe8, 0xbf, 0x75, 0xcb, 0xad, 0xf3, 0x37, 0xf3, 0xc2, 0x35, 0xe5, 0xc6, 0x8d, 0x95, 0xc5, 0x10, 0x73, 0xb8, 0xfd, 0xa5, 0x22, 0xcc, 0x2c, 0x37, 0xc8, 0xed, 0x77, 0x18, 0x37, 0xa0, 0xd7, 0x37, 0x69, 0x07, 0x53, 0x20, 0x1d, 0xf4, 0xdd, 0x61, 0xf7, 0xfe, 0xd8, 0x84, 0x41, 0xee, 0x78, 0x2a, 0xa3, 0x08, 0x64, 0x9a, 0xfb, 0xf2, 0x3b, 0x64, 0x96, 0x3b, 0xb0, 0x0a, 0x73, 0x9f, 0x3a, 0x30, 0x05, 0x14, 0x4b, 0xe6, 0x33, 0x2f, 0xc3, 0x88, 0x4e, 0x79, 0xa0, 0x17, 0xc0, 0xdf, 0x5b, 0x84, 0x09, 0xda, 0x82, 0x07, 0x3a, 0x10, 0xd7, 0xd2, 0x03, 0x71, 0xd8, 0xaf, 0x40, 0xbb, 0x8f, 0xc6, 0x5b, 0xc9, 0xd1, 0xb8, 0x98, 0x37, 0x1a, 0x47, 0x3d, 0x06, 0xdf, 0x67, 0xc1, 0xd4, 0x72, 0xc3, 0xaf, 0xed, 0x24, 0x5e, 0x6a, 0xbe, 0x08, 0xc3, 0x74, 0x3b, 0x0e, 0x8d, 0xa0, 0x25, 0x46, 0x18, 0x1b, 0x81, 0xc2, 0x3a, 0x9d, 0x56, 0xec, 0xda, 0xb5, 0x95, 0xc5, 0xac, 0xe8, 0x37, 0x02, 0x85, 0x75, 0x3a, 0xfb, 0xf7, 0x2c, 0x38, 0x7d, 0x69, 0x61, 0x29, 0x9e, 0x8a, 0xa9, 0x00, 0x3c, 0xe7, 0x60, 0xa0, 0x55, 0xd7, 0x9a, 0x12, 0xab, 0x85, 0x17, 0x59, 0x2b, 0x04, 0xf6, 0xdd, 0x12, 0x5c, 0xea, 0x1a, 0xc0, 0x25, 0x5c, 0x59, 0x10, 0xfb, 0xae, 0xb4, 0x02, 0x59, 0xb9, 0x56, 0xa0, 0xc7, 0x61, 0x90, 0x9e, 0x0b, 0x6e, 0x4d, 0xb6, 0x9b, 0x1b, 0xf4, 0x39, 0x08, 0x4b, 0x9c, 0xfd, 0xb3, 0x16, 0x4c, 0x5d, 0x72, 0x23, 0x7a, 0x68, 0x27, 0x23, 0xcc, 0xd0, 0x53, 0x3b, 0x74, 0x23, 0x3f, 0xd8, 0x4b, 0x46, 0x98, 0xc1, 0x0a, 0x83, 0x35, 0x2a, 0xfe, 0x41, 0xbb, 0x2e, 0x7b, 0x49, 0x51, 0x30, 0xed, 0x6e, 0x58, 0xc0, 0xb1, 0xa2, 0xa0, 0xfd, 0x55, 0x77, 0x03, 0xa6, 0xb2, 0xdc, 0x13, 0x1b, 0xb7, 0xea, 0xaf, 0x45, 0x89, 0xc0, 0x31, 0x8d, 0xfd, 0x17, 0x16, 0x94, 0x2f, 0xf1, 0xf7, 0xa0, 0x9b, 0x61, 0xce, 0xa6, 0xfb, 0x3c, 0x94, 0x88, 0x34, 0x10, 0xc8, 0xb7, 0xb1, 0x52, 0x10, 0x55, 0x96, 0x03, 0x1e, 0xe8, 0x46, 0xd1, 0xf5, 0xf0, 0x9c, 0xfc, 0x60, 0xef, 0x81, 0x97, 0x01, 0x11, 0xbd, 0x2e, 0x3d, 0xf2, 0x0f, 0x0b, 0x21, 0xb2, 0x94, 0xc2, 0xe2, 0x8c, 0x12, 0xf6, 0x8f, 0x59, 0x70, 0x5c, 0x7d, 0xf0, 0xbb, 0xee, 0x33, 0xed, 0xaf, 0x15, 0x60, 0xf4, 0xf2, 0xc6, 0x46, 0xe5, 0x12, 0x89, 0xb4, 0x59, 0xd9, 0xd9, 0xec, 0x8f, 0x35, 0xeb, 0x65, 0xa7, 0x3b, 0x62, 0x3b, 0x72, 0x1b, 0xb3, 0x3c, 0x80, 0xdc, 0xec, 0x8a, 0x17, 0x5d, 0x0d, 0xaa, 0x51, 0xe0, 0x7a, 0x5b, 0x99, 0x33, 0x5d, 0xca, 0x2c, 0xc5, 0x3c, 0x99, 0x05, 0x3d, 0x0f, 0x03, 0x2c, 0x82, 0x9d, 0x1c, 0x84, 0x87, 0xd5, 0x15, 0x8b, 0x41, 0xef, 0xed, 0x97, 0x4b, 0xd7, 0xf0, 0x0a, 0xff, 0x83, 0x05, 0x29, 0xba, 0x06, 0xc3, 0xdb, 0x51, 0xd4, 0xba, 0x4c, 0x9c, 0x3a, 0x09, 0xe4, 0x2e, 0x7b, 0x26, 0x6b, 0x97, 0xa5, 0x9d, 0xc0, 0xc9, 0xe2, 0x8d, 0x29, 0x86, 0x85, 0x58, 0xe7, 0x63, 0x57, 0x01, 0x62, 0xdc, 0x21, 0x19, 0x6e, 0xec, 0x0d, 0x28, 0xd1, 0xcf, 0x9d, 0x6b, 0xb8, 0x4e, 0x67, 0xd3, 0xf8, 0xd3, 0x50, 0x92, 0x86, 0xef, 0x50, 0x84, 0xbb, 0x60, 0x27, 0x92, 0xb4, 0x8b, 0x87, 0x38, 0xc6, 0xdb, 0x8f, 0x81, 0xf0, 0x2d, 0xed, 0xc4, 0xd2, 0xde, 0x84, 0x63, 0xcc, 0x49, 0xd6, 0x89, 0xb6, 0x8d, 0x39, 0xda, 0x7d, 0x32, 0x3c, 0x23, 0xee, 0x75, 0xfc, 0xcb, 0xa6, 0xb5, 0xc7, 0xc9, 0x23, 0x92, 0x63, 0x7c, 0xc7, 0xb3, 0xff, 0xbc, 0x0f, 0x1e, 0x5e, 0xa9, 0xe6, 0xc7, 0x69, 0x7a, 0x09, 0x46, 0xb8, 0xb8, 0x48, 0xa7, 0x86, 0xd3, 0x10, 0xf5, 0x2a, 0x0d, 0xe8, 0x86, 0x86, 0xc3, 0x06, 0x25, 0x3a, 0x0d, 0x45, 0xf7, 0x6d, 0x2f, 0xf9, 0x74, 0x6f, 0xe5, 0x8d, 0x75, 0x4c, 0xe1, 0x14, 0x4d, 0x25, 0x4f, 0xbe, 0xa5, 0x2b, 0xb4, 0x92, 0x3e, 0x5f, 0x83, 0x31, 0x37, 0xac, 0x85, 0xee, 0x8a, 0x47, 0xd7, 0xa9, 0xb6, 0xd2, 0x95, 0xce, 0x81, 0x36, 0x5a, 0x61, 0x71, 0x82, 0x5a, 0x3b, 0x5f, 0xfa, 0x7b, 0x96, 0x5e, 0xbb, 0x46, 0x89, 0xa0, 0xdb, 0x7f, 0x8b, 0x7d, 0x5d, 0xc8, 0x54, 0xf0, 0x62, 0xfb, 0xe7, 0x1f, 0x1c, 0x62, 0x89, 0xa3, 0x17, 0xba, 0xda, 0xb6, 0xd3, 0x9a, 0x6b, 0x47, 0xdb, 0x8b, 0x6e, 0x58, 0xf3, 0x77, 0x49, 0xb0, 0xc7, 0xee, 0xe2, 0x43, 0xf1, 0x85, 0x4e, 0x21, 0x16, 0x2e, 0xcf, 0x55, 0x28, 0x25, 0x4e, 0x97, 0x41, 0x73, 0x30, 0x2e, 0x81, 0x55, 0x12, 0xb2, 0x23, 0x60, 0x98, 0xb1, 0x51, 0x8f, 0xe9, 0x04, 0x58, 0x31, 0x49, 0xd2, 0x9b, 0x02, 0x2e, 0x1c, 0x86, 0x80, 0xfb, 0x41, 0x18, 0x75, 0x3d, 0x37, 0x72, 0x9d, 0xc8, 0xe7, 0xf6, 0x23, 0x7e, 0xed, 0x66, 0x0a, 0xe6, 0x15, 0x1d, 0x81, 0x4d, 0x3a, 0xfb, 0xdf, 0xf7, 0xc1, 0x24, 0x1b, 0xb6, 0xf7, 0x66, 0xd8, 0x77, 0xd2, 0x0c, 0xbb, 0x96, 0x9e, 0x61, 0x87, 0x21, 0xb9, 0xdf, 0xf7, 0x34, 0xfb, 0x34, 0x94, 0xd4, 0xfb, 0x41, 0xf9, 0x80, 0xd8, 0xca, 0x79, 0x40, 0xdc, 0xfd, 0xf4, 0x96, 0x2e, 0x69, 0xc5, 0x4c, 0x97, 0xb4, 0xaf, 0x58, 0x10, 0x1b, 0x16, 0xd0, 0x1b, 0x50, 0x6a, 0xf9, 0xcc, 0xc3, 0x35, 0x90, 0x6e, 0xe3, 0x8f, 0x75, 0xb4, 0x4c, 0xf0, 0x50, 0x75, 0x01, 0xef, 0x85, 0x8a, 0x2c, 0x8a, 0x63, 0x2e, 0xe8, 0x0a, 0x0c, 0xb6, 0x02, 0x52, 0x8d, 0x58, 0x1c, 0xa5, 0xde, 0x19, 0xf2, 0x59, 0xc3, 0x0b, 0x62, 0xc9, 0xc1, 0xfe, 0x85, 0x02, 0x4c, 0x24, 0x49, 0xd1, 0xab, 0xd0, 0x47, 0x6e, 0x93, 0x9a, 0x68, 0x6f, 0xe6, 0x51, 0x1c, 0xab, 0x26, 0x78, 0x07, 0xd0, 0xff, 0x98, 0x95, 0x42, 0x97, 0x61, 0x90, 0x9e, 0xc3, 0x97, 0x54, 0xcc, 0xc0, 0x47, 0xf2, 0xce, 0x72, 0x25, 0xd0, 0xf0, 0xc6, 0x09, 0x10, 0x96, 0xc5, 0x99, 0x1f, 0x58, 0xad, 0x55, 0xa5, 0x57, 0x9c, 0xa8, 0xd3, 0x4d, 0x7c, 0x63, 0xa1, 0xc2, 0x89, 0x04, 0x37, 0xee, 0x07, 0x26, 0x81, 0x38, 0x66, 0x82, 0x3e, 0x02, 0xfd, 0x61, 0x83, 0x90, 0x96, 0x30, 0xf4, 0x67, 0x2a, 0x17, 0xab, 0x94, 0x40, 0x70, 0x62, 0xca, 0x08, 0x06, 0xc0, 0xbc, 0xa0, 0xfd, 0x8b, 0x16, 0x00, 0x77, 0x9c, 0x73, 0xbc, 0x2d, 0x72, 0x04, 0xfa, 0xf8, 0x45, 0xe8, 0x0b, 0x5b, 0xa4, 0xd6, 0xc9, 0x7d, 0x3b, 0x6e, 0x4f, 0xb5, 0x45, 0x6a, 0xf1, 0x9c, 0xa5, 0xff, 0x30, 0x2b, 0x6d, 0x7f, 0x3f, 0xc0, 0x58, 0x4c, 0xb6, 0x12, 0x91, 0x26, 0x7a, 0xd6, 0x08, 0x5b, 0x72, 0x32, 0x11, 0xb6, 0xa4, 0xc4, 0xa8, 0x35, 0xd5, 0xef, 0xa7, 0xa1, 0xd8, 0x74, 0x6e, 0x0b, 0xdd, 0xde, 0xd3, 0x9d, 0x9b, 0x41, 0xf9, 0xcf, 0xae, 0x39, 0xb7, 0xf9, 0xf5, 0xf7, 0x69, 0xb9, 0xc6, 0xd6, 0x9c, 0xdb, 0x5d, 0x5d, 0x8c, 0x69, 0x25, 0xac, 0x2e, 0xd7, 0x13, 0x3e, 0x61, 0x3d, 0xd5, 0xe5, 0x7a, 0xc9, 0xba, 0x5c, 0xaf, 0x87, 0xba, 0x5c, 0x0f, 0xdd, 0x81, 0x41, 0xe1, 0xb2, 0x29, 0x22, 0xc0, 0x5d, 0xe8, 0xa1, 0x3e, 0xe1, 0xf1, 0xc9, 0xeb, 0xbc, 0x20, 0xaf, 0xf7, 0x02, 0xda, 0xb5, 0x5e, 0x59, 0x21, 0xfa, 0x7f, 0x2c, 0x18, 0x13, 0xbf, 0x31, 0x79, 0xbb, 0x4d, 0xc2, 0x48, 0x88, 0xbf, 0x1f, 0xe8, 0xbd, 0x0d, 0xa2, 0x20, 0x6f, 0xca, 0x07, 0xe4, 0x49, 0x65, 0x22, 0xbb, 0xb6, 0x28, 0xd1, 0x0a, 0xf4, 0x0b, 0x16, 0x1c, 0x6b, 0x3a, 0xb7, 0x79, 0x8d, 0x1c, 0x86, 0x9d, 0xc8, 0xf5, 0x85, 0xeb, 0xc3, 0xab, 0xbd, 0x0d, 0x7f, 0xaa, 0x38, 0x6f, 0xa4, 0xb4, 0x73, 0x1e, 0xcb, 0x22, 0xe9, 0xda, 0xd4, 0xcc, 0x76, 0xcd, 0x6c, 0xc2, 0x90, 0x9c, 0x6f, 0x0f, 0xd2, 0x3f, 0x9c, 0xd5, 0x23, 0xe6, 0xda, 0x03, 0xad, 0xe7, 0xd3, 0x30, 0xa2, 0xcf, 0xb1, 0x07, 0x5a, 0xd7, 0xdb, 0x30, 0x95, 0x31, 0x97, 0x1e, 0x68, 0x95, 0xb7, 0xe0, 0x64, 0xee, 0xfc, 0x78, 0xa0, 0xfe, 0xfd, 0x5f, 0xb3, 0xf4, 0x7d, 0xf0, 0x08, 0x8c, 0x22, 0x0b, 0xa6, 0x51, 0xe4, 0x4c, 0xe7, 0x95, 0x93, 0x63, 0x19, 0x79, 0x4b, 0x6f, 0x34, 0xdd, 0xd5, 0xd1, 0xeb, 0x30, 0xd0, 0xa0, 0x10, 0xe9, 0xf8, 0x6b, 0x77, 0x5f, 0x91, 0xb1, 0x38, 0xca, 0xe0, 0x21, 0x16, 0x1c, 0xec, 0x5f, 0xb1, 0xa0, 0xef, 0x08, 0x7a, 0x02, 0x9b, 0x3d, 0xf1, 0x6c, 0x2e, 0x6b, 0x11, 0x0c, 0x7f, 0x16, 0x3b, 0xb7, 0x96, 0x6e, 0x47, 0xc4, 0x0b, 0xd9, 0x99, 0x9e, 0xd9, 0x31, 0xfb, 0x16, 0x4c, 0xad, 0xfa, 0x4e, 0x7d, 0xde, 0x69, 0x38, 0x5e, 0x8d, 0x04, 0x2b, 0xde, 0xd6, 0x81, 0xbc, 0xd6, 0x0b, 0x5d, 0xbd, 0xd6, 0x5f, 0x82, 0x01, 0xb7, 0xa5, 0x05, 0xf7, 0x3e, 0x4b, 0x3b, 0x70, 0xa5, 0x22, 0xe2, 0x7a, 0x23, 0xa3, 0x72, 0x06, 0xc5, 0x82, 0x9e, 0x8e, 0x3c, 0x77, 0x17, 0xeb, 0xcb, 0x1f, 0x79, 0x2a, 0xc5, 0x27, 0x43, 0x40, 0x19, 0x8e, 0xcd, 0xdb, 0x60, 0x54, 0x21, 0x5e, 0x7d, 0x61, 0x18, 0x74, 0xf9, 0x97, 0x8a, 0xe1, 0x7f, 0x22, 0x5b, 0xba, 0x4e, 0x75, 0x8c, 0xf6, 0x9e, 0x89, 0x03, 0xb0, 0x64, 0x64, 0xbf, 0x04, 0x99, 0x21, 0x3b, 0xba, 0x6b, 0x4e, 0xec, 0x8f, 0xc1, 0x24, 0x2b, 0x79, 0x40, 0xad, 0x84, 0x9d, 0xd0, 0xf7, 0x66, 0xc4, 0x69, 0xb5, 0xff, 0x8d, 0x05, 0x68, 0xcd, 0xaf, 0xbb, 0x9b, 0x7b, 0x82, 0x39, 0xff, 0xfe, 0xb7, 0xa1, 0xcc, 0xaf, 0x7d, 0xc9, 0x58, 0xa6, 0x0b, 0x0d, 0x27, 0x0c, 0x35, 0x5d, 0xf3, 0x13, 0xa2, 0xde, 0xf2, 0x46, 0x67, 0x72, 0xdc, 0x8d, 0x1f, 0x7a, 0x23, 0x11, 0xa8, 0xed, 0x43, 0xa9, 0x40, 0x6d, 0x4f, 0x64, 0x7a, 0x7c, 0xa4, 0x5b, 0x2f, 0x03, 0xb8, 0xd9, 0x5f, 0xb0, 0x60, 0x7c, 0x3d, 0x11, 0x9b, 0xf3, 0x1c, 0x33, 0x7f, 0x67, 0xd8, 0x50, 0xaa, 0x0c, 0x8a, 0x05, 0xf6, 0xd0, 0x75, 0x8c, 0x7f, 0x63, 0x41, 0x1c, 0x22, 0xe8, 0x08, 0xa4, 0xda, 0x05, 0x43, 0xaa, 0xcd, 0xbc, 0x21, 0xa8, 0xe6, 0xe4, 0x09, 0xb5, 0xe8, 0x8a, 0x1a, 0x93, 0x0e, 0x97, 0x83, 0x98, 0x0d, 0x5f, 0x67, 0x63, 0xe6, 0xc0, 0xa9, 0xd1, 0xf8, 0xc3, 0x02, 0x20, 0x45, 0xdb, 0x73, 0x70, 0xbf, 0x74, 0x89, 0xc3, 0x09, 0xee, 0xb7, 0x0b, 0x88, 0x39, 0x70, 0x04, 0x8e, 0x17, 0x72, 0xb6, 0xae, 0xd0, 0xaa, 0x1e, 0xcc, 0x3b, 0x64, 0x46, 0xbe, 0xf6, 0x5b, 0x4d, 0x71, 0xc3, 0x19, 0x35, 0x68, 0x8e, 0x39, 0xfd, 0xbd, 0x3a, 0xe6, 0x0c, 0x74, 0x79, 0xb6, 0xfa, 0x55, 0x0b, 0x46, 0x55, 0x37, 0xbd, 0x4b, 0x1e, 0x37, 0xa8, 0xf6, 0xe4, 0x9c, 0x2b, 0x15, 0xad, 0xc9, 0xec, 0xbc, 0xfd, 0x2e, 0xf6, 0xfc, 0xd8, 0x69, 0xb8, 0x77, 0x88, 0x8a, 0x9a, 0x5b, 0x16, 0xcf, 0x89, 0x05, 0xf4, 0xde, 0x7e, 0x79, 0x54, 0xfd, 0xe3, 0x51, 0x2f, 0xe3, 0x22, 0xf6, 0x4f, 0xd1, 0xc5, 0x6e, 0x4e, 0x45, 0xf4, 0x22, 0xf4, 0xb7, 0xb6, 0x9d, 0x90, 0x24, 0x1e, 0x81, 0xf5, 0x57, 0x28, 0xf0, 0xde, 0x7e, 0x79, 0x4c, 0x15, 0x60, 0x10, 0xcc, 0xa9, 0x7b, 0x0f, 0x99, 0x98, 0x9e, 0x9c, 0x5d, 0x43, 0x26, 0xfe, 0x95, 0x05, 0x7d, 0xeb, 0xf4, 0xf4, 0x7a, 0xf0, 0x5b, 0xc0, 0x6b, 0xc6, 0x16, 0x70, 0x2a, 0x2f, 0x61, 0x4b, 0xee, 0xea, 0x5f, 0x4e, 0xac, 0xfe, 0x33, 0xb9, 0x1c, 0x3a, 0x2f, 0xfc, 0x26, 0x0c, 0xb3, 0x34, 0x30, 0xe2, 0xc1, 0xdb, 0xf3, 0xc6, 0x82, 0x2f, 0x27, 0x16, 0xfc, 0xb8, 0x46, 0xaa, 0xad, 0xf4, 0x27, 0x61, 0x50, 0xbc, 0xa0, 0x4a, 0xbe, 0xe2, 0x16, 0xb4, 0x58, 0xe2, 0xed, 0x1f, 0x2f, 0x82, 0x91, 0x76, 0x06, 0xfd, 0x9a, 0x05, 0xb3, 0x01, 0xf7, 0xac, 0xae, 0x2f, 0xb6, 0x03, 0xd7, 0xdb, 0xaa, 0xd6, 0xb6, 0x49, 0xbd, 0xdd, 0x70, 0xbd, 0xad, 0x95, 0x2d, 0xcf, 0x57, 0xe0, 0xa5, 0xdb, 0xa4, 0xd6, 0x66, 0x56, 0xcf, 0x2e, 0x39, 0x6e, 0xd4, 0x0b, 0x85, 0xe7, 0xee, 0xee, 0x97, 0x67, 0xf1, 0x81, 0x78, 0xe3, 0x03, 0xb6, 0x05, 0xfd, 0x9e, 0x05, 0x17, 0x78, 0x36, 0x96, 0xde, 0xdb, 0xdf, 0x41, 0x89, 0x50, 0x91, 0xac, 0x62, 0x26, 0x1b, 0x24, 0x68, 0xce, 0x7f, 0x50, 0x74, 0xe8, 0x85, 0xca, 0xc1, 0xea, 0xc2, 0x07, 0x6d, 0x9c, 0xfd, 0x8f, 0x8a, 0x30, 0x2a, 0x42, 0xeb, 0x89, 0x33, 0xe0, 0x45, 0x63, 0x4a, 0x3c, 0x92, 0x98, 0x12, 0x93, 0x06, 0xf1, 0xe1, 0x6c, 0xff, 0x21, 0x4c, 0xd2, 0xcd, 0xf9, 0x32, 0x71, 0x82, 0xe8, 0x26, 0x71, 0xb8, 0xbf, 0x5d, 0xf1, 0xc0, 0xbb, 0xbf, 0x52, 0xfc, 0xae, 0x26, 0x99, 0xe1, 0x34, 0xff, 0xef, 0xa4, 0x33, 0xc7, 0x83, 0x89, 0x54, 0x74, 0xc4, 0x37, 0xa1, 0xa4, 0x9e, 0xff, 0x88, 0x4d, 0xa7, 0x73, 0x90, 0xd1, 0x24, 0x07, 0xae, 0x57, 0x8c, 0x9f, 0x9e, 0xc5, 0xec, 0xec, 0xbf, 0x57, 0x30, 0x2a, 0xe4, 0x83, 0xb8, 0x0e, 0x43, 0x4e, 0xc8, 0x02, 0x1f, 0xd7, 0x3b, 0xa9, 0x7e, 0x53, 0xd5, 0xb0, 0x27, 0x58, 0x73, 0xa2, 0x24, 0x56, 0x3c, 0xd0, 0x65, 0xee, 0xd5, 0xb8, 0x4b, 0x3a, 0xe9, 0x7d, 0x53, 0xdc, 0x40, 0xfa, 0x3d, 0xee, 0x12, 0x2c, 0xca, 0xa3, 0x4f, 0x70, 0xb7, 0xd3, 0x2b, 0x9e, 0x7f, 0xcb, 0xbb, 0xe4, 0xfb, 0x32, 0x8c, 0x4a, 0x6f, 0x0c, 0x27, 0xa5, 0xb3, 0xa9, 0x2a, 0x8e, 0x4d, 0x6e, 0xbd, 0x85, 0x1b, 0xfe, 0x0c, 0xb0, 0xec, 0x13, 0xe6, 0x6b, 0xfb, 0x10, 0x11, 0x18, 0x17, 0x71, 0x1b, 0x25, 0x4c, 0xf4, 0x5d, 0xe6, 0x0d, 0xd7, 0x2c, 0x1d, 0x5b, 0x28, 0xae, 0x98, 0x2c, 0x70, 0x92, 0xa7, 0xfd, 0x33, 0x16, 0xb0, 0x97, 0xc7, 0x47, 0x20, 0x8f, 0x7c, 0xd8, 0x94, 0x47, 0xa6, 0xf3, 0x3a, 0x39, 0x47, 0x14, 0x79, 0x81, 0xcf, 0xac, 0x4a, 0xe0, 0xdf, 0xde, 0x13, 0xbe, 0x42, 0xdd, 0x2f, 0x57, 0xf6, 0x7f, 0xb7, 0xf8, 0x26, 0x16, 0xc7, 0x69, 0xf8, 0x2c, 0x0c, 0xd5, 0x9c, 0x96, 0x53, 0xe3, 0x39, 0xd2, 0x72, 0x15, 0x9d, 0x46, 0xa1, 0xd9, 0x05, 0x51, 0x82, 0x2b, 0xee, 0x64, 0xfc, 0xcf, 0x21, 0x09, 0xee, 0xaa, 0xac, 0x53, 0x55, 0xce, 0xec, 0xc0, 0xa8, 0xc1, 0xec, 0x81, 0x6a, 0x79, 0x3e, 0xcb, 0x8f, 0x58, 0x15, 0xaf, 0xb6, 0x09, 0x93, 0x9e, 0xf6, 0x9f, 0x1e, 0x28, 0xf2, 0xe6, 0xfc, 0x58, 0xb7, 0x43, 0x94, 0x9d, 0x3e, 0xda, 0xa3, 0xe6, 0x04, 0x1b, 0x9c, 0xe6, 0x6c, 0xff, 0x84, 0x05, 0x0f, 0xe9, 0x84, 0xda, 0xbb, 0xa9, 0x6e, 0xd6, 0xa7, 0x45, 0x18, 0xf2, 0x5b, 0x24, 0x70, 0x22, 0x3f, 0x10, 0xa7, 0xc6, 0x79, 0xd9, 0xe9, 0x57, 0x05, 0xfc, 0x9e, 0xc8, 0xf8, 0x21, 0xb9, 0x4b, 0x38, 0x56, 0x25, 0xe9, 0xd5, 0x9a, 0x75, 0x46, 0x28, 0x5e, 0xc8, 0xb1, 0x3d, 0x80, 0x39, 0x32, 0x84, 0x58, 0x60, 0xec, 0x3f, 0xb7, 0xf8, 0xc4, 0xd2, 0x9b, 0x8e, 0xde, 0x86, 0x89, 0xa6, 0x13, 0xd5, 0xb6, 0x97, 0x6e, 0xb7, 0x02, 0x6e, 0xcb, 0x93, 0xfd, 0xf4, 0x74, 0xb7, 0x7e, 0xd2, 0x3e, 0x32, 0xf6, 0xa4, 0x5d, 0x4b, 0x30, 0xc3, 0x29, 0xf6, 0xe8, 0x26, 0x0c, 0x33, 0x18, 0x7b, 0xfc, 0x19, 0x76, 0x12, 0x0d, 0xf2, 0x6a, 0x53, 0xbe, 0x20, 0x6b, 0x31, 0x1f, 0xac, 0x33, 0xb5, 0xbf, 0x52, 0xe4, 0xab, 0x9d, 0x89, 0xf2, 0x4f, 0xc2, 0x60, 0xcb, 0xaf, 0x2f, 0xac, 0x2c, 0x62, 0x31, 0x0a, 0xea, 0x18, 0xa9, 0x70, 0x30, 0x96, 0x78, 0x74, 0x1e, 0x86, 0xc4, 0x4f, 0x69, 0x7b, 0x65, 0x7b, 0xb3, 0xa0, 0x0b, 0xb1, 0xc2, 0xa2, 0xe7, 0x00, 0x5a, 0x81, 0xbf, 0xeb, 0xd6, 0x59, 0x30, 0x98, 0xa2, 0xe9, 0xc6, 0x55, 0x51, 0x18, 0xac, 0x51, 0xa1, 0x57, 0x60, 0xb4, 0xed, 0x85, 0x5c, 0x1c, 0xd1, 0x42, 0x6e, 0x2b, 0x07, 0xa3, 0x6b, 0x3a, 0x12, 0x9b, 0xb4, 0x68, 0x0e, 0x06, 0x22, 0x87, 0xb9, 0x25, 0xf5, 0xe7, 0x7b, 0x5b, 0x6f, 0x50, 0x0a, 0x3d, 0x1d, 0x17, 0x2d, 0x80, 0x45, 0x41, 0xf4, 0xa6, 0x7c, 0x87, 0xcd, 0x37, 0x76, 0xf1, 0xcc, 0xa1, 0xb7, 0x43, 0x40, 0x7b, 0x85, 0x2d, 0x9e, 0x4f, 0x18, 0xbc, 0xd0, 0xcb, 0x00, 0xe4, 0x76, 0x44, 0x02, 0xcf, 0x69, 0x28, 0x67, 0x42, 0x25, 0x17, 0x2c, 0xfa, 0xeb, 0x7e, 0x74, 0x2d, 0x24, 0x4b, 0x8a, 0x02, 0x6b, 0xd4, 0xf6, 0xef, 0x95, 0x00, 0x62, 0xb9, 0x1d, 0xdd, 0x49, 0x6d, 0x5c, 0xcf, 0x74, 0x96, 0xf4, 0x0f, 0x6f, 0xd7, 0x42, 0x9f, 0xb7, 0x60, 0x58, 0xc4, 0xbc, 0x61, 0x23, 0x54, 0xe8, 0xbc, 0x71, 0x9a, 0xa1, 0x77, 0x68, 0x09, 0xde, 0x84, 0xe7, 0xe5, 0x0c, 0xd5, 0x30, 0x5d, 0x5b, 0xa1, 0x57, 0x8c, 0xde, 0x2f, 0xaf, 0x8a, 0x45, 0xa3, 0x2b, 0xd5, 0x55, 0xb1, 0xc4, 0xce, 0x08, 0xfd, 0x96, 0x78, 0xcd, 0xb8, 0x25, 0xf6, 0xe5, 0x3f, 0x34, 0x35, 0xc4, 0xd7, 0x6e, 0x17, 0x44, 0x54, 0xd1, 0x83, 0x4e, 0xf4, 0xe7, 0xbf, 0x8e, 0xd4, 0xee, 0x49, 0x5d, 0x02, 0x4e, 0x7c, 0x1a, 0xc6, 0xeb, 0xa6, 0x10, 0x20, 0x66, 0xe2, 0x13, 0x79, 0x7c, 0x13, 0x32, 0x43, 0x7c, 0xec, 0x27, 0x10, 0x38, 0xc9, 0x18, 0x55, 0x78, 0x0c, 0x92, 0x15, 0x6f, 0xd3, 0x17, 0x4f, 0x6d, 0xec, 0xdc, 0xb1, 0xdc, 0x0b, 0x23, 0xd2, 0xa4, 0x94, 0xf1, 0xe9, 0xbe, 0x2e, 0xca, 0x62, 0xc5, 0x05, 0xbd, 0x0e, 0x03, 0xec, 0x79, 0x5c, 0x38, 0x3d, 0x94, 0xaf, 0x88, 0x37, 0x83, 0x31, 0xc6, 0x0b, 0x92, 0xfd, 0x0d, 0xb1, 0xe0, 0x80, 0x2e, 0xcb, 0xc7, 0xa7, 0xe1, 0x8a, 0x77, 0x2d, 0x24, 0xec, 0xf1, 0x69, 0x69, 0xfe, 0xb1, 0xf8, 0x5d, 0x29, 0x87, 0x67, 0x26, 0xed, 0x34, 0x4a, 0x52, 0x29, 0x4a, 0xfc, 0x97, 0xb9, 0x40, 0x45, 0xe8, 0xa8, 0xcc, 0xe6, 0x99, 0xf9, 0x42, 0xe3, 0xee, 0xbc, 0x6e, 0xb2, 0xc0, 0x49, 0x9e, 0x54, 0x22, 0xe5, 0xab, 0x5e, 0x3c, 0xd6, 0xe9, 0xb6, 0x77, 0xf0, 0x8b, 0x38, 0x3b, 0x8d, 0x38, 0x04, 0x8b, 0xf2, 0x47, 0x2a, 0x1e, 0xcc, 0x78, 0x30, 0x91, 0x5c, 0xa2, 0x0f, 0x54, 0x1c, 0xf9, 0xd3, 0x3e, 0x18, 0x33, 0xa7, 0x14, 0xba, 0x00, 0x25, 0xc1, 0x44, 0xe5, 0xd3, 0x51, 0xab, 0x64, 0x4d, 0x22, 0x70, 0x4c, 0xc3, 0xd2, 0x28, 0xb1, 0xe2, 0x9a, 0x77, 0x76, 0x9c, 0x46, 0x49, 0x61, 0xb0, 0x46, 0x45, 0x2f, 0x56, 0x37, 0x7d, 0x3f, 0x52, 0x07, 0x92, 0x9a, 0x77, 0xf3, 0x0c, 0x8a, 0x05, 0x96, 0x1e, 0x44, 0x3b, 0x24, 0xf0, 0x48, 0xc3, 0x0c, 0xcf, 0xae, 0x0e, 0xa2, 0x2b, 0x3a, 0x12, 0x9b, 0xb4, 0xf4, 0x38, 0xf5, 0x43, 0x36, 0x91, 0xc5, 0xf5, 0x2d, 0xf6, 0x76, 0xaf, 0xf2, 0x77, 0xfb, 0x12, 0x8f, 0x3e, 0x06, 0x0f, 0xa9, 0x50, 0x68, 0x98, 0x1b, 0x79, 0x64, 0x8d, 0x03, 0x86, 0xb6, 0xe5, 0xa1, 0x85, 0x6c, 0x32, 0x9c, 0x57, 0x1e, 0xbd, 0x06, 0x63, 0x42, 0xc4, 0x97, 0x1c, 0x07, 0x4d, 0xd7, 0xad, 0x2b, 0x06, 0x16, 0x27, 0xa8, 0x65, 0x80, 0x79, 0x26, 0x65, 0x4b, 0x0e, 0x43, 0xe9, 0x00, 0xf3, 0x3a, 0x1e, 0xa7, 0x4a, 0xa0, 0x39, 0x18, 0xe7, 0x32, 0x98, 0xeb, 0x6d, 0xf1, 0x31, 0x11, 0x6f, 0xe9, 0xd4, 0x92, 0xba, 0x6a, 0xa2, 0x71, 0x92, 0x1e, 0xbd, 0x04, 0x23, 0x4e, 0x50, 0xdb, 0x76, 0x23, 0x52, 0x8b, 0xda, 0x01, 0x7f, 0x64, 0xa7, 0xf9, 0xbe, 0xcd, 0x69, 0x38, 0x6c, 0x50, 0xda, 0x77, 0x60, 0x2a, 0x23, 0xa0, 0x07, 0x9d, 0x38, 0x4e, 0xcb, 0x95, 0xdf, 0x94, 0x70, 0x30, 0x9f, 0xab, 0xac, 0xc8, 0xaf, 0xd1, 0xa8, 0xe8, 0xec, 0x64, 0x81, 0x3f, 0xb4, 0xd4, 0xbf, 0x6a, 0x76, 0x2e, 0x4b, 0x04, 0x8e, 0x69, 0xec, 0xff, 0x54, 0x80, 0xf1, 0x0c, 0xc3, 0x11, 0x4b, 0x3f, 0x9b, 0xb8, 0xa4, 0xc4, 0xd9, 0x66, 0xcd, 0x7c, 0x05, 0x85, 0x03, 0xe4, 0x2b, 0x28, 0x76, 0xcb, 0x57, 0xd0, 0xf7, 0x4e, 0xf2, 0x15, 0x98, 0x3d, 0xd6, 0xdf, 0x53, 0x8f, 0x65, 0xe4, 0x38, 0x18, 0x38, 0x60, 0x8e, 0x03, 0xa3, 0xd3, 0x07, 0x7b, 0xe8, 0xf4, 0x1f, 0x29, 0xc0, 0x44, 0xd2, 0xe6, 0x74, 0x04, 0x7a, 0xdb, 0xd7, 0x0d, 0xbd, 0xed, 0xf9, 0x5e, 0xde, 0x3e, 0xe7, 0xea, 0x70, 0x71, 0x42, 0x87, 0xfb, 0x54, 0x4f, 0xdc, 0x3a, 0xeb, 0x73, 0x7f, 0xb2, 0x00, 0xc7, 0x33, 0x4d, 0x71, 0x47, 0xd0, 0x37, 0x57, 0x8d, 0xbe, 0x79, 0xb6, 0xe7, 0x77, 0xe1, 0xb9, 0x1d, 0x74, 0x23, 0xd1, 0x41, 0x17, 0x7a, 0x67, 0xd9, 0xb9, 0x97, 0xbe, 0x51, 0x84, 0x33, 0x99, 0xe5, 0x62, 0xb5, 0xe7, 0xb2, 0xa1, 0xf6, 0x7c, 0x2e, 0xa1, 0xf6, 0xb4, 0x3b, 0x97, 0x3e, 0x1c, 0x3d, 0xa8, 0x78, 0x1f, 0xcd, 0xa2, 0x3c, 0xdc, 0xa7, 0x0e, 0xd4, 0x78, 0x1f, 0xad, 0x18, 0x61, 0x93, 0xef, 0x77, 0x92, 0xee, 0xf3, 0x77, 0x2c, 0x38, 0x99, 0x39, 0x36, 0x47, 0xa0, 0xeb, 0x5a, 0x37, 0x75, 0x5d, 0x4f, 0xf6, 0x3c, 0x5b, 0x73, 0x94, 0x5f, 0x5f, 0x18, 0xc8, 0xf9, 0x16, 0x76, 0x93, 0xbf, 0x0a, 0xc3, 0x4e, 0xad, 0x46, 0xc2, 0x70, 0xcd, 0xaf, 0xab, 0xd0, 0xe6, 0xcf, 0xb2, 0x7b, 0x56, 0x0c, 0xbe, 0xb7, 0x5f, 0x9e, 0x49, 0xb2, 0x88, 0xd1, 0x58, 0xe7, 0x80, 0x3e, 0x01, 0x43, 0xa1, 0xcc, 0x4a, 0xd7, 0x77, 0xff, 0x59, 0xe9, 0x98, 0x92, 0x40, 0x69, 0x2a, 0x14, 0x4b, 0xf4, 0xbf, 0xe9, 0xf1, 0x76, 0xd2, 0x52, 0x65, 0x22, 0xfa, 0xcb, 0x7d, 0x44, 0xdd, 0x79, 0x0e, 0x60, 0x57, 0x5d, 0x09, 0x92, 0x5a, 0x08, 0xed, 0xb2, 0xa0, 0x51, 0xa1, 0x8f, 0xc0, 0x44, 0xc8, 0x43, 0x4d, 0xc6, 0xce, 0x13, 0x7c, 0x2e, 0xb2, 0x68, 0x5d, 0xd5, 0x04, 0x0e, 0xa7, 0xa8, 0xd1, 0xb2, 0xac, 0x95, 0xb9, 0xc9, 0xf0, 0xe9, 0x79, 0x2e, 0xae, 0x51, 0xb8, 0xca, 0x1c, 0x4b, 0x0e, 0x02, 0xeb, 0x7e, 0xad, 0x24, 0xfa, 0x04, 0x00, 0x9d, 0x44, 0x42, 0x1b, 0x31, 0x98, 0xbf, 0x85, 0xd2, 0xbd, 0xa5, 0x9e, 0xe9, 0x3b, 0xce, 0x1e, 0x36, 0x2f, 0x2a, 0x26, 0x58, 0x63, 0x88, 0x1c, 0x18, 0x8d, 0xff, 0xc5, 0x19, 0xa2, 0xcf, 0xe7, 0xd6, 0x90, 0x64, 0xce, 0x14, 0xdf, 0x8b, 0x3a, 0x0b, 0x6c, 0x72, 0x44, 0x1f, 0x87, 0x93, 0xbb, 0xb9, 0x1e, 0x29, 0xa5, 0x38, 0xe9, 0x63, 0xbe, 0x1f, 0x4a, 0x7e, 0x79, 0xfb, 0x77, 0x01, 0x1e, 0xee, 0xb0, 0xd3, 0xa3, 0x39, 0xd3, 0x9a, 0xfc, 0x74, 0x52, 0x45, 0x30, 0x93, 0x59, 0xd8, 0xd0, 0x19, 0x24, 0x16, 0x54, 0xe1, 0x1d, 0x2f, 0xa8, 0x1f, 0xb2, 0x34, 0xe5, 0x0d, 0x77, 0xe7, 0xfd, 0xf0, 0x01, 0x4f, 0xb0, 0x43, 0xd4, 0xe6, 0x6c, 0x66, 0xa8, 0x44, 0x9e, 0xeb, 0xb9, 0x39, 0xbd, 0xeb, 0x48, 0xbe, 0x96, 0x1d, 0xbc, 0x99, 0x6b, 0x4b, 0x2e, 0x1d, 0xf4, 0xfb, 0x8f, 0x2a, 0x90, 0xf3, 0x1f, 0x5a, 0x70, 0x32, 0x05, 0xe6, 0x6d, 0x20, 0xa1, 0x88, 0x2f, 0xb6, 0xfe, 0x8e, 0x1b, 0x2f, 0x19, 0xf2, 0x6f, 0xb8, 0x2c, 0xbe, 0xe1, 0x64, 0x2e, 0x5d, 0xb2, 0xe9, 0x5f, 0xfc, 0x93, 0xf2, 0x14, 0xab, 0xc0, 0x24, 0xc4, 0xf9, 0x4d, 0x47, 0x2d, 0x38, 0x5b, 0x6b, 0x07, 0x41, 0x3c, 0x59, 0x33, 0x16, 0x27, 0xbf, 0xeb, 0x3d, 0x76, 0x77, 0xbf, 0x7c, 0x76, 0xa1, 0x0b, 0x2d, 0xee, 0xca, 0x0d, 0x79, 0x80, 0x9a, 0x29, 0xbf, 0x2f, 0x91, 0x18, 0x3e, 0xd3, 0x53, 0x23, 0xed, 0x25, 0xc6, 0x1f, 0xb0, 0x66, 0x78, 0x8f, 0x65, 0x70, 0x3e, 0x5a, 0xed, 0xc9, 0xb7, 0x26, 0x32, 0xf7, 0xcc, 0x2a, 0x9c, 0xe9, 0x3c, 0x99, 0x0e, 0xf4, 0x78, 0xfe, 0x0f, 0x2c, 0x38, 0xdd, 0x31, 0x42, 0xd3, 0xb7, 0xe1, 0x65, 0xc1, 0xfe, 0x9c, 0x05, 0x8f, 0x64, 0x96, 0x30, 0x5c, 0x0c, 0x2f, 0x40, 0xa9, 0x96, 0x48, 0x6b, 0x1c, 0xc7, 0x2a, 0x51, 0x29, 0x8d, 0x63, 0x1a, 0xc3, 0x93, 0xb0, 0xd0, 0xd5, 0x93, 0xf0, 0x37, 0x2d, 0x48, 0x1d, 0xf5, 0x47, 0x20, 0x79, 0xae, 0x98, 0x92, 0xe7, 0x63, 0xbd, 0xf4, 0x66, 0x8e, 0xd0, 0xf9, 0x97, 0xe3, 0x70, 0x22, 0xe7, 0xed, 0xeb, 0x2e, 0x4c, 0x6e, 0xd5, 0x88, 0x19, 0xec, 0xa0, 0x53, 0x10, 0xb0, 0x8e, 0x91, 0x11, 0x78, 0x36, 0xe9, 0x14, 0x09, 0x4e, 0x57, 0x81, 0x3e, 0x67, 0xc1, 0x31, 0xe7, 0x56, 0xb8, 0x44, 0x6f, 0x10, 0x6e, 0x6d, 0xbe, 0xe1, 0xd7, 0x76, 0xa8, 0x60, 0x26, 0x97, 0xd5, 0x0b, 0x99, 0x5a, 0xdd, 0x1b, 0xd5, 0x14, 0xbd, 0x51, 0xfd, 0xf4, 0xdd, 0xfd, 0xf2, 0xb1, 0x2c, 0x2a, 0x9c, 0x59, 0x17, 0xc2, 0x22, 0x7b, 0x8f, 0x13, 0x6d, 0x77, 0x0a, 0xc7, 0x91, 0xf5, 0x48, 0x99, 0x8b, 0xc4, 0x12, 0x83, 0x15, 0x1f, 0xf4, 0x29, 0x28, 0x6d, 0xc9, 0x97, 0xf7, 0x19, 0x22, 0x77, 0xdc, 0x91, 0x9d, 0xe3, 0x11, 0x70, 0xd7, 0x0c, 0x45, 0x84, 0x63, 0xa6, 0xe8, 0x35, 0x28, 0x7a, 0x9b, 0x61, 0xa7, 0xf4, 0xfb, 0x09, 0x1f, 0x5c, 0x1e, 0xf4, 0x66, 0x7d, 0xb9, 0x8a, 0x69, 0x41, 0x74, 0x19, 0x8a, 0xc1, 0xcd, 0xba, 0x30, 0x49, 0x64, 0x2e, 0x52, 0x3c, 0xbf, 0x98, 0xd3, 0x2a, 0xc6, 0x09, 0xcf, 0x2f, 0x62, 0xca, 0x02, 0x55, 0xa0, 0x9f, 0x3d, 0x18, 0x15, 0xa2, 0x6d, 0xe6, 0x55, 0xbe, 0xc3, 0xc3, 0x6b, 0xfe, 0x18, 0x8d, 0x11, 0x60, 0xce, 0x08, 0x6d, 0xc0, 0x40, 0x8d, 0xa5, 0x6a, 0x17, 0xb2, 0xec, 0xfb, 0x33, 0x8d, 0x0f, 0x1d, 0x72, 0xd8, 0x0b, 0x5d, 0x3c, 0xa3, 0xc0, 0x82, 0x17, 0xe3, 0x4a, 0x5a, 0xdb, 0x9b, 0xf2, 0xc4, 0xca, 0xe6, 0x4a, 0x5a, 0xdb, 0xcb, 0xd5, 0x8e, 0x5c, 0x19, 0x05, 0x16, 0xbc, 0xd0, 0xcb, 0x50, 0xd8, 0xac, 0x89, 0xc7, 0xa0, 0x99, 0x56, 0x08, 0x33, 0x6e, 0xd1, 0xfc, 0xc0, 0xdd, 0xfd, 0x72, 0x61, 0x79, 0x01, 0x17, 0x36, 0x6b, 0x68, 0x1d, 0x06, 0x37, 0x79, 0xa4, 0x13, 0x61, 0x68, 0x78, 0x22, 0x3b, 0x08, 0x4b, 0x2a, 0x18, 0x0a, 0x7f, 0x58, 0x28, 0x10, 0x58, 0x32, 0x61, 0xc9, 0x64, 0x54, 0xc4, 0x16, 0x11, 0x30, 0x72, 0xf6, 0x60, 0x51, 0x76, 0xf8, 0x55, 0x23, 0x8e, 0xfb, 0x82, 0x35, 0x8e, 0x74, 0x56, 0x3b, 0x77, 0xda, 0x01, 0xcb, 0x26, 0x20, 0x22, 0x8b, 0x65, 0xce, 0xea, 0x39, 0x49, 0xd4, 0x69, 0x56, 0x2b, 0x22, 0x1c, 0x33, 0x45, 0x3b, 0x30, 0xba, 0x1b, 0xb6, 0xb6, 0x89, 0x5c, 0xd2, 0x2c, 0xd0, 0x58, 0x8e, 0x34, 0x7b, 0x5d, 0x10, 0xba, 0x41, 0xd4, 0x76, 0x1a, 0xa9, 0x5d, 0x88, 0x5d, 0x6b, 0xae, 0xeb, 0xcc, 0xb0, 0xc9, 0x9b, 0x76, 0xff, 0xdb, 0x6d, 0xff, 0xe6, 0x5e, 0x44, 0x44, 0x9c, 0xc7, 0xcc, 0xee, 0x7f, 0x83, 0x93, 0xa4, 0xbb, 0x5f, 0x20, 0xb0, 0x64, 0x82, 0xae, 0x8b, 0xee, 0x61, 0xbb, 0xe7, 0x44, 0x7e, 0x10, 0xe9, 0x39, 0x49, 0x94, 0xd3, 0x29, 0x6c, 0xb7, 0x8c, 0x59, 0xb1, 0x5d, 0xb2, 0xb5, 0xed, 0x47, 0xbe, 0x97, 0xd8, 0xa1, 0x27, 0xf3, 0x77, 0xc9, 0x4a, 0x06, 0x7d, 0x7a, 0x97, 0xcc, 0xa2, 0xc2, 0x99, 0x75, 0xa1, 0x3a, 0x8c, 0xb5, 0xfc, 0x20, 0xba, 0xe5, 0x07, 0x72, 0x7e, 0xa1, 0x0e, 0x8a, 0x52, 0x83, 0x52, 0xd4, 0xc8, 0x42, 0xa8, 0x9a, 0x18, 0x9c, 0xe0, 0x89, 0x3e, 0x0a, 0x83, 0x61, 0xcd, 0x69, 0x90, 0x95, 0xab, 0xd3, 0x53, 0xf9, 0xc7, 0x4f, 0x95, 0x93, 0xe4, 0xcc, 0x2e, 0x1e, 0xa8, 0x86, 0x93, 0x60, 0xc9, 0x0e, 0x2d, 0x43, 0x3f, 0x4b, 0xd2, 0xca, 0x82, 0x92, 0xe6, 0xc4, 0xc2, 0x4e, 0x3d, 0xf7, 0xe0, 0x7b, 0x13, 0x03, 0x63, 0x5e, 0x9c, 0xae, 0x01, 0xa1, 0x29, 0xf0, 0xc3, 0xe9, 0xe3, 0xf9, 0x6b, 0x40, 0x28, 0x18, 0xae, 0x56, 0x3b, 0xad, 0x01, 0x45, 0x84, 0x63, 0xa6, 0x74, 0x67, 0xa6, 0xbb, 0xe9, 0x89, 0x0e, 0xae, 0x7c, 0xb9, 0x7b, 0x29, 0xdb, 0x99, 0xe9, 0x4e, 0x4a, 0x59, 0xd8, 0xbf, 0x3e, 0x94, 0x96, 0x59, 0x98, 0x86, 0xe9, 0xff, 0xb0, 0x52, 0xce, 0x07, 0x1f, 0xe8, 0x55, 0xe1, 0x7d, 0x88, 0x17, 0xd7, 0xcf, 0x59, 0x70, 0xa2, 0x95, 0xf9, 0x21, 0x42, 0x00, 0xe8, 0x4d, 0x6f, 0xce, 0x3f, 0x5d, 0x05, 0xb0, 0xcd, 0xc6, 0xe3, 0x9c, 0x9a, 0x92, 0xca, 0x81, 0xe2, 0x3b, 0x56, 0x0e, 0xac, 0xc1, 0x50, 0x8d, 0xdf, 0xe4, 0x64, 0xe0, 0xf5, 0x9e, 0xc2, 0x2f, 0x32, 0x51, 0x42, 0x5c, 0x01, 0x37, 0xb1, 0x62, 0x81, 0x7e, 0xd8, 0x82, 0xd3, 0xc9, 0xa6, 0x63, 0xc2, 0xd0, 0x22, 0xea, 0x2d, 0x57, 0x6b, 0x2d, 0x8b, 0xef, 0x4f, 0xc9, 0xff, 0x06, 0xf1, 0xbd, 0x6e, 0x04, 0xb8, 0x73, 0x65, 0x68, 0x31, 0x43, 0xaf, 0x36, 0x60, 0x5a, 0x14, 0x7b, 0xd0, 0xad, 0xbd, 0x00, 0x23, 0x4d, 0xbf, 0xed, 0x45, 0xc2, 0xf3, 0x4f, 0x78, 0x21, 0x31, 0xef, 0x9b, 0x35, 0x0d, 0x8e, 0x0d, 0xaa, 0x84, 0x46, 0x6e, 0xe8, 0xbe, 0x35, 0x72, 0x6f, 0xc1, 0x88, 0xa7, 0xb9, 0xaa, 0x77, 0xba, 0xc1, 0x0a, 0xed, 0xa2, 0x46, 0xcd, 0x5b, 0xa9, 0x43, 0xb0, 0xc1, 0xad, 0xb3, 0xb6, 0x0c, 0xde, 0x99, 0xb6, 0xec, 0x68, 0xfd, 0x0d, 0x7f, 0xbe, 0x90, 0x71, 0x63, 0xe0, 0x5a, 0xb9, 0x57, 0x4d, 0xad, 0xdc, 0xb9, 0xa4, 0x56, 0x2e, 0x65, 0xaa, 0x32, 0x14, 0x72, 0xbd, 0x67, 0x87, 0xeb, 0x39, 0xa4, 0xee, 0xf7, 0x5a, 0xf0, 0x10, 0xb3, 0x7d, 0xd0, 0x0a, 0xde, 0xb1, 0xbd, 0xe3, 0xe1, 0xbb, 0xfb, 0xe5, 0x87, 0x56, 0xb3, 0xd9, 0xe1, 0xbc, 0x7a, 0xec, 0x06, 0x9c, 0xed, 0x76, 0xee, 0x32, 0x1f, 0xd7, 0xba, 0x72, 0x8e, 0x88, 0x7d, 0x5c, 0xeb, 0x2b, 0x8b, 0x98, 0x61, 0x7a, 0x0d, 0x18, 0x67, 0xff, 0x07, 0x0b, 0x8a, 0x15, 0xbf, 0x7e, 0x04, 0x37, 0xfa, 0x0f, 0x1b, 0x37, 0xfa, 0x87, 0xb3, 0x4f, 0xfc, 0x7a, 0xae, 0xb1, 0x6f, 0x29, 0x61, 0xec, 0x3b, 0x9d, 0xc7, 0xa0, 0xb3, 0x69, 0xef, 0xa7, 0x8a, 0x30, 0x5c, 0xf1, 0xeb, 0x6a, 0x9d, 0xfd, 0x93, 0xfb, 0x79, 0x60, 0x92, 0x9b, 0xef, 0x47, 0xe3, 0xcc, 0x5c, 0x63, 0x65, 0xc8, 0x81, 0x6f, 0xb3, 0x77, 0x26, 0x37, 0x88, 0xbb, 0xb5, 0x1d, 0x91, 0x7a, 0xf2, 0x73, 0x8e, 0xee, 0x9d, 0xc9, 0x37, 0x8b, 0x30, 0x9e, 0xa8, 0x1d, 0x35, 0x60, 0xb4, 0xa1, 0x9b, 0x92, 0xc4, 0x3c, 0xbd, 0x2f, 0x2b, 0x94, 0xf0, 0xd3, 0xd7, 0x40, 0xd8, 0x64, 0x8e, 0x66, 0x01, 0x94, 0x6f, 0x85, 0xd4, 0xf6, 0xb3, 0x6b, 0x8d, 0x72, 0xbe, 0x08, 0xb1, 0x46, 0x81, 0x5e, 0x84, 0xe1, 0xc8, 0x6f, 0xf9, 0x0d, 0x7f, 0x6b, 0xef, 0x0a, 0x91, 0xb1, 0x04, 0x95, 0xf7, 0xed, 0x46, 0x8c, 0xc2, 0x3a, 0x1d, 0xba, 0x0d, 0x93, 0x8a, 0x49, 0xf5, 0x10, 0xcc, 0x6b, 0x4c, 0x6d, 0xb2, 0x9e, 0xe4, 0x88, 0xd3, 0x95, 0xa0, 0x97, 0x61, 0x8c, 0xb9, 0x01, 0xb3, 0xf2, 0x57, 0xc8, 0x9e, 0x8c, 0x31, 0xcb, 0x24, 0xec, 0x35, 0x03, 0x83, 0x13, 0x94, 0x68, 0x01, 0x26, 0x9b, 0x6e, 0x98, 0x28, 0x3e, 0xc0, 0x8a, 0xb3, 0x06, 0xac, 0x25, 0x91, 0x38, 0x4d, 0x6f, 0xff, 0xac, 0x18, 0x63, 0x2f, 0x72, 0xdf, 0x5b, 0x8e, 0xef, 0xee, 0xe5, 0xf8, 0x0d, 0x0b, 0x26, 0x68, 0xed, 0xcc, 0xb7, 0x51, 0x0a, 0x52, 0x2a, 0x0b, 0x81, 0xd5, 0x21, 0x0b, 0xc1, 0x39, 0xba, 0x6d, 0xd7, 0xfd, 0x76, 0x24, 0xb4, 0xa3, 0xda, 0xbe, 0x4c, 0xa1, 0x58, 0x60, 0x05, 0x1d, 0x09, 0x02, 0xf1, 0x1e, 0x5b, 0xa7, 0x23, 0x41, 0x80, 0x05, 0x56, 0x26, 0x29, 0xe8, 0xcb, 0x4e, 0x52, 0xc0, 0x63, 0x4d, 0x0b, 0x2f, 0x38, 0x21, 0xd2, 0x6a, 0xb1, 0xa6, 0xa5, 0x7b, 0x5c, 0x4c, 0x63, 0x7f, 0xad, 0x08, 0x23, 0x15, 0xbf, 0x1e, 0x3b, 0x76, 0xbc, 0x60, 0x38, 0x76, 0x9c, 0x4d, 0x38, 0x76, 0x4c, 0xe8, 0xb4, 0xef, 0xb9, 0x71, 0x7c, 0xab, 0xdc, 0x38, 0x7e, 0xc3, 0x62, 0xa3, 0xb6, 0xb8, 0x5e, 0xe5, 0xae, 0xb2, 0xe8, 0x22, 0x0c, 0xb3, 0x1d, 0x8e, 0x05, 0x00, 0x90, 0xde, 0x0e, 0x2c, 0x69, 0xe0, 0x7a, 0x0c, 0xc6, 0x3a, 0x0d, 0x3a, 0x0f, 0x43, 0x21, 0x71, 0x82, 0xda, 0xb6, 0xda, 0xde, 0x85, 0x6b, 0x02, 0x87, 0x61, 0x85, 0x45, 0x6f, 0xc4, 0x61, 0x8e, 0x8b, 0xf9, 0x0f, 0x8a, 0xf5, 0xf6, 0xf0, 0x25, 0x92, 0x1f, 0xdb, 0xd8, 0xbe, 0x01, 0x28, 0x4d, 0xdf, 0x43, 0x20, 0xce, 0xb2, 0x19, 0x88, 0xb3, 0x94, 0x0a, 0xc2, 0xf9, 0xd7, 0x16, 0x8c, 0x55, 0xfc, 0x3a, 0x5d, 0xba, 0xdf, 0x49, 0xeb, 0x54, 0x8f, 0xf1, 0x3e, 0xd0, 0x21, 0xc6, 0xfb, 0xa3, 0xd0, 0x5f, 0xf1, 0xeb, 0x5d, 0x82, 0x85, 0xfe, 0x2d, 0x0b, 0x06, 0x2b, 0x7e, 0xfd, 0x08, 0x0c, 0x2f, 0xaf, 0x9a, 0x86, 0x97, 0x87, 0x72, 0xe6, 0x4d, 0x8e, 0xad, 0xe5, 0xff, 0xef, 0x83, 0x51, 0xda, 0x4e, 0x7f, 0x4b, 0x0e, 0xa5, 0xd1, 0x6d, 0x56, 0x0f, 0xdd, 0x46, 0xaf, 0x01, 0x7e, 0xa3, 0xe1, 0xdf, 0x4a, 0x0e, 0xeb, 0x32, 0x83, 0x62, 0x81, 0x45, 0xcf, 0xc0, 0x50, 0x2b, 0x20, 0xbb, 0xae, 0x2f, 0xe4, 0x6b, 0xcd, 0x8c, 0x55, 0x11, 0x70, 0xac, 0x28, 0xe8, 0xc5, 0x3b, 0x74, 0x3d, 0x2a, 0x4b, 0xd4, 0x7c, 0xaf, 0xce, 0x6d, 0x13, 0x45, 0x91, 0x88, 0x48, 0x83, 0x63, 0x83, 0x0a, 0xdd, 0x80, 0x12, 0xfb, 0xcf, 0xb6, 0x9d, 0x83, 0xa7, 0x40, 0x17, 0xa9, 0x59, 0x05, 0x03, 0x1c, 0xf3, 0x42, 0xcf, 0x01, 0x44, 0x32, 0x99, 0x47, 0x28, 0x82, 0x46, 0xaa, 0xbb, 0x88, 0x4a, 0xf3, 0x11, 0x62, 0x8d, 0x0a, 0x3d, 0x0d, 0xa5, 0xc8, 0x71, 0x1b, 0xab, 0xae, 0xc7, 0xec, 0xf7, 0xb4, 0xfd, 0x22, 0x43, 0xaa, 0x00, 0xe2, 0x18, 0x4f, 0x65, 0x41, 0x16, 0x0e, 0x68, 0x7e, 0x2f, 0x12, 0xc9, 0xc0, 0x8a, 0x5c, 0x16, 0x5c, 0x55, 0x50, 0xac, 0x51, 0xa0, 0x6d, 0x38, 0xe5, 0x7a, 0x2c, 0x69, 0x0f, 0xa9, 0xee, 0xb8, 0xad, 0x8d, 0xd5, 0xea, 0x75, 0x12, 0xb8, 0x9b, 0x7b, 0xf3, 0x4e, 0x6d, 0x87, 0x78, 0x32, 0xb9, 0xf5, 0x63, 0xa2, 0x89, 0xa7, 0x56, 0x3a, 0xd0, 0xe2, 0x8e, 0x9c, 0xec, 0xe7, 0xd9, 0x7c, 0xbf, 0x5a, 0x45, 0x4f, 0x19, 0x5b, 0xc7, 0x09, 0x7d, 0xeb, 0xb8, 0xb7, 0x5f, 0x1e, 0xb8, 0x5a, 0xd5, 0x62, 0xd2, 0xbc, 0x04, 0xc7, 0x2b, 0x7e, 0xbd, 0xe2, 0x07, 0xd1, 0xb2, 0x1f, 0xdc, 0x72, 0x82, 0xba, 0x9c, 0x5e, 0x65, 0x19, 0x95, 0x87, 0xee, 0x9f, 0xfd, 0x7c, 0x77, 0x31, 0x22, 0xee, 0x3c, 0xcf, 0x24, 0xb6, 0x03, 0x3e, 0xb7, 0xac, 0x31, 0xd9, 0x41, 0xa5, 0xbd, 0xba, 0xe4, 0x44, 0x04, 0x5d, 0x85, 0xd1, 0x9a, 0x7e, 0x8c, 0x8a, 0xe2, 0x4f, 0xca, 0x83, 0xcc, 0x38, 0x63, 0x33, 0xcf, 0x5d, 0xb3, 0xbc, 0xfd, 0x59, 0x51, 0x09, 0x57, 0x44, 0x70, 0x97, 0xd6, 0x5e, 0xf2, 0xbf, 0xcb, 0xbc, 0x38, 0x85, 0xfc, 0x98, 0x87, 0xdc, 0xae, 0xdc, 0x31, 0x2f, 0x8e, 0xfd, 0xdd, 0x70, 0x22, 0x59, 0x7d, 0xcf, 0x49, 0xe8, 0x17, 0x60, 0x32, 0xd0, 0x0b, 0x6a, 0x49, 0x06, 0x8f, 0xf3, 0x5c, 0x26, 0x09, 0x24, 0x4e, 0xd3, 0xdb, 0x2f, 0xc2, 0x24, 0xbd, 0xfc, 0x2a, 0x41, 0x8e, 0xf5, 0x72, 0xf7, 0xf0, 0x44, 0xff, 0xb1, 0x9f, 0x1d, 0x44, 0x89, 0x8c, 0x53, 0xe8, 0x93, 0x30, 0x16, 0x92, 0x55, 0xd7, 0x6b, 0xdf, 0x96, 0xba, 0xb5, 0x0e, 0xef, 0x8c, 0xab, 0x4b, 0x3a, 0x25, 0xbf, 0x3f, 0x98, 0x30, 0x9c, 0xe0, 0x86, 0x9a, 0x30, 0x76, 0xcb, 0xf5, 0xea, 0xfe, 0xad, 0x50, 0xf2, 0x1f, 0xca, 0x57, 0xd4, 0xdf, 0xe0, 0x94, 0x89, 0x36, 0x1a, 0xd5, 0xdd, 0x30, 0x98, 0xe1, 0x04, 0x73, 0xba, 0xd8, 0x83, 0xb6, 0x37, 0x17, 0x5e, 0x0b, 0x09, 0x7f, 0x39, 0x2a, 0x16, 0x3b, 0x96, 0x40, 0x1c, 0xe3, 0xe9, 0x62, 0x67, 0x7f, 0x2e, 0x05, 0x7e, 0x9b, 0xa7, 0x37, 0x12, 0x8b, 0x1d, 0x2b, 0x28, 0xd6, 0x28, 0xe8, 0x66, 0xc8, 0xfe, 0xad, 0xfb, 0x1e, 0xf6, 0xfd, 0x48, 0x6e, 0x9f, 0x2c, 0x3d, 0x9f, 0x06, 0xc7, 0x06, 0x15, 0x5a, 0x06, 0x14, 0xb6, 0x5b, 0xad, 0x06, 0x73, 0x5d, 0x74, 0x1a, 0x8c, 0x15, 0x77, 0xbb, 0x2a, 0x72, 0xef, 0x96, 0x6a, 0x0a, 0x8b, 0x33, 0x4a, 0xd0, 0x73, 0x71, 0x53, 0x34, 0xb5, 0x9f, 0x35, 0x95, 0x1b, 0xf5, 0xaa, 0xbc, 0x9d, 0x12, 0x87, 0x96, 0x60, 0x30, 0xdc, 0x0b, 0x6b, 0x51, 0x23, 0xec, 0x94, 0x0c, 0xb1, 0xca, 0x48, 0xb4, 0x5c, 0xbc, 0xbc, 0x08, 0x96, 0x65, 0x51, 0x0d, 0xa6, 0x04, 0xc7, 0x85, 0x6d, 0xc7, 0x53, 0x29, 0xda, 0xb8, 0xf7, 0xde, 0xc5, 0xbb, 0xfb, 0xe5, 0x29, 0x51, 0xb3, 0x8e, 0xbe, 0xb7, 0x5f, 0xa6, 0x8b, 0x23, 0x03, 0x83, 0xb3, 0xb8, 0xf1, 0xc9, 0x57, 0xab, 0xf9, 0xcd, 0x56, 0x25, 0xf0, 0x37, 0xdd, 0x06, 0xe9, 0x64, 0x18, 0xad, 0x1a, 0x94, 0x62, 0xf2, 0x19, 0x30, 0x9c, 0xe0, 0x66, 0x7f, 0x96, 0xc9, 0x8e, 0x55, 0x77, 0xcb, 0x73, 0xa2, 0x76, 0x40, 0x50, 0x13, 0x46, 0x5b, 0x6c, 0x77, 0x11, 0x49, 0x87, 0xc4, 0x5c, 0x7f, 0xa1, 0x47, 0xfd, 0xd7, 0x2d, 0x96, 0x36, 0xd1, 0xf0, 0x83, 0xac, 0xe8, 0xec, 0xb0, 0xc9, 0xdd, 0xfe, 0x17, 0x27, 0x99, 0xf4, 0x51, 0xe5, 0x4a, 0xad, 0x41, 0xf1, 0x6c, 0x4c, 0x5c, 0x63, 0x67, 0xf2, 0xd5, 0xc7, 0xf1, 0xb0, 0x88, 0xa7, 0x67, 0x58, 0x96, 0x45, 0x9f, 0x80, 0x31, 0x7a, 0x2b, 0x54, 0x12, 0x40, 0x38, 0x7d, 0x2c, 0x3f, 0xbc, 0x8f, 0xa2, 0xd2, 0x13, 0x92, 0xe9, 0x85, 0x71, 0x82, 0x19, 0x7a, 0x83, 0xb9, 0x06, 0x4a, 0xd6, 0x85, 0x5e, 0x58, 0xeb, 0x5e, 0x80, 0x92, 0xad, 0xc6, 0x04, 0xb5, 0x61, 0x2a, 0x9d, 0x76, 0x35, 0x9c, 0xb6, 0xf3, 0xc5, 0xeb, 0x74, 0xe6, 0xd4, 0x38, 0x73, 0x54, 0x1a, 0x17, 0xe2, 0x2c, 0xfe, 0x68, 0x35, 0x99, 0x14, 0xb3, 0x68, 0x28, 0x9e, 0x53, 0x89, 0x31, 0x47, 0x3b, 0xe6, 0xc3, 0xdc, 0x82, 0xd3, 0x5a, 0x5e, 0xc1, 0x4b, 0x81, 0xc3, 0x5c, 0x53, 0x5c, 0xb6, 0x9d, 0x6a, 0x72, 0xd1, 0x23, 0x77, 0xf7, 0xcb, 0xa7, 0x37, 0x3a, 0x11, 0xe2, 0xce, 0x7c, 0xd0, 0x55, 0x38, 0xce, 0x83, 0x53, 0x2c, 0x12, 0xa7, 0xde, 0x70, 0x3d, 0x25, 0x78, 0xf1, 0x25, 0x7f, 0xf2, 0xee, 0x7e, 0xf9, 0xf8, 0x5c, 0x16, 0x01, 0xce, 0x2e, 0x87, 0x5e, 0x85, 0x52, 0xdd, 0x0b, 0x45, 0x1f, 0x0c, 0x18, 0xa9, 0x1b, 0x4b, 0x8b, 0xeb, 0x55, 0xf5, 0xfd, 0xf1, 0x1f, 0x1c, 0x17, 0x40, 0x5b, 0xdc, 0xf2, 0xa1, 0xd4, 0x55, 0x83, 0xa9, 0x98, 0x85, 0x49, 0x8d, 0xae, 0xf1, 0x3c, 0x9d, 0x9b, 0xfc, 0xd4, 0xab, 0x2d, 0xe3, 0xe5, 0xba, 0xc1, 0x18, 0xbd, 0x0e, 0x48, 0xa4, 0x08, 0x99, 0xab, 0xb1, 0x8c, 0x56, 0x9a, 0x3b, 0xa2, 0xba, 0x85, 0x56, 0x53, 0x14, 0x38, 0xa3, 0x14, 0xba, 0x4c, 0x77, 0x15, 0x1d, 0x2a, 0x76, 0x2d, 0x95, 0x20, 0x78, 0x91, 0xb4, 0x02, 0xc2, 0x3c, 0xe8, 0x4c, 0x8e, 0x38, 0x51, 0x0e, 0xd5, 0xe1, 0x94, 0xd3, 0x8e, 0x7c, 0x66, 0x54, 0x32, 0x49, 0x37, 0xfc, 0x1d, 0xe2, 0x31, 0x7b, 0xee, 0x10, 0x8b, 0x85, 0x78, 0x6a, 0xae, 0x03, 0x1d, 0xee, 0xc8, 0x85, 0x4a, 0xe4, 0x32, 0xe7, 0xbf, 0xb0, 0xf7, 0x18, 0x2f, 0x6d, 0xb9, 0x11, 0x54, 0x52, 0xa0, 0x17, 0x61, 0x78, 0xdb, 0x0f, 0xa3, 0x75, 0x12, 0xdd, 0xf2, 0x83, 0x1d, 0x11, 0x93, 0x3c, 0xce, 0x03, 0x11, 0xa3, 0xb0, 0x4e, 0x47, 0xaf, 0xdc, 0xcc, 0xdb, 0x68, 0x65, 0x91, 0x39, 0x7a, 0x0c, 0xc5, 0x7b, 0xcc, 0x65, 0x0e, 0xc6, 0x12, 0x2f, 0x49, 0x57, 0x2a, 0x0b, 0xcc, 0x69, 0x23, 0x41, 0xba, 0x52, 0x59, 0xc0, 0x12, 0x4f, 0xa7, 0x6b, 0xb8, 0xed, 0x04, 0xa4, 0x12, 0xf8, 0x35, 0x12, 0x6a, 0xd9, 0x47, 0x1e, 0xe6, 0x11, 0xd7, 0xe9, 0x74, 0xad, 0x66, 0x11, 0xe0, 0xec, 0x72, 0x88, 0xa4, 0x73, 0x6a, 0x8e, 0xe5, 0x5b, 0xdb, 0xd2, 0xf2, 0x4c, 0x8f, 0x69, 0x35, 0x3d, 0x98, 0x50, 0xd9, 0x3c, 0x79, 0x8c, 0xf5, 0x70, 0x7a, 0x9c, 0xcd, 0xed, 0xde, 0x03, 0xb4, 0x2b, 0xfb, 0xe5, 0x4a, 0x82, 0x13, 0x4e, 0xf1, 0x36, 0x82, 0x6d, 0x4e, 0x74, 0x0d, 0xb6, 0x79, 0x01, 0x4a, 0x61, 0xfb, 0x66, 0xdd, 0x6f, 0x3a, 0xae, 0xc7, 0x9c, 0x36, 0xb4, 0xbb, 0x5f, 0x55, 0x22, 0x70, 0x4c, 0x83, 0x96, 0x61, 0xc8, 0x91, 0xc6, 0x49, 0x94, 0x1f, 0x47, 0x4c, 0x99, 0x24, 0x79, 0x68, 0x1d, 0x69, 0x8e, 0x54, 0x65, 0xd1, 0x2b, 0x30, 0x2a, 0x82, 0x2b, 0x88, 0x04, 0xd8, 0x53, 0xe6, 0x0b, 0xd8, 0xaa, 0x8e, 0xc4, 0x26, 0x2d, 0xba, 0x06, 0xc3, 0x91, 0xdf, 0x60, 0xcf, 0x38, 0xa9, 0x98, 0x77, 0x22, 0x3f, 0xdc, 0xe7, 0x86, 0x22, 0xd3, 0xd5, 0xe6, 0xaa, 0x28, 0xd6, 0xf9, 0xa0, 0x0d, 0x3e, 0xdf, 0x59, 0xae, 0x11, 0x12, 0x8a, 0x0c, 0xca, 0xa7, 0xf3, 0x3c, 0xee, 0x18, 0x99, 0xb9, 0x1c, 0x44, 0x49, 0xac, 0xb3, 0x41, 0x97, 0x60, 0xb2, 0x15, 0xb8, 0x3e, 0x9b, 0x13, 0xca, 0xd8, 0x3a, 0x6d, 0x66, 0x16, 0xac, 0x24, 0x09, 0x70, 0xba, 0x0c, 0x8b, 0x8d, 0x21, 0x80, 0xd3, 0x27, 0x79, 0x76, 0x24, 0x7e, 0x95, 0xe6, 0x30, 0xac, 0xb0, 0x68, 0x8d, 0xed, 0xc4, 0x5c, 0x0b, 0x34, 0x3d, 0x93, 0x1f, 0xba, 0x4c, 0xd7, 0x16, 0x71, 0xe1, 0x55, 0xfd, 0xc5, 0x31, 0x07, 0x54, 0xd7, 0x92, 0x12, 0xd3, 0x2b, 0x40, 0x38, 0x7d, 0xaa, 0x83, 0xcb, 0x67, 0xe2, 0x56, 0x16, 0x0b, 0x04, 0x06, 0x38, 0xc4, 0x09, 0x9e, 0xe8, 0x23, 0x30, 0x21, 0xe2, 0xd0, 0xc6, 0xdd, 0x74, 0x3a, 0x7e, 0x16, 0x83, 0x13, 0x38, 0x9c, 0xa2, 0xe6, 0xd9, 0x89, 0x9c, 0x9b, 0x0d, 0x22, 0xb6, 0xbe, 0x55, 0xd7, 0xdb, 0x09, 0xa7, 0xcf, 0xb0, 0xfd, 0x41, 0x64, 0x27, 0x4a, 0x62, 0x71, 0x46, 0x09, 0xb4, 0x01, 0x13, 0xad, 0x80, 0x90, 0x26, 0x13, 0xf4, 0xc5, 0x79, 0x56, 0xe6, 0xa1, 0x61, 0x68, 0x4b, 0x2a, 0x09, 0xdc, 0xbd, 0x0c, 0x18, 0x4e, 0x71, 0x40, 0xb7, 0x60, 0xc8, 0xdf, 0x25, 0xc1, 0x36, 0x71, 0xea, 0xd3, 0x67, 0x3b, 0x3c, 0xd6, 0x12, 0x87, 0xdb, 0x55, 0x41, 0x9b, 0xf0, 0x65, 0x91, 0xe0, 0xee, 0xbe, 0x2c, 0xb2, 0x32, 0xf4, 0x7f, 0x5a, 0x70, 0x52, 0x5a, 0x87, 0xaa, 0x2d, 0xda, 0xeb, 0x0b, 0xbe, 0x17, 0x46, 0x01, 0x0f, 0x66, 0xf2, 0x48, 0x7e, 0x80, 0x8f, 0x8d, 0x9c, 0x42, 0x4a, 0x11, 0x7d, 0x32, 0x8f, 0x22, 0xc4, 0xf9, 0x35, 0xd2, 0xab, 0x69, 0x48, 0x22, 0xb9, 0x19, 0xcd, 0x85, 0xcb, 0x6f, 0x2c, 0xae, 0x4f, 0x3f, 0xca, 0x23, 0xb1, 0xd0, 0xc5, 0x50, 0x4d, 0x22, 0x71, 0x9a, 0x1e, 0x5d, 0x84, 0x82, 0x1f, 0x4e, 0x3f, 0xd6, 0x21, 0x8f, 0xb5, 0x5f, 0xbf, 0x5a, 0xe5, 0x3e, 0x8d, 0x57, 0xab, 0xb8, 0xe0, 0x87, 0x32, 0x43, 0x10, 0xbd, 0x8f, 0x85, 0xd3, 0x8f, 0x73, 0xb5, 0xa5, 0xcc, 0x10, 0xc4, 0x80, 0x38, 0xc6, 0xa3, 0x6d, 0x18, 0x0f, 0x8d, 0x7b, 0x6f, 0x38, 0x7d, 0x8e, 0xf5, 0xd4, 0xe3, 0x79, 0x83, 0x66, 0x50, 0x6b, 0xa9, 0x3b, 0x4c, 0x2e, 0x38, 0xc9, 0x96, 0xaf, 0x2e, 0xed, 0xe6, 0x1d, 0x4e, 0x3f, 0xd1, 0x65, 0x75, 0x69, 0xc4, 0xfa, 0xea, 0xd2, 0x79, 0xe0, 0x04, 0xcf, 0x99, 0xef, 0x82, 0xc9, 0x94, 0xb8, 0x74, 0x10, 0xff, 0xfd, 0x99, 0x1d, 0x18, 0x35, 0xa6, 0xe4, 0x03, 0x75, 0xef, 0xf8, 0x9d, 0x12, 0x94, 0x94, 0xd9, 0x1d, 0x5d, 0x30, 0x3d, 0x3a, 0x4e, 0x26, 0x3d, 0x3a, 0x86, 0x2a, 0x7e, 0xdd, 0x70, 0xe2, 0xd8, 0xc8, 0x88, 0xd7, 0x99, 0xb7, 0x01, 0xf6, 0xfe, 0xc8, 0x48, 0x33, 0x25, 0x14, 0x7b, 0x76, 0x0d, 0xe9, 0xeb, 0x68, 0x9d, 0xb8, 0x04, 0x93, 0x9e, 0xcf, 0x64, 0x74, 0x52, 0x97, 0x02, 0x18, 0x93, 0xb3, 0x4a, 0x7a, 0x00, 0xac, 0x04, 0x01, 0x4e, 0x97, 0xa1, 0x15, 0x72, 0x41, 0x29, 0x69, 0x0e, 0xe1, 0x72, 0x14, 0x16, 0x58, 0x7a, 0x37, 0xe4, 0xbf, 0xc2, 0xe9, 0x89, 0xfc, 0xbb, 0x21, 0x2f, 0x94, 0x14, 0xc6, 0x42, 0x29, 0x8c, 0x31, 0xed, 0x7f, 0xcb, 0xaf, 0xaf, 0x54, 0x84, 0x98, 0xaf, 0x45, 0xd2, 0xae, 0xaf, 0x54, 0x30, 0xc7, 0xa1, 0x39, 0x18, 0x60, 0x3f, 0xc2, 0xe9, 0x91, 0xfc, 0x80, 0x49, 0xac, 0x84, 0x96, 0xa1, 0x90, 0x15, 0xc0, 0xa2, 0x20, 0xd3, 0xee, 0xd2, 0xbb, 0x11, 0xd3, 0xee, 0x0e, 0xde, 0xa7, 0x76, 0x57, 0x32, 0xc0, 0x31, 0x2f, 0x74, 0x1b, 0x8e, 0x1b, 0xf7, 0x51, 0xf5, 0xea, 0x0a, 0xf2, 0x0d, 0xbf, 0x09, 0xe2, 0xf9, 0xd3, 0xa2, 0xd1, 0xc7, 0x57, 0xb2, 0x38, 0xe1, 0xec, 0x0a, 0x50, 0x03, 0x26, 0x6b, 0xa9, 0x5a, 0x87, 0x7a, 0xaf, 0x55, 0xcd, 0x8b, 0x74, 0x8d, 0x69, 0xc6, 0xe8, 0x15, 0x18, 0x7a, 0xdb, 0xe7, 0x4e, 0x5a, 0xe2, 0x6a, 0x22, 0x23, 0x7e, 0x0c, 0xbd, 0x71, 0xb5, 0xca, 0xe0, 0xf7, 0xf6, 0xcb, 0xc3, 0x15, 0xbf, 0x2e, 0xff, 0x62, 0x55, 0x00, 0xfd, 0x80, 0x05, 0x33, 0xe9, 0x0b, 0xaf, 0x6a, 0xf4, 0x68, 0xef, 0x8d, 0xb6, 0x45, 0xa5, 0x33, 0x4b, 0xb9, 0xec, 0x70, 0x87, 0xaa, 0xd0, 0x87, 0xe8, 0x7a, 0x0a, 0xdd, 0x3b, 0x44, 0xa4, 0x77, 0x7e, 0x24, 0x5e, 0x4f, 0x14, 0x7a, 0x6f, 0xbf, 0x3c, 0xce, 0x77, 0x46, 0xf7, 0x8e, 0x8a, 0xf9, 0xcd, 0x0b, 0xa0, 0xef, 0x86, 0xe3, 0x41, 0x5a, 0x83, 0x4a, 0xa4, 0x10, 0xfe, 0x54, 0x2f, 0xbb, 0x6c, 0x72, 0xc0, 0x71, 0x16, 0x43, 0x9c, 0x5d, 0x8f, 0xfd, 0xab, 0x16, 0xd3, 0x6f, 0x8b, 0x66, 0x91, 0xb0, 0xdd, 0x38, 0x8a, 0xa4, 0xf2, 0x4b, 0x86, 0xed, 0xf8, 0xbe, 0x3d, 0x9b, 0xfe, 0xb1, 0xc5, 0x3c, 0x9b, 0x8e, 0xf0, 0x8d, 0xd6, 0x1b, 0x30, 0x14, 0xc9, 0x64, 0xff, 0x1d, 0xf2, 0xe0, 0x6b, 0x8d, 0x62, 0xde, 0x5d, 0xea, 0x92, 0xa3, 0xf2, 0xfa, 0x2b, 0x36, 0xf6, 0x3f, 0xe0, 0x23, 0x20, 0x31, 0x47, 0x60, 0xa2, 0x5b, 0x34, 0x4d, 0x74, 0xe5, 0x2e, 0x5f, 0x90, 0x63, 0xaa, 0xfb, 0xfb, 0x66, 0xbb, 0x99, 0x72, 0xef, 0xdd, 0xee, 0x52, 0x67, 0x7f, 0xc1, 0x02, 0x88, 0x93, 0x2c, 0xf4, 0x90, 0xce, 0xf5, 0x25, 0x7a, 0xad, 0xf1, 0x23, 0xbf, 0xe6, 0x37, 0x84, 0x81, 0xe2, 0x54, 0x6c, 0x25, 0xe4, 0xf0, 0x7b, 0xda, 0x6f, 0xac, 0xa8, 0x51, 0x59, 0x46, 0x3d, 0x2d, 0xc6, 0x76, 0x6b, 0x23, 0xe2, 0xe9, 0x97, 0x2d, 0x38, 0x96, 0xe5, 0xf0, 0x4f, 0x2f, 0xc9, 0x5c, 0xcd, 0xa9, 0xdc, 0x1d, 0xd5, 0x68, 0x5e, 0x17, 0x70, 0xac, 0x28, 0x7a, 0xce, 0x93, 0x7b, 0xb0, 0x04, 0x00, 0x57, 0x61, 0xb4, 0x12, 0x10, 0x4d, 0xbe, 0x78, 0x8d, 0x47, 0xd2, 0xe1, 0xed, 0x79, 0xe6, 0xc0, 0x51, 0x74, 0xec, 0xaf, 0x14, 0xe0, 0x18, 0x77, 0xda, 0x99, 0xdb, 0xf5, 0xdd, 0x7a, 0xc5, 0xaf, 0x8b, 0x67, 0x9a, 0x6f, 0xc2, 0x48, 0x4b, 0xd3, 0x4d, 0x77, 0x0a, 0x66, 0xad, 0xeb, 0xb0, 0x63, 0x6d, 0x9a, 0x0e, 0xc5, 0x06, 0x2f, 0x54, 0x87, 0x11, 0xb2, 0xeb, 0xd6, 0x94, 0xe7, 0x47, 0xe1, 0xc0, 0x87, 0xb4, 0xaa, 0x65, 0x49, 0xe3, 0x83, 0x0d, 0xae, 0x3d, 0xbb, 0xda, 0x6a, 0x22, 0x5a, 0x5f, 0x17, 0x6f, 0x8f, 0x1f, 0xb5, 0xe0, 0xa1, 0x9c, 0xd0, 0xd7, 0xb4, 0xba, 0x5b, 0xcc, 0x3d, 0x4a, 0x4c, 0x5b, 0x55, 0x1d, 0x77, 0x9a, 0xc2, 0x02, 0x8b, 0x3e, 0x0a, 0xc0, 0x9d, 0x9e, 0x88, 0x57, 0xeb, 0x1a, 0x23, 0xd8, 0x08, 0x6f, 0xaa, 0x45, 0xaa, 0x94, 0xe5, 0xb1, 0xc6, 0xcb, 0xfe, 0x72, 0x1f, 0xf4, 0x33, 0x27, 0x1b, 0x54, 0x81, 0xc1, 0x6d, 0x9e, 0x25, 0xae, 0xe3, 0xb8, 0x51, 0x5a, 0x99, 0x78, 0x2e, 0x1e, 0x37, 0x0d, 0x8a, 0x25, 0x1b, 0xb4, 0x06, 0x53, 0x3c, 0x59, 0x5f, 0x63, 0x91, 0x34, 0x9c, 0x3d, 0xa9, 0xf6, 0xe5, 0xf9, 0xe7, 0x95, 0xfa, 0x7b, 0x25, 0x4d, 0x82, 0xb3, 0xca, 0xa1, 0xd7, 0x60, 0x8c, 0x5e, 0xc3, 0xfd, 0x76, 0x24, 0x39, 0xf1, 0x34, 0x7d, 0xea, 0x66, 0xb2, 0x61, 0x60, 0x71, 0x82, 0x1a, 0xbd, 0x02, 0xa3, 0xad, 0x94, 0x82, 0xbb, 0x3f, 0xd6, 0x04, 0x99, 0x4a, 0x6d, 0x93, 0x96, 0xf9, 0xfc, 0xb7, 0xd9, 0x0b, 0x87, 0x8d, 0xed, 0x80, 0x84, 0xdb, 0x7e, 0xa3, 0xce, 0x24, 0xe0, 0x7e, 0xcd, 0xe7, 0x3f, 0x81, 0xc7, 0xa9, 0x12, 0x94, 0xcb, 0xa6, 0xe3, 0x36, 0xda, 0x01, 0x89, 0xb9, 0x0c, 0x98, 0x5c, 0x96, 0x13, 0x78, 0x9c, 0x2a, 0xd1, 0x5d, 0x73, 0x3f, 0x78, 0x38, 0x9a, 0x7b, 0xfb, 0xa7, 0x0b, 0x60, 0x0c, 0xed, 0x77, 0x70, 0xfa, 0xc0, 0x57, 0xa1, 0x6f, 0x2b, 0x68, 0xd5, 0x84, 0x43, 0x59, 0xe6, 0x97, 0xc5, 0xb9, 0xc3, 0xf9, 0x97, 0xd1, 0xff, 0x98, 0x95, 0xa2, 0x6b, 0xfc, 0x78, 0x25, 0xf0, 0xe9, 0x21, 0x27, 0x63, 0x2d, 0xaa, 0xa7, 0x35, 0x83, 0x32, 0x48, 0x44, 0x87, 0xa8, 0xc4, 0xe2, 0x7d, 0x00, 0xe7, 0x60, 0xf8, 0x5e, 0x55, 0x45, 0x28, 0x18, 0xc9, 0x05, 0x5d, 0x84, 0x61, 0x91, 0xd1, 0x8d, 0xbd, 0x00, 0xe1, 0x8b, 0x89, 0xf9, 0x8a, 0x2d, 0xc6, 0x60, 0xac, 0xd3, 0xd8, 0x3f, 0x58, 0x80, 0xa9, 0x8c, 0x27, 0x7c, 0xfc, 0x18, 0xd9, 0x72, 0xc3, 0x48, 0xa5, 0x27, 0xd7, 0x8e, 0x11, 0x0e, 0xc7, 0x8a, 0x82, 0xee, 0x55, 0xfc, 0xa0, 0x4a, 0x1e, 0x4e, 0xe2, 0x89, 0x8c, 0xc0, 0x1e, 0x30, 0xd1, 0xf7, 0x59, 0xe8, 0x6b, 0x87, 0x44, 0xc6, 0x13, 0x57, 0xc7, 0x36, 0x33, 0x6b, 0x33, 0x0c, 0xbd, 0x02, 0x6e, 0x29, 0x0b, 0xb1, 0x76, 0x05, 0xe4, 0x36, 0x62, 0x8e, 0xa3, 0x8d, 0x8b, 0x88, 0xe7, 0x78, 0x91, 0xb8, 0x28, 0xc6, 0x81, 0x71, 0x19, 0x14, 0x0b, 0xac, 0xfd, 0xa5, 0x22, 0x9c, 0xcc, 0x7d, 0xd4, 0x4b, 0x9b, 0xde, 0xf4, 0x3d, 0x37, 0xf2, 0x95, 0x13, 0x1e, 0x0f, 0x86, 0x4b, 0x5a, 0xdb, 0x6b, 0x02, 0x8e, 0x15, 0x05, 0x3a, 0x07, 0xfd, 0x4c, 0x29, 0x9e, 0x4a, 0xd4, 0x3e, 0xbf, 0xc8, 0xa3, 0x23, 0x72, 0xb4, 0x76, 0xaa, 0x17, 0x3b, 0x9e, 0xea, 0x8f, 0x52, 0x09, 0xc6, 0x6f, 0x24, 0x0f, 0x14, 0xda, 0x5c, 0xdf, 0x6f, 0x60, 0x86, 0x44, 0x8f, 0x8b, 0xfe, 0x4a, 0x78, 0x9d, 0x61, 0xa7, 0xee, 0x87, 0x5a, 0xa7, 0x3d, 0x09, 0x83, 0x3b, 0x64, 0x2f, 0x70, 0xbd, 0xad, 0xa4, 0x37, 0xe2, 0x15, 0x0e, 0xc6, 0x12, 0x6f, 0xe6, 0x0c, 0x1e, 0x3c, 0x8c, 0x9c, 0xc1, 0xfa, 0x0c, 0x18, 0xea, 0x2a, 0x9e, 0xfc, 0x50, 0x11, 0xc6, 0xf1, 0xfc, 0xe2, 0x7b, 0x03, 0x71, 0x2d, 0x3d, 0x10, 0x87, 0x91, 0x5a, 0xf7, 0x60, 0xa3, 0xf1, 0x4b, 0x16, 0x8c, 0xb3, 0xbc, 0x72, 0x22, 0x22, 0x87, 0xeb, 0x7b, 0x47, 0x70, 0x15, 0x78, 0x14, 0xfa, 0x03, 0x5a, 0x69, 0x32, 0x43, 0x3b, 0x6b, 0x09, 0xe6, 0x38, 0x74, 0x0a, 0xfa, 0x58, 0x13, 0xe8, 0xe0, 0x8d, 0xf0, 0x2d, 0x78, 0xd1, 0x89, 0x1c, 0xcc, 0xa0, 0x2c, 0x36, 0x20, 0x26, 0xad, 0x86, 0xcb, 0x1b, 0x1d, 0xbb, 0x2c, 0xbc, 0x3b, 0xc2, 0x7d, 0x64, 0x36, 0xed, 0x9d, 0xc5, 0x06, 0xcc, 0x66, 0xd9, 0xf9, 0x9a, 0xfd, 0x17, 0x05, 0x38, 0x93, 0x59, 0xae, 0xe7, 0xd8, 0x80, 0x9d, 0x4b, 0x3f, 0xc8, 0x14, 0x59, 0xc5, 0x23, 0xf4, 0xf5, 0xee, 0xeb, 0x55, 0xfa, 0xef, 0xef, 0x21, 0x64, 0x5f, 0x66, 0x97, 0xbd, 0x4b, 0x42, 0xf6, 0x65, 0xb6, 0x2d, 0x47, 0x4d, 0xf0, 0x37, 0x85, 0x9c, 0x6f, 0x61, 0x0a, 0x83, 0xf3, 0x74, 0x9f, 0x61, 0xc8, 0x50, 0x5e, 0xc2, 0xf9, 0x1e, 0xc3, 0x61, 0x58, 0x61, 0xd1, 0x1c, 0x8c, 0x37, 0x5d, 0x8f, 0x6e, 0x3e, 0x7b, 0xa6, 0x28, 0xae, 0x6c, 0x19, 0x6b, 0x26, 0x1a, 0x27, 0xe9, 0x91, 0xab, 0x85, 0xf3, 0xe3, 0x5f, 0xf7, 0xca, 0x81, 0x56, 0xdd, 0xac, 0xe9, 0xce, 0xa1, 0x7a, 0x31, 0x23, 0xb4, 0xdf, 0x9a, 0xa6, 0x27, 0x2a, 0xf6, 0xae, 0x27, 0x1a, 0xc9, 0xd6, 0x11, 0xcd, 0xbc, 0x02, 0xa3, 0xf7, 0x6d, 0x1b, 0xb1, 0xbf, 0x51, 0x84, 0x87, 0x3b, 0x2c, 0x7b, 0xbe, 0xd7, 0x1b, 0x63, 0xa0, 0xed, 0xf5, 0xa9, 0x71, 0xa8, 0xc0, 0xb1, 0xcd, 0x76, 0xa3, 0xb1, 0xc7, 0x1e, 0x35, 0x91, 0xba, 0xa4, 0x10, 0x32, 0xa5, 0x54, 0x8e, 0x1c, 0x5b, 0xce, 0xa0, 0xc1, 0x99, 0x25, 0xe9, 0x15, 0x8b, 0x9e, 0x24, 0x7b, 0x8a, 0x55, 0xe2, 0x8a, 0x85, 0x75, 0x24, 0x36, 0x69, 0xd1, 0x25, 0x98, 0x74, 0x76, 0x1d, 0x97, 0xe7, 0x44, 0x90, 0x0c, 0xf8, 0x1d, 0x4b, 0xe9, 0xa2, 0xe7, 0x92, 0x04, 0x38, 0x5d, 0x06, 0xbd, 0x0e, 0xc8, 0xbf, 0xc9, 0x1e, 0x4a, 0xd4, 0x2f, 0x11, 0x4f, 0x58, 0xdd, 0xd9, 0xd8, 0x15, 0xe3, 0x2d, 0xe1, 0x6a, 0x8a, 0x02, 0x67, 0x94, 0x4a, 0x04, 0x96, 0x1b, 0xc8, 0x0f, 0x2c, 0xd7, 0x79, 0x5f, 0xec, 0x9a, 0x9d, 0xed, 0x22, 0x8c, 0x1e, 0xd0, 0xfd, 0xd7, 0xfe, 0xb7, 0x16, 0x28, 0x05, 0xb1, 0x19, 0x18, 0xfa, 0x15, 0xe6, 0x9f, 0xcc, 0x55, 0xdb, 0x5a, 0x2c, 0xa8, 0xe3, 0x9a, 0x7f, 0x72, 0x8c, 0xc4, 0x26, 0x2d, 0x9f, 0x43, 0x9a, 0x5f, 0xb1, 0x71, 0x2b, 0x10, 0x71, 0x2b, 0x15, 0x05, 0xfa, 0x18, 0x0c, 0xd6, 0xdd, 0x5d, 0x37, 0x14, 0xca, 0xb1, 0x03, 0x1b, 0xe3, 0xe2, 0xad, 0x73, 0x91, 0xb3, 0xc1, 0x92, 0x9f, 0xfd, 0x43, 0x85, 0xb8, 0x4f, 0xde, 0x68, 0xfb, 0x91, 0x73, 0x04, 0x27, 0xf9, 0x25, 0xe3, 0x24, 0x7f, 0x3c, 0x7b, 0xa0, 0xb5, 0x26, 0xe5, 0x9e, 0xe0, 0x57, 0x13, 0x27, 0xf8, 0x13, 0xdd, 0x59, 0x75, 0x3e, 0xb9, 0xff, 0xa1, 0x05, 0x93, 0x06, 0xfd, 0x11, 0x1c, 0x20, 0xcb, 0xe6, 0x01, 0xf2, 0x48, 0xd7, 0x6f, 0xc8, 0x39, 0x38, 0xbe, 0xbf, 0x98, 0x68, 0x3b, 0x3b, 0x30, 0xde, 0x86, 0xbe, 0x6d, 0x27, 0xa8, 0x77, 0x4a, 0x59, 0x94, 0x2a, 0x34, 0x7b, 0xd9, 0x09, 0x84, 0xa7, 0xc2, 0x33, 0xb2, 0xd7, 0x29, 0xa8, 0xab, 0x97, 0x02, 0xab, 0x0a, 0xbd, 0x04, 0x03, 0x61, 0xcd, 0x6f, 0xa9, 0x37, 0x53, 0x2c, 0xe5, 0x6f, 0x95, 0x41, 0xee, 0xed, 0x97, 0x91, 0x59, 0x1d, 0x05, 0x63, 0x41, 0x8f, 0xde, 0x84, 0x51, 0xf6, 0x4b, 0xb9, 0x0d, 0x16, 0xf3, 0x35, 0x18, 0x55, 0x9d, 0x90, 0xfb, 0xd4, 0x1a, 0x20, 0x6c, 0xb2, 0x9a, 0xd9, 0x82, 0x92, 0xfa, 0xac, 0x07, 0x6a, 0xed, 0xfe, 0x57, 0x45, 0x98, 0xca, 0x98, 0x73, 0x28, 0x34, 0x46, 0xe2, 0x62, 0x8f, 0x53, 0xf5, 0x1d, 0x8e, 0x45, 0xc8, 0x2e, 0x50, 0x75, 0x31, 0xb7, 0x7a, 0xae, 0xf4, 0x5a, 0x48, 0x92, 0x95, 0x52, 0x50, 0xf7, 0x4a, 0x69, 0x65, 0x47, 0xd6, 0xd5, 0xb4, 0x22, 0xd5, 0xd2, 0x07, 0x3a, 0xa6, 0xbf, 0xd1, 0x07, 0xc7, 0xb2, 0xe2, 0x09, 0xa3, 0xcf, 0x24, 0xf2, 0x88, 0xbf, 0xd0, 0xa9, 0x87, 0xf5, 0x92, 0x3c, 0xb9, 0xb8, 0x08, 0xe3, 0x39, 0x6b, 0x66, 0x16, 0xef, 0xda, 0xcd, 0xa2, 0x4e, 0x16, 0x5e, 0x27, 0xe0, 0xf9, 0xdf, 0xe5, 0xf6, 0xf1, 0x81, 0x9e, 0x1b, 0x20, 0x12, 0xc7, 0x87, 0x09, 0x97, 0x24, 0x09, 0xee, 0xee, 0x92, 0x24, 0x6b, 0x46, 0x2b, 0x30, 0x50, 0xe3, 0xbe, 0x2e, 0xc5, 0xee, 0x5b, 0x18, 0x77, 0x74, 0x51, 0x1b, 0xb0, 0x70, 0x70, 0x11, 0x0c, 0x66, 0x5c, 0x18, 0xd6, 0x3a, 0xe6, 0x81, 0x4e, 0x9e, 0x1d, 0x7a, 0xf0, 0x69, 0x5d, 0xf0, 0x40, 0x27, 0xd0, 0x8f, 0x5a, 0x90, 0x78, 0xf0, 0xa2, 0x94, 0x72, 0x56, 0xae, 0x52, 0xee, 0x2c, 0xf4, 0x05, 0x7e, 0x83, 0x24, 0x93, 0x54, 0x63, 0xbf, 0x41, 0x30, 0xc3, 0x50, 0x8a, 0x28, 0x56, 0xb5, 0x8c, 0xe8, 0xd7, 0x48, 0x71, 0x41, 0x7c, 0x14, 0xfa, 0x1b, 0x64, 0x97, 0x34, 0x92, 0xb9, 0x04, 0x57, 0x29, 0x10, 0x73, 0x9c, 0xfd, 0x4b, 0x7d, 0x70, 0xba, 0x63, 0xac, 0x2b, 0x7a, 0x19, 0xdb, 0x72, 0x22, 0x72, 0xcb, 0xd9, 0x4b, 0x26, 0xfd, 0xba, 0xc4, 0xc1, 0x58, 0xe2, 0xd9, 0xf3, 0x4f, 0x9e, 0xbb, 0x23, 0xa1, 0xc2, 0x14, 0x29, 0x3b, 0x04, 0xd6, 0x54, 0x89, 0x15, 0x0f, 0x43, 0x25, 0xf6, 0x1c, 0x40, 0x18, 0x36, 0xb8, 0x5b, 0x60, 0x5d, 0xbc, 0x2b, 0x8d, 0x73, 0xbc, 0x54, 0x57, 0x05, 0x06, 0x6b, 0x54, 0x68, 0x11, 0x26, 0x5a, 0x81, 0x1f, 0x71, 0x8d, 0xf0, 0x22, 0xf7, 0x9c, 0xed, 0x37, 0xc3, 0x0c, 0x55, 0x12, 0x78, 0x9c, 0x2a, 0x81, 0x5e, 0x84, 0x61, 0x11, 0x7a, 0xa8, 0xe2, 0xfb, 0x0d, 0xa1, 0x84, 0x52, 0xce, 0xa4, 0xd5, 0x18, 0x85, 0x75, 0x3a, 0xad, 0x18, 0x53, 0x33, 0x0f, 0x66, 0x16, 0xe3, 0xaa, 0x66, 0x8d, 0x2e, 0x11, 0xa6, 0x7c, 0xa8, 0xa7, 0x30, 0xe5, 0xb1, 0x5a, 0xae, 0xd4, 0xb3, 0xd5, 0x13, 0xba, 0x2a, 0xb2, 0xbe, 0xda, 0x07, 0x53, 0x62, 0xe2, 0x3c, 0xe8, 0xe9, 0x72, 0x2d, 0x3d, 0x5d, 0x0e, 0x43, 0x71, 0xf7, 0xde, 0x9c, 0x39, 0xea, 0x39, 0xf3, 0xc3, 0x16, 0x98, 0x92, 0x1a, 0xfa, 0xdf, 0x73, 0xb3, 0x26, 0xbe, 0x98, 0x2b, 0xf9, 0xc5, 0x31, 0x8c, 0xdf, 0x59, 0xfe, 0x44, 0xfb, 0x5f, 0x5b, 0xf0, 0x48, 0x57, 0x8e, 0x68, 0x09, 0x4a, 0x4c, 0x9c, 0xd4, 0x2e, 0x7a, 0x4f, 0x28, 0xcf, 0x7a, 0x89, 0xc8, 0x91, 0x6e, 0xe3, 0x92, 0x68, 0x29, 0x95, 0x9e, 0xf2, 0xc9, 0x8c, 0xf4, 0x94, 0xc7, 0x8d, 0xee, 0xb9, 0xcf, 0xfc, 0x94, 0x5f, 0xa4, 0x27, 0x8e, 0xf1, 0xaa, 0x0d, 0x7d, 0xc0, 0x50, 0x3a, 0xda, 0x09, 0xa5, 0x23, 0x32, 0xa9, 0xb5, 0x33, 0xe4, 0x23, 0x30, 0xc1, 0x62, 0x12, 0xb2, 0x77, 0x1e, 0xe2, 0xbd, 0x5d, 0x21, 0xf6, 0xe5, 0x5e, 0x4d, 0xe0, 0x70, 0x8a, 0xda, 0xfe, 0xb3, 0x22, 0x0c, 0xf0, 0xe5, 0x77, 0x04, 0xd7, 0xcb, 0xa7, 0xa1, 0xe4, 0x36, 0x9b, 0x6d, 0x9e, 0x71, 0xb0, 0x3f, 0xf6, 0x0c, 0x5e, 0x91, 0x40, 0x1c, 0xe3, 0xd1, 0xb2, 0xd0, 0x77, 0x77, 0x08, 0x7b, 0xcc, 0x1b, 0x3e, 0xbb, 0xe8, 0x44, 0x0e, 0x97, 0x95, 0xd4, 0x39, 0x1b, 0x6b, 0xc6, 0xd1, 0x27, 0x01, 0xc2, 0x28, 0x70, 0xbd, 0x2d, 0x0a, 0x13, 0xb1, 0xf1, 0x9f, 0xea, 0xc0, 0xad, 0xaa, 0x88, 0x39, 0xcf, 0x78, 0xcf, 0x51, 0x08, 0xac, 0x71, 0x44, 0xb3, 0xc6, 0x49, 0x3f, 0x93, 0x18, 0x3b, 0xe0, 0x5c, 0xe3, 0x31, 0x9b, 0xf9, 0x20, 0x94, 0x14, 0xf3, 0x6e, 0xda, 0xaf, 0x11, 0x5d, 0x2c, 0xfa, 0x30, 0x8c, 0x27, 0xda, 0x76, 0x20, 0xe5, 0xd9, 0x2f, 0x5b, 0x30, 0xce, 0x1b, 0xb3, 0xe4, 0xed, 0x8a, 0xd3, 0xe0, 0x0e, 0x1c, 0x6b, 0x64, 0xec, 0xca, 0x62, 0xf8, 0x7b, 0xdf, 0xc5, 0x95, 0xb2, 0x2c, 0x0b, 0x8b, 0x33, 0xeb, 0x40, 0xe7, 0xe9, 0x8a, 0xa3, 0xbb, 0xae, 0xd3, 0x10, 0xf1, 0x0d, 0x46, 0xf8, 0x6a, 0xe3, 0x30, 0xac, 0xb0, 0xf6, 0x1f, 0x59, 0x30, 0xc9, 0x5b, 0x7e, 0x85, 0xec, 0xa9, 0xbd, 0xe9, 0x5b, 0xd9, 0x76, 0x91, 0xeb, 0xb6, 0x90, 0x93, 0xeb, 0x56, 0xff, 0xb4, 0x62, 0xc7, 0x4f, 0xfb, 0x8a, 0x05, 0x62, 0x86, 0x1c, 0x81, 0x3e, 0xe3, 0xbb, 0x4c, 0x7d, 0xc6, 0x4c, 0xfe, 0x22, 0xc8, 0x51, 0x64, 0xfc, 0xb5, 0x05, 0x13, 0x9c, 0x20, 0xb6, 0xd5, 0x7f, 0x4b, 0xc7, 0x61, 0xde, 0xfc, 0xa2, 0x4c, 0xe7, 0xcb, 0x2b, 0x64, 0x6f, 0xc3, 0xaf, 0x38, 0xd1, 0x76, 0xf6, 0x47, 0x19, 0x83, 0xd5, 0xd7, 0x71, 0xb0, 0xea, 0x72, 0x01, 0x19, 0xa9, 0xe0, 0xba, 0x04, 0x08, 0x38, 0x68, 0x2a, 0x38, 0xfb, 0xcf, 0x2d, 0x40, 0xbc, 0x1a, 0x43, 0x70, 0xa3, 0xe2, 0x10, 0x83, 0x6a, 0x07, 0x5d, 0xbc, 0x35, 0x29, 0x0c, 0xd6, 0xa8, 0x0e, 0xa5, 0x7b, 0x12, 0x0e, 0x17, 0xc5, 0xee, 0x0e, 0x17, 0x07, 0xe8, 0xd1, 0x7f, 0x3e, 0x00, 0xc9, 0x97, 0x7d, 0xe8, 0x3a, 0x8c, 0xd4, 0x9c, 0x96, 0x73, 0xd3, 0x6d, 0xb8, 0x91, 0x4b, 0xc2, 0x4e, 0xde, 0x58, 0x0b, 0x1a, 0x9d, 0x30, 0x91, 0x6b, 0x10, 0x6c, 0xf0, 0x41, 0xb3, 0x00, 0xad, 0xc0, 0xdd, 0x75, 0x1b, 0x64, 0x8b, 0xa9, 0x5d, 0x58, 0x44, 0x15, 0xee, 0x1a, 0x26, 0xa1, 0x58, 0xa3, 0xc8, 0x08, 0xa3, 0x50, 0x7c, 0xc0, 0x61, 0x14, 0xe0, 0xc8, 0xc2, 0x28, 0xf4, 0x1d, 0x28, 0x8c, 0xc2, 0xd0, 0x81, 0xc3, 0x28, 0xf4, 0xf7, 0x14, 0x46, 0x01, 0xc3, 0x09, 0x29, 0x7b, 0xd2, 0xff, 0xcb, 0x6e, 0x83, 0x88, 0x0b, 0x07, 0x0f, 0x03, 0x33, 0x73, 0x77, 0xbf, 0x7c, 0x02, 0x67, 0x52, 0xe0, 0x9c, 0x92, 0xe8, 0xa3, 0x30, 0xed, 0x34, 0x1a, 0xfe, 0x2d, 0x35, 0xa8, 0x4b, 0x61, 0xcd, 0x69, 0x70, 0x13, 0xc8, 0x20, 0xe3, 0x7a, 0xea, 0xee, 0x7e, 0x79, 0x7a, 0x2e, 0x87, 0x06, 0xe7, 0x96, 0x46, 0xaf, 0x42, 0xa9, 0x15, 0xf8, 0xb5, 0x35, 0xed, 0xf9, 0xf1, 0x19, 0xda, 0x81, 0x15, 0x09, 0xbc, 0xb7, 0x5f, 0x1e, 0x55, 0x7f, 0xd8, 0x81, 0x1f, 0x17, 0xc8, 0x88, 0x8b, 0x30, 0x7c, 0xa8, 0x71, 0x11, 0x76, 0x60, 0xaa, 0x4a, 0x02, 0xd7, 0x69, 0xb8, 0x77, 0xa8, 0xbc, 0x2c, 0xf7, 0xa7, 0x0d, 0x28, 0x05, 0x89, 0x1d, 0xb9, 0xa7, 0x50, 0xc4, 0x5a, 0x36, 0x2e, 0xb9, 0x03, 0xc7, 0x8c, 0xec, 0xff, 0x66, 0xc1, 0xa0, 0x78, 0xc9, 0x77, 0x04, 0x52, 0xe3, 0x9c, 0x61, 0x94, 0x28, 0x67, 0x77, 0x18, 0x6b, 0x4c, 0xae, 0x39, 0x62, 0x25, 0x61, 0x8e, 0x78, 0xa4, 0x13, 0x93, 0xce, 0x86, 0x88, 0xff, 0xaf, 0x48, 0xa5, 0x77, 0xe3, 0x4d, 0xf9, 0x83, 0xef, 0x82, 0x75, 0x18, 0x0c, 0xc5, 0x9b, 0xe6, 0x42, 0xfe, 0x6b, 0x90, 0xe4, 0x20, 0xc6, 0x5e, 0x74, 0xe2, 0x15, 0xb3, 0x64, 0x92, 0xf9, 0x58, 0xba, 0xf8, 0x00, 0x1f, 0x4b, 0x77, 0x7b, 0x75, 0xdf, 0x77, 0x18, 0xaf, 0xee, 0xed, 0xaf, 0xb3, 0x93, 0x53, 0x87, 0x1f, 0x81, 0x50, 0x75, 0xc9, 0x3c, 0x63, 0xed, 0x0e, 0x33, 0x4b, 0x34, 0x2a, 0x47, 0xb8, 0xfa, 0x45, 0x0b, 0x4e, 0x67, 0x7c, 0x95, 0x26, 0x69, 0x3d, 0x03, 0x43, 0x4e, 0xbb, 0xee, 0xaa, 0xb5, 0xac, 0x99, 0x26, 0xe7, 0x04, 0x1c, 0x2b, 0x0a, 0xb4, 0x00, 0x93, 0xe4, 0x76, 0xcb, 0xe5, 0x86, 0x5c, 0xdd, 0xf9, 0xb8, 0xc8, 0x9f, 0x7f, 0x2e, 0x25, 0x91, 0x38, 0x4d, 0xaf, 0x02, 0x44, 0x15, 0x73, 0x03, 0x44, 0xfd, 0xbc, 0x05, 0xc3, 0xea, 0x55, 0xef, 0x03, 0xef, 0xed, 0x8f, 0x98, 0xbd, 0xfd, 0x70, 0x87, 0xde, 0xce, 0xe9, 0xe6, 0x3f, 0x28, 0xa8, 0xf6, 0x56, 0xfc, 0x20, 0xea, 0x41, 0x82, 0xbb, 0xff, 0x87, 0x13, 0x17, 0x61, 0xd8, 0x69, 0xb5, 0x24, 0x42, 0x7a, 0xc0, 0xb1, 0xc0, 0xf2, 0x31, 0x18, 0xeb, 0x34, 0xea, 0x1d, 0x47, 0x31, 0xf7, 0x1d, 0x47, 0x1d, 0x20, 0x72, 0x82, 0x2d, 0x12, 0x51, 0x98, 0x70, 0xd8, 0xcd, 0xdf, 0x6f, 0xda, 0x91, 0xdb, 0x98, 0x75, 0xbd, 0x28, 0x8c, 0x82, 0xd9, 0x15, 0x2f, 0xba, 0x1a, 0xf0, 0x2b, 0xa4, 0x16, 0x62, 0x4d, 0xf1, 0xc2, 0x1a, 0x5f, 0x19, 0xc1, 0x82, 0xd5, 0xd1, 0x6f, 0xba, 0x52, 0xac, 0x0b, 0x38, 0x56, 0x14, 0xf6, 0x07, 0xd9, 0xe9, 0xc3, 0xfa, 0xf4, 0x60, 0xe1, 0xc5, 0x7e, 0x72, 0x44, 0x8d, 0x06, 0x33, 0x8a, 0x2e, 0xea, 0x41, 0xcc, 0x3a, 0x6f, 0xf6, 0xb4, 0x62, 0xfd, 0x45, 0x64, 0x1c, 0xe9, 0x0c, 0x7d, 0x3c, 0xe5, 0x1e, 0xf3, 0x6c, 0x97, 0x53, 0xe3, 0x00, 0x0e, 0x31, 0x2c, 0xcb, 0x14, 0xcb, 0xc1, 0xb3, 0x52, 0x11, 0xeb, 0x42, 0xcb, 0x32, 0x25, 0x10, 0x38, 0xa6, 0xa1, 0xc2, 0x94, 0xfa, 0x13, 0x4e, 0xa3, 0x38, 0x18, 0xb1, 0xa2, 0x0e, 0xb1, 0x46, 0x81, 0x2e, 0x08, 0x85, 0x02, 0xb7, 0x0b, 0x3c, 0x9c, 0x50, 0x28, 0xc8, 0xee, 0xd2, 0xb4, 0x40, 0x17, 0x61, 0x98, 0xdc, 0x8e, 0x48, 0xe0, 0x39, 0x0d, 0x5a, 0x43, 0x7f, 0x1c, 0x3f, 0x73, 0x29, 0x06, 0x63, 0x9d, 0x06, 0x6d, 0xc0, 0x78, 0xc8, 0xf5, 0x6c, 0x2a, 0x04, 0x3e, 0xd7, 0x57, 0x3e, 0xa5, 0xde, 0x53, 0x9b, 0xe8, 0x7b, 0x0c, 0xc4, 0x77, 0x27, 0x19, 0x65, 0x22, 0xc9, 0x02, 0xbd, 0x06, 0x63, 0x0d, 0xdf, 0xa9, 0xcf, 0x3b, 0x0d, 0xc7, 0xab, 0xb1, 0xfe, 0x19, 0x32, 0x73, 0x95, 0xaf, 0x1a, 0x58, 0x9c, 0xa0, 0xa6, 0xc2, 0x9b, 0x0e, 0x11, 0x61, 0xda, 0x1c, 0x6f, 0x8b, 0x84, 0xd3, 0x25, 0xf6, 0x55, 0x4c, 0x78, 0x5b, 0xcd, 0xa1, 0xc1, 0xb9, 0xa5, 0xd1, 0x4b, 0x30, 0x22, 0x3f, 0x5f, 0x0b, 0xca, 0x12, 0x3f, 0x89, 0xd1, 0x70, 0xd8, 0xa0, 0x44, 0x21, 0x1c, 0x97, 0xff, 0x37, 0x02, 0x67, 0x73, 0xd3, 0xad, 0x89, 0x48, 0x05, 0xfc, 0xf9, 0xf0, 0x87, 0xe5, 0x5b, 0xc5, 0xa5, 0x2c, 0xa2, 0x7b, 0xfb, 0xe5, 0x53, 0xa2, 0xd7, 0x32, 0xf1, 0x38, 0x9b, 0x37, 0x5a, 0x83, 0xa9, 0x6d, 0xe2, 0x34, 0xa2, 0xed, 0x85, 0x6d, 0x52, 0xdb, 0x91, 0x0b, 0x8e, 0x85, 0x79, 0xd1, 0x9e, 0x8e, 0x5c, 0x4e, 0x93, 0xe0, 0xac, 0x72, 0xe8, 0x2d, 0x98, 0x6e, 0xb5, 0x6f, 0x36, 0xdc, 0x70, 0x7b, 0xdd, 0x8f, 0x98, 0x13, 0xd2, 0x5c, 0xbd, 0x1e, 0x90, 0x90, 0xbf, 0x2e, 0x65, 0x47, 0xaf, 0x0c, 0xa4, 0x53, 0xc9, 0xa1, 0xc3, 0xb9, 0x1c, 0xd0, 0x1d, 0x38, 0x9e, 0x98, 0x08, 0x22, 0x22, 0xc6, 0x58, 0x7e, 0x02, 0x9c, 0x6a, 0x56, 0x01, 0x11, 0x5c, 0x26, 0x0b, 0x85, 0xb3, 0xab, 0x40, 0x2f, 0x03, 0xb8, 0xad, 0x65, 0xa7, 0xe9, 0x36, 0xe8, 0x55, 0x71, 0x8a, 0xcd, 0x11, 0x7a, 0x6d, 0x80, 0x95, 0x8a, 0x84, 0xd2, 0xbd, 0x59, 0xfc, 0xdb, 0xc3, 0x1a, 0x35, 0x5a, 0x85, 0x31, 0xf1, 0x6f, 0x4f, 0x0c, 0xe9, 0xa4, 0xca, 0x95, 0x38, 0x26, 0x4b, 0xa8, 0x71, 0x4c, 0x40, 0x70, 0xa2, 0x2c, 0xda, 0x82, 0xd3, 0x32, 0x51, 0xa3, 0x3e, 0x3f, 0xe5, 0x18, 0x84, 0x2c, 0xeb, 0xcc, 0x10, 0x7f, 0x95, 0x32, 0xd7, 0x89, 0x10, 0x77, 0xe6, 0x43, 0xcf, 0x75, 0x7d, 0x9a, 0xf3, 0x37, 0xc7, 0xc7, 0xe3, 0x88, 0x83, 0xab, 0x49, 0x24, 0x4e, 0xd3, 0x23, 0x1f, 0x8e, 0xbb, 0x5e, 0xd6, 0xac, 0x3e, 0xc1, 0x18, 0x7d, 0x88, 0x3f, 0xb7, 0xee, 0x3c, 0xa3, 0x33, 0xf1, 0x38, 0x9b, 0xef, 0x3b, 0xf3, 0xfb, 0xfb, 0x43, 0x8b, 0x96, 0xd6, 0xa4, 0x73, 0xf4, 0x29, 0x18, 0xd1, 0x3f, 0x4a, 0x48, 0x1a, 0xe7, 0xb2, 0x85, 0x57, 0x6d, 0x4f, 0xe0, 0xb2, 0xbd, 0x5a, 0xf7, 0x3a, 0x0e, 0x1b, 0x1c, 0x51, 0x2d, 0x23, 0xb6, 0xc1, 0x85, 0xde, 0x24, 0x99, 0xde, 0xdd, 0xde, 0x08, 0x64, 0x4f, 0x77, 0xb4, 0x0a, 0x43, 0xb5, 0x86, 0x4b, 0xbc, 0x68, 0xa5, 0xd2, 0x29, 0x7a, 0xe3, 0x82, 0xa0, 0x11, 0xeb, 0x47, 0x24, 0x90, 0xe1, 0x30, 0xac, 0x38, 0xd8, 0x2f, 0xc1, 0x70, 0xb5, 0x41, 0x48, 0x8b, 0x3f, 0xdf, 0x41, 0x4f, 0xb2, 0xdb, 0x04, 0x93, 0x07, 0x2d, 0x26, 0x0f, 0xea, 0x17, 0x05, 0x26, 0x09, 0x4a, 0xbc, 0xfd, 0x5b, 0x05, 0x28, 0x77, 0xc9, 0x63, 0x94, 0x30, 0x60, 0x59, 0x3d, 0x19, 0xb0, 0xe6, 0x60, 0x3c, 0xfe, 0xa7, 0xeb, 0xc6, 0x94, 0x0f, 0xec, 0x75, 0x13, 0x8d, 0x93, 0xf4, 0x3d, 0x3f, 0x67, 0xd0, 0x6d, 0x60, 0x7d, 0x5d, 0x1f, 0xe4, 0x18, 0xb6, 0xef, 0xfe, 0xde, 0x2f, 0xcc, 0xb9, 0x76, 0x4c, 0xfb, 0xeb, 0x05, 0x38, 0xae, 0xba, 0xf0, 0x3b, 0xb7, 0xe3, 0xae, 0xa5, 0x3b, 0xee, 0x10, 0xac, 0xc0, 0xf6, 0x55, 0x18, 0xe0, 0x81, 0x2c, 0x7b, 0x10, 0xd4, 0x1f, 0x35, 0xe3, 0x6b, 0x2b, 0xd9, 0xd0, 0x88, 0xb1, 0xfd, 0x03, 0x16, 0x8c, 0x27, 0xde, 0xc5, 0x21, 0xac, 0x3d, 0x9e, 0xbe, 0x1f, 0x61, 0x3a, 0x4b, 0x4c, 0x3f, 0x0b, 0x7d, 0xdb, 0x7e, 0x18, 0x25, 0x5d, 0x44, 0x2e, 0xfb, 0x61, 0x84, 0x19, 0xc6, 0xfe, 0x63, 0x0b, 0xfa, 0x37, 0x1c, 0xd7, 0x8b, 0xa4, 0x39, 0xc1, 0xca, 0x31, 0x27, 0xf4, 0xf2, 0x5d, 0xe8, 0x45, 0x18, 0x20, 0x9b, 0x9b, 0xa4, 0x16, 0x89, 0x51, 0x95, 0x41, 0x14, 0x06, 0x96, 0x18, 0x94, 0x4a, 0x8e, 0xac, 0x32, 0xfe, 0x17, 0x0b, 0x62, 0x74, 0x03, 0x4a, 0x91, 0xdb, 0x24, 0x73, 0xf5, 0xba, 0x30, 0xb2, 0xdf, 0x47, 0xe4, 0x8f, 0x0d, 0xc9, 0x00, 0xc7, 0xbc, 0xec, 0x2f, 0x15, 0x00, 0xe2, 0x08, 0x60, 0xdd, 0x3e, 0x71, 0x3e, 0x65, 0x7e, 0x3d, 0x97, 0x61, 0x7e, 0x45, 0x31, 0xc3, 0x0c, 0xdb, 0xab, 0xea, 0xa6, 0x62, 0x4f, 0xdd, 0xd4, 0x77, 0x90, 0x6e, 0x5a, 0x80, 0xc9, 0x38, 0x82, 0x99, 0x19, 0xc0, 0x91, 0x1d, 0xba, 0x1b, 0x49, 0x24, 0x4e, 0xd3, 0xdb, 0x04, 0xce, 0xaa, 0x40, 0x4e, 0xe2, 0x2c, 0x64, 0x1e, 0xe4, 0xba, 0x39, 0xbb, 0x4b, 0x3f, 0xc5, 0xf6, 0xe5, 0x42, 0xae, 0x7d, 0xf9, 0x27, 0x2c, 0x38, 0x96, 0xac, 0x87, 0x3d, 0xb7, 0xfe, 0x82, 0x05, 0xc7, 0xe3, 0x34, 0x1e, 0x69, 0x9b, 0xfe, 0x0b, 0x1d, 0x83, 0x53, 0xe5, 0xb4, 0x38, 0x8e, 0xd6, 0xb1, 0x96, 0xc5, 0x1a, 0x67, 0xd7, 0x68, 0xff, 0xd7, 0x3e, 0x98, 0xce, 0x8b, 0x6a, 0xc5, 0x1e, 0x98, 0x38, 0xb7, 0xab, 0x3b, 0xe4, 0x96, 0x70, 0xe3, 0x8f, 0x1f, 0x98, 0x70, 0x30, 0x96, 0xf8, 0x64, 0xe6, 0x96, 0x42, 0x8f, 0x99, 0x5b, 0xb6, 0x61, 0xf2, 0xd6, 0x36, 0xf1, 0xae, 0x79, 0xa1, 0x13, 0xb9, 0xe1, 0xa6, 0xcb, 0x2c, 0xd2, 0x7c, 0xde, 0xc8, 0xec, 0xe3, 0x93, 0x37, 0x92, 0x04, 0xf7, 0xf6, 0xcb, 0xa7, 0x0d, 0x40, 0xdc, 0x64, 0xbe, 0x91, 0xe0, 0x34, 0xd3, 0x74, 0xe2, 0x9b, 0xbe, 0x07, 0x9c, 0xf8, 0xa6, 0xe9, 0x0a, 0x3f, 0x16, 0xf9, 0x7a, 0x80, 0xdd, 0x35, 0xd7, 0x14, 0x14, 0x6b, 0x14, 0xe8, 0x13, 0x80, 0xf4, 0xcc, 0x65, 0x46, 0x50, 0xd1, 0x67, 0xef, 0xee, 0x97, 0xd1, 0x7a, 0x0a, 0x7b, 0x6f, 0xbf, 0x3c, 0x45, 0xa1, 0x2b, 0x1e, 0xbd, 0xb3, 0xc6, 0x91, 0xd8, 0x32, 0x18, 0xa1, 0x1b, 0x30, 0x41, 0xa1, 0x6c, 0x45, 0xc9, 0x88, 0xa5, 0xfc, 0x9e, 0xf9, 0xf4, 0xdd, 0xfd, 0xf2, 0xc4, 0x7a, 0x02, 0x97, 0xc7, 0x3a, 0xc5, 0x24, 0x23, 0xff, 0xcd, 0x50, 0xaf, 0xf9, 0x6f, 0xec, 0x2f, 0x58, 0x70, 0x92, 0x1e, 0x70, 0xf5, 0xd5, 0x1c, 0xb3, 0xb4, 0xd3, 0x72, 0xb9, 0xe1, 0x43, 0x1c, 0x35, 0x4c, 0xc1, 0x56, 0x59, 0xe1, 0x66, 0x0f, 0x85, 0xa5, 0x3b, 0xfc, 0x8e, 0xeb, 0xd5, 0x93, 0x3b, 0xfc, 0x15, 0xd7, 0xab, 0x63, 0x86, 0x51, 0x47, 0x56, 0x31, 0xf7, 0x11, 0xc3, 0x57, 0xe9, 0x5a, 0xa5, 0x6d, 0xf9, 0x96, 0x36, 0x03, 0x3d, 0xad, 0x1b, 0x29, 0x85, 0x3f, 0x62, 0xae, 0x81, 0xf2, 0xf3, 0x16, 0x88, 0x47, 0xcf, 0x3d, 0x9c, 0xc9, 0x6f, 0xc2, 0xc8, 0x6e, 0x3a, 0xab, 0xe3, 0xd9, 0xfc, 0x57, 0xe0, 0x22, 0x56, 0xbb, 0x12, 0xd1, 0x8d, 0x0c, 0x8e, 0x06, 0x2f, 0xbb, 0x0e, 0x02, 0xbb, 0x48, 0x98, 0x29, 0xa2, 0x7b, 0x6b, 0x9e, 0x03, 0xa8, 0x33, 0x5a, 0x96, 0xea, 0xb9, 0x60, 0x4a, 0x5c, 0x8b, 0x0a, 0x83, 0x35, 0x2a, 0xfb, 0x77, 0x0b, 0x30, 0x2c, 0xb3, 0x08, 0xb6, 0xbd, 0x5e, 0x14, 0x86, 0x07, 0x4a, 0x2b, 0x8e, 0x2e, 0x40, 0x89, 0x69, 0xb4, 0x2b, 0xb1, 0x9e, 0x55, 0xe9, 0x93, 0xd6, 0x24, 0x02, 0xc7, 0x34, 0x4c, 0x7c, 0x6f, 0xdf, 0x64, 0xe4, 0x89, 0x27, 0xba, 0x55, 0x0e, 0xc6, 0x12, 0x8f, 0x3e, 0x0a, 0x13, 0xbc, 0x5c, 0xe0, 0xb7, 0x9c, 0x2d, 0x6e, 0x05, 0xeb, 0x57, 0x71, 0x4f, 0x26, 0xd6, 0x12, 0xb8, 0x7b, 0xfb, 0xe5, 0x63, 0x49, 0x18, 0x33, 0xef, 0xa6, 0xb8, 0x30, 0x67, 0x37, 0x5e, 0x09, 0xdd, 0xd5, 0x53, 0x3e, 0x72, 0x31, 0x0a, 0xeb, 0x74, 0xf6, 0xa7, 0x00, 0xa5, 0xf3, 0x29, 0xa2, 0xd7, 0xb9, 0xb3, 0xb4, 0x1b, 0x90, 0x7a, 0x27, 0x73, 0xaf, 0x1e, 0xdd, 0x43, 0xbe, 0xae, 0xe3, 0xa5, 0xb0, 0x2a, 0x6f, 0xff, 0x60, 0x1f, 0x4c, 0x24, 0xe3, 0x09, 0xa0, 0xcb, 0x30, 0xc0, 0x45, 0x4a, 0xc1, 0xbe, 0x83, 0x37, 0x91, 0x16, 0x85, 0x80, 0x1d, 0xae, 0x42, 0x2a, 0x15, 0xe5, 0xd1, 0x5b, 0x30, 0x5c, 0xf7, 0x6f, 0x79, 0xb7, 0x9c, 0xa0, 0x3e, 0x57, 0x59, 0x11, 0xd3, 0x39, 0x53, 0xc5, 0xb1, 0x18, 0x93, 0xe9, 0x91, 0x0d, 0x98, 0xe5, 0x3c, 0x46, 0x61, 0x9d, 0x1d, 0xda, 0x60, 0x29, 0x42, 0x36, 0xdd, 0xad, 0x35, 0xa7, 0xd5, 0xe9, 0xe5, 0xcc, 0x82, 0x24, 0xd2, 0x38, 0x8f, 0x8a, 0x3c, 0x22, 0x1c, 0x81, 0x63, 0x46, 0xe8, 0x33, 0x30, 0x15, 0xe6, 0x18, 0x5d, 0xf2, 0xd2, 0xeb, 0x76, 0xb2, 0x43, 0xcc, 0x3f, 0x74, 0x77, 0xbf, 0x3c, 0x95, 0x65, 0x9e, 0xc9, 0xaa, 0x06, 0xdd, 0x06, 0x24, 0x94, 0x9b, 0x1b, 0x41, 0x3b, 0x8c, 0xe6, 0xdb, 0x5e, 0xbd, 0x21, 0x53, 0x88, 0x64, 0x27, 0xe0, 0x4e, 0x51, 0x6b, 0x75, 0xb3, 0xf8, 0xa2, 0x69, 0x0a, 0x9c, 0x51, 0x87, 0xfd, 0xf9, 0x3e, 0x98, 0x91, 0x09, 0x4c, 0x33, 0x5e, 0x08, 0x7c, 0xce, 0x4a, 0x3c, 0x11, 0x78, 0x39, 0x7f, 0x57, 0x7a, 0x60, 0x0f, 0x05, 0xbe, 0x98, 0x7e, 0x28, 0xf0, 0xea, 0x01, 0x9b, 0x71, 0x68, 0xcf, 0x05, 0xbe, 0x63, 0x7d, 0xfc, 0xbf, 0x7c, 0x0c, 0x8c, 0x73, 0xc4, 0x48, 0xf8, 0x6f, 0x1d, 0x52, 0xc2, 0x7f, 0x0c, 0x43, 0xa4, 0xd9, 0x8a, 0xf6, 0x16, 0xdd, 0x40, 0xb4, 0x38, 0x93, 0xe7, 0x92, 0xa0, 0x49, 0xf3, 0x94, 0x18, 0xac, 0xf8, 0xa0, 0x5d, 0x98, 0xdc, 0xaa, 0x91, 0x44, 0xce, 0xef, 0x62, 0xfe, 0xba, 0xbd, 0xb4, 0xb0, 0xd4, 0x21, 0xe1, 0x37, 0xbb, 0xa9, 0xa4, 0x48, 0x70, 0xba, 0x0a, 0x96, 0x6f, 0xdc, 0xb9, 0x15, 0x2e, 0x35, 0x9c, 0x30, 0x72, 0x6b, 0xf3, 0x0d, 0xbf, 0xb6, 0x53, 0x8d, 0xfc, 0x40, 0x26, 0x1c, 0xcb, 0xbc, 0x28, 0xcc, 0xdd, 0xa8, 0xa6, 0xe8, 0xd3, 0xf9, 0xc6, 0xb3, 0xa8, 0x70, 0x66, 0x5d, 0x68, 0x1d, 0x06, 0xb7, 0xdc, 0x08, 0x93, 0x96, 0x2f, 0x76, 0x8b, 0xcc, 0xad, 0xf0, 0x12, 0x27, 0x49, 0xe7, 0xff, 0x16, 0x08, 0x2c, 0x99, 0xa0, 0xd7, 0xd5, 0x21, 0x30, 0x90, 0xaf, 0x2d, 0x4c, 0x7b, 0x5e, 0x65, 0x1e, 0x03, 0xaf, 0x41, 0xd1, 0xdb, 0x0c, 0x3b, 0xc5, 0x0b, 0x59, 0x5f, 0xae, 0xa6, 0xf3, 0x72, 0xaf, 0x2f, 0x57, 0x31, 0x2d, 0xc8, 0x9e, 0x16, 0x86, 0xb5, 0xd0, 0x15, 0xa9, 0x53, 0x32, 0x5f, 0x5a, 0xae, 0x54, 0x17, 0xaa, 0x2b, 0xe9, 0x5c, 0xe4, 0x0c, 0x8c, 0x79, 0x71, 0x74, 0x1d, 0x4a, 0x5b, 0x7c, 0xe3, 0xdb, 0x0c, 0x45, 0x12, 0xe3, 0xcc, 0xc3, 0xe8, 0x92, 0x24, 0x4a, 0x67, 0x20, 0x57, 0x28, 0x1c, 0xb3, 0x42, 0x9f, 0xb7, 0xe0, 0x78, 0x32, 0x0b, 0x34, 0x7b, 0x10, 0x24, 0x9c, 0x94, 0x5e, 0xec, 0x25, 0x2d, 0x37, 0x2b, 0x60, 0x54, 0xc8, 0x14, 0xfc, 0x99, 0x64, 0x38, 0xbb, 0x3a, 0xda, 0xd1, 0xc1, 0xcd, 0xba, 0x70, 0x96, 0xc9, 0xec, 0xe8, 0x44, 0xf0, 0x14, 0xde, 0xd1, 0x78, 0x7e, 0x11, 0xd3, 0x82, 0x68, 0x03, 0x60, 0xb3, 0x41, 0x64, 0xc2, 0xfa, 0x91, 0xfc, 0xd3, 0x7f, 0x59, 0x51, 0xc9, 0x6c, 0x41, 0x54, 0x26, 0x8c, 0xa1, 0x58, 0xe3, 0x43, 0xa7, 0x52, 0xcd, 0xf5, 0xea, 0x24, 0x60, 0xe6, 0x93, 0x9c, 0xa9, 0xb4, 0xc0, 0x28, 0xd2, 0x53, 0x89, 0xc3, 0xb1, 0xe0, 0xc0, 0x78, 0x91, 0xd6, 0xf6, 0x66, 0xd8, 0x29, 0x2c, 0xfe, 0x02, 0x69, 0x6d, 0x27, 0x26, 0x14, 0xe7, 0xc5, 0xe0, 0x58, 0x70, 0xa0, 0x4b, 0x66, 0x93, 0x2e, 0x20, 0x12, 0x4c, 0x8f, 0xe7, 0x2f, 0x99, 0x65, 0x4e, 0x92, 0x5e, 0x32, 0x02, 0x81, 0x25, 0x13, 0xf4, 0x49, 0x53, 0xda, 0x99, 0x60, 0x3c, 0x9f, 0xee, 0x22, 0xed, 0x18, 0x7c, 0x3b, 0xcb, 0x3b, 0x2f, 0x43, 0x61, 0xb3, 0xc6, 0xcc, 0x2e, 0x39, 0x0a, 0xee, 0xe5, 0x05, 0x83, 0x1b, 0x0b, 0x33, 0xbd, 0xbc, 0x80, 0x0b, 0x9b, 0x35, 0x3a, 0xf5, 0x9d, 0x3b, 0xed, 0x80, 0x2c, 0xbb, 0x0d, 0x22, 0x42, 0xe4, 0x67, 0x4e, 0xfd, 0x39, 0x49, 0x94, 0x9e, 0xfa, 0x0a, 0x85, 0x63, 0x56, 0x94, 0x6f, 0x2c, 0x83, 0x4d, 0xe5, 0xf3, 0x55, 0xa2, 0x56, 0x9a, 0x6f, 0xa6, 0x14, 0xb6, 0x03, 0xa3, 0xbb, 0x61, 0x6b, 0x9b, 0xc8, 0x5d, 0x91, 0x19, 0x84, 0x72, 0x5e, 0xd3, 0x5f, 0x17, 0x84, 0x6e, 0x10, 0xb5, 0x9d, 0x46, 0x6a, 0x23, 0x67, 0x7a, 0x80, 0xeb, 0x3a, 0x33, 0x6c, 0xf2, 0xa6, 0x13, 0xe1, 0x6d, 0x1e, 0xf2, 0x8a, 0x99, 0x86, 0x72, 0x26, 0x42, 0x46, 0x54, 0x2c, 0x3e, 0x11, 0x04, 0x02, 0x4b, 0x26, 0xaa, 0xb3, 0xd9, 0x01, 0x74, 0xa2, 0x4b, 0x67, 0xa7, 0xda, 0x1b, 0x77, 0x36, 0x3b, 0x70, 0x62, 0x56, 0xec, 0xa0, 0x69, 0x65, 0x24, 0xcc, 0x9e, 0x7e, 0x28, 0xff, 0xa0, 0xe9, 0x96, 0x60, 0x9b, 0x1f, 0x34, 0x59, 0x54, 0x38, 0xb3, 0x2e, 0xfa, 0x71, 0x2d, 0x19, 0xbd, 0x4c, 0x84, 0xf1, 0x7f, 0x32, 0x27, 0xf8, 0x5f, 0x3a, 0xc4, 0x19, 0xff, 0x38, 0x85, 0xc2, 0x31, 0x2b, 0x54, 0x87, 0xb1, 0x96, 0x11, 0x15, 0x93, 0xa5, 0x23, 0xc8, 0x91, 0x0b, 0xb2, 0xe2, 0x67, 0x72, 0x75, 0x86, 0x89, 0xc1, 0x09, 0x9e, 0xcc, 0x37, 0x8c, 0x3f, 0xf4, 0x62, 0xd9, 0x0a, 0x72, 0x86, 0x3a, 0xe3, 0x2d, 0x18, 0x1f, 0x6a, 0x81, 0xc0, 0x92, 0x09, 0xed, 0x0d, 0xf1, 0x3c, 0xc9, 0x0f, 0x59, 0xd2, 0x8f, 0x3c, 0x13, 0x6e, 0x96, 0x4d, 0x43, 0x86, 0x82, 0x16, 0x28, 0x1c, 0xb3, 0xa2, 0x3b, 0x39, 0x3d, 0xf0, 0x4e, 0xe5, 0xef, 0xe4, 0xc9, 0xe3, 0x8e, 0xed, 0xe4, 0xf4, 0xb0, 0x2b, 0x8a, 0xa3, 0x4e, 0x45, 0x2e, 0x66, 0x09, 0x0b, 0x72, 0xda, 0xa5, 0x42, 0x1f, 0xa7, 0xdb, 0xa5, 0x50, 0x38, 0x66, 0x65, 0xff, 0x60, 0x01, 0xce, 0x74, 0x5e, 0x6f, 0xb1, 0xa1, 0xa6, 0x12, 0x7b, 0xb3, 0x24, 0x0c, 0x35, 0x5c, 0x6d, 0x10, 0x53, 0xf5, 0x1c, 0xcc, 0xf4, 0x12, 0x4c, 0xaa, 0x47, 0x64, 0x0d, 0xb7, 0xb6, 0xb7, 0x1e, 0x6b, 0x6a, 0x54, 0xd8, 0x8f, 0x6a, 0x92, 0x00, 0xa7, 0xcb, 0xa0, 0x39, 0x18, 0x37, 0x80, 0x2b, 0x8b, 0x42, 0x3d, 0x10, 0x87, 0xc8, 0x37, 0xd1, 0x38, 0x49, 0x6f, 0xff, 0x9c, 0x05, 0x0f, 0xe5, 0xe4, 0x2b, 0xee, 0x39, 0x56, 0xe7, 0x26, 0x8c, 0xb7, 0xcc, 0xa2, 0x5d, 0xc2, 0x0b, 0x1b, 0x59, 0x91, 0x55, 0x5b, 0x13, 0x08, 0x9c, 0x64, 0x6a, 0xff, 0x4c, 0x01, 0x4e, 0x77, 0xf4, 0x8a, 0x46, 0x18, 0x4e, 0x6c, 0x35, 0x43, 0x67, 0x21, 0x20, 0x75, 0xe2, 0x45, 0xae, 0xd3, 0xa8, 0xb6, 0x48, 0x4d, 0x33, 0xb5, 0x31, 0xf7, 0xe2, 0x4b, 0x6b, 0xd5, 0xb9, 0x34, 0x05, 0xce, 0x29, 0x89, 0x96, 0x01, 0xa5, 0x31, 0x62, 0x84, 0xd9, 0xd5, 0x34, 0xcd, 0x0f, 0x67, 0x94, 0x40, 0x1f, 0x84, 0x51, 0xe5, 0x6d, 0xad, 0x8d, 0x38, 0xdb, 0xd8, 0xb1, 0x8e, 0xc0, 0x26, 0x1d, 0xba, 0xc8, 0x73, 0xa7, 0x88, 0x2c, 0x3b, 0xc2, 0x2e, 0x37, 0x2e, 0x13, 0xa3, 0x08, 0x30, 0xd6, 0x69, 0xe6, 0x5f, 0xfa, 0xed, 0x6f, 0x9e, 0x79, 0xdf, 0xef, 0x7f, 0xf3, 0xcc, 0xfb, 0xfe, 0xe8, 0x9b, 0x67, 0xde, 0xf7, 0x3d, 0x77, 0xcf, 0x58, 0xbf, 0x7d, 0xf7, 0x8c, 0xf5, 0xfb, 0x77, 0xcf, 0x58, 0x7f, 0x74, 0xf7, 0x8c, 0xf5, 0xef, 0xee, 0x9e, 0xb1, 0xbe, 0xf4, 0xa7, 0x67, 0xde, 0xf7, 0x26, 0x8a, 0xa3, 0xdf, 0x5e, 0xa0, 0xa3, 0x73, 0x61, 0xf7, 0xe2, 0xff, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x31, 0xd1, 0xcb, 0x48, 0xf3, 0x1a, 0x01, 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.NodeExpandSecretRef != nil { { size, err := m.NodeExpandSecretRef.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x52 } 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 *ClaimSource) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ClaimSource) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ClaimSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.ResourceClaimTemplateName != nil { i -= len(*m.ResourceClaimTemplateName) copy(dAtA[i:], *m.ResourceClaimTemplateName) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ResourceClaimTemplateName))) i-- dAtA[i] = 0x12 } if m.ResourceClaimName != nil { i -= len(*m.ResourceClaimName) copy(dAtA[i:], *m.ResourceClaimName) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ResourceClaimName))) 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 *ClusterTrustBundleProjection) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ClusterTrustBundleProjection) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ClusterTrustBundleProjection) 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] = 0x28 } i -= len(m.Path) copy(dAtA[i:], m.Path) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) i-- dAtA[i] = 0x22 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] = 0x1a } if m.SignerName != nil { i -= len(*m.SignerName) copy(dAtA[i:], *m.SignerName) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SignerName))) 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 *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 m.Immutable != nil { i-- if *m.Immutable { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x20 } 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.RestartPolicy != nil { i -= len(*m.RestartPolicy) copy(dAtA[i:], *m.RestartPolicy) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.RestartPolicy))) i-- dAtA[i] = 0x1 i-- dAtA[i] = 0xc2 } if len(m.ResizePolicy) > 0 { for iNdEx := len(m.ResizePolicy) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.ResizePolicy[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.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 *ContainerResizePolicy) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ContainerResizePolicy) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ContainerResizePolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.RestartPolicy) copy(dAtA[i:], m.RestartPolicy) i = encodeVarintGenerated(dAtA, i, uint64(len(m.RestartPolicy))) i-- dAtA[i] = 0x12 i -= len(m.ResourceName) copy(dAtA[i:], m.ResourceName) i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceName))) 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.Resources != nil { { size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x5a } if len(m.AllocatedResources) > 0 { keysForAllocatedResources := make([]string, 0, len(m.AllocatedResources)) for k := range m.AllocatedResources { keysForAllocatedResources = append(keysForAllocatedResources, string(k)) } github_com_gogo_protobuf_sortkeys.Strings(keysForAllocatedResources) for iNdEx := len(keysForAllocatedResources) - 1; iNdEx >= 0; iNdEx-- { v := m.AllocatedResources[ResourceName(keysForAllocatedResources[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(keysForAllocatedResources[iNdEx]) copy(dAtA[i:], keysForAllocatedResources[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAllocatedResources[iNdEx]))) i-- dAtA[i] = 0xa i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) i-- dAtA[i] = 0x52 } } 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 if m.AppProtocol != nil { i -= len(*m.AppProtocol) copy(dAtA[i:], *m.AppProtocol) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.AppProtocol))) i-- dAtA[i] = 0x22 } 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.RestartPolicy != nil { i -= len(*m.RestartPolicy) copy(dAtA[i:], *m.RestartPolicy) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.RestartPolicy))) i-- dAtA[i] = 0x1 i-- dAtA[i] = 0xc2 } if len(m.ResizePolicy) > 0 { for iNdEx := len(m.ResizePolicy) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.ResizePolicy[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.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 *EphemeralVolumeSource) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *EphemeralVolumeSource) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *EphemeralVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.VolumeClaimTemplate != nil { { size, err := m.VolumeClaimTemplate.MarshalToSizedBuffer(dAtA[:i]) if 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 { 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 *GRPCAction) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *GRPCAction) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *GRPCAction) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Service != nil { i -= len(*m.Service) copy(dAtA[i:], *m.Service) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Service))) i-- dAtA[i] = 0x12 } i = encodeVarintGenerated(dAtA, i, uint64(m.Port)) i-- dAtA[i] = 0x8 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 *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 *HostIP) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *HostIP) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *HostIP) 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 *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 *LifecycleHandler) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *LifecycleHandler) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LifecycleHandler) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Sleep != nil { { size, err := m.Sleep.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } 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 *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 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] = 0x22 } } if m.IPMode != nil { i -= len(*m.IPMode) copy(dAtA[i:], *m.IPMode) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.IPMode))) i-- dAtA[i] = 0x1a } 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 *ModifyVolumeStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ModifyVolumeStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ModifyVolumeStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.Status) copy(dAtA[i:], m.Status) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) i-- dAtA[i] = 0x12 i -= len(m.TargetVolumeAttributesClassName) copy(dAtA[i:], m.TargetVolumeAttributesClassName) i = encodeVarintGenerated(dAtA, i, uint64(len(m.TargetVolumeAttributesClassName))) 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.DoNotUseExternalID) copy(dAtA[i:], m.DoNotUseExternalID) i = encodeVarintGenerated(dAtA, i, uint64(len(m.DoNotUseExternalID))) 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.VolumeAttributesClassName != nil { i -= len(*m.VolumeAttributesClassName) copy(dAtA[i:], *m.VolumeAttributesClassName) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.VolumeAttributesClassName))) i-- dAtA[i] = 0x4a } if m.DataSourceRef != nil { { size, err := m.DataSourceRef.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x42 } 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 m.ModifyVolumeStatus != nil { { size, err := m.ModifyVolumeStatus.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x4a } if m.CurrentVolumeAttributesClassName != nil { i -= len(*m.CurrentVolumeAttributesClassName) copy(dAtA[i:], *m.CurrentVolumeAttributesClassName) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.CurrentVolumeAttributesClassName))) i-- dAtA[i] = 0x42 } if len(m.AllocatedResourceStatuses) > 0 { keysForAllocatedResourceStatuses := make([]string, 0, len(m.AllocatedResourceStatuses)) for k := range m.AllocatedResourceStatuses { keysForAllocatedResourceStatuses = append(keysForAllocatedResourceStatuses, string(k)) } github_com_gogo_protobuf_sortkeys.Strings(keysForAllocatedResourceStatuses) for iNdEx := len(keysForAllocatedResourceStatuses) - 1; iNdEx >= 0; iNdEx-- { v := m.AllocatedResourceStatuses[ResourceName(keysForAllocatedResourceStatuses[iNdEx])] baseI := i i -= len(v) copy(dAtA[i:], v) i = encodeVarintGenerated(dAtA, i, uint64(len(v))) i-- dAtA[i] = 0x12 i -= len(keysForAllocatedResourceStatuses[iNdEx]) copy(dAtA[i:], keysForAllocatedResourceStatuses[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAllocatedResourceStatuses[iNdEx]))) i-- dAtA[i] = 0xa i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) i-- dAtA[i] = 0x3a } } if len(m.AllocatedResources) > 0 { keysForAllocatedResources := make([]string, 0, len(m.AllocatedResources)) for k := range m.AllocatedResources { keysForAllocatedResources = append(keysForAllocatedResources, string(k)) } github_com_gogo_protobuf_sortkeys.Strings(keysForAllocatedResources) for iNdEx := len(keysForAllocatedResources) - 1; iNdEx >= 0; iNdEx-- { v := m.AllocatedResources[ResourceName(keysForAllocatedResources[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(keysForAllocatedResources[iNdEx]) copy(dAtA[i:], keysForAllocatedResources[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAllocatedResources[iNdEx]))) i-- dAtA[i] = 0xa i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) 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 } } 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 *PersistentVolumeClaimTemplate) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PersistentVolumeClaimTemplate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PersistentVolumeClaimTemplate) 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 *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.VolumeAttributesClassName != nil { i -= len(*m.VolumeAttributesClassName) copy(dAtA[i:], *m.VolumeAttributesClassName) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.VolumeAttributesClassName))) i-- dAtA[i] = 0x52 } 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 if m.LastPhaseTransitionTime != nil { { size, err := m.LastPhaseTransitionTime.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } 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 -= 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 if len(m.MismatchLabelKeys) > 0 { for iNdEx := len(m.MismatchLabelKeys) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.MismatchLabelKeys[iNdEx]) copy(dAtA[i:], m.MismatchLabelKeys[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(m.MismatchLabelKeys[iNdEx]))) i-- dAtA[i] = 0x32 } } if len(m.MatchLabelKeys) > 0 { for iNdEx := len(m.MatchLabelKeys) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.MatchLabelKeys[iNdEx]) copy(dAtA[i:], m.MatchLabelKeys[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(m.MatchLabelKeys[iNdEx]))) i-- dAtA[i] = 0x2a } } 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] = 0x22 } 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 i-- if m.InsecureSkipTLSVerifyBackend { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x48 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 *PodOS) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PodOS) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PodOS) 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 *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 *PodResourceClaim) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PodResourceClaim) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PodResourceClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { 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.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 *PodResourceClaimStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PodResourceClaimStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PodResourceClaimStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.ResourceClaimName != nil { i -= len(*m.ResourceClaimName) copy(dAtA[i:], *m.ResourceClaimName) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ResourceClaimName))) 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 *PodSchedulingGate) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PodSchedulingGate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PodSchedulingGate) 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 *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.SeccompProfile != nil { { size, err := m.SeccompProfile.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x52 } if m.FSGroupChangePolicy != nil { i -= len(*m.FSGroupChangePolicy) copy(dAtA[i:], *m.FSGroupChangePolicy) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FSGroupChangePolicy))) i-- dAtA[i] = 0x4a } 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.ResourceClaims) > 0 { for iNdEx := len(m.ResourceClaims) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.ResourceClaims[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] = 0xba } } if len(m.SchedulingGates) > 0 { for iNdEx := len(m.SchedulingGates) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.SchedulingGates[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] = 0xb2 } } if m.HostUsers != nil { i-- if *m.HostUsers { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x2 i-- dAtA[i] = 0xa8 } if m.OS != nil { { size, err := m.OS.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2 i-- dAtA[i] = 0xa2 } if m.SetHostnameAsFQDN != nil { i-- if *m.SetHostnameAsFQDN { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x2 i-- dAtA[i] = 0x98 } 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.HostIPs) > 0 { for iNdEx := len(m.HostIPs) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.HostIPs[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] = 0x82 } } if len(m.ResourceClaimStatuses) > 0 { for iNdEx := len(m.ResourceClaimStatuses) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.ResourceClaimStatuses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x7a } } i -= len(m.Resize) copy(dAtA[i:], m.Resize) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resize))) i-- dAtA[i] = 0x72 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 *PortStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PortStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PortStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Error != nil { i -= len(*m.Error) copy(dAtA[i:], *m.Error) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Error))) i-- dAtA[i] = 0x1a } i -= len(m.Protocol) copy(dAtA[i:], m.Protocol) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Protocol))) i-- dAtA[i] = 0x12 i = encodeVarintGenerated(dAtA, i, uint64(m.Port)) i-- dAtA[i] = 0x8 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 if m.TerminationGracePeriodSeconds != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.TerminationGracePeriodSeconds)) i-- dAtA[i] = 0x38 } 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.ProbeHandler.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *ProbeHandler) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ProbeHandler) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ProbeHandler) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.GRPC != nil { { size, err := m.GRPC.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } 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 *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 *ResourceClaim) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ResourceClaim) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ResourceClaim) 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 *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.Claims) > 0 { for iNdEx := len(m.Claims) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Claims[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.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 *SeccompProfile) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *SeccompProfile) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SeccompProfile) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.LocalhostProfile != nil { i -= len(*m.LocalhostProfile) copy(dAtA[i:], *m.LocalhostProfile) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.LocalhostProfile))) 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 *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 m.Immutable != nil { i-- if *m.Immutable { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x28 } 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.SeccompProfile != nil { { size, err := m.SeccompProfile.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x5a } 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 if m.AppProtocol != nil { i -= len(*m.AppProtocol) copy(dAtA[i:], *m.AppProtocol) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.AppProtocol))) i-- dAtA[i] = 0x32 } 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.InternalTrafficPolicy != nil { i -= len(*m.InternalTrafficPolicy) copy(dAtA[i:], *m.InternalTrafficPolicy) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.InternalTrafficPolicy))) i-- dAtA[i] = 0x1 i-- dAtA[i] = 0xb2 } if m.LoadBalancerClass != nil { i -= len(*m.LoadBalancerClass) copy(dAtA[i:], *m.LoadBalancerClass) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.LoadBalancerClass))) i-- dAtA[i] = 0x1 i-- dAtA[i] = 0xaa } if m.AllocateLoadBalancerNodePorts != nil { i-- if *m.AllocateLoadBalancerNodePorts { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x1 i-- dAtA[i] = 0xa0 } if len(m.IPFamilies) > 0 { for iNdEx := len(m.IPFamilies) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.IPFamilies[iNdEx]) copy(dAtA[i:], m.IPFamilies[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(m.IPFamilies[iNdEx]))) i-- dAtA[i] = 0x1 i-- dAtA[i] = 0x9a } } if len(m.ClusterIPs) > 0 { for iNdEx := len(m.ClusterIPs) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.ClusterIPs[iNdEx]) copy(dAtA[i:], m.ClusterIPs[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClusterIPs[iNdEx]))) i-- dAtA[i] = 0x1 i-- dAtA[i] = 0x92 } } if m.IPFamilyPolicy != nil { i -= len(*m.IPFamilyPolicy) copy(dAtA[i:], *m.IPFamilyPolicy) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.IPFamilyPolicy))) i-- dAtA[i] = 0x1 i-- dAtA[i] = 0x8a } 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 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.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 *SleepAction) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *SleepAction) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SleepAction) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i = encodeVarintGenerated(dAtA, i, uint64(m.Seconds)) i-- dAtA[i] = 0x8 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 len(m.MatchLabelKeys) > 0 { for iNdEx := len(m.MatchLabelKeys) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.MatchLabelKeys[iNdEx]) copy(dAtA[i:], m.MatchLabelKeys[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(m.MatchLabelKeys[iNdEx]))) i-- dAtA[i] = 0x42 } } if m.NodeTaintsPolicy != nil { i -= len(*m.NodeTaintsPolicy) copy(dAtA[i:], *m.NodeTaintsPolicy) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.NodeTaintsPolicy))) i-- dAtA[i] = 0x3a } if m.NodeAffinityPolicy != nil { i -= len(*m.NodeAffinityPolicy) copy(dAtA[i:], *m.NodeAffinityPolicy) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.NodeAffinityPolicy))) i-- dAtA[i] = 0x32 } if m.MinDomains != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.MinDomains)) i-- dAtA[i] = 0x28 } 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 *TypedObjectReference) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *TypedObjectReference) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *TypedObjectReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Namespace != nil { 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.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.ClusterTrustBundle != nil { { size, err := m.ClusterTrustBundle.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a } 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 *VolumeResourceRequirements) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *VolumeResourceRequirements) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *VolumeResourceRequirements) 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 *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.Ephemeral != nil { { size, err := m.Ephemeral.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1 i-- dAtA[i] = 0xea } 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.HostProcess != nil { i-- if *m.HostProcess { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x20 } 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)) } if m.NodeExpandSecretRef != nil { l = m.NodeExpandSecretRef.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 *ClaimSource) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.ResourceClaimName != nil { l = len(*m.ResourceClaimName) n += 1 + l + sovGenerated(uint64(l)) } if m.ResourceClaimTemplateName != nil { l = len(*m.ResourceClaimTemplateName) 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 *ClusterTrustBundleProjection) 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.SignerName != nil { l = len(*m.SignerName) n += 1 + l + sovGenerated(uint64(l)) } if m.LabelSelector != nil { l = m.LabelSelector.Size() n += 1 + l + sovGenerated(uint64(l)) } l = len(m.Path) n += 1 + l + sovGenerated(uint64(l)) if m.Optional != nil { n += 2 } 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)) } } if m.Immutable != nil { n += 2 } 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)) } if len(m.ResizePolicy) > 0 { for _, e := range m.ResizePolicy { l = e.Size() n += 2 + l + sovGenerated(uint64(l)) } } if m.RestartPolicy != nil { l = len(*m.RestartPolicy) 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 *ContainerResizePolicy) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ResourceName) n += 1 + l + sovGenerated(uint64(l)) l = len(m.RestartPolicy) 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 } if len(m.AllocatedResources) > 0 { for k, v := range m.AllocatedResources { _ = 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 m.Resources != nil { l = m.Resources.Size() n += 1 + l + sovGenerated(uint64(l)) } 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)) if m.AppProtocol != nil { l = len(*m.AppProtocol) 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)) } if len(m.ResizePolicy) > 0 { for _, e := range m.ResizePolicy { l = e.Size() n += 2 + l + sovGenerated(uint64(l)) } } if m.RestartPolicy != nil { l = len(*m.RestartPolicy) n += 2 + l + sovGenerated(uint64(l)) } return n } func (m *EphemeralVolumeSource) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.VolumeClaimTemplate != nil { l = m.VolumeClaimTemplate.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)) 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 *GRPCAction) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 1 + sovGenerated(uint64(m.Port)) if m.Service != nil { l = len(*m.Service) n += 1 + l + sovGenerated(uint64(l)) } 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 *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 *HostIP) 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 *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 *LifecycleHandler) 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)) } if m.Sleep != nil { l = m.Sleep.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)) if m.IPMode != nil { l = len(*m.IPMode) 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 *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 *ModifyVolumeStatus) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.TargetVolumeAttributesClassName) n += 1 + l + sovGenerated(uint64(l)) l = len(m.Status) 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.DoNotUseExternalID) 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)) } if m.DataSourceRef != nil { l = m.DataSourceRef.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.VolumeAttributesClassName != nil { l = len(*m.VolumeAttributesClassName) 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)) } } if len(m.AllocatedResources) > 0 { for k, v := range m.AllocatedResources { _ = 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.AllocatedResourceStatuses) > 0 { for k, v := range m.AllocatedResourceStatuses { _ = 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.CurrentVolumeAttributesClassName != nil { l = len(*m.CurrentVolumeAttributesClassName) n += 1 + l + sovGenerated(uint64(l)) } if m.ModifyVolumeStatus != nil { l = m.ModifyVolumeStatus.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *PersistentVolumeClaimTemplate) 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 *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)) } if m.VolumeAttributesClassName != nil { l = len(*m.VolumeAttributesClassName) 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)) if m.LastPhaseTransitionTime != nil { l = m.LastPhaseTransitionTime.Size() 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)) if m.NamespaceSelector != nil { l = m.NamespaceSelector.Size() n += 1 + l + sovGenerated(uint64(l)) } if len(m.MatchLabelKeys) > 0 { for _, s := range m.MatchLabelKeys { l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } if len(m.MismatchLabelKeys) > 0 { for _, s := range m.MismatchLabelKeys { l = len(s) 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)) } n += 2 return n } func (m *PodOS) 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 *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 *PodResourceClaim) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Name) n += 1 + l + sovGenerated(uint64(l)) l = m.Source.Size() n += 1 + l + sovGenerated(uint64(l)) return n } func (m *PodResourceClaimStatus) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Name) n += 1 + l + sovGenerated(uint64(l)) if m.ResourceClaimName != nil { l = len(*m.ResourceClaimName) n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *PodSchedulingGate) 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 *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)) } if m.FSGroupChangePolicy != nil { l = len(*m.FSGroupChangePolicy) n += 1 + l + sovGenerated(uint64(l)) } if m.SeccompProfile != nil { l = m.SeccompProfile.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)) } } if m.SetHostnameAsFQDN != nil { n += 3 } if m.OS != nil { l = m.OS.Size() n += 2 + l + sovGenerated(uint64(l)) } if m.HostUsers != nil { n += 3 } if len(m.SchedulingGates) > 0 { for _, e := range m.SchedulingGates { l = e.Size() n += 2 + l + sovGenerated(uint64(l)) } } if len(m.ResourceClaims) > 0 { for _, e := range m.ResourceClaims { 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)) } } l = len(m.Resize) n += 1 + l + sovGenerated(uint64(l)) if len(m.ResourceClaimStatuses) > 0 { for _, e := range m.ResourceClaimStatuses { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } if len(m.HostIPs) > 0 { for _, e := range m.HostIPs { l = e.Size() n += 2 + 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 *PortStatus) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 1 + sovGenerated(uint64(m.Port)) l = len(m.Protocol) n += 1 + l + sovGenerated(uint64(l)) if m.Error != nil { l = len(*m.Error) 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.ProbeHandler.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)) if m.TerminationGracePeriodSeconds != nil { n += 1 + sovGenerated(uint64(*m.TerminationGracePeriodSeconds)) } return n } func (m *ProbeHandler) 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)) } if m.GRPC != nil { l = m.GRPC.Size() n += 1 + l + sovGenerated(uint64(l)) } 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 *ResourceClaim) 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 *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)) } } if len(m.Claims) > 0 { for _, e := range m.Claims { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } 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 *SeccompProfile) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Type) n += 1 + l + sovGenerated(uint64(l)) if m.LocalhostProfile != nil { l = len(*m.LocalhostProfile) 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)) } } if m.Immutable != nil { n += 2 } 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)) } if m.SeccompProfile != nil { l = m.SeccompProfile.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)) if m.AppProtocol != nil { l = len(*m.AppProtocol) n += 1 + l + sovGenerated(uint64(l)) } 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.IPFamilyPolicy != nil { l = len(*m.IPFamilyPolicy) n += 2 + l + sovGenerated(uint64(l)) } if len(m.ClusterIPs) > 0 { for _, s := range m.ClusterIPs { l = len(s) n += 2 + l + sovGenerated(uint64(l)) } } if len(m.IPFamilies) > 0 { for _, s := range m.IPFamilies { l = len(s) n += 2 + l + sovGenerated(uint64(l)) } } if m.AllocateLoadBalancerNodePorts != nil { n += 3 } if m.LoadBalancerClass != nil { l = len(*m.LoadBalancerClass) n += 2 + l + sovGenerated(uint64(l)) } if m.InternalTrafficPolicy != nil { l = len(*m.InternalTrafficPolicy) n += 2 + 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)) if len(m.Conditions) > 0 { for _, e := range m.Conditions { l = e.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 *SleepAction) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 1 + sovGenerated(uint64(m.Seconds)) 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)) } if m.MinDomains != nil { n += 1 + sovGenerated(uint64(*m.MinDomains)) } if m.NodeAffinityPolicy != nil { l = len(*m.NodeAffinityPolicy) n += 1 + l + sovGenerated(uint64(l)) } if m.NodeTaintsPolicy != nil { l = len(*m.NodeTaintsPolicy) n += 1 + l + sovGenerated(uint64(l)) } if len(m.MatchLabelKeys) > 0 { for _, s := range m.MatchLabelKeys { l = len(s) 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 *TypedObjectReference) 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)) if m.Namespace != nil { l = len(*m.Namespace) 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)) } if m.ClusterTrustBundle != nil { l = m.ClusterTrustBundle.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *VolumeResourceRequirements) 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 *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)) } if m.Ephemeral != nil { l = m.Ephemeral.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)) } if m.HostProcess != nil { n += 2 } 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) + `,`, `NodeExpandSecretRef:` + strings.Replace(this.NodeExpandSecretRef.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 *ClaimSource) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ClaimSource{`, `ResourceClaimName:` + valueToStringGenerated(this.ResourceClaimName) + `,`, `ResourceClaimTemplateName:` + valueToStringGenerated(this.ResourceClaimTemplateName) + `,`, `}`, }, "") 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 *ClusterTrustBundleProjection) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ClusterTrustBundleProjection{`, `Name:` + valueToStringGenerated(this.Name) + `,`, `SignerName:` + valueToStringGenerated(this.SignerName) + `,`, `LabelSelector:` + strings.Replace(fmt.Sprintf("%v", this.LabelSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, `Path:` + fmt.Sprintf("%v", this.Path) + `,`, `Optional:` + valueToStringGenerated(this.Optional) + `,`, `}`, }, "") 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 + `,`, `Immutable:` + valueToStringGenerated(this.Immutable) + `,`, `}`, }, "") 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 += "}" repeatedStringForResizePolicy := "[]ContainerResizePolicy{" for _, f := range this.ResizePolicy { repeatedStringForResizePolicy += strings.Replace(strings.Replace(f.String(), "ContainerResizePolicy", "ContainerResizePolicy", 1), `&`, ``, 1) + "," } repeatedStringForResizePolicy += "}" 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) + `,`, `ResizePolicy:` + repeatedStringForResizePolicy + `,`, `RestartPolicy:` + valueToStringGenerated(this.RestartPolicy) + `,`, `}`, }, "") 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 *ContainerResizePolicy) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ContainerResizePolicy{`, `ResourceName:` + fmt.Sprintf("%v", this.ResourceName) + `,`, `RestartPolicy:` + fmt.Sprintf("%v", this.RestartPolicy) + `,`, `}`, }, "") 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" } keysForAllocatedResources := make([]string, 0, len(this.AllocatedResources)) for k := range this.AllocatedResources { keysForAllocatedResources = append(keysForAllocatedResources, string(k)) } github_com_gogo_protobuf_sortkeys.Strings(keysForAllocatedResources) mapStringForAllocatedResources := "ResourceList{" for _, k := range keysForAllocatedResources { mapStringForAllocatedResources += fmt.Sprintf("%v: %v,", k, this.AllocatedResources[ResourceName(k)]) } mapStringForAllocatedResources += "}" 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) + `,`, `AllocatedResources:` + mapStringForAllocatedResources + `,`, `Resources:` + strings.Replace(this.Resources.String(), "ResourceRequirements", "ResourceRequirements", 1) + `,`, `}`, }, "") 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) + `,`, `AppProtocol:` + valueToStringGenerated(this.AppProtocol) + `,`, `}`, }, "") 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 += "}" repeatedStringForResizePolicy := "[]ContainerResizePolicy{" for _, f := range this.ResizePolicy { repeatedStringForResizePolicy += strings.Replace(strings.Replace(f.String(), "ContainerResizePolicy", "ContainerResizePolicy", 1), `&`, ``, 1) + "," } repeatedStringForResizePolicy += "}" 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) + `,`, `ResizePolicy:` + repeatedStringForResizePolicy + `,`, `RestartPolicy:` + valueToStringGenerated(this.RestartPolicy) + `,`, `}`, }, "") return s } func (this *EphemeralVolumeSource) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&EphemeralVolumeSource{`, `VolumeClaimTemplate:` + strings.Replace(this.VolumeClaimTemplate.String(), "PersistentVolumeClaimTemplate", "PersistentVolumeClaimTemplate", 1) + `,`, `}`, }, "") 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) + `,`, `}`, }, "") 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 *GRPCAction) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&GRPCAction{`, `Port:` + fmt.Sprintf("%v", this.Port) + `,`, `Service:` + valueToStringGenerated(this.Service) + `,`, `}`, }, "") 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 *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 *HostIP) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&HostIP{`, `IP:` + fmt.Sprintf("%v", this.IP) + `,`, `}`, }, "") 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(), "LifecycleHandler", "LifecycleHandler", 1) + `,`, `PreStop:` + strings.Replace(this.PreStop.String(), "LifecycleHandler", "LifecycleHandler", 1) + `,`, `}`, }, "") return s } func (this *LifecycleHandler) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&LifecycleHandler{`, `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) + `,`, `Sleep:` + strings.Replace(this.Sleep.String(), "SleepAction", "SleepAction", 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" } repeatedStringForPorts := "[]PortStatus{" for _, f := range this.Ports { repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "PortStatus", "PortStatus", 1), `&`, ``, 1) + "," } repeatedStringForPorts += "}" s := strings.Join([]string{`&LoadBalancerIngress{`, `IP:` + fmt.Sprintf("%v", this.IP) + `,`, `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, `IPMode:` + valueToStringGenerated(this.IPMode) + `,`, `Ports:` + repeatedStringForPorts + `,`, `}`, }, "") 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 *ModifyVolumeStatus) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ModifyVolumeStatus{`, `TargetVolumeAttributesClassName:` + fmt.Sprintf("%v", this.TargetVolumeAttributesClassName) + `,`, `Status:` + fmt.Sprintf("%v", this.Status) + `,`, `}`, }, "") 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) + `,`, `DoNotUseExternalID:` + fmt.Sprintf("%v", this.DoNotUseExternalID) + `,`, `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(), "VolumeResourceRequirements", "VolumeResourceRequirements", 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) + `,`, `DataSourceRef:` + strings.Replace(this.DataSourceRef.String(), "TypedObjectReference", "TypedObjectReference", 1) + `,`, `VolumeAttributesClassName:` + valueToStringGenerated(this.VolumeAttributesClassName) + `,`, `}`, }, "") 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 += "}" keysForAllocatedResources := make([]string, 0, len(this.AllocatedResources)) for k := range this.AllocatedResources { keysForAllocatedResources = append(keysForAllocatedResources, string(k)) } github_com_gogo_protobuf_sortkeys.Strings(keysForAllocatedResources) mapStringForAllocatedResources := "ResourceList{" for _, k := range keysForAllocatedResources { mapStringForAllocatedResources += fmt.Sprintf("%v: %v,", k, this.AllocatedResources[ResourceName(k)]) } mapStringForAllocatedResources += "}" keysForAllocatedResourceStatuses := make([]string, 0, len(this.AllocatedResourceStatuses)) for k := range this.AllocatedResourceStatuses { keysForAllocatedResourceStatuses = append(keysForAllocatedResourceStatuses, string(k)) } github_com_gogo_protobuf_sortkeys.Strings(keysForAllocatedResourceStatuses) mapStringForAllocatedResourceStatuses := "map[ResourceName]ClaimResourceStatus{" for _, k := range keysForAllocatedResourceStatuses { mapStringForAllocatedResourceStatuses += fmt.Sprintf("%v: %v,", k, this.AllocatedResourceStatuses[ResourceName(k)]) } mapStringForAllocatedResourceStatuses += "}" s := strings.Join([]string{`&PersistentVolumeClaimStatus{`, `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, `AccessModes:` + fmt.Sprintf("%v", this.AccessModes) + `,`, `Capacity:` + mapStringForCapacity + `,`, `Conditions:` + repeatedStringForConditions + `,`, `AllocatedResources:` + mapStringForAllocatedResources + `,`, `AllocatedResourceStatuses:` + mapStringForAllocatedResourceStatuses + `,`, `CurrentVolumeAttributesClassName:` + valueToStringGenerated(this.CurrentVolumeAttributesClassName) + `,`, `ModifyVolumeStatus:` + strings.Replace(this.ModifyVolumeStatus.String(), "ModifyVolumeStatus", "ModifyVolumeStatus", 1) + `,`, `}`, }, "") return s } func (this *PersistentVolumeClaimTemplate) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PersistentVolumeClaimTemplate{`, `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) + `,`, `}`, }, "") 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) + `,`, `VolumeAttributesClassName:` + valueToStringGenerated(this.VolumeAttributesClassName) + `,`, `}`, }, "") 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) + `,`, `LastPhaseTransitionTime:` + strings.Replace(fmt.Sprintf("%v", this.LastPhaseTransitionTime), "Time", "v1.Time", 1) + `,`, `}`, }, "") 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) + `,`, `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, `MatchLabelKeys:` + fmt.Sprintf("%v", this.MatchLabelKeys) + `,`, `MismatchLabelKeys:` + fmt.Sprintf("%v", this.MismatchLabelKeys) + `,`, `}`, }, "") 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) + `,`, `InsecureSkipTLSVerifyBackend:` + fmt.Sprintf("%v", this.InsecureSkipTLSVerifyBackend) + `,`, `}`, }, "") return s } func (this *PodOS) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PodOS{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `}`, }, "") 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 *PodResourceClaim) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PodResourceClaim{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Source:` + strings.Replace(strings.Replace(this.Source.String(), "ClaimSource", "ClaimSource", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *PodResourceClaimStatus) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PodResourceClaimStatus{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `ResourceClaimName:` + valueToStringGenerated(this.ResourceClaimName) + `,`, `}`, }, "") return s } func (this *PodSchedulingGate) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PodSchedulingGate{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `}`, }, "") 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) + `,`, `FSGroupChangePolicy:` + valueToStringGenerated(this.FSGroupChangePolicy) + `,`, `SeccompProfile:` + strings.Replace(this.SeccompProfile.String(), "SeccompProfile", "SeccompProfile", 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 += "}" repeatedStringForSchedulingGates := "[]PodSchedulingGate{" for _, f := range this.SchedulingGates { repeatedStringForSchedulingGates += strings.Replace(strings.Replace(f.String(), "PodSchedulingGate", "PodSchedulingGate", 1), `&`, ``, 1) + "," } repeatedStringForSchedulingGates += "}" repeatedStringForResourceClaims := "[]PodResourceClaim{" for _, f := range this.ResourceClaims { repeatedStringForResourceClaims += strings.Replace(strings.Replace(f.String(), "PodResourceClaim", "PodResourceClaim", 1), `&`, ``, 1) + "," } repeatedStringForResourceClaims += "}" 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 + `,`, `SetHostnameAsFQDN:` + valueToStringGenerated(this.SetHostnameAsFQDN) + `,`, `OS:` + strings.Replace(this.OS.String(), "PodOS", "PodOS", 1) + `,`, `HostUsers:` + valueToStringGenerated(this.HostUsers) + `,`, `SchedulingGates:` + repeatedStringForSchedulingGates + `,`, `ResourceClaims:` + repeatedStringForResourceClaims + `,`, `}`, }, "") 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 += "}" repeatedStringForResourceClaimStatuses := "[]PodResourceClaimStatus{" for _, f := range this.ResourceClaimStatuses { repeatedStringForResourceClaimStatuses += strings.Replace(strings.Replace(f.String(), "PodResourceClaimStatus", "PodResourceClaimStatus", 1), `&`, ``, 1) + "," } repeatedStringForResourceClaimStatuses += "}" repeatedStringForHostIPs := "[]HostIP{" for _, f := range this.HostIPs { repeatedStringForHostIPs += strings.Replace(strings.Replace(f.String(), "HostIP", "HostIP", 1), `&`, ``, 1) + "," } repeatedStringForHostIPs += "}" 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 + `,`, `Resize:` + fmt.Sprintf("%v", this.Resize) + `,`, `ResourceClaimStatuses:` + repeatedStringForResourceClaimStatuses + `,`, `HostIPs:` + repeatedStringForHostIPs + `,`, `}`, }, "") 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 *PortStatus) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PortStatus{`, `Port:` + fmt.Sprintf("%v", this.Port) + `,`, `Protocol:` + fmt.Sprintf("%v", this.Protocol) + `,`, `Error:` + valueToStringGenerated(this.Error) + `,`, `}`, }, "") 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{`, `ProbeHandler:` + strings.Replace(strings.Replace(this.ProbeHandler.String(), "ProbeHandler", "ProbeHandler", 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) + `,`, `TerminationGracePeriodSeconds:` + valueToStringGenerated(this.TerminationGracePeriodSeconds) + `,`, `}`, }, "") return s } func (this *ProbeHandler) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ProbeHandler{`, `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) + `,`, `GRPC:` + strings.Replace(this.GRPC.String(), "GRPCAction", "GRPCAction", 1) + `,`, `}`, }, "") 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 *ResourceClaim) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ResourceClaim{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `}`, }, "") 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" } repeatedStringForClaims := "[]ResourceClaim{" for _, f := range this.Claims { repeatedStringForClaims += strings.Replace(strings.Replace(f.String(), "ResourceClaim", "ResourceClaim", 1), `&`, ``, 1) + "," } repeatedStringForClaims += "}" 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 + `,`, `Claims:` + repeatedStringForClaims + `,`, `}`, }, "") 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 *SeccompProfile) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&SeccompProfile{`, `Type:` + fmt.Sprintf("%v", this.Type) + `,`, `LocalhostProfile:` + valueToStringGenerated(this.LocalhostProfile) + `,`, `}`, }, "") 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 + `,`, `Immutable:` + valueToStringGenerated(this.Immutable) + `,`, `}`, }, "") 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) + `,`, `SeccompProfile:` + strings.Replace(this.SeccompProfile.String(), "SeccompProfile", "SeccompProfile", 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) + `,`, `AppProtocol:` + valueToStringGenerated(this.AppProtocol) + `,`, `}`, }, "") 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) + `,`, `IPFamilyPolicy:` + valueToStringGenerated(this.IPFamilyPolicy) + `,`, `ClusterIPs:` + fmt.Sprintf("%v", this.ClusterIPs) + `,`, `IPFamilies:` + fmt.Sprintf("%v", this.IPFamilies) + `,`, `AllocateLoadBalancerNodePorts:` + valueToStringGenerated(this.AllocateLoadBalancerNodePorts) + `,`, `LoadBalancerClass:` + valueToStringGenerated(this.LoadBalancerClass) + `,`, `InternalTrafficPolicy:` + valueToStringGenerated(this.InternalTrafficPolicy) + `,`, `}`, }, "") return s } func (this *ServiceStatus) String() string { if this == nil { return "nil" } repeatedStringForConditions := "[]Condition{" for _, f := range this.Conditions { repeatedStringForConditions += fmt.Sprintf("%v", f) + "," } repeatedStringForConditions += "}" s := strings.Join([]string{`&ServiceStatus{`, `LoadBalancer:` + strings.Replace(strings.Replace(this.LoadBalancer.String(), "LoadBalancerStatus", "LoadBalancerStatus", 1), `&`, ``, 1) + `,`, `Conditions:` + repeatedStringForConditions + `,`, `}`, }, "") 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 *SleepAction) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&SleepAction{`, `Seconds:` + fmt.Sprintf("%v", this.Seconds) + `,`, `}`, }, "") 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) + `,`, `MinDomains:` + valueToStringGenerated(this.MinDomains) + `,`, `NodeAffinityPolicy:` + valueToStringGenerated(this.NodeAffinityPolicy) + `,`, `NodeTaintsPolicy:` + valueToStringGenerated(this.NodeTaintsPolicy) + `,`, `MatchLabelKeys:` + fmt.Sprintf("%v", this.MatchLabelKeys) + `,`, `}`, }, "") 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 *TypedObjectReference) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&TypedObjectReference{`, `APIGroup:` + valueToStringGenerated(this.APIGroup) + `,`, `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Namespace:` + valueToStringGenerated(this.Namespace) + `,`, `}`, }, "") 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) + `,`, `ClusterTrustBundle:` + strings.Replace(this.ClusterTrustBundle.String(), "ClusterTrustBundleProjection", "ClusterTrustBundleProjection", 1) + `,`, `}`, }, "") return s } func (this *VolumeResourceRequirements) 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{`&VolumeResourceRequirements{`, `Limits:` + mapStringForLimits + `,`, `Requests:` + mapStringForRequests + `,`, `}`, }, "") 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) + `,`, `Ephemeral:` + strings.Replace(this.Ephemeral.String(), "EphemeralVolumeSource", "EphemeralVolumeSource", 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) + `,`, `HostProcess:` + valueToStringGenerated(this.HostProcess) + `,`, `}`, }, "") 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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (iNdEx+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 case 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field NodeExpandSecretRef", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.NodeExpandSecretRef == nil { m.NodeExpandSecretRef = &SecretReference{} } if err := m.NodeExpandSecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (iNdEx+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) || (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) || (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) || (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) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ClaimSource) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ClaimSource: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ClaimSource: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResourceClaimName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.ResourceClaimName = &s iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResourceClaimTemplateName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.ResourceClaimTemplateName = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ClusterTrustBundleProjection) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ClusterTrustBundleProjection: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ClusterTrustBundleProjection: 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 SignerName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.SignerName = &s iNdEx = postIndex case 3: 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 4: 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 5: 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) || (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) || (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) || (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) || (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) || (iNdEx+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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > postIndex { return io.ErrUnexpectedEOF } iNdEx += skippy } } m.BinaryData[mapkey] = mapvalue iNdEx = postIndex case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Immutable", 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.Immutable = &b default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (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) || (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 case 23: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResizePolicy", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ResizePolicy = append(m.ResizePolicy, ContainerResizePolicy{}) if err := m.ResizePolicy[len(m.ResizePolicy)-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 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 } s := ContainerRestartPolicy(dAtA[iNdEx:postIndex]) m.RestartPolicy = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ContainerResizePolicy) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ContainerResizePolicy: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ContainerResizePolicy: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResourceName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ResourceName = ResourceName(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: 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 = ResourceResizeRestartPolicy(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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 case 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AllocatedResources", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.AllocatedResources == nil { m.AllocatedResources = 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > postIndex { return io.ErrUnexpectedEOF } iNdEx += skippy } } m.AllocatedResources[ResourceName(mapkey)] = *mapvalue iNdEx = postIndex case 11: 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 m.Resources == nil { m.Resources = &ResourceRequirements{} } if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (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) || (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 case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AppProtocol", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.AppProtocol = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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 case 23: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResizePolicy", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ResizePolicy = append(m.ResizePolicy, ContainerResizePolicy{}) if err := m.ResizePolicy[len(m.ResizePolicy)-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 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 } s := ContainerRestartPolicy(dAtA[iNdEx:postIndex]) m.RestartPolicy = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *EphemeralVolumeSource) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: EphemeralVolumeSource: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: EphemeralVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field VolumeClaimTemplate", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.VolumeClaimTemplate == nil { m.VolumeClaimTemplate = &PersistentVolumeClaimTemplate{} } if err := m.VolumeClaimTemplate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (iNdEx+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) || (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) || (iNdEx+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) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *GRPCAction) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: GRPCAction: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: GRPCAction: 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 } } case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.Service = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *HostIP) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: HostIP: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: HostIP: 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) || (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) || (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) || (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) || (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) || (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 = &LifecycleHandler{} } 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 = &LifecycleHandler{} } 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LifecycleHandler) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: LifecycleHandler: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LifecycleHandler: 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 case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Sleep", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Sleep == nil { m.Sleep = &SleepAction{} } if err := m.Sleep.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (iNdEx+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) || (iNdEx+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) || (iNdEx+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) || (iNdEx+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) || (iNdEx+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) || (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) || (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) || (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) || (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 case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field IPMode", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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 := LoadBalancerIPMode(dAtA[iNdEx:postIndex]) m.IPMode = &s iNdEx = postIndex case 4: 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, PortStatus{}) 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) || (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) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ModifyVolumeStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ModifyVolumeStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ModifyVolumeStatus: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TargetVolumeAttributesClassName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.TargetVolumeAttributesClassName = string(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 = PersistentVolumeClaimModifyVolumeStatus(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (iNdEx+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) || (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) || (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) || (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) || (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 DoNotUseExternalID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.DoNotUseExternalID = 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) || (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) || (iNdEx+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) || (iNdEx+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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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 case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DataSourceRef", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.DataSourceRef == nil { m.DataSourceRef = &TypedObjectReference{} } if err := m.DataSourceRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field VolumeAttributesClassName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.VolumeAttributesClassName = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (iNdEx+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 case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AllocatedResources", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.AllocatedResources == nil { m.AllocatedResources = 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > postIndex { return io.ErrUnexpectedEOF } iNdEx += skippy } } m.AllocatedResources[ResourceName(mapkey)] = *mapvalue iNdEx = postIndex case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AllocatedResourceStatuses", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.AllocatedResourceStatuses == nil { m.AllocatedResourceStatuses = make(map[ResourceName]ClaimResourceStatus) } var mapkey ResourceName var mapvalue ClaimResourceStatus 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 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 = ClaimResourceStatus(dAtA[iNdEx:postStringIndexmapvalue]) iNdEx = postStringIndexmapvalue } else { iNdEx = entryPreIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > postIndex { return io.ErrUnexpectedEOF } iNdEx += skippy } } m.AllocatedResourceStatuses[ResourceName(mapkey)] = ((ClaimResourceStatus)(mapvalue)) iNdEx = postIndex case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CurrentVolumeAttributesClassName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.CurrentVolumeAttributesClassName = &s iNdEx = postIndex case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ModifyVolumeStatus", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ModifyVolumeStatus == nil { m.ModifyVolumeStatus = &ModifyVolumeStatus{} } if err := m.ModifyVolumeStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PersistentVolumeClaimTemplate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PersistentVolumeClaimTemplate: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PersistentVolumeClaimTemplate: 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) || (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) || (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) || (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) || (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) || (iNdEx+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 case 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field VolumeAttributesClassName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.VolumeAttributesClassName = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field LastPhaseTransitionTime", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.LastPhaseTransitionTime == nil { m.LastPhaseTransitionTime = &v1.Time{} } if err := m.LastPhaseTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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 case 4: 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 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MatchLabelKeys", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.MatchLabelKeys = append(m.MatchLabelKeys, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MismatchLabelKeys", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.MismatchLabelKeys = append(m.MismatchLabelKeys, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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 case 9: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field InsecureSkipTLSVerifyBackend", 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.InsecureSkipTLSVerifyBackend = bool(v != 0) default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PodOS) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PodOS: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PodOS: 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 = OSName(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PodResourceClaim) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PodResourceClaim: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PodResourceClaim: 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 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PodResourceClaimStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PodResourceClaimStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PodResourceClaimStatus: 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 ResourceClaimName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.ResourceClaimName = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PodSchedulingGate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PodSchedulingGate: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PodSchedulingGate: 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) || (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 case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field FSGroupChangePolicy", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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 := PodFSGroupChangePolicy(dAtA[iNdEx:postIndex]) m.FSGroupChangePolicy = &s iNdEx = postIndex case 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SeccompProfile", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.SeccompProfile == nil { m.SeccompProfile = &SeccompProfile{} } if err := m.SeccompProfile.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (iNdEx+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) || (iNdEx+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 case 35: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field SetHostnameAsFQDN", 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.SetHostnameAsFQDN = &b case 36: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field OS", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.OS == nil { m.OS = &PodOS{} } if err := m.OS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 37: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field HostUsers", 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.HostUsers = &b case 38: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SchedulingGates", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.SchedulingGates = append(m.SchedulingGates, PodSchedulingGate{}) if err := m.SchedulingGates[len(m.SchedulingGates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 39: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResourceClaims", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ResourceClaims = append(m.ResourceClaims, PodResourceClaim{}) if err := m.ResourceClaims[len(m.ResourceClaims)-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) || (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 case 14: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Resize", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Resize = PodResizeStatus(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 15: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResourceClaimStatuses", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ResourceClaimStatuses = append(m.ResourceClaimStatuses, PodResourceClaimStatus{}) if err := m.ResourceClaimStatuses[len(m.ResourceClaimStatuses)-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 HostIPs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.HostIPs = append(m.HostIPs, HostIP{}) if err := m.HostIPs[len(m.HostIPs)-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) || (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) || (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) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PortStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PortStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PortStatus: 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 } } 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 != 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 } s := string(dAtA[iNdEx:postIndex]) m.Error = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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 ProbeHandler", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.ProbeHandler.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 } } case 7: 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ProbeHandler) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ProbeHandler: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ProbeHandler: 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 case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field GRPC", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.GRPC == nil { m.GRPC = &GRPCAction{} } if err := m.GRPC.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (iNdEx+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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ResourceClaim) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ResourceClaim: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ResourceClaim: 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) || (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) || (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) || (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) || (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) || (iNdEx+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) || (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) || (iNdEx+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) || (iNdEx+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) || (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) || (iNdEx+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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > postIndex { return io.ErrUnexpectedEOF } iNdEx += skippy } } m.Requests[ResourceName(mapkey)] = *mapvalue iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Claims", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Claims = append(m.Claims, ResourceClaim{}) if err := m.Claims[len(m.Claims)-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) || (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) || (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) || (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) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SeccompProfile) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: SeccompProfile: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SeccompProfile: 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 = SeccompProfileType(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field LocalhostProfile", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.LocalhostProfile = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (iNdEx+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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > postIndex { return io.ErrUnexpectedEOF } iNdEx += skippy } } m.StringData[mapkey] = mapvalue iNdEx = postIndex case 5: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Immutable", 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.Immutable = &b default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (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) || (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 case 11: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SeccompProfile", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.SeccompProfile == nil { m.SeccompProfile = &SeccompProfile{} } if err := m.SeccompProfile.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (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) || (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 } } case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AppProtocol", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.AppProtocol = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (iNdEx+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 = ServiceExternalTrafficPolicy(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 17: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field IPFamilyPolicy", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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 := IPFamilyPolicy(dAtA[iNdEx:postIndex]) m.IPFamilyPolicy = &s iNdEx = postIndex case 18: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ClusterIPs", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ClusterIPs = append(m.ClusterIPs, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 19: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field IPFamilies", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.IPFamilies = append(m.IPFamilies, IPFamily(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 20: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field AllocateLoadBalancerNodePorts", 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.AllocateLoadBalancerNodePorts = &b case 21: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancerClass", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.LoadBalancerClass = &s iNdEx = postIndex case 22: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field InternalTrafficPolicy", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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 := ServiceInternalTrafficPolicy(dAtA[iNdEx:postIndex]) m.InternalTrafficPolicy = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 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, v1.Condition{}) 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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SleepAction) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: SleepAction: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SleepAction: 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 } } default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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 case 5: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field MinDomains", 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.MinDomains = &v case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field NodeAffinityPolicy", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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 := NodeInclusionPolicy(dAtA[iNdEx:postIndex]) m.NodeAffinityPolicy = &s iNdEx = postIndex case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field NodeTaintsPolicy", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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 := NodeInclusionPolicy(dAtA[iNdEx:postIndex]) m.NodeTaintsPolicy = &s iNdEx = postIndex case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MatchLabelKeys", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.MatchLabelKeys = append(m.MatchLabelKeys, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *TypedObjectReference) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: TypedObjectReference: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: TypedObjectReference: 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 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 } s := string(dAtA[iNdEx:postIndex]) m.Namespace = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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 case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ClusterTrustBundle", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ClusterTrustBundle == nil { m.ClusterTrustBundle = &ClusterTrustBundleProjection{} } if err := m.ClusterTrustBundle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *VolumeResourceRequirements) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: VolumeResourceRequirements: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: VolumeResourceRequirements: 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) || (iNdEx+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) || (iNdEx+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) || (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 case 29: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Ephemeral", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Ephemeral == nil { m.Ephemeral = &EphemeralVolumeSource{} } if err := m.Ephemeral.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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 case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field HostProcess", 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.HostProcess = &b default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/core/v1/generated.proto000066400000000000000000010365011453636404600206450ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/api/resource/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/core/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 { // volumeID is 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; // fsType is the 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; // partition is 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; // readOnly value true will force the readOnly setting in VolumeMounts. // 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 { // diskName is the Name of the data disk in the blob storage optional string diskName = 1; // diskURI is the URI of data disk in the blob storage optional string diskURI = 2; // cachingMode is the Host Caching mode: None, Read Only, Read Write. // +optional optional string cachingMode = 3; // fsType is 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; // readOnly Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. // +optional optional bool readOnly = 5; // kind expected values are 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 { // secretName is the name of secret that contains Azure Storage Account Name and Key optional string secretName = 1; // shareName is the azure Share Name optional string shareName = 2; // readOnly defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. // +optional optional bool readOnly = 3; // secretNamespace is 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 { // secretName is the name of secret that contains Azure Storage Account Name and Key optional string secretName = 1; // shareName is the azure share Name optional string shareName = 2; // readOnly 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; // readOnly value to pass to ControllerPublishVolumeRequest. // Defaults to false (read/write). // +optional optional bool readOnly = 3; // fsType to mount. Must be a filesystem type supported by the host operating system. // Ex. "ext4", "xfs", "ntfs". // +optional optional string fsType = 4; // volumeAttributes 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 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; // nodeExpandSecretRef is a reference to the secret object containing // sensitive information to pass to the CSI driver to complete the CSI // NodeExpandVolume call. // This field is optional, may be omitted if no secret is required. If the // secret object contains more than one secret, all secrets are passed. // +optional optional SecretReference nodeExpandSecretRef = 10; } // 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; // readOnly specifies a read-only configuration for the volume. // Defaults to false (read/write). // +optional optional bool readOnly = 2; // fsType 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 { // monitors is 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; // path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / // +optional optional string path = 2; // user is 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; // secretFile is 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; // secretRef is 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; // readOnly is 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 { // monitors is 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; // path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / // +optional optional string path = 2; // user is 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; // secretFile is 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; // secretRef is 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; // readOnly is 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 { // volumeID used to identify the volume in cinder. // More info: https://examples.k8s.io/mysql-cinder-pd/README.md optional string volumeID = 1; // 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 // +optional optional string fsType = 2; // readOnly is 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; // secretRef is 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 { // volumeID used to identify the volume in cinder. // More info: https://examples.k8s.io/mysql-cinder-pd/README.md optional string volumeID = 1; // fsType is the 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; // readOnly 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; // secretRef is optional: points to a secret object containing parameters used to connect // to OpenStack. // +optional optional LocalObjectReference secretRef = 4; } // ClaimSource describes a reference to a ResourceClaim. // // Exactly one of these fields should be set. Consumers of this type must // treat an empty object as if it has an unknown value. message ClaimSource { // ResourceClaimName is the name of a ResourceClaim object in the same // namespace as this pod. optional string resourceClaimName = 1; // ResourceClaimTemplateName is the name of a ResourceClaimTemplate // object in the same namespace as this pod. // // The template will be used to create a new ResourceClaim, which will // be bound to this pod. When this pod is deleted, the ResourceClaim // will also be deleted. The pod name and resource name, along with a // generated component, will be used to form a unique name for the // ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. // // This field is immutable and no changes will be made to the // corresponding ResourceClaim by the control plane after creating the // ResourceClaim. optional string resourceClaimTemplateName = 2; } // 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; } // ClusterTrustBundleProjection describes how to select a set of // ClusterTrustBundle objects and project their contents into the pod // filesystem. message ClusterTrustBundleProjection { // Select a single ClusterTrustBundle by object name. Mutually-exclusive // with signerName and labelSelector. // +optional optional string name = 1; // Select all ClusterTrustBundles that match this signer name. // Mutually-exclusive with name. The contents of all selected // ClusterTrustBundles will be unified and deduplicated. // +optional optional string signerName = 2; // Select all ClusterTrustBundles that match this label selector. Only has // effect if signerName is set. Mutually-exclusive with name. If unset, // interpreted as "match nothing". If set but empty, interpreted as "match // everything". // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 3; // If true, don't block pod startup if the referenced ClusterTrustBundle(s) // aren't available. If using name, then the named ClusterTrustBundle is // allowed not to exist. If using signerName, then the combination of // signerName and labelSelector is allowed to match zero // ClusterTrustBundles. // +optional optional bool optional = 5; // Relative path from the volume root to write the bundle. optional string path = 4; } // 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. // Deprecated: This API is deprecated in v1.19+ 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. // Deprecated: This API is deprecated in v1.19+ 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; // Immutable, if set to true, ensures that data stored in the ConfigMap cannot // be updated (only object metadata can be modified). // If not set to true, the field can be modified at any time. // Defaulted to nil. // +optional optional bool immutable = 4; // 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. // +structType=atomic 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. // This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration 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; // 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 repeated KeyToPath items = 2; // optional 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; // 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 repeated KeyToPath items = 2; // defaultMode is optional: mode bits used to set permissions on created files by default. // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. // 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; // optional 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; // Container 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 container 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. Double $$ are reduced // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will // produce the string literal "$(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 container 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. Double $$ are reduced // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will // produce the string literal "$(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. 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. // Modifying this array with strategic merge patch may corrupt the data. // For more information See https://github.com/kubernetes/kubernetes/issues/108255. // 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-resources-containers/ // +optional optional ResourceRequirements resources = 8; // Resources resize policy for the container. // +featureGate=InPlacePodVerticalScaling // +optional // +listType=atomic repeated ContainerResizePolicy resizePolicy = 23; // RestartPolicy defines the restart behavior of individual containers in a pod. // This field may only be set for init containers, and the only allowed value is "Always". // For non-init containers or when this field is not specified, // the restart behavior is defined by the Pod's restart policy and the container type. // Setting the RestartPolicy as "Always" for the init container will have the following effect: // this init container will be continually restarted on // exit until all regular containers have terminated. Once all regular // containers have completed, all init containers with restartPolicy "Always" // will be shut down. This lifecycle differs from normal init containers and // is often referred to as a "sidecar" container. Although this init // container still starts in the init container sequence, it does not wait // for the container to complete before proceeding to the next init // container. Instead, the next init container starts immediately after this // init container is started, or after any startupProbe has successfully // completed. // +featureGate=SidecarContainers // +optional optional string restartPolicy = 24; // 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. // +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. // 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; // SecurityContext defines the security options the container should be run with. // If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. // 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. ["kubernetes.example/hyperkube:v1.0.7", "cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7"] // +optional 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 // +default="TCP" optional string protocol = 4; // What host IP to bind the external port to. // +optional optional string hostIP = 5; } // ContainerResizePolicy represents resource resize policy for the container. message ContainerResizePolicy { // Name of the resource to which this resource resize policy applies. // Supported values: cpu, memory. optional string resourceName = 1; // Restart policy to apply when specified resource is resized. // If not specified, it defaults to NotRequired. optional string restartPolicy = 2; } // 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 '://' // +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 { // Name is a DNS_LABEL representing the unique name of the container. // Each container in a pod must have a unique name across all container types. // Cannot be updated. optional string name = 1; // State holds details about the container's current condition. // +optional optional ContainerState state = 2; // LastTerminationState holds the last termination state of the container to // help debug container crashes and restarts. This field is not // populated if the container is still running and RestartCount is 0. // +optional optional ContainerState lastState = 3; // Ready specifies whether the container is currently passing its readiness check. // The value will change as readiness probes keep executing. If no readiness // probes are specified, this field defaults to true once the container is // fully started (see Started field). // // The value is typically used to determine whether a container is ready to // accept traffic. optional bool ready = 4; // RestartCount holds the number of times the container has been restarted. // Kubelet makes an effort to always increment the value, but there // are cases when the state may be lost due to node restarts and then the value // may be reset to 0. The value is never negative. optional int32 restartCount = 5; // Image is the name of container image that the container is running. // The container image may not match the image used in the PodSpec, // as it may have been resolved by the runtime. // More info: https://kubernetes.io/docs/concepts/containers/images. optional string image = 6; // ImageID is the image ID of the container's image. The image ID may not // match the image ID of the image used in the PodSpec, as it may have been // resolved by the runtime. optional string imageID = 7; // ContainerID is the ID of the container in the format '://'. // Where type is a container runtime identifier, returned from Version call of CRI API // (for example "containerd"). // +optional optional string containerID = 8; // Started indicates whether the container has finished its postStart lifecycle hook // and 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. In both cases, startup probes will run again. // Is always true when no startupProbe is defined and container is running and // has passed the postStart lifecycle hook. The null value must be treated the // same as false. // +optional optional bool started = 9; // AllocatedResources represents the compute resources allocated for this container by the // node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission // and after successfully admitting desired pod resize. // +featureGate=InPlacePodVerticalScaling // +optional map allocatedResources = 10; // Resources represents the compute resource requests and limits that have been successfully // enacted on the running container after it has been started or has been successfully resized. // +featureGate=InPlacePodVerticalScaling // +optional optional ResourceRequirements resources = 11; } // 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 used to set permissions on this file, must be an octal value // between 0000 and 0777 or a decimal value between 0 and 511. // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. // 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 // Optional: mode bits used to set permissions on created files by default. // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. // 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 { // medium represents 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; // sizeLimit is the 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: https://kubernetes.io/docs/concepts/storage/volumes#emptydir // +optional optional k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2; } // EndpointAddress is a tuple that describes single IP address. // +structType=atomic message EndpointAddress { // The IP of this endpoint. // May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), // or link-local multicast (224.0.0.0/24 or ff02::/16). 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. // +structType=atomic 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; // The application protocol for this port. // This is used as a hint for implementations to offer richer behavior for protocols that they understand. // This field follows standard Kubernetes label syntax. // Valid values are either: // // * Un-prefixed protocol names - reserved for IANA standard service names (as per // RFC-6335 and https://www.iana.org/assignments/service-names). // // * Kubernetes-defined prefixed names: // * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- // * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 // * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 // // * Other protocols should use implementation-defined prefixed names such as // mycompany.com/my-custom-protocol. // +optional optional string appProtocol = 4; } // 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 previously 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. Double $$ are reduced // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. // "$$(VAR_NAME)" will produce the string literal "$(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, status.podIPs. // +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 temporary container that you may add 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. The kubelet may evict a Pod if an ephemeral container causes the // Pod to exceed its resource allocation. // // To add an ephemeral container, use the ephemeralcontainers subresource of an existing // Pod. Ephemeral containers may not be removed or restarted. 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 uses the namespaces configured in the Pod spec. // // The container runtime must implement support for this feature. If the runtime does not // support namespace targeting then the result of setting this field is undefined. // +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; // Container image name. // More info: https://kubernetes.io/docs/concepts/containers/images optional string image = 2; // Entrypoint array. Not executed within a shell. // The 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. Double $$ are reduced // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will // produce the string literal "$(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 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. Double $$ are reduced // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will // produce the string literal "$(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. // +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; // Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources // already allocated to the pod. // +optional optional ResourceRequirements resources = 8; // Resources resize policy for the container. // +featureGate=InPlacePodVerticalScaling // +optional // +listType=atomic repeated ContainerResizePolicy resizePolicy = 23; // Restart policy for the container to manage the restart behavior of each // container within a pod. // This may only be set for init containers. You cannot set this field on // ephemeral containers. // +featureGate=SidecarContainers // +optional optional string restartPolicy = 24; // Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. // 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. // +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; // Optional: SecurityContext defines the security options the ephemeral container should be run with. // If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. // +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; } // Represents an ephemeral volume that is handled by a normal storage driver. message EphemeralVolumeSource { // Will be used to create a stand-alone PVC to provision the volume. // The pod in which this EphemeralVolumeSource is embedded will be the // owner of the PVC, i.e. the PVC will be deleted together with the // pod. The name of the PVC will be `-` where // `` is the name from the `PodSpec.Volumes` array // entry. Pod validation will reject the pod if the concatenated name // is not valid for a PVC (for example, too long). // // An existing PVC with that name that is not owned by the pod // will *not* be used for the pod to avoid using an unrelated // volume by mistake. Starting the pod is then blocked until // the unrelated PVC is removed. If such a pre-created PVC is // meant to be used by the pod, the PVC has to updated with an // owner reference to the pod once the pod exists. Normally // this should not be necessary, but it may be useful when // manually reconstructing a broken cluster. // // This field is read-only and no changes will be made by Kubernetes // to the PVC after it has been created. // // Required, must not be nil. optional PersistentVolumeClaimTemplate volumeClaimTemplate = 1; } // Event is a report of an event somewhere in the cluster. Events // have a limited retention time and triggers and messages may evolve // with time. Event consumers should not rely on the timing of an event // with a given Reason reflecting a consistent underlying trigger, or the // continued existence of events with that Reason. Events should be // treated as informative, best-effort, supplemental data. 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; } // 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 { // targetWWNs is Optional: FC target worldwide names (WWNs) // +optional repeated string targetWWNs = 1; // lun is Optional: FC target lun number // +optional optional int32 lun = 2; // fsType is the 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; // readOnly is Optional: Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. // +optional optional bool readOnly = 4; // wwids 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; // fsType is the 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; // secretRef is 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; // readOnly is Optional: defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. // +optional optional bool readOnly = 4; // options is Optional: this field holds 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; // fsType is the 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; // secretRef is 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; // readOnly is Optional: defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. // +optional optional bool readOnly = 4; // options is Optional: this field holds 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 { // datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker // should be considered as deprecated // +optional optional string datasetName = 1; // datasetUUID is the 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 { // pdName is 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; // fsType is 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; // partition is 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; } message GRPCAction { // Port number of the gRPC service. Number must be in the range 1 to 65535. optional int32 port = 1; // Service is the name of the service to place in the gRPC HealthCheckRequest // (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). // // If this is not specified, the default behavior is defined by gRPC. // +optional // +default="" optional string service = 2; } // 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 is the URL optional string repository = 1; // revision is the commit hash for the specified revision. // +optional optional string revision = 2; // directory is the 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 { // endpoints 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 { // endpoints 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. // This will be canonicalized upon output, so case-variant names will be understood as the same header. optional string name = 1; // The header field value optional string value = 2; } // 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; } // HostIP represents a single IP address allocated to the host. message HostIP { // IP is the IP address assigned to the host optional string ip = 1; } // 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 { // targetPortal is 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; // iqn is Target iSCSI Qualified Name. optional string iqn = 2; // lun is iSCSI Target Lun number. optional int32 lun = 3; // iscsiInterface is the interface Name that uses an iSCSI transport. // Defaults to 'default' (tcp). // +optional optional string iscsiInterface = 4; // fsType is the 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; // portals is the 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; // chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication // +optional optional bool chapAuthDiscovery = 8; // chapAuthSession defines whether support iSCSI Session CHAP authentication // +optional optional bool chapAuthSession = 11; // secretRef is the CHAP Secret for iSCSI target and initiator authentication // +optional optional SecretReference secretRef = 10; // initiatorName is the 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 { // targetPortal is 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; // iqn is the target iSCSI Qualified Name. optional string iqn = 2; // lun represents iSCSI Target Lun number. optional int32 lun = 3; // iscsiInterface is the interface Name that uses an iSCSI transport. // Defaults to 'default' (tcp). // +optional optional string iscsiInterface = 4; // fsType is the 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; // portals is the 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; // chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication // +optional optional bool chapAuthDiscovery = 8; // chapAuthSession defines whether support iSCSI Session CHAP authentication // +optional optional bool chapAuthSession = 11; // secretRef is the CHAP Secret for iSCSI target and initiator authentication // +optional optional LocalObjectReference secretRef = 10; // initiatorName is the 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 { // key is the key to project. optional string key = 1; // path is 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; // mode is Optional: mode bits used to set permissions on this file. // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. // 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 LifecycleHandler 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 Pod's termination grace period countdown begins before the // PreStop hook is executed. Regardless of the outcome of the handler, the // container will eventually terminate within the Pod's termination grace // period (unless delayed by finalizers). 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 LifecycleHandler preStop = 2; } // LifecycleHandler defines a specific action that should be taken in a lifecycle // hook. One and only one of the fields, except TCPSocket must be specified. message LifecycleHandler { // Exec specifies the action to take. // +optional optional ExecAction exec = 1; // HTTPGet specifies the http request to perform. // +optional optional HTTPGetAction httpGet = 2; // Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept // for the backward compatibility. There are no validation of this field and // lifecycle hooks will fail in runtime when tcp handler is specified. // +optional optional TCPSocketAction tcpSocket = 3; // Sleep represents the duration that the container should sleep before being terminated. // +featureGate=PodLifecycleSleepAction // +optional optional SleepAction sleep = 4; } // 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 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-resources-containers/ 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; // IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. // Setting this to "VIP" indicates that traffic is delivered to the node with // the destination set to the load-balancer's IP and port. // Setting this to "Proxy" indicates that traffic is delivered to the node or pod with // the destination set to the node's IP and node port or the pod's IP and port. // Service implementations may use this information to adjust traffic routing. // +optional optional string ipMode = 3; // Ports is a list of records of service ports // If used, every port defined in the service should have an entry in it // +listType=atomic // +optional repeated PortStatus ports = 4; } // 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. // +structType=atomic 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 { // path of the full path to the volume on the node. // It can be either a directory or block device (disk, partition, ...). optional string path = 1; // fsType is the 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 filesystem if unspecified. // +optional optional string fsType = 2; } // ModifyVolumeStatus represents the status object of ControllerModifyVolume operation message ModifyVolumeStatus { // targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled optional string targetVolumeAttributesClassName = 1; // status is the status of the ControllerModifyVolume operation. It can be in any of following states: // - Pending // Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as // the specified VolumeAttributesClass not existing. // - InProgress // InProgress indicates that the volume is being modified. // - Infeasible // Infeasible indicates that the request has been rejected as invalid by the CSI driver. To // resolve the error, a valid VolumeAttributesClass needs to be specified. // Note: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately. optional string status = 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. // This API is deprecated since 1.22 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 https://kubernetes.io/docs/concepts/architecture/nodes/#capacity 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. // +structType=atomic 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. // +structType=atomic 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; // Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed. // +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 https://pr.k8s.io/79391 for an example. // Consumers should assume that addresses can change during the // lifetime of a Node. However, there are some exceptions where this may not // be possible, such as Pods that inherit a Node's address in its own status or // consumers of the downward API (status.hostIP). // +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/uuid 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. containerd://1.4.2). 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. // +structType=atomic 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. // --- // New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs. // 1. Ignored fields. It includes many fields which are not generally honored. For instance, ResourceVersion and FieldPath are both very rarely valid in actual usage. // 2. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular // restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted". // Those cannot be well described when embedded. // 3. Inconsistent validation. Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen. // 4. The fields are both imprecise and overly precise. Kind is not a precise mapping to a URL. This can produce ambiguity // during interpretation and require a REST mapping. In most cases, the dependency is on the group,resource tuple // and the version of the actual struct is irrelevant. // 5. We cannot easily change it. Because this type is embedded in many locations, updates to this type // will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control. // // Instead of using this type, create a locally provided and used type that is well-focused on your reference. // For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 . // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +structType=atomic 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 contains details about state of pvc message PersistentVolumeClaimCondition { optional string type = 1; optional string status = 2; // lastProbeTime is the time we probed the condition. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; // lastTransitionTime is the time the condition transitioned from one status to another. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; // reason is a 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; // message is the 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; // items is 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; // selector is 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. // If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements // that are lower than previous value but must still be higher than capacity recorded in the // status field of the claim. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources // +optional optional VolumeResourceRequirements resources = 2; // volumeName is the binding reference to the PersistentVolume backing this claim. // +optional optional string volumeName = 3; // storageClassName is the 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. // +optional optional string volumeMode = 6; // dataSource field can be used to specify either: // * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) // * An existing PVC (PersistentVolumeClaim) // If the provisioner or an external controller can support the specified data source, // it will create a new volume based on the contents of the specified data source. // When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, // and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. // If the namespace is specified, then dataSourceRef will not be copied to dataSource. // +optional optional TypedLocalObjectReference dataSource = 7; // dataSourceRef specifies the object from which to populate the volume with data, if a non-empty // volume is desired. This may be any object from a non-empty API group (non // core object) or a PersistentVolumeClaim object. // When this field is specified, volume binding will only succeed if the type of // the specified object matches some installed volume populator or dynamic // provisioner. // This field will replace the functionality of the dataSource field and as such // if both fields are non-empty, they must have the same value. For backwards // compatibility, when namespace isn't specified in dataSourceRef, // both fields (dataSource and dataSourceRef) will be set to the same // value automatically if one of them is empty and the other is non-empty. // When namespace is specified in dataSourceRef, // dataSource isn't set to the same value and must be empty. // There are three important differences between dataSource and dataSourceRef: // * While dataSource only allows two specific types of objects, dataSourceRef // allows any non-core object, as well as PersistentVolumeClaim objects. // * While dataSource ignores disallowed values (dropping them), dataSourceRef // preserves all values, and generates an error if a disallowed value is // specified. // * While dataSource only allows local objects, dataSourceRef allows objects // in any namespaces. // (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. // (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. // +optional optional TypedObjectReference dataSourceRef = 8; // volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. // If specified, the CSI driver will create or update the volume with the attributes defined // in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, // it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass // will be applied to the claim but it's not allowed to reset this field to empty string once it is set. // If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass // will be set by the persistentvolume controller if it exists. // If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be // set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource // exists. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#volumeattributesclass // (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled. // +featureGate=VolumeAttributesClass // +optional optional string volumeAttributesClassName = 9; } // 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; // capacity represents the actual resources of the underlying volume. // +optional map capacity = 3; // conditions is the 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; // allocatedResources tracks the resources allocated to a PVC including its capacity. // Key names follow standard Kubernetes label syntax. Valid values are either: // * Un-prefixed keys: // - storage - the capacity of the volume. // * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource" // Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered // reserved and hence may not be used. // // Capacity reported here may be larger than the actual capacity when a volume expansion operation // is requested. // For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. // If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. // If a volume expansion capacity request is lowered, allocatedResources is only // lowered if there are no expansion operations in progress and if the actual volume capacity // is equal or lower than the requested capacity. // // A controller that receives PVC update with previously unknown resourceName // should ignore the update for the purpose it was designed. For example - a controller that // only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid // resources associated with PVC. // // This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. // +featureGate=RecoverVolumeExpansionFailure // +optional map allocatedResources = 5; // allocatedResourceStatuses stores status of resource being resized for the given PVC. // Key names follow standard Kubernetes label syntax. Valid values are either: // * Un-prefixed keys: // - storage - the capacity of the volume. // * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource" // Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered // reserved and hence may not be used. // // ClaimResourceStatus can be in any of following states: // - ControllerResizeInProgress: // State set when resize controller starts resizing the volume in control-plane. // - ControllerResizeFailed: // State set when resize has failed in resize controller with a terminal error. // - NodeResizePending: // State set when resize controller has finished resizing the volume but further resizing of // volume is needed on the node. // - NodeResizeInProgress: // State set when kubelet starts resizing the volume. // - NodeResizeFailed: // State set when resizing has failed in kubelet with a terminal error. Transient errors don't set // NodeResizeFailed. // For example: if expanding a PVC for more capacity - this field can be one of the following states: // - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeInProgress" // - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeFailed" // - pvc.status.allocatedResourceStatus['storage'] = "NodeResizePending" // - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeInProgress" // - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeFailed" // When this field is not set, it means that no resize operation is in progress for the given PVC. // // A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus // should ignore the update for the purpose it was designed. For example - a controller that // only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid // resources associated with PVC. // // This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. // +featureGate=RecoverVolumeExpansionFailure // +mapType=granular // +optional map allocatedResourceStatuses = 7; // currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. // When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim // This is an alpha field and requires enabling VolumeAttributesClass feature. // +featureGate=VolumeAttributesClass // +optional optional string currentVolumeAttributesClassName = 8; // ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. // When this is unset, there is no ModifyVolume operation being attempted. // This is an alpha field and requires enabling VolumeAttributesClass feature. // +featureGate=VolumeAttributesClass // +optional optional ModifyVolumeStatus modifyVolumeStatus = 9; } // PersistentVolumeClaimTemplate is used to produce // PersistentVolumeClaim objects as part of an EphemeralVolumeSource. message PersistentVolumeClaimTemplate { // May contain labels and annotations that will be copied into the PVC // when creating it. No other fields are allowed and will be rejected during // validation. // // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; // The specification for the PersistentVolumeClaim. The entire content is // copied unchanged into the PVC that gets created from this // template. The same fields as in a PersistentVolumeClaim // are also valid here. optional PersistentVolumeClaimSpec spec = 2; } // 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; // readOnly 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; // items is a 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 { // capacity is the description of the persistent volume's resources and capacity. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity // +optional map capacity = 1; // persistentVolumeSource is 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 // +structType=granular optional ObjectReference claimRef = 4; // persistentVolumeReclaimPolicy defines 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; // storageClassName is the 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; // mountOptions is the 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. // +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; // Name of VolumeAttributesClass to which this persistent volume belongs. Empty value // is not allowed. When this field is not set, it indicates that this volume does not belong to any // VolumeAttributesClass. This field is mutable and can be changed by the CSI driver // after a volume has been updated successfully to a new class. // For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound // PersistentVolumeClaims during the binding process. // This is an alpha field and requires enabling VolumeAttributesClass feature. // +featureGate=VolumeAttributesClass // +optional optional string volumeAttributesClassName = 10; } // 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; // message is 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; // lastPhaseTransitionTime is the time the phase transitioned from one to another // and automatically resets to current time everytime a volume phase transitions. // This is an alpha field and requires enabling PersistentVolumeLastPhaseTransitionTime feature. // +featureGate=PersistentVolumeLastPhaseTransitionTime // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastPhaseTransitionTime = 4; } // Represents a Photon Controller persistent disk resource. message PhotonPersistentDiskVolumeSource { // pdID is the ID that identifies Photon Controller persistent disk optional string pdID = 1; // fsType is the 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. // If it's null, this PodAffinityTerm matches with no Pods. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; // namespaces specifies a static list of namespace names that the term applies to. // The term is applied to the union of the namespaces listed in this field // and the ones selected by namespaceSelector. // null or empty namespaces list and null namespaceSelector 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; // A label query over the set of namespaces that the term applies to. // The term is applied to the union of the namespaces selected by this field // and the ones listed in the namespaces field. // null selector and null or empty namespaces list means "this pod's namespace". // An empty selector ({}) matches all namespaces. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; // MatchLabelKeys is a set of pod label keys to select which pods will // be taken into consideration. The keys are used to lookup values from the // incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` // to select the group of existing pods which pods will be taken into consideration // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming // pod labels will be ignored. The default value is empty. // The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. // Also, MatchLabelKeys cannot be set when LabelSelector isn't set. // This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. // +listType=atomic // +optional repeated string matchLabelKeys = 5; // MismatchLabelKeys is a set of pod label keys to select which pods will // be taken into consideration. The keys are used to lookup values from the // incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` // to select the group of existing pods which pods will be taken into consideration // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming // pod labels will be ignored. The default value is empty. // The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. // Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. // This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. // +listType=atomic // +optional repeated string mismatchLabelKeys = 6; } // 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. // +optional optional bool stdout = 2; // Redirect the standard error stream of the pod for this call. // +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; } // PodIP represents a single IP address allocated to the pod. message PodIP { // IP is the IP address 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; // insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the // serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver // and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real // kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the // connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept // the actual log data coming from the real kubelet). // +optional optional bool insecureSkipTLSVerifyBackend = 9; } // PodOS defines the OS parameters of a pod. message PodOS { // Name is the name of the operating system. The currently supported values are linux and windows. // Additional value may be defined in future and can be one of: // https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration // Clients should expect to handle additional values and treat unrecognized values in this field as os: null optional string name = 1; } // 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; } // PodResourceClaim references exactly one ResourceClaim through a ClaimSource. // It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. // Containers that need access to the ResourceClaim reference it with this name. message PodResourceClaim { // Name uniquely identifies this resource claim inside the pod. // This must be a DNS_LABEL. optional string name = 1; // Source describes where to find the ResourceClaim. optional ClaimSource source = 2; } // PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim // which references a ResourceClaimTemplate. It stores the generated name for // the corresponding ResourceClaim. message PodResourceClaimStatus { // Name uniquely identifies this resource claim inside the pod. // This must match the name of an entry in pod.spec.resourceClaims, // which implies that the string must be a DNS_LABEL. optional string name = 1; // ResourceClaimName is the name of the ResourceClaim that was // generated for the Pod in the namespace of the Pod. It this is // unset, then generating a ResourceClaim was not necessary. The // pod.spec.resourceClaims entry can be ignored in this case. // // +optional optional string resourceClaimName = 2; } // PodSchedulingGate is associated to a Pod to guard its scheduling. message PodSchedulingGate { // Name of the scheduling gate. // Each scheduling gate must have a unique name field. optional string name = 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. // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is linux. // +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. // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is windows. // +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, the fsGroup (if specified), and group memberships // defined in the container image for the uid of the container process. If unspecified, // no additional groups are added to any container. Note that group memberships // defined in the container image for the uid of the container process are still effective, // even if they are not included in this list. // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is windows. // +optional repeated Sysctl sysctls = 7; // fsGroupChangePolicy defines behavior of changing ownership and permission of the volume // before being exposed inside Pod. This field will only apply to // volume types which support fsGroup based ownership(and permissions). // It will have no effect on ephemeral volume types such as: secret, configmaps // and emptydir. // Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. // Note that this field cannot be set when spec.os.name is windows. // +optional optional string fsGroupChangePolicy = 9; // The seccomp options to use by the containers in this pod. // Note that this field cannot be set when spec.os.name is windows. // +optional optional SeccompProfile seccompProfile = 10; } // 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. // +optional // +patchMergeKey=name // +patchStrategy=merge repeated EphemeralContainer ephemeralContainers = 34; // Restart policy for all containers within the pod. // One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. // 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 stop immediately via // the kill signal (no opportunity to shut down). // 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 // +mapType=atomic 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. // +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. // 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/580-pod-readiness-gates // +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/585-runtime-class // +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. // +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/688-pod-overhead/README.md // +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. // All topologySpreadConstraints are ANDed. // +optional // +patchMergeKey=topologyKey // +patchStrategy=merge // +listType=map // +listMapKey=topologyKey // +listMapKey=whenUnsatisfiable repeated TopologySpreadConstraint topologySpreadConstraints = 33; // If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). // In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). // In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. // If a pod does not have FQDN, this has no effect. // Default to false. // +optional optional bool setHostnameAsFQDN = 35; // Specifies the OS of the containers in the pod. // Some pod and container fields are restricted if this is set. // // If the OS field is set to linux, the following fields must be unset: // -securityContext.windowsOptions // // If the OS field is set to windows, following fields must be unset: // - spec.hostPID // - spec.hostIPC // - spec.hostUsers // - spec.securityContext.seLinuxOptions // - spec.securityContext.seccompProfile // - spec.securityContext.fsGroup // - spec.securityContext.fsGroupChangePolicy // - spec.securityContext.sysctls // - spec.shareProcessNamespace // - spec.securityContext.runAsUser // - spec.securityContext.runAsGroup // - spec.securityContext.supplementalGroups // - spec.containers[*].securityContext.seLinuxOptions // - spec.containers[*].securityContext.seccompProfile // - spec.containers[*].securityContext.capabilities // - spec.containers[*].securityContext.readOnlyRootFilesystem // - spec.containers[*].securityContext.privileged // - spec.containers[*].securityContext.allowPrivilegeEscalation // - spec.containers[*].securityContext.procMount // - spec.containers[*].securityContext.runAsUser // - spec.containers[*].securityContext.runAsGroup // +optional optional PodOS os = 36; // Use the host's user namespace. // Optional: Default to true. // If set to true or not present, the pod will be run in the host user namespace, useful // for when the pod needs a feature only available to the host user namespace, such as // loading a kernel module with CAP_SYS_MODULE. // When set to false, a new userns is created for the pod. Setting false is useful for // mitigating container breakout vulnerabilities even allowing users to run their // containers as root without actually having root privileges on the host. // This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. // +k8s:conversion-gen=false // +optional optional bool hostUsers = 37; // SchedulingGates is an opaque list of values that if specified will block scheduling the pod. // If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the // scheduler will not attempt to schedule the pod. // // SchedulingGates can only be set at pod creation time, and be removed only afterwards. // // This is a beta feature enabled by the PodSchedulingReadiness feature gate. // // +patchMergeKey=name // +patchStrategy=merge // +listType=map // +listMapKey=name // +featureGate=PodSchedulingReadiness // +optional repeated PodSchedulingGate schedulingGates = 38; // ResourceClaims defines which ResourceClaims must be allocated // and reserved before the Pod is allowed to start. The resources // will be made available to those containers which consume them // by name. // // This is an alpha field and requires enabling the // DynamicResourceAllocation feature gate. // // This field is immutable. // // +patchMergeKey=name // +patchStrategy=merge,retainKeys // +listType=map // +listMapKey=name // +featureGate=DynamicResourceAllocation // +optional repeated PodResourceClaim resourceClaims = 39; } // 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; // hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. // A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will // not be updated even if there is a node is assigned to pod // +optional optional string hostIP = 5; // hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must // match the hostIP field. This list is empty if the pod has not started yet. // A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will // not be updated even if there is a node is assigned to this pod. // +optional // +patchStrategy=merge // +patchMergeKey=ip // +listType=atomic repeated HostIP hostIPs = 16; // podIP 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. // 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://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes // +optional optional string qosClass = 9; // Status for any ephemeral containers that have run in this pod. // +optional repeated ContainerStatus ephemeralContainerStatuses = 13; // Status of resources resize desired for pod's containers. // It is empty if no resources resize is pending. // Any changes to container resources will automatically set this to "Proposed" // +featureGate=InPlacePodVerticalScaling // +optional optional string resize = 14; // Status of resource claims. // +patchMergeKey=name // +patchStrategy=merge,retainKeys // +listType=map // +listMapKey=name // +featureGate=DynamicResourceAllocation // +optional repeated PodResourceClaimStatus resourceClaimStatuses = 15; } // 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; } message PortStatus { // Port is the port number of the service port of which status is recorded here optional int32 port = 1; // Protocol is the protocol of the service port of which status is recorded here // The supported values are: "TCP", "UDP", "SCTP" optional string protocol = 2; // Error is to record the problem with the service port // The format of the error shall comply with the following rules: // - built-in error values shall be specified in this file and those shall use // CamelCase names // - cloud provider specific error values must have names that comply with the // format foo.example.com/CamelCase. // --- // The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) // +optional // +kubebuilder:validation:Required // +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` // +kubebuilder:validation:MaxLength=316 optional string error = 3; } // 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; // readOnly 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 ProbeHandler 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; // Optional duration in seconds the pod needs to terminate gracefully upon probe failure. // 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. // If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this // value overrides the value provided by the pod spec. // Value must be non-negative integer. The value zero indicates stop immediately via // the kill signal (no opportunity to shut down). // This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. // Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. // +optional optional int64 terminationGracePeriodSeconds = 7; } // ProbeHandler defines a specific action that should be taken in a probe. // One and only one of the fields must be specified. message ProbeHandler { // 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. // +optional optional TCPSocketAction tcpSocket = 3; // GRPC specifies an action involving a GRPC port. // +optional optional GRPCAction grpc = 4; } // Represents a projected volume source message ProjectedVolumeSource { // sources is the list of volume projections // +optional repeated VolumeProjection sources = 1; // defaultMode are the mode bits used to set permissions on created files by default. // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. // 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 { // monitors is a collection of Ceph monitors. // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it repeated string monitors = 1; // image is the rados image name. // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it optional string image = 2; // fsType is the 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; // pool is 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; // user is 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 { // monitors is a collection of Ceph monitors. // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it repeated string monitors = 1; // image is the rados image name. // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it optional string image = 2; // fsType is the 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; // pool is 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; // user is 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 // +mapType=atomic 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. // The only allowed template.spec.restartPolicy value is "Always". // 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 observed 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; } // ResourceClaim references one entry in PodSpec.ResourceClaims. message ResourceClaim { // Name must match the name of one entry in pod.spec.resourceClaims of // the Pod where this field is used. It makes that resource available // inside a container. optional string name = 1; } // ResourceFieldSelector represents container resources (cpu, memory) and their output format // +structType=atomic 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-resources-containers/ // +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. Requests cannot exceed Limits. // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ // +optional map requests = 2; // Claims lists the names of resources, defined in spec.resourceClaims, // that are used by this container. // // This is an alpha field and requires enabling the // DynamicResourceAllocation feature gate. // // This field is immutable. It can only be set for containers. // // +listType=map // +listMapKey=name // +featureGate=DynamicResourceAllocation // +optional repeated ResourceClaim claims = 3; } // 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 { // gateway is the host address of the ScaleIO API Gateway. optional string gateway = 1; // system is 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; // sslEnabled is the flag to enable/disable SSL communication with Gateway, default false // +optional optional bool sslEnabled = 4; // protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. // +optional optional string protectionDomain = 5; // storagePool is the ScaleIO Storage Pool associated with the protection domain. // +optional optional string storagePool = 6; // storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. // Default is ThinProvisioned. // +optional optional string storageMode = 7; // volumeName is the name of a volume already created in the ScaleIO system // that is associated with this volume source. optional string volumeName = 8; // fsType is the 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; // readOnly 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 { // gateway is the host address of the ScaleIO API Gateway. optional string gateway = 1; // system is 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; // sslEnabled Flag enable/disable SSL communication with Gateway, default false // +optional optional bool sslEnabled = 4; // protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. // +optional optional string protectionDomain = 5; // storagePool is the ScaleIO Storage Pool associated with the protection domain. // +optional optional string storagePool = 6; // storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. // Default is ThinProvisioned. // +optional optional string storageMode = 7; // volumeName is the name of a volume already created in the ScaleIO system // that is associated with this volume source. optional string volumeName = 8; // fsType is the 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; // readOnly 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. // +structType=atomic 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; } // SeccompProfile defines a pod/container's seccomp profile settings. // Only one profile source may be set. // +union message SeccompProfile { // type indicates which kind of seccomp profile will be applied. // Valid options are: // // Localhost - a profile defined in a file on the node should be used. // RuntimeDefault - the container runtime default profile should be used. // Unconfined - no profile should be applied. // +unionDiscriminator optional string type = 1; // localhostProfile indicates a profile defined in a file on the node should be used. // The profile must be preconfigured on the node to work. // Must be a descending path, relative to the kubelet's configured seccomp profile location. // Must be set if type is "Localhost". Must NOT be set for any other type. // +optional optional string localhostProfile = 2; } // 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; // Immutable, if set to true, ensures that data stored in the Secret cannot // be updated (only object metadata can be modified). // If not set to true, the field can be modified at any time. // Defaulted to nil. // +optional optional bool immutable = 5; // 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 input field for convenience. // All keys and values are merged into the data field on write, overwriting any existing values. // The stringData field is never output when reading from the API. // +k8s:conversion-gen=false // +optional map stringData = 4; // Used to facilitate programmatic handling of secret data. // More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types // +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. // +structType=atomic 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; // 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 repeated KeyToPath items = 2; // optional field 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 // +structType=atomic 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 { // secretName is the 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; // 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 repeated KeyToPath items = 2; // defaultMode is Optional: mode bits used to set permissions on created files by default. // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. // YAML accepts both octal and decimal values, JSON requires decimal values // for mode bits. 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; // optional field 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. // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is linux. // +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. // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is windows. // +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 // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is windows. // +optional optional string procMount = 9; // The seccomp options to use by this container. If seccomp options are // provided at both the pod & container level, the container options // override the pod options. // Note that this field cannot be set when spec.os.name is windows. // +optional optional SeccompProfile seccompProfile = 11; } // 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 a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. // Pods are only limited to this list if this service account has a "kubernetes.io/enforce-mountable-secrets" annotation set to "true". // This field should not be used to find auto-generated service account token secrets for use outside of pods. // Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. // 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. // +default="TCP" // +optional optional string protocol = 2; // The application protocol for this port. // This is used as a hint for implementations to offer richer behavior for protocols that they understand. // This field follows standard Kubernetes label syntax. // Valid values are either: // // * Un-prefixed protocol names - reserved for IANA standard service names (as per // RFC-6335 and https://www.iana.org/assignments/service-names). // // * Kubernetes-defined prefixed names: // * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- // * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 // * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 // // * Other protocols should use implementation-defined prefixed names such as // mycompany.com/my-custom-protocol. // +optional optional string appProtocol = 6; // 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 is // NodePort or LoadBalancer. Usually assigned by the system. If a value is // specified, in-range, and not in use it will be used, otherwise the // operation will fail. If not specified, a port will be allocated if this // Service requires one. If this field is specified when creating a // Service which does not need it, creation will fail. This field will be // wiped when updating a Service to no longer need it (e.g. changing type // from NodePort to ClusterIP). // 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 // +mapType=atomic map selector = 2; // clusterIP is the IP address of the service and is usually assigned // randomly. If an address is specified manually, is in-range (as per // system configuration), and is not in use, it will be allocated to the // service; otherwise creation of the service will fail. This field may not // be changed through updates unless the type field is also being changed // to ExternalName (which requires this field to be blank) or the type // field is being changed from ExternalName (in which case this field may // optionally be specified, as describe above). Valid values are "None", // empty string (""), or a valid IP address. Setting this to "None" makes a // "headless service" (no virtual IP), which is useful when direct endpoint // connections are preferred and proxying is not required. Only applies to // types ClusterIP, NodePort, and LoadBalancer. If this field is specified // when creating a Service of type ExternalName, creation will fail. This // field will be wiped when updating a Service to type ExternalName. // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies // +optional optional string clusterIP = 3; // ClusterIPs is a list of IP addresses assigned to this service, and are // usually assigned randomly. If an address is specified manually, is // in-range (as per system configuration), and is not in use, it will be // allocated to the service; otherwise creation of the service will fail. // This field may not be changed through updates unless the type field is // also being changed to ExternalName (which requires this field to be // empty) or the type field is being changed from ExternalName (in which // case this field may optionally be specified, as describe above). Valid // values are "None", empty string (""), or a valid IP address. Setting // this to "None" makes a "headless service" (no virtual IP), which is // useful when direct endpoint connections are preferred and proxying is // not required. Only applies to types ClusterIP, NodePort, and // LoadBalancer. If this field is specified when creating a Service of type // ExternalName, creation will fail. This field will be wiped when updating // a Service to type ExternalName. If this field is not specified, it will // be initialized from the clusterIP field. If this field is specified, // clients must ensure that clusterIPs[0] and clusterIP have the same // value. // // This field may hold a maximum of two entries (dual-stack IPs, in either order). // These IPs must correspond to the values of the ipFamilies field. Both // clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies // +listType=atomic // +optional repeated string clusterIPs = 18; // type determines how the Service is exposed. Defaults to ClusterIP. Valid // options are ExternalName, ClusterIP, NodePort, and LoadBalancer. // "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 or // EndpointSlice objects. If clusterIP is "None", no virtual IP is // allocated and the endpoints are published as a set of endpoints rather // than a virtual IP. // "NodePort" builds on ClusterIP and allocates a port on every node which // routes to the same endpoints as the clusterIP. // "LoadBalancer" builds on NodePort and creates an external load-balancer // (if supported in the current cloud) which routes to the same endpoints // as the clusterIP. // "ExternalName" aliases this service to the specified externalName. // Several other fields do not apply to ExternalName services. // 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. // 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. // Deprecated: This field was under-specified and its meaning varies across implementations. // Using it is non-portable and it may not support dual-stack. // Users are encouraged to use implementation-specific annotations when available. // +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/create-external-load-balancer/ // +optional repeated string loadBalancerSourceRanges = 9; // externalName is the external reference that discovery mechanisms will // return as an alias for this service (e.g. a DNS CNAME record). No // proxying will be involved. Must be a lowercase RFC-1123 hostname // (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName". // +optional optional string externalName = 10; // externalTrafficPolicy describes how nodes distribute service traffic they // receive on one of the Service's "externally-facing" addresses (NodePorts, // ExternalIPs, and LoadBalancer IPs). If set to "Local", the proxy will configure // the service in a way that assumes that external load balancers will take care // of balancing the service traffic between nodes, and so each node will deliver // traffic only to the node-local endpoints of the service, without masquerading // the client source IP. (Traffic mistakenly sent to a node with no endpoints will // be dropped.) The default value, "Cluster", uses the standard behavior of // routing to all endpoints evenly (possibly modified by topology and other // features). Note that traffic sent to an External IP or LoadBalancer IP from // within the cluster will always get "Cluster" semantics, but clients sending to // a NodePort from within the cluster may need to take traffic policy into account // when picking a node. // +optional optional string externalTrafficPolicy = 11; // healthCheckNodePort specifies the healthcheck nodePort for the service. // This only applies when type is set to LoadBalancer and // externalTrafficPolicy is set to Local. If a value is specified, is // in-range, and is not in use, it will be used. If not specified, a value // will be automatically allocated. External systems (e.g. load-balancers) // can use this port to determine if a given node holds endpoints for this // service or not. If this field is specified when creating a Service // which does not need it, creation will fail. This field will be wiped // when updating a Service to no longer need it (e.g. changing type). // This field cannot be updated once set. // +optional optional int32 healthCheckNodePort = 12; // publishNotReadyAddresses indicates that any agent which deals with endpoints for this // Service should disregard any indications of ready/not-ready. // The primary use case for setting this field is for a StatefulSet's Headless Service to // propagate SRV DNS records for its Pods for the purpose of peer discovery. // The Kubernetes controllers that generate Endpoints and EndpointSlice resources for // Services interpret this to mean that all endpoints are considered "ready" even if the // Pods themselves are not. Agents which consume only Kubernetes generated endpoints // through the Endpoints or EndpointSlice resources can safely assume this behavior. // +optional optional bool publishNotReadyAddresses = 13; // sessionAffinityConfig contains the configurations of session affinity. // +optional optional SessionAffinityConfig sessionAffinityConfig = 14; // IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this // service. This field is usually assigned automatically based on cluster // configuration and the ipFamilyPolicy field. If this field is specified // manually, the requested family is available in the cluster, // and ipFamilyPolicy allows it, it will be used; otherwise creation of // the service will fail. This field is conditionally mutable: it allows // for adding or removing a secondary IP family, but it does not allow // changing the primary IP family of the Service. Valid values are "IPv4" // and "IPv6". This field only applies to Services of types ClusterIP, // NodePort, and LoadBalancer, and does apply to "headless" services. // This field will be wiped when updating a Service to type ExternalName. // // This field may hold a maximum of two entries (dual-stack families, in // either order). These families must correspond to the values of the // clusterIPs field, if specified. Both clusterIPs and ipFamilies are // governed by the ipFamilyPolicy field. // +listType=atomic // +optional repeated string ipFamilies = 19; // IPFamilyPolicy represents the dual-stack-ness requested or required by // this Service. If there is no value provided, then this field will be set // to SingleStack. Services can be "SingleStack" (a single IP family), // "PreferDualStack" (two IP families on dual-stack configured clusters or // a single IP family on single-stack clusters), or "RequireDualStack" // (two IP families on dual-stack configured clusters, otherwise fail). The // ipFamilies and clusterIPs fields depend on the value of this field. This // field will be wiped when updating a service to type ExternalName. // +optional optional string ipFamilyPolicy = 17; // allocateLoadBalancerNodePorts defines if NodePorts will be automatically // allocated for services with type LoadBalancer. Default is "true". It // may be set to "false" if the cluster load-balancer does not rely on // NodePorts. If the caller requests specific NodePorts (by specifying a // value), those requests will be respected, regardless of this field. // This field may only be set for services with type LoadBalancer and will // be cleared if the type is changed to any other type. // +optional optional bool allocateLoadBalancerNodePorts = 20; // loadBalancerClass is the class of the load balancer implementation this Service belongs to. // If specified, the value of this field must be a label-style identifier, with an optional prefix, // e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users. // This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load // balancer implementation is used, today this is typically done through the cloud provider integration, // but should apply for any default implementation. If set, it is assumed that a load balancer // implementation is watching for Services with a matching class. Any default load balancer // implementation (e.g. cloud providers) should ignore Services that set this field. // This field can only be set when creating or updating a Service to type 'LoadBalancer'. // Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. // +optional optional string loadBalancerClass = 21; // InternalTrafficPolicy describes how nodes distribute service traffic they // receive on the ClusterIP. If set to "Local", the proxy will assume that pods // only want to talk to endpoints of the service on the same node as the pod, // dropping the traffic if there are no local endpoints. The default value, // "Cluster", uses the standard behavior of routing to all endpoints evenly // (possibly modified by topology and other features). // +optional optional string internalTrafficPolicy = 22; } // 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; // Current service state // +optional // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type repeated k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; } // SessionAffinityConfig represents the configurations of session affinity. message SessionAffinityConfig { // clientIP contains the configurations of Client IP based session affinity. // +optional optional ClientIPConfig clientIP = 1; } // SleepAction describes a "sleep" action. message SleepAction { // Seconds is the number of seconds to sleep. optional int64 seconds = 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; // fsType is the 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; // readOnly 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; // fsType is the 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; // readOnly 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; // 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. // +structType=atomic 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. // When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference // between the number of matching pods in the target topology and the global minimum. // The global minimum is the minimum number of matching pods in an eligible domain // or zero if the number of eligible domains is less than MinDomains. // For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same // labelSelector spread as 2/2/1: // In this case, the global minimum is 1. // +-------+-------+-------+ // | zone1 | zone2 | zone3 | // +-------+-------+-------+ // | P P | P P | P | // +-------+-------+-------+ // - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; // scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) // violate MaxSkew(1). // - if MaxSkew is 2, incoming pod can be scheduled onto any zone. // When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence // to topologies that satisfy it. // 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. // We define a domain as a particular instance of a topology. // Also, we define an eligible domain as a domain whose nodes meet the requirements of // nodeAffinityPolicy and nodeTaintsPolicy. // e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. // And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. // 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 schedule the pod in any location, // but giving higher precedence to topologies that would help reduce the // skew. // A constraint is considered "Unsatisfiable" for an incoming pod // if and only if every possible node assignment for that pod would violate // "MaxSkew" on some topology. // 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; // MinDomains indicates a minimum number of eligible domains. // When the number of eligible domains with matching topology keys is less than minDomains, // Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. // And when the number of eligible domains with matching topology keys equals or greater than minDomains, // this value has no effect on scheduling. // As a result, when the number of eligible domains is less than minDomains, // scheduler won't schedule more than maxSkew Pods to those domains. // If value is nil, the constraint behaves as if MinDomains is equal to 1. // Valid values are integers greater than 0. // When value is not nil, WhenUnsatisfiable must be DoNotSchedule. // // For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same // labelSelector spread as 2/2/2: // +-------+-------+-------+ // | zone1 | zone2 | zone3 | // +-------+-------+-------+ // | P P | P P | P P | // +-------+-------+-------+ // The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. // In this situation, new pod with the same labelSelector cannot be scheduled, // because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, // it will violate MaxSkew. // // This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). // +optional optional int32 minDomains = 5; // NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector // when calculating pod topology spread skew. Options are: // - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. // - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. // // If this value is nil, the behavior is equivalent to the Honor policy. // This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. // +optional optional string nodeAffinityPolicy = 6; // NodeTaintsPolicy indicates how we will treat node taints when calculating // pod topology spread skew. Options are: // - Honor: nodes without taints, along with tainted nodes for which the incoming pod // has a toleration, are included. // - Ignore: node taints are ignored. All nodes are included. // // If this value is nil, the behavior is equivalent to the Ignore policy. // This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. // +optional optional string nodeTaintsPolicy = 7; // MatchLabelKeys is a set of pod label keys to select the pods over which // spreading will be calculated. The keys are used to lookup values from the // incoming pod labels, those key-value labels are ANDed with labelSelector // to select the group of existing pods over which spreading will be calculated // for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. // MatchLabelKeys cannot be set when LabelSelector isn't set. // Keys that don't exist in the incoming pod labels will // be ignored. A null or empty list means only match against labelSelector. // // This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). // +listType=atomic // +optional repeated string matchLabelKeys = 8; } // TypedLocalObjectReference contains enough information to let you locate the // typed referenced object inside the same namespace. // +structType=atomic 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; } message TypedObjectReference { // 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; // Namespace is the namespace of resource being referenced // Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. // (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. // +featureGate=CrossNamespaceVolumeDataSource // +optional optional string namespace = 4; } // Volume represents a named volume in a pod that may be accessed by any container in the pod. message Volume { // name of the volume. // 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. // +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 { // secret information about the secret data to project // +optional optional SecretProjection secret = 1; // downwardAPI information about the downwardAPI data to project // +optional optional DownwardAPIProjection downwardAPI = 2; // configMap information about the configMap data to project // +optional optional ConfigMapProjection configMap = 3; // serviceAccountToken is information about the serviceAccountToken data to project // +optional optional ServiceAccountTokenProjection serviceAccountToken = 4; // ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field // of ClusterTrustBundle objects in an auto-updating file. // // Alpha, gated by the ClusterTrustBundleProjection feature gate. // // ClusterTrustBundle objects can either be selected by name, or by the // combination of signer name and a label selector. // // Kubelet performs aggressive normalization of the PEM contents written // into the pod filesystem. Esoteric PEM features such as inter-block // comments and block headers are stripped. Certificates are deduplicated. // The ordering of certificates within the file is arbitrary, and Kubelet // may change the order over time. // // +featureGate=ClusterTrustBundleProjection // +optional optional ClusterTrustBundleProjection clusterTrustBundle = 5; } // VolumeResourceRequirements describes the storage resource requirements for a volume. message VolumeResourceRequirements { // Limits describes the maximum amount of compute resources allowed. // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ // +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. Requests cannot exceed Limits. // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ // +optional map requests = 2; } // 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; // projected 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 ephemeral storage that is handled by certain external CSI drivers (Beta feature). // +optional optional CSIVolumeSource csi = 28; // ephemeral represents a volume that is handled by a cluster storage driver. // The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, // and deleted when the pod is removed. // // Use this if: // a) the volume is only needed while the pod runs, // b) features of normal volumes like restoring from snapshot or capacity // tracking are needed, // c) the storage driver is specified through a storage class, and // d) the storage driver supports dynamic volume provisioning through // a PersistentVolumeClaim (see EphemeralVolumeSource for more // information on the connection between this volume type // and PersistentVolumeClaim). // // Use PersistentVolumeClaim or one of the vendor-specific // APIs for volumes that persist for longer than the lifecycle // of an individual pod. // // Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to // be used that way - see the documentation of the driver for // more information. // // A pod can use both types of ephemeral volumes and // persistent volumes at the same time. // // +optional optional EphemeralVolumeSource ephemeral = 29; } // Represents a vSphere volume resource. message VsphereVirtualDiskVolumeSource { // volumePath is the path that identifies vSphere volume vmdk optional string volumePath = 1; // fsType is 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; // storagePolicyName is the storage Policy Based Management (SPBM) profile name. // +optional optional string storagePolicyName = 3; // storagePolicyID is the 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. // +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. // +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. // +optional optional string runAsUserName = 3; // HostProcess determines if a container should be run as a 'Host Process' container. // All of a Pod's containers must have the same effective HostProcess value // (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). // In addition, if HostProcess is true then HostNetwork must also be set to true. // +optional optional bool hostProcess = 4; } golang-k8s-api-0.29.0/core/v1/lifecycle.go000066400000000000000000000027521453636404600201100ustar00rootroot00000000000000/* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 // APILifecycleIntroduced returns the release in which the API struct was introduced as int versions of major and minor for comparison. func (in *ComponentStatus) APILifecycleIntroduced() (major, minor int) { return 1, 0 } // APILifecycleDeprecated returns the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. func (in *ComponentStatus) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleIntroduced returns the release in which the API struct was introduced as int versions of major and minor for comparison. func (in *ComponentStatusList) APILifecycleIntroduced() (major, minor int) { return 1, 0 } // APILifecycleDeprecated returns the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. func (in *ComponentStatusList) APILifecycleDeprecated() (major, minor int) { return 1, 19 } golang-k8s-api-0.29.0/core/v1/objectreference.go000066400000000000000000000022521453636404600212710ustar00rootroot00000000000000/* 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 ( "k8s.io/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 } golang-k8s-api-0.29.0/core/v1/register.go000066400000000000000000000052311453636404600177700ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "" // 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{}, ) // Add common types scheme.AddKnownTypes(SchemeGroupVersion, &metav1.Status{}) // Add the watch version that applies metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/core/v1/resource.go000066400000000000000000000035011453636404600177710ustar00rootroot00000000000000/* 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 ( "k8s.io/apimachinery/pkg/api/resource" ) // Returns string version of ResourceName. func (rn ResourceName) String() string { return string(rn) } // Cpu returns the Cpu limit if specified. func (rl *ResourceList) Cpu() *resource.Quantity { return rl.Name(ResourceCPU, resource.DecimalSI) } // Memory returns the Memory limit if specified. func (rl *ResourceList) Memory() *resource.Quantity { return rl.Name(ResourceMemory, resource.BinarySI) } // Storage returns the Storage limit if specified. func (rl *ResourceList) Storage() *resource.Quantity { return rl.Name(ResourceStorage, resource.BinarySI) } // Pods returns the list of pods func (rl *ResourceList) Pods() *resource.Quantity { return rl.Name(ResourcePods, resource.DecimalSI) } // StorageEphemeral returns the list of ephemeral storage volumes, if any func (rl *ResourceList) StorageEphemeral() *resource.Quantity { return rl.Name(ResourceEphemeralStorage, resource.BinarySI) } // Name returns the resource with name if specified, otherwise it returns a nil quantity with default format. func (rl *ResourceList) Name(name ResourceName, defaultFormat resource.Format) *resource.Quantity { if val, ok := (*rl)[name]; ok { return &val } return &resource.Quantity{Format: defaultFormat} } golang-k8s-api-0.29.0/core/v1/taint.go000066400000000000000000000024531453636404600172660ustar00rootroot00000000000000/* 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) } golang-k8s-api-0.29.0/core/v1/taint_test.go000066400000000000000000000056721453636404600203330ustar00rootroot00000000000000/* 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()) } } } golang-k8s-api-0.29.0/core/v1/toleration.go000066400000000000000000000040461453636404600203270ustar00rootroot00000000000000/* 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 } } golang-k8s-api-0.29.0/core/v1/toleration_test.go000066400000000000000000000066111453636404600213660ustar00rootroot00000000000000/* 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()) } } } golang-k8s-api-0.29.0/core/v1/types.go000066400000000000000000013600271453636404600173200ustar00rootroot00000000000000/* 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 ( "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" "k8s.io/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 { // name of the volume. // 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"` // projected 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 ephemeral storage that is handled by certain external CSI drivers (Beta feature). // +optional CSI *CSIVolumeSource `json:"csi,omitempty" protobuf:"bytes,28,opt,name=csi"` // ephemeral represents a volume that is handled by a cluster storage driver. // The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, // and deleted when the pod is removed. // // Use this if: // a) the volume is only needed while the pod runs, // b) features of normal volumes like restoring from snapshot or capacity // tracking are needed, // c) the storage driver is specified through a storage class, and // d) the storage driver supports dynamic volume provisioning through // a PersistentVolumeClaim (see EphemeralVolumeSource for more // information on the connection between this volume type // and PersistentVolumeClaim). // // Use PersistentVolumeClaim or one of the vendor-specific // APIs for volumes that persist for longer than the lifecycle // of an individual pod. // // Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to // be used that way - see the documentation of the driver for // more information. // // A pod can use both types of ephemeral volumes and // persistent volumes at the same time. // // +optional Ephemeral *EphemeralVolumeSource `json:"ephemeral,omitempty" protobuf:"bytes,29,opt,name=ephemeral"` } // 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"` // readOnly 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=k8s.io/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 { // capacity is the 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"` // persistentVolumeSource is 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 // +structType=granular ClaimRef *ObjectReference `json:"claimRef,omitempty" protobuf:"bytes,4,opt,name=claimRef"` // persistentVolumeReclaimPolicy defines 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"` // storageClassName is the 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"` // mountOptions is the 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. // +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"` // Name of VolumeAttributesClass to which this persistent volume belongs. Empty value // is not allowed. When this field is not set, it indicates that this volume does not belong to any // VolumeAttributesClass. This field is mutable and can be changed by the CSI driver // after a volume has been updated successfully to a new class. // For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound // PersistentVolumeClaims during the binding process. // This is an alpha field and requires enabling VolumeAttributesClass feature. // +featureGate=VolumeAttributesClass // +optional VolumeAttributesClassName *string `json:"volumeAttributesClassName,omitempty" protobuf:"bytes,10,opt,name=volumeAttributesClassName"` } // 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. // +enum 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. // +enum 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"` // message is 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"` // lastPhaseTransitionTime is the time the phase transitioned from one to another // and automatically resets to current time everytime a volume phase transitions. // This is an alpha field and requires enabling PersistentVolumeLastPhaseTransitionTime feature. // +featureGate=PersistentVolumeLastPhaseTransitionTime // +optional LastPhaseTransitionTime *metav1.Time `json:"lastPhaseTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastPhaseTransitionTime"` } // +k8s:deepcopy-gen:interfaces=k8s.io/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"` // items is a 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=k8s.io/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=k8s.io/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"` // items is 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"` // selector is 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. // If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements // that are lower than previous value but must still be higher than capacity recorded in the // status field of the claim. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources // +optional Resources VolumeResourceRequirements `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"` // storageClassName is the 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. // +optional VolumeMode *PersistentVolumeMode `json:"volumeMode,omitempty" protobuf:"bytes,6,opt,name=volumeMode,casttype=PersistentVolumeMode"` // dataSource field can be used to specify either: // * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) // * An existing PVC (PersistentVolumeClaim) // If the provisioner or an external controller can support the specified data source, // it will create a new volume based on the contents of the specified data source. // When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, // and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. // If the namespace is specified, then dataSourceRef will not be copied to dataSource. // +optional DataSource *TypedLocalObjectReference `json:"dataSource,omitempty" protobuf:"bytes,7,opt,name=dataSource"` // dataSourceRef specifies the object from which to populate the volume with data, if a non-empty // volume is desired. This may be any object from a non-empty API group (non // core object) or a PersistentVolumeClaim object. // When this field is specified, volume binding will only succeed if the type of // the specified object matches some installed volume populator or dynamic // provisioner. // This field will replace the functionality of the dataSource field and as such // if both fields are non-empty, they must have the same value. For backwards // compatibility, when namespace isn't specified in dataSourceRef, // both fields (dataSource and dataSourceRef) will be set to the same // value automatically if one of them is empty and the other is non-empty. // When namespace is specified in dataSourceRef, // dataSource isn't set to the same value and must be empty. // There are three important differences between dataSource and dataSourceRef: // * While dataSource only allows two specific types of objects, dataSourceRef // allows any non-core object, as well as PersistentVolumeClaim objects. // * While dataSource ignores disallowed values (dropping them), dataSourceRef // preserves all values, and generates an error if a disallowed value is // specified. // * While dataSource only allows local objects, dataSourceRef allows objects // in any namespaces. // (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. // (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. // +optional DataSourceRef *TypedObjectReference `json:"dataSourceRef,omitempty" protobuf:"bytes,8,opt,name=dataSourceRef"` // volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. // If specified, the CSI driver will create or update the volume with the attributes defined // in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, // it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass // will be applied to the claim but it's not allowed to reset this field to empty string once it is set. // If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass // will be set by the persistentvolume controller if it exists. // If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be // set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource // exists. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#volumeattributesclass // (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled. // +featureGate=VolumeAttributesClass // +optional VolumeAttributesClassName *string `json:"volumeAttributesClassName,omitempty" protobuf:"bytes,9,opt,name=volumeAttributesClassName"` } type TypedObjectReference 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"` // Namespace is the namespace of resource being referenced // Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. // (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. // +featureGate=CrossNamespaceVolumeDataSource // +optional Namespace *string `json:"namespace,omitempty" protobuf:"bytes,4,opt,name=namespace"` } // 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" // Applying the target VolumeAttributesClass encountered an error PersistentVolumeClaimVolumeModifyVolumeError PersistentVolumeClaimConditionType = "ModifyVolumeError" // Volume is being modified PersistentVolumeClaimVolumeModifyingVolume PersistentVolumeClaimConditionType = "ModifyingVolume" ) // +enum // When a controller receives persistentvolume claim update with ClaimResourceStatus for a resource // that it does not recognizes, then it should ignore that update and let other controllers // handle it. type ClaimResourceStatus string const ( // State set when resize controller starts resizing the volume in control-plane. PersistentVolumeClaimControllerResizeInProgress ClaimResourceStatus = "ControllerResizeInProgress" // State set when resize has failed in resize controller with a terminal error. // Transient errors such as timeout should not set this status and should leave allocatedResourceStatus // unmodified, so as resize controller can resume the volume expansion. PersistentVolumeClaimControllerResizeFailed ClaimResourceStatus = "ControllerResizeFailed" // State set when resize controller has finished resizing the volume but further resizing of volume // is needed on the node. PersistentVolumeClaimNodeResizePending ClaimResourceStatus = "NodeResizePending" // State set when kubelet starts resizing the volume. PersistentVolumeClaimNodeResizeInProgress ClaimResourceStatus = "NodeResizeInProgress" // State set when resizing has failed in kubelet with a terminal error. Transient errors don't set NodeResizeFailed PersistentVolumeClaimNodeResizeFailed ClaimResourceStatus = "NodeResizeFailed" ) // +enum // New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately type PersistentVolumeClaimModifyVolumeStatus string const ( // Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as // the specified VolumeAttributesClass not existing PersistentVolumeClaimModifyVolumePending PersistentVolumeClaimModifyVolumeStatus = "Pending" // InProgress indicates that the volume is being modified PersistentVolumeClaimModifyVolumeInProgress PersistentVolumeClaimModifyVolumeStatus = "InProgress" // Infeasible indicates that the request has been rejected as invalid by the CSI driver. To // resolve the error, a valid VolumeAttributesClass needs to be specified PersistentVolumeClaimModifyVolumeInfeasible PersistentVolumeClaimModifyVolumeStatus = "Infeasible" ) // ModifyVolumeStatus represents the status object of ControllerModifyVolume operation type ModifyVolumeStatus struct { // targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled TargetVolumeAttributesClassName string `json:"targetVolumeAttributesClassName,omitempty" protobuf:"bytes,1,opt,name=targetVolumeAttributesClassName"` // status is the status of the ControllerModifyVolume operation. It can be in any of following states: // - Pending // Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as // the specified VolumeAttributesClass not existing. // - InProgress // InProgress indicates that the volume is being modified. // - Infeasible // Infeasible indicates that the request has been rejected as invalid by the CSI driver. To // resolve the error, a valid VolumeAttributesClass needs to be specified. // Note: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately. Status PersistentVolumeClaimModifyVolumeStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=PersistentVolumeClaimModifyVolumeStatus"` } // PersistentVolumeClaimCondition contains 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"` // lastProbeTime is the time we probed the condition. // +optional LastProbeTime metav1.Time `json:"lastProbeTime,omitempty" protobuf:"bytes,3,opt,name=lastProbeTime"` // lastTransitionTime is the time the condition transitioned from one status to another. // +optional LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"` // reason is a 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"` // message is the 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"` // capacity represents the actual resources of the underlying volume. // +optional Capacity ResourceList `json:"capacity,omitempty" protobuf:"bytes,3,rep,name=capacity,casttype=ResourceList,castkey=ResourceName"` // conditions is the 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"` // allocatedResources tracks the resources allocated to a PVC including its capacity. // Key names follow standard Kubernetes label syntax. Valid values are either: // * Un-prefixed keys: // - storage - the capacity of the volume. // * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource" // Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered // reserved and hence may not be used. // // Capacity reported here may be larger than the actual capacity when a volume expansion operation // is requested. // For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. // If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. // If a volume expansion capacity request is lowered, allocatedResources is only // lowered if there are no expansion operations in progress and if the actual volume capacity // is equal or lower than the requested capacity. // // A controller that receives PVC update with previously unknown resourceName // should ignore the update for the purpose it was designed. For example - a controller that // only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid // resources associated with PVC. // // This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. // +featureGate=RecoverVolumeExpansionFailure // +optional AllocatedResources ResourceList `json:"allocatedResources,omitempty" protobuf:"bytes,5,rep,name=allocatedResources,casttype=ResourceList,castkey=ResourceName"` // resizestatus is tombstoned since the field was replaced by allocatedResourceStatus // ResizeStatus *PersistentVolumeClaimResizeStatus `json:"resizeStatus,omitempty" protobuf:"bytes,6,opt,name=resizeStatus,casttype=PersistentVolumeClaimResizeStatus"` // allocatedResourceStatuses stores status of resource being resized for the given PVC. // Key names follow standard Kubernetes label syntax. Valid values are either: // * Un-prefixed keys: // - storage - the capacity of the volume. // * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource" // Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered // reserved and hence may not be used. // // ClaimResourceStatus can be in any of following states: // - ControllerResizeInProgress: // State set when resize controller starts resizing the volume in control-plane. // - ControllerResizeFailed: // State set when resize has failed in resize controller with a terminal error. // - NodeResizePending: // State set when resize controller has finished resizing the volume but further resizing of // volume is needed on the node. // - NodeResizeInProgress: // State set when kubelet starts resizing the volume. // - NodeResizeFailed: // State set when resizing has failed in kubelet with a terminal error. Transient errors don't set // NodeResizeFailed. // For example: if expanding a PVC for more capacity - this field can be one of the following states: // - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeInProgress" // - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeFailed" // - pvc.status.allocatedResourceStatus['storage'] = "NodeResizePending" // - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeInProgress" // - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeFailed" // When this field is not set, it means that no resize operation is in progress for the given PVC. // // A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus // should ignore the update for the purpose it was designed. For example - a controller that // only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid // resources associated with PVC. // // This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. // +featureGate=RecoverVolumeExpansionFailure // +mapType=granular // +optional AllocatedResourceStatuses map[ResourceName]ClaimResourceStatus `json:"allocatedResourceStatuses,omitempty" protobuf:"bytes,7,rep,name=allocatedResourceStatuses"` // currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. // When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim // This is an alpha field and requires enabling VolumeAttributesClass feature. // +featureGate=VolumeAttributesClass // +optional CurrentVolumeAttributesClassName *string `json:"currentVolumeAttributesClassName,omitempty" protobuf:"bytes,8,opt,name=currentVolumeAttributesClassName"` // ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. // When this is unset, there is no ModifyVolume operation being attempted. // This is an alpha field and requires enabling VolumeAttributesClass feature. // +featureGate=VolumeAttributesClass // +optional ModifyVolumeStatus *ModifyVolumeStatus `json:"modifyVolumeStatus,omitempty" protobuf:"bytes,9,opt,name=modifyVolumeStatus"` } // +enum 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" // can be mounted in read/write mode to exactly 1 pod // cannot be used in combination with other access modes ReadWriteOncePod PersistentVolumeAccessMode = "ReadWriteOncePod" ) // +enum 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" ) // +enum 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" ) // +enum 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 { // medium represents 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"` // sizeLimit is the 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: https://kubernetes.io/docs/concepts/storage/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 { // endpoints 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 { // endpoints 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 { // monitors is 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"` // image is 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"` // fsType is the 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"` // pool is 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"` // user is 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 { // monitors is 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"` // image is 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"` // fsType is the 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"` // pool is 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"` // user is 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 { // volumeID 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"` // fsType is the 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"` // readOnly 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"` // secretRef is 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 { // volumeID 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"` // 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 // +optional FSType string `json:"fsType,omitempty" protobuf:"bytes,2,opt,name=fsType"` // readOnly is 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"` // secretRef is 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 { // monitors is 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"` // path is 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"` // user is 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"` // secretFile is 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"` // secretRef is 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"` // readOnly is 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 // +structType=atomic 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 { // monitors is 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"` // path is 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"` // user is 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"` // secretFile is 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"` // secretRef is 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"` // readOnly is 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 { // datasetName is 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"` // datasetUUID is the 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 StorageMediumHugePagesPrefix StorageMedium = "HugePages-" // prefix for full medium notation HugePages- ) // Protocol defines network protocols supported for things like container ports. // +enum 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 { // pdName is 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"` // fsType is 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"` // partition is 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"` // fsType is the 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"` // secretRef is 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"` // readOnly is 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"` // options is Optional: this field holds 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"` // fsType is the 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"` // secretRef is 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"` // readOnly is 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"` // options is Optional: this field holds 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 { // volumeID is 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"` // fsType is the 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"` // partition is 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"` // readOnly value true will force the readOnly setting in VolumeMounts. // 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 is the URL Repository string `json:"repository" protobuf:"bytes,1,opt,name=repository"` // revision is the commit hash for the specified revision. // +optional Revision string `json:"revision,omitempty" protobuf:"bytes,2,opt,name=revision"` // directory is the 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 { // secretName is the 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"` // 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 Items []KeyToPath `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` // defaultMode is Optional: mode bits used to set permissions on created files by default. // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. // YAML accepts both octal and decimal values, JSON requires decimal values // for mode bits. 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"` // optional field 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"` // 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 Items []KeyToPath `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` // optional field 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 { // targetPortal is 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"` // iqn is the target iSCSI Qualified Name. IQN string `json:"iqn" protobuf:"bytes,2,opt,name=iqn"` // lun represents iSCSI Target Lun number. Lun int32 `json:"lun" protobuf:"varint,3,opt,name=lun"` // iscsiInterface is the interface Name that uses an iSCSI transport. // Defaults to 'default' (tcp). // +optional ISCSIInterface string `json:"iscsiInterface,omitempty" protobuf:"bytes,4,opt,name=iscsiInterface"` // fsType is the 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"` // portals is the 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"` // chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication // +optional DiscoveryCHAPAuth bool `json:"chapAuthDiscovery,omitempty" protobuf:"varint,8,opt,name=chapAuthDiscovery"` // chapAuthSession defines whether support iSCSI Session CHAP authentication // +optional SessionCHAPAuth bool `json:"chapAuthSession,omitempty" protobuf:"varint,11,opt,name=chapAuthSession"` // secretRef is the CHAP Secret for iSCSI target and initiator authentication // +optional SecretRef *LocalObjectReference `json:"secretRef,omitempty" protobuf:"bytes,10,opt,name=secretRef"` // initiatorName is the 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 { // targetPortal is 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"` // iqn is Target iSCSI Qualified Name. IQN string `json:"iqn" protobuf:"bytes,2,opt,name=iqn"` // lun is iSCSI Target Lun number. Lun int32 `json:"lun" protobuf:"varint,3,opt,name=lun"` // iscsiInterface is the interface Name that uses an iSCSI transport. // Defaults to 'default' (tcp). // +optional ISCSIInterface string `json:"iscsiInterface,omitempty" protobuf:"bytes,4,opt,name=iscsiInterface"` // fsType is the 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"` // portals is the 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"` // chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication // +optional DiscoveryCHAPAuth bool `json:"chapAuthDiscovery,omitempty" protobuf:"varint,8,opt,name=chapAuthDiscovery"` // chapAuthSession defines whether support iSCSI Session CHAP authentication // +optional SessionCHAPAuth bool `json:"chapAuthSession,omitempty" protobuf:"varint,11,opt,name=chapAuthSession"` // secretRef is the CHAP Secret for iSCSI target and initiator authentication // +optional SecretRef *SecretReference `json:"secretRef,omitempty" protobuf:"bytes,10,opt,name=secretRef"` // initiatorName is the 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 { // targetWWNs is Optional: FC target worldwide names (WWNs) // +optional TargetWWNs []string `json:"targetWWNs,omitempty" protobuf:"bytes,1,rep,name=targetWWNs"` // lun is Optional: FC target lun number // +optional Lun *int32 `json:"lun,omitempty" protobuf:"varint,2,opt,name=lun"` // fsType is the 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"` // readOnly is 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"` // wwids 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 { // secretName is the name of secret that contains Azure Storage Account Name and Key SecretName string `json:"secretName" protobuf:"bytes,1,opt,name=secretName"` // shareName is the azure share Name ShareName string `json:"shareName" protobuf:"bytes,2,opt,name=shareName"` // readOnly 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 { // secretName is the name of secret that contains Azure Storage Account Name and Key SecretName string `json:"secretName" protobuf:"bytes,1,opt,name=secretName"` // shareName is the azure Share Name ShareName string `json:"shareName" protobuf:"bytes,2,opt,name=shareName"` // readOnly 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"` // secretNamespace is 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 { // volumePath is the path that identifies vSphere volume vmdk VolumePath string `json:"volumePath" protobuf:"bytes,1,opt,name=volumePath"` // fsType is 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"` // storagePolicyName is the storage Policy Based Management (SPBM) profile name. // +optional StoragePolicyName string `json:"storagePolicyName,omitempty" protobuf:"bytes,3,opt,name=storagePolicyName"` // storagePolicyID is the 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 { // pdID is the ID that identifies Photon Controller persistent disk PdID string `json:"pdID" protobuf:"bytes,1,opt,name=pdID"` // fsType is the 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"` } // +enum type AzureDataDiskCachingMode string // +enum 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 { // diskName is the Name of the data disk in the blob storage DiskName string `json:"diskName" protobuf:"bytes,1,opt,name=diskName"` // diskURI is the URI of data disk in the blob storage DataDiskURI string `json:"diskURI" protobuf:"bytes,2,opt,name=diskURI"` // cachingMode is the Host Caching mode: None, Read Only, Read Write. // +optional CachingMode *AzureDataDiskCachingMode `json:"cachingMode,omitempty" protobuf:"bytes,3,opt,name=cachingMode,casttype=AzureDataDiskCachingMode"` // fsType is 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"` // readOnly 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"` // kind expected values are 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"` // readOnly 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 { // gateway is the host address of the ScaleIO API Gateway. Gateway string `json:"gateway" protobuf:"bytes,1,opt,name=gateway"` // system is 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"` // sslEnabled Flag enable/disable SSL communication with Gateway, default false // +optional SSLEnabled bool `json:"sslEnabled,omitempty" protobuf:"varint,4,opt,name=sslEnabled"` // protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. // +optional ProtectionDomain string `json:"protectionDomain,omitempty" protobuf:"bytes,5,opt,name=protectionDomain"` // storagePool is the ScaleIO Storage Pool associated with the protection domain. // +optional StoragePool string `json:"storagePool,omitempty" protobuf:"bytes,6,opt,name=storagePool"` // storageMode 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"` // volumeName is 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"` // fsType is the 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"` // readOnly 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 { // gateway is the host address of the ScaleIO API Gateway. Gateway string `json:"gateway" protobuf:"bytes,1,opt,name=gateway"` // system is 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"` // sslEnabled is the flag to enable/disable SSL communication with Gateway, default false // +optional SSLEnabled bool `json:"sslEnabled,omitempty" protobuf:"varint,4,opt,name=sslEnabled"` // protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. // +optional ProtectionDomain string `json:"protectionDomain,omitempty" protobuf:"bytes,5,opt,name=protectionDomain"` // storagePool is the ScaleIO Storage Pool associated with the protection domain. // +optional StoragePool string `json:"storagePool,omitempty" protobuf:"bytes,6,opt,name=storagePool"` // storageMode 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"` // volumeName is 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"` // fsType is the 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"` // readOnly 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"` // fsType is the 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"` // readOnly 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"` // fsType is the 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"` // readOnly 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"` // 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 Items []KeyToPath `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` // defaultMode is optional: mode bits used to set permissions on created files by default. // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. // 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"` // optional 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"` // 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 Items []KeyToPath `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` // optional 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"` } // ClusterTrustBundleProjection describes how to select a set of // ClusterTrustBundle objects and project their contents into the pod // filesystem. type ClusterTrustBundleProjection struct { // Select a single ClusterTrustBundle by object name. Mutually-exclusive // with signerName and labelSelector. // +optional Name *string `json:"name,omitempty" protobuf:"bytes,1,rep,name=name"` // Select all ClusterTrustBundles that match this signer name. // Mutually-exclusive with name. The contents of all selected // ClusterTrustBundles will be unified and deduplicated. // +optional SignerName *string `json:"signerName,omitempty" protobuf:"bytes,2,rep,name=signerName"` // Select all ClusterTrustBundles that match this label selector. Only has // effect if signerName is set. Mutually-exclusive with name. If unset, // interpreted as "match nothing". If set but empty, interpreted as "match // everything". // +optional LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty" protobuf:"bytes,3,rep,name=labelSelector"` // If true, don't block pod startup if the referenced ClusterTrustBundle(s) // aren't available. If using name, then the named ClusterTrustBundle is // allowed not to exist. If using signerName, then the combination of // signerName and labelSelector is allowed to match zero // ClusterTrustBundles. // +optional Optional *bool `json:"optional,omitempty" protobuf:"varint,5,opt,name=optional"` // Relative path from the volume root to write the bundle. Path string `json:"path" protobuf:"bytes,4,rep,name=path"` } // Represents a projected volume source type ProjectedVolumeSource struct { // sources is the list of volume projections // +optional Sources []VolumeProjection `json:"sources" protobuf:"bytes,1,rep,name=sources"` // defaultMode are the mode bits used to set permissions on created files by default. // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. // 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 // secret information about the secret data to project // +optional Secret *SecretProjection `json:"secret,omitempty" protobuf:"bytes,1,opt,name=secret"` // downwardAPI information about the downwardAPI data to project // +optional DownwardAPI *DownwardAPIProjection `json:"downwardAPI,omitempty" protobuf:"bytes,2,opt,name=downwardAPI"` // configMap information about the configMap data to project // +optional ConfigMap *ConfigMapProjection `json:"configMap,omitempty" protobuf:"bytes,3,opt,name=configMap"` // serviceAccountToken is information about the serviceAccountToken data to project // +optional ServiceAccountToken *ServiceAccountTokenProjection `json:"serviceAccountToken,omitempty" protobuf:"bytes,4,opt,name=serviceAccountToken"` // ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field // of ClusterTrustBundle objects in an auto-updating file. // // Alpha, gated by the ClusterTrustBundleProjection feature gate. // // ClusterTrustBundle objects can either be selected by name, or by the // combination of signer name and a label selector. // // Kubelet performs aggressive normalization of the PEM contents written // into the pod filesystem. Esoteric PEM features such as inter-block // comments and block headers are stripped. Certificates are deduplicated. // The ordering of certificates within the file is arbitrary, and Kubelet // may change the order over time. // // +featureGate=ClusterTrustBundleProjection // +optional ClusterTrustBundle *ClusterTrustBundleProjection `json:"clusterTrustBundle,omitempty" protobuf:"bytes,5,opt,name=clusterTrustBundle"` } const ( ProjectedVolumeSourceDefaultMode int32 = 0644 ) // Maps a string key to a path within a volume. type KeyToPath struct { // key is the key to project. Key string `json:"key" protobuf:"bytes,1,opt,name=key"` // path is 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"` // mode is Optional: mode bits used to set permissions on this file. // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. // 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 { // path of 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"` // fsType is the 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 filesystem 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"` // readOnly value to pass to ControllerPublishVolumeRequest. // Defaults to false (read/write). // +optional ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` // fsType 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"` // volumeAttributes 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 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"` // nodeExpandSecretRef is a reference to the secret object containing // sensitive information to pass to the CSI driver to complete the CSI // NodeExpandVolume call. // This field is optional, may be omitted if no secret is required. If the // secret object contains more than one secret, all secrets are passed. // +optional NodeExpandSecretRef *SecretReference `json:"nodeExpandSecretRef,omitempty" protobuf:"bytes,10,opt,name=nodeExpandSecretRef"` } // 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"` // readOnly 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"` // fsType 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"` } // Represents an ephemeral volume that is handled by a normal storage driver. type EphemeralVolumeSource struct { // Will be used to create a stand-alone PVC to provision the volume. // The pod in which this EphemeralVolumeSource is embedded will be the // owner of the PVC, i.e. the PVC will be deleted together with the // pod. The name of the PVC will be `-` where // `` is the name from the `PodSpec.Volumes` array // entry. Pod validation will reject the pod if the concatenated name // is not valid for a PVC (for example, too long). // // An existing PVC with that name that is not owned by the pod // will *not* be used for the pod to avoid using an unrelated // volume by mistake. Starting the pod is then blocked until // the unrelated PVC is removed. If such a pre-created PVC is // meant to be used by the pod, the PVC has to updated with an // owner reference to the pod once the pod exists. Normally // this should not be necessary, but it may be useful when // manually reconstructing a broken cluster. // // This field is read-only and no changes will be made by Kubernetes // to the PVC after it has been created. // // Required, must not be nil. VolumeClaimTemplate *PersistentVolumeClaimTemplate `json:"volumeClaimTemplate,omitempty" protobuf:"bytes,1,opt,name=volumeClaimTemplate"` // ReadOnly is tombstoned to show why 2 is a reserved protobuf tag. // ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,2,opt,name=readOnly"` } // PersistentVolumeClaimTemplate is used to produce // PersistentVolumeClaim objects as part of an EphemeralVolumeSource. type PersistentVolumeClaimTemplate struct { // May contain labels and annotations that will be copied into the PVC // when creating it. No other fields are allowed and will be rejected during // validation. // // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // The specification for the PersistentVolumeClaim. The entire content is // copied unchanged into the PVC that gets created from this // template. The same fields as in a PersistentVolumeClaim // are also valid here. Spec PersistentVolumeClaimSpec `json:"spec" protobuf:"bytes,2,name=spec"` } // 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 // +default="TCP" 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. // +optional SubPathExpr string `json:"subPathExpr,omitempty" protobuf:"bytes,6,opt,name=subPathExpr"` } // MountPropagationMode describes mount propagation. // +enum 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 previously 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. Double $$ are reduced // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. // "$$(VAR_NAME)" will produce the string literal "$(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, status.podIPs. // +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. // +structType=atomic 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 // +structType=atomic 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. // +structType=atomic 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. // +structType=atomic 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. // This will be canonicalized upon output, so case-variant names will be understood as the same header. 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 // +enum 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"` } type GRPCAction struct { // Port number of the gRPC service. Number must be in the range 1 to 65535. Port int32 `json:"port" protobuf:"bytes,1,opt,name=port"` // Service is the name of the service to place in the gRPC HealthCheckRequest // (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). // // If this is not specified, the default behavior is defined by gRPC. // +optional // +default="" Service *string `json:"service" protobuf:"bytes,2,opt,name=service"` } // 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"` } // SleepAction describes a "sleep" action. type SleepAction struct { // Seconds is the number of seconds to sleep. Seconds int64 `json:"seconds" protobuf:"bytes,1,opt,name=seconds"` } // 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 ProbeHandler `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"` // Optional duration in seconds the pod needs to terminate gracefully upon probe failure. // 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. // If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this // value overrides the value provided by the pod spec. // Value must be non-negative integer. The value zero indicates stop immediately via // the kill signal (no opportunity to shut down). // This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. // Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. // +optional TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" protobuf:"varint,7,opt,name=terminationGracePeriodSeconds"` } // PullPolicy describes a policy for if/when to pull a container image // +enum 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" ) // ResourceResizeRestartPolicy specifies how to handle container resource resize. type ResourceResizeRestartPolicy string // These are the valid resource resize restart policy values: const ( // 'NotRequired' means Kubernetes will try to resize the container // without restarting it, if possible. Kubernetes may however choose to // restart the container if it is unable to actuate resize without a // restart. For e.g. the runtime doesn't support restart-free resizing. NotRequired ResourceResizeRestartPolicy = "NotRequired" // 'RestartContainer' means Kubernetes will resize the container in-place // by stopping and starting the container when new resources are applied. // This is needed for legacy applications. For e.g. java apps using the // -xmxN flag which are unable to use resized memory without restarting. RestartContainer ResourceResizeRestartPolicy = "RestartContainer" ) // ContainerResizePolicy represents resource resize policy for the container. type ContainerResizePolicy struct { // Name of the resource to which this resource resize policy applies. // Supported values: cpu, memory. ResourceName ResourceName `json:"resourceName" protobuf:"bytes,1,opt,name=resourceName,casttype=ResourceName"` // Restart policy to apply when specified resource is resized. // If not specified, it defaults to NotRequired. RestartPolicy ResourceResizeRestartPolicy `json:"restartPolicy" protobuf:"bytes,2,opt,name=restartPolicy,casttype=ResourceResizeRestartPolicy"` } // PreemptionPolicy describes a policy for if/when to preempt a pod. // +enum 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. // +enum 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-resources-containers/ // +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. Requests cannot exceed Limits. // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ // +optional Requests ResourceList `json:"requests,omitempty" protobuf:"bytes,2,rep,name=requests,casttype=ResourceList,castkey=ResourceName"` // Claims lists the names of resources, defined in spec.resourceClaims, // that are used by this container. // // This is an alpha field and requires enabling the // DynamicResourceAllocation feature gate. // // This field is immutable. It can only be set for containers. // // +listType=map // +listMapKey=name // +featureGate=DynamicResourceAllocation // +optional Claims []ResourceClaim `json:"claims,omitempty" protobuf:"bytes,3,opt,name=claims"` } // VolumeResourceRequirements describes the storage resource requirements for a volume. type VolumeResourceRequirements struct { // Limits describes the maximum amount of compute resources allowed. // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ // +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. Requests cannot exceed Limits. // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ // +optional Requests ResourceList `json:"requests,omitempty" protobuf:"bytes,2,rep,name=requests,casttype=ResourceList,castkey=ResourceName"` // Claims got added by accident when volumes shared the ResourceRequirements struct // with containers. Stripping the field got added in 1.27 and was backported to 1.26. // Starting with Kubernetes 1.28, this field is not part of the volume API anymore. // // Future extensions must not use "claims" or field number 3. // Claims []ResourceClaim `json:"claims,omitempty" protobuf:"bytes,3,opt,name=claims"` } // ResourceClaim references one entry in PodSpec.ResourceClaims. type ResourceClaim struct { // Name must match the name of one entry in pod.spec.resourceClaims of // the Pod where this field is used. It makes that resource available // inside a container. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` } 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"` // Container 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 container 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. Double $$ are reduced // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will // produce the string literal "$(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 container 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. Double $$ are reduced // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will // produce the string literal "$(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. 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. // Modifying this array with strategic merge patch may corrupt the data. // For more information See https://github.com/kubernetes/kubernetes/issues/108255. // 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-resources-containers/ // +optional Resources ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,8,opt,name=resources"` // Resources resize policy for the container. // +featureGate=InPlacePodVerticalScaling // +optional // +listType=atomic ResizePolicy []ContainerResizePolicy `json:"resizePolicy,omitempty" protobuf:"bytes,23,rep,name=resizePolicy"` // RestartPolicy defines the restart behavior of individual containers in a pod. // This field may only be set for init containers, and the only allowed value is "Always". // For non-init containers or when this field is not specified, // the restart behavior is defined by the Pod's restart policy and the container type. // Setting the RestartPolicy as "Always" for the init container will have the following effect: // this init container will be continually restarted on // exit until all regular containers have terminated. Once all regular // containers have completed, all init containers with restartPolicy "Always" // will be shut down. This lifecycle differs from normal init containers and // is often referred to as a "sidecar" container. Although this init // container still starts in the init container sequence, it does not wait // for the container to complete before proceeding to the next init // container. Instead, the next init container starts immediately after this // init container is started, or after any startupProbe has successfully // completed. // +featureGate=SidecarContainers // +optional RestartPolicy *ContainerRestartPolicy `json:"restartPolicy,omitempty" protobuf:"bytes,24,opt,name=restartPolicy,casttype=ContainerRestartPolicy"` // 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. // +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. // 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"` // SecurityContext defines the security options the container should be run with. // If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. // 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"` } // ProbeHandler defines a specific action that should be taken in a probe. // One and only one of the fields must be specified. type ProbeHandler struct { // 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. // +optional TCPSocket *TCPSocketAction `json:"tcpSocket,omitempty" protobuf:"bytes,3,opt,name=tcpSocket"` // GRPC specifies an action involving a GRPC port. // +optional GRPC *GRPCAction `json:"grpc,omitempty" protobuf:"bytes,4,opt,name=grpc"` } // LifecycleHandler defines a specific action that should be taken in a lifecycle // hook. One and only one of the fields, except TCPSocket must be specified. type LifecycleHandler struct { // 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"` // Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept // for the backward compatibility. There are no validation of this field and // lifecycle hooks will fail in runtime when tcp handler is specified. // +optional TCPSocket *TCPSocketAction `json:"tcpSocket,omitempty" protobuf:"bytes,3,opt,name=tcpSocket"` // Sleep represents the duration that the container should sleep before being terminated. // +featureGate=PodLifecycleSleepAction // +optional Sleep *SleepAction `json:"sleep,omitempty" protobuf:"bytes,4,opt,name=sleep"` } // 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 *LifecycleHandler `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 Pod's termination grace period countdown begins before the // PreStop hook is executed. Regardless of the outcome of the handler, the // container will eventually terminate within the Pod's termination grace // period (unless delayed by finalizers). 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 *LifecycleHandler `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 '://' // +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 { // Name is a DNS_LABEL representing the unique name of the container. // Each container in a pod must have a unique name across all container types. // Cannot be updated. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` // State holds details about the container's current condition. // +optional State ContainerState `json:"state,omitempty" protobuf:"bytes,2,opt,name=state"` // LastTerminationState holds the last termination state of the container to // help debug container crashes and restarts. This field is not // populated if the container is still running and RestartCount is 0. // +optional LastTerminationState ContainerState `json:"lastState,omitempty" protobuf:"bytes,3,opt,name=lastState"` // Ready specifies whether the container is currently passing its readiness check. // The value will change as readiness probes keep executing. If no readiness // probes are specified, this field defaults to true once the container is // fully started (see Started field). // // The value is typically used to determine whether a container is ready to // accept traffic. Ready bool `json:"ready" protobuf:"varint,4,opt,name=ready"` // RestartCount holds the number of times the container has been restarted. // Kubelet makes an effort to always increment the value, but there // are cases when the state may be lost due to node restarts and then the value // may be reset to 0. The value is never negative. RestartCount int32 `json:"restartCount" protobuf:"varint,5,opt,name=restartCount"` // Image is the name of container image that the container is running. // The container image may not match the image used in the PodSpec, // as it may have been resolved by the runtime. // More info: https://kubernetes.io/docs/concepts/containers/images. Image string `json:"image" protobuf:"bytes,6,opt,name=image"` // ImageID is the image ID of the container's image. The image ID may not // match the image ID of the image used in the PodSpec, as it may have been // resolved by the runtime. ImageID string `json:"imageID" protobuf:"bytes,7,opt,name=imageID"` // ContainerID is the ID of the container in the format '://'. // Where type is a container runtime identifier, returned from Version call of CRI API // (for example "containerd"). // +optional ContainerID string `json:"containerID,omitempty" protobuf:"bytes,8,opt,name=containerID"` // Started indicates whether the container has finished its postStart lifecycle hook // and 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. In both cases, startup probes will run again. // Is always true when no startupProbe is defined and container is running and // has passed the postStart lifecycle hook. The null value must be treated the // same as false. // +optional Started *bool `json:"started,omitempty" protobuf:"varint,9,opt,name=started"` // AllocatedResources represents the compute resources allocated for this container by the // node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission // and after successfully admitting desired pod resize. // +featureGate=InPlacePodVerticalScaling // +optional AllocatedResources ResourceList `json:"allocatedResources,omitempty" protobuf:"bytes,10,rep,name=allocatedResources,casttype=ResourceList,castkey=ResourceName"` // Resources represents the compute resource requests and limits that have been successfully // enacted on the running container after it has been started or has been successfully resized. // +featureGate=InPlacePodVerticalScaling // +optional Resources *ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,11,opt,name=resources"` } // PodPhase is a label for the condition of a pod at the current time. // +enum 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. // Deprecated: It isn't being set since 2015 (74da3b14b0c0f658b3bb8d2def5094686d0e9095) PodUnknown PodPhase = "Unknown" ) // PodConditionType is a valid value for PodCondition.Type type PodConditionType string // These are built-in conditions of pod. An application may use a custom condition not listed here. 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" // DisruptionTarget indicates the pod is about to be terminated due to a // disruption (such as preemption, eviction API or garbage-collection). DisruptionTarget PodConditionType = "DisruptionTarget" // PodReadyToStartContainers pod sandbox is successfully configured and // the pod is ready to launch containers. PodReadyToStartContainers PodConditionType = "PodReadyToStartContainers" ) // 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" // PodReasonSchedulingGated reason in PodScheduled PodCondition means that the scheduler // skips scheduling the pod because one or more scheduling gates are still present. PodReasonSchedulingGated = "SchedulingGated" // PodReasonSchedulerError reason in PodScheduled PodCondition means that some internal error happens // during scheduling, for example due to nodeAffinity parsing errors. PodReasonSchedulerError = "SchedulerError" // TerminationByKubelet reason in DisruptionTarget pod condition indicates that the termination // is initiated by kubelet PodReasonTerminationByKubelet = "TerminationByKubelet" // PodReasonPreemptionByScheduler reason in DisruptionTarget pod condition indicates that the // disruption was initiated by scheduler's preemption. PodReasonPreemptionByScheduler = "PreemptionByScheduler" ) // 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"` } // PodResizeStatus shows status of desired resize of a pod's containers. type PodResizeStatus string const ( // Pod resources resize has been requested and will be evaluated by node. PodResizeStatusProposed PodResizeStatus = "Proposed" // Pod resources resize has been accepted by node and is being actuated. PodResizeStatusInProgress PodResizeStatus = "InProgress" // Node cannot resize the pod at this time and will keep retrying. PodResizeStatusDeferred PodResizeStatus = "Deferred" // Requested pod resize is not feasible and will not be re-evaluated. PodResizeStatusInfeasible PodResizeStatus = "Infeasible" ) // 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. // +enum type RestartPolicy string const ( RestartPolicyAlways RestartPolicy = "Always" RestartPolicyOnFailure RestartPolicy = "OnFailure" RestartPolicyNever RestartPolicy = "Never" ) // ContainerRestartPolicy is the restart policy for a single container. // This may only be set for init containers and only allowed value is "Always". type ContainerRestartPolicy string const ( ContainerRestartPolicyAlways ContainerRestartPolicy = "Always" ) // DNSPolicy defines how a pod's DNS will be configured. // +enum 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. // +structType=atomic 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. // +structType=atomic 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. // +enum 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. // +structType=atomic type TopologySelectorTerm struct { // Usage: Fields of type []TopologySelectorTerm must be listType=atomic. // 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. // If it's null, this PodAffinityTerm matches with no Pods. // +optional LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty" protobuf:"bytes,1,opt,name=labelSelector"` // namespaces specifies a static list of namespace names that the term applies to. // The term is applied to the union of the namespaces listed in this field // and the ones selected by namespaceSelector. // null or empty namespaces list and null namespaceSelector 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"` // A label query over the set of namespaces that the term applies to. // The term is applied to the union of the namespaces selected by this field // and the ones listed in the namespaces field. // null selector and null or empty namespaces list means "this pod's namespace". // An empty selector ({}) matches all namespaces. // +optional NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty" protobuf:"bytes,4,opt,name=namespaceSelector"` // MatchLabelKeys is a set of pod label keys to select which pods will // be taken into consideration. The keys are used to lookup values from the // incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` // to select the group of existing pods which pods will be taken into consideration // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming // pod labels will be ignored. The default value is empty. // The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. // Also, MatchLabelKeys cannot be set when LabelSelector isn't set. // This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. // +listType=atomic // +optional MatchLabelKeys []string `json:"matchLabelKeys,omitempty" protobuf:"bytes,5,opt,name=matchLabelKeys"` // MismatchLabelKeys is a set of pod label keys to select which pods will // be taken into consideration. The keys are used to lookup values from the // incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` // to select the group of existing pods which pods will be taken into consideration // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming // pod labels will be ignored. The default value is empty. // The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. // Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. // This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. // +listType=atomic // +optional MismatchLabelKeys []string `json:"mismatchLabelKeys,omitempty" protobuf:"bytes,6,opt,name=mismatchLabelKeys"` } // 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"` // 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"` } // +enum 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. // +enum 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. // +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. In some contexts, only a subset of those values may be permitted. // 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 stop immediately via // the kill signal (no opportunity to shut down). // 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 // +mapType=atomic 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. // +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. // 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/580-pod-readiness-gates // +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/585-runtime-class // +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. // +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/688-pod-overhead/README.md // +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. // 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"` // If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). // In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). // In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. // If a pod does not have FQDN, this has no effect. // Default to false. // +optional SetHostnameAsFQDN *bool `json:"setHostnameAsFQDN,omitempty" protobuf:"varint,35,opt,name=setHostnameAsFQDN"` // Specifies the OS of the containers in the pod. // Some pod and container fields are restricted if this is set. // // If the OS field is set to linux, the following fields must be unset: // -securityContext.windowsOptions // // If the OS field is set to windows, following fields must be unset: // - spec.hostPID // - spec.hostIPC // - spec.hostUsers // - spec.securityContext.seLinuxOptions // - spec.securityContext.seccompProfile // - spec.securityContext.fsGroup // - spec.securityContext.fsGroupChangePolicy // - spec.securityContext.sysctls // - spec.shareProcessNamespace // - spec.securityContext.runAsUser // - spec.securityContext.runAsGroup // - spec.securityContext.supplementalGroups // - spec.containers[*].securityContext.seLinuxOptions // - spec.containers[*].securityContext.seccompProfile // - spec.containers[*].securityContext.capabilities // - spec.containers[*].securityContext.readOnlyRootFilesystem // - spec.containers[*].securityContext.privileged // - spec.containers[*].securityContext.allowPrivilegeEscalation // - spec.containers[*].securityContext.procMount // - spec.containers[*].securityContext.runAsUser // - spec.containers[*].securityContext.runAsGroup // +optional OS *PodOS `json:"os,omitempty" protobuf:"bytes,36,opt,name=os"` // Use the host's user namespace. // Optional: Default to true. // If set to true or not present, the pod will be run in the host user namespace, useful // for when the pod needs a feature only available to the host user namespace, such as // loading a kernel module with CAP_SYS_MODULE. // When set to false, a new userns is created for the pod. Setting false is useful for // mitigating container breakout vulnerabilities even allowing users to run their // containers as root without actually having root privileges on the host. // This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. // +k8s:conversion-gen=false // +optional HostUsers *bool `json:"hostUsers,omitempty" protobuf:"bytes,37,opt,name=hostUsers"` // SchedulingGates is an opaque list of values that if specified will block scheduling the pod. // If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the // scheduler will not attempt to schedule the pod. // // SchedulingGates can only be set at pod creation time, and be removed only afterwards. // // This is a beta feature enabled by the PodSchedulingReadiness feature gate. // // +patchMergeKey=name // +patchStrategy=merge // +listType=map // +listMapKey=name // +featureGate=PodSchedulingReadiness // +optional SchedulingGates []PodSchedulingGate `json:"schedulingGates,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,38,opt,name=schedulingGates"` // ResourceClaims defines which ResourceClaims must be allocated // and reserved before the Pod is allowed to start. The resources // will be made available to those containers which consume them // by name. // // This is an alpha field and requires enabling the // DynamicResourceAllocation feature gate. // // This field is immutable. // // +patchMergeKey=name // +patchStrategy=merge,retainKeys // +listType=map // +listMapKey=name // +featureGate=DynamicResourceAllocation // +optional ResourceClaims []PodResourceClaim `json:"resourceClaims,omitempty" patchStrategy:"merge,retainKeys" patchMergeKey:"name" protobuf:"bytes,39,rep,name=resourceClaims"` } // PodResourceClaim references exactly one ResourceClaim through a ClaimSource. // It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. // Containers that need access to the ResourceClaim reference it with this name. type PodResourceClaim struct { // Name uniquely identifies this resource claim inside the pod. // This must be a DNS_LABEL. Name string `json:"name" protobuf:"bytes,1,name=name"` // Source describes where to find the ResourceClaim. Source ClaimSource `json:"source,omitempty" protobuf:"bytes,2,name=source"` } // ClaimSource describes a reference to a ResourceClaim. // // Exactly one of these fields should be set. Consumers of this type must // treat an empty object as if it has an unknown value. type ClaimSource struct { // ResourceClaimName is the name of a ResourceClaim object in the same // namespace as this pod. ResourceClaimName *string `json:"resourceClaimName,omitempty" protobuf:"bytes,1,opt,name=resourceClaimName"` // ResourceClaimTemplateName is the name of a ResourceClaimTemplate // object in the same namespace as this pod. // // The template will be used to create a new ResourceClaim, which will // be bound to this pod. When this pod is deleted, the ResourceClaim // will also be deleted. The pod name and resource name, along with a // generated component, will be used to form a unique name for the // ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. // // This field is immutable and no changes will be made to the // corresponding ResourceClaim by the control plane after creating the // ResourceClaim. ResourceClaimTemplateName *string `json:"resourceClaimTemplateName,omitempty" protobuf:"bytes,2,opt,name=resourceClaimTemplateName"` } // PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim // which references a ResourceClaimTemplate. It stores the generated name for // the corresponding ResourceClaim. type PodResourceClaimStatus struct { // Name uniquely identifies this resource claim inside the pod. // This must match the name of an entry in pod.spec.resourceClaims, // which implies that the string must be a DNS_LABEL. Name string `json:"name" protobuf:"bytes,1,name=name"` // ResourceClaimName is the name of the ResourceClaim that was // generated for the Pod in the namespace of the Pod. It this is // unset, then generating a ResourceClaim was not necessary. The // pod.spec.resourceClaims entry can be ignored in this case. // // +optional ResourceClaimName *string `json:"resourceClaimName,omitempty" protobuf:"bytes,2,opt,name=resourceClaimName"` } // OSName is the set of OS'es that can be used in OS. type OSName string // These are valid values for OSName const ( Linux OSName = "linux" Windows OSName = "windows" ) // PodOS defines the OS parameters of a pod. type PodOS struct { // Name is the name of the operating system. The currently supported values are linux and windows. // Additional value may be defined in future and can be one of: // https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration // Clients should expect to handle additional values and treat unrecognized values in this field as os: null Name OSName `json:"name" protobuf:"bytes,1,opt,name=name"` } // PodSchedulingGate is associated to a Pod to guard its scheduling. type PodSchedulingGate struct { // Name of the scheduling gate. // Each scheduling gate must have a unique name field. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` } // +enum 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" ) // NodeInclusionPolicy defines the type of node inclusion policy // +enum type NodeInclusionPolicy string const ( // NodeInclusionPolicyIgnore means ignore this scheduling directive when calculating pod topology spread skew. NodeInclusionPolicyIgnore NodeInclusionPolicy = "Ignore" // NodeInclusionPolicyHonor means use this scheduling directive when calculating pod topology spread skew. NodeInclusionPolicyHonor NodeInclusionPolicy = "Honor" ) // 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. // When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference // between the number of matching pods in the target topology and the global minimum. // The global minimum is the minimum number of matching pods in an eligible domain // or zero if the number of eligible domains is less than MinDomains. // For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same // labelSelector spread as 2/2/1: // In this case, the global minimum is 1. // +-------+-------+-------+ // | zone1 | zone2 | zone3 | // +-------+-------+-------+ // | P P | P P | P | // +-------+-------+-------+ // - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; // scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) // violate MaxSkew(1). // - if MaxSkew is 2, incoming pod can be scheduled onto any zone. // When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence // to topologies that satisfy it. // 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. // We define a domain as a particular instance of a topology. // Also, we define an eligible domain as a domain whose nodes meet the requirements of // nodeAffinityPolicy and nodeTaintsPolicy. // e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. // And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. // 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 schedule the pod in any location, // but giving higher precedence to topologies that would help reduce the // skew. // A constraint is considered "Unsatisfiable" for an incoming pod // if and only if every possible node assignment for that pod would violate // "MaxSkew" on some topology. // 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"` // MinDomains indicates a minimum number of eligible domains. // When the number of eligible domains with matching topology keys is less than minDomains, // Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. // And when the number of eligible domains with matching topology keys equals or greater than minDomains, // this value has no effect on scheduling. // As a result, when the number of eligible domains is less than minDomains, // scheduler won't schedule more than maxSkew Pods to those domains. // If value is nil, the constraint behaves as if MinDomains is equal to 1. // Valid values are integers greater than 0. // When value is not nil, WhenUnsatisfiable must be DoNotSchedule. // // For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same // labelSelector spread as 2/2/2: // +-------+-------+-------+ // | zone1 | zone2 | zone3 | // +-------+-------+-------+ // | P P | P P | P P | // +-------+-------+-------+ // The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. // In this situation, new pod with the same labelSelector cannot be scheduled, // because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, // it will violate MaxSkew. // // This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). // +optional MinDomains *int32 `json:"minDomains,omitempty" protobuf:"varint,5,opt,name=minDomains"` // NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector // when calculating pod topology spread skew. Options are: // - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. // - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. // // If this value is nil, the behavior is equivalent to the Honor policy. // This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. // +optional NodeAffinityPolicy *NodeInclusionPolicy `json:"nodeAffinityPolicy,omitempty" protobuf:"bytes,6,opt,name=nodeAffinityPolicy"` // NodeTaintsPolicy indicates how we will treat node taints when calculating // pod topology spread skew. Options are: // - Honor: nodes without taints, along with tainted nodes for which the incoming pod // has a toleration, are included. // - Ignore: node taints are ignored. All nodes are included. // // If this value is nil, the behavior is equivalent to the Ignore policy. // This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. // +optional NodeTaintsPolicy *NodeInclusionPolicy `json:"nodeTaintsPolicy,omitempty" protobuf:"bytes,7,opt,name=nodeTaintsPolicy"` // MatchLabelKeys is a set of pod label keys to select the pods over which // spreading will be calculated. The keys are used to lookup values from the // incoming pod labels, those key-value labels are ANDed with labelSelector // to select the group of existing pods over which spreading will be calculated // for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. // MatchLabelKeys cannot be set when LabelSelector isn't set. // Keys that don't exist in the incoming pod labels will // be ignored. A null or empty list means only match against labelSelector. // // This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). // +listType=atomic // +optional MatchLabelKeys []string `json:"matchLabelKeys,omitempty" protobuf:"bytes,8,opt,name=matchLabelKeys"` } 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"` } // PodFSGroupChangePolicy holds policies that will be used for applying fsGroup to a volume // when volume is mounted. // +enum type PodFSGroupChangePolicy string const ( // FSGroupChangeOnRootMismatch indicates that volume's ownership and permissions will be changed // only when permission and ownership of root directory does not match with expected // permissions on the volume. This can help shorten the time it takes to change // ownership and permissions of a volume. FSGroupChangeOnRootMismatch PodFSGroupChangePolicy = "OnRootMismatch" // FSGroupChangeAlways indicates that volume's ownership and permissions // should always be changed whenever volume is mounted inside a Pod. This the default // behavior. FSGroupChangeAlways PodFSGroupChangePolicy = "Always" ) // 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. // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is linux. // +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. // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is windows. // +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, the fsGroup (if specified), and group memberships // defined in the container image for the uid of the container process. If unspecified, // no additional groups are added to any container. Note that group memberships // defined in the container image for the uid of the container process are still effective, // even if they are not included in this list. // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is windows. // +optional Sysctls []Sysctl `json:"sysctls,omitempty" protobuf:"bytes,7,rep,name=sysctls"` // fsGroupChangePolicy defines behavior of changing ownership and permission of the volume // before being exposed inside Pod. This field will only apply to // volume types which support fsGroup based ownership(and permissions). // It will have no effect on ephemeral volume types such as: secret, configmaps // and emptydir. // Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. // Note that this field cannot be set when spec.os.name is windows. // +optional FSGroupChangePolicy *PodFSGroupChangePolicy `json:"fsGroupChangePolicy,omitempty" protobuf:"bytes,9,opt,name=fsGroupChangePolicy"` // The seccomp options to use by the containers in this pod. // Note that this field cannot be set when spec.os.name is windows. // +optional SeccompProfile *SeccompProfile `json:"seccompProfile,omitempty" protobuf:"bytes,10,opt,name=seccompProfile"` } // SeccompProfile defines a pod/container's seccomp profile settings. // Only one profile source may be set. // +union type SeccompProfile struct { // type indicates which kind of seccomp profile will be applied. // Valid options are: // // Localhost - a profile defined in a file on the node should be used. // RuntimeDefault - the container runtime default profile should be used. // Unconfined - no profile should be applied. // +unionDiscriminator Type SeccompProfileType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=SeccompProfileType"` // localhostProfile indicates a profile defined in a file on the node should be used. // The profile must be preconfigured on the node to work. // Must be a descending path, relative to the kubelet's configured seccomp profile location. // Must be set if type is "Localhost". Must NOT be set for any other type. // +optional LocalhostProfile *string `json:"localhostProfile,omitempty" protobuf:"bytes,2,opt,name=localhostProfile"` } // SeccompProfileType defines the supported seccomp profile types. // +enum type SeccompProfileType string const ( // SeccompProfileTypeUnconfined indicates no seccomp profile is applied (A.K.A. unconfined). SeccompProfileTypeUnconfined SeccompProfileType = "Unconfined" // SeccompProfileTypeRuntimeDefault represents the default container runtime seccomp profile. SeccompProfileTypeRuntimeDefault SeccompProfileType = "RuntimeDefault" // SeccompProfileTypeLocalhost indicates a profile defined in a file on the node should be used. // The file's location relative to /seccomp. SeccompProfileTypeLocalhost SeccompProfileType = "Localhost" ) // PodQOSClass defines the supported qos classes of Pods. // +enum 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"` } // PodIP represents a single IP address allocated to the pod. type PodIP struct { // IP is the IP address assigned to the pod IP string `json:"ip,omitempty" protobuf:"bytes,1,opt,name=ip"` } // HostIP represents a single IP address allocated to the host. type HostIP struct { // IP is the IP address assigned to the host 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"` // Container 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 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. Double $$ are reduced // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will // produce the string literal "$(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 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. Double $$ are reduced // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will // produce the string literal "$(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. // +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"` // 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"` // Resources resize policy for the container. // +featureGate=InPlacePodVerticalScaling // +optional // +listType=atomic ResizePolicy []ContainerResizePolicy `json:"resizePolicy,omitempty" protobuf:"bytes,23,rep,name=resizePolicy"` // Restart policy for the container to manage the restart behavior of each // container within a pod. // This may only be set for init containers. You cannot set this field on // ephemeral containers. // +featureGate=SidecarContainers // +optional RestartPolicy *ContainerRestartPolicy `json:"restartPolicy,omitempty" protobuf:"bytes,24,opt,name=restartPolicy,casttype=ContainerRestartPolicy"` // Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. // 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. // +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"` // Optional: SecurityContext defines the security options the ephemeral container should be run with. // If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. // +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 temporary container that you may add 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. The kubelet may evict a Pod if an ephemeral container causes the // Pod to exceed its resource allocation. // // To add an ephemeral container, use the ephemeralcontainers subresource of an existing // Pod. Ephemeral containers may not be removed or restarted. 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 uses the namespaces configured in the Pod spec. // // The container runtime must implement support for this feature. If the runtime does not // support namespace targeting then the result of setting this field is undefined. // +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"` // hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. // A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will // not be updated even if there is a node is assigned to pod // +optional HostIP string `json:"hostIP,omitempty" protobuf:"bytes,5,opt,name=hostIP"` // hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must // match the hostIP field. This list is empty if the pod has not started yet. // A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will // not be updated even if there is a node is assigned to this pod. // +optional // +patchStrategy=merge // +patchMergeKey=ip // +listType=atomic HostIPs []HostIP `json:"hostIPs,omitempty" protobuf:"bytes,16,rep,name=hostIPs" patchStrategy:"merge" patchMergeKey:"ip"` // podIP 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. // 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://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes // +optional QOSClass PodQOSClass `json:"qosClass,omitempty" protobuf:"bytes,9,rep,name=qosClass"` // Status for any ephemeral containers that have run in this pod. // +optional EphemeralContainerStatuses []ContainerStatus `json:"ephemeralContainerStatuses,omitempty" protobuf:"bytes,13,rep,name=ephemeralContainerStatuses"` // Status of resources resize desired for pod's containers. // It is empty if no resources resize is pending. // Any changes to container resources will automatically set this to "Proposed" // +featureGate=InPlacePodVerticalScaling // +optional Resize PodResizeStatus `json:"resize,omitempty" protobuf:"bytes,14,opt,name=resize,casttype=PodResizeStatus"` // Status of resource claims. // +patchMergeKey=name // +patchStrategy=merge,retainKeys // +listType=map // +listMapKey=name // +featureGate=DynamicResourceAllocation // +optional ResourceClaimStatuses []PodResourceClaimStatus `json:"resourceClaimStatuses,omitempty" patchStrategy:"merge,retainKeys" patchMergeKey:"name" protobuf:"bytes,15,rep,name=resourceClaimStatuses"` } // +k8s:deepcopy-gen:interfaces=k8s.io/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=UpdateEphemeralContainers,verb=update,subresource=ephemeralcontainers // +k8s:deepcopy-gen:interfaces=k8s.io/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=k8s.io/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=k8s.io/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=k8s.io/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 // +mapType=atomic 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. // The only allowed template.spec.restartPolicy value is "Always". // 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 observed 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=k8s.io/api/autoscaling/v1.Scale // +genclient:method=UpdateScale,verb=update,subresource=scale,input=k8s.io/api/autoscaling/v1.Scale,result=k8s.io/api/autoscaling/v1.Scale // +k8s:deepcopy-gen:interfaces=k8s.io/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=k8s.io/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 // +enum 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 // +enum 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" ) // ServiceInternalTrafficPolicy describes how nodes distribute service traffic they // receive on the ClusterIP. // +enum type ServiceInternalTrafficPolicy string const ( // ServiceInternalTrafficPolicyCluster routes traffic to all endpoints. ServiceInternalTrafficPolicyCluster ServiceInternalTrafficPolicy = "Cluster" // ServiceInternalTrafficPolicyLocal routes traffic only to endpoints on the same // node as the client pod (dropping the traffic if there are no local endpoints). ServiceInternalTrafficPolicyLocal ServiceInternalTrafficPolicy = "Local" ) // for backwards compat // +enum type ServiceInternalTrafficPolicyType = ServiceInternalTrafficPolicy // ServiceExternalTrafficPolicy describes how nodes distribute service traffic they // receive on one of the Service's "externally-facing" addresses (NodePorts, ExternalIPs, // and LoadBalancer IPs. // +enum type ServiceExternalTrafficPolicy string const ( // ServiceExternalTrafficPolicyCluster routes traffic to all endpoints. ServiceExternalTrafficPolicyCluster ServiceExternalTrafficPolicy = "Cluster" // ServiceExternalTrafficPolicyLocal preserves the source IP of the traffic by // routing only to endpoints on the same node as the traffic was received on // (dropping the traffic if there are no local endpoints). ServiceExternalTrafficPolicyLocal ServiceExternalTrafficPolicy = "Local" ) // for backwards compat // +enum type ServiceExternalTrafficPolicyType = ServiceExternalTrafficPolicy const ( ServiceExternalTrafficPolicyTypeLocal = ServiceExternalTrafficPolicyLocal ServiceExternalTrafficPolicyTypeCluster = ServiceExternalTrafficPolicyCluster ) // These are the valid conditions of a service. const ( // LoadBalancerPortsError represents the condition of the requested ports // on the cloud load balancer instance. LoadBalancerPortsError = "LoadBalancerPortsError" // LoadBalancerPortsErrorReason reason in ServiceStatus condition LoadBalancerPortsError // means the LoadBalancer was not able to be configured correctly. LoadBalancerPortsErrorReason = "LoadBalancerMixedProtocolNotSupported" ) // 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"` // Current service state // +optional // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"` } // 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"` // IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. // Setting this to "VIP" indicates that traffic is delivered to the node with // the destination set to the load-balancer's IP and port. // Setting this to "Proxy" indicates that traffic is delivered to the node or pod with // the destination set to the node's IP and node port or the pod's IP and port. // Service implementations may use this information to adjust traffic routing. // +optional IPMode *LoadBalancerIPMode `json:"ipMode,omitempty" protobuf:"bytes,3,opt,name=ipMode"` // Ports is a list of records of service ports // If used, every port defined in the service should have an entry in it // +listType=atomic // +optional Ports []PortStatus `json:"ports,omitempty" protobuf:"bytes,4,rep,name=ports"` } // IPFamily represents the IP Family (IPv4 or IPv6). This type is used // to express the family of an IP expressed by a type (e.g. service.spec.ipFamilies). // +enum 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" // IPFamilyUnknown indicates that this IP is unknown protocol IPFamilyUnknown IPFamily = "" ) // IPFamilyPolicy represents the dual-stack-ness requested or required by a Service // +enum type IPFamilyPolicy string const ( // IPFamilyPolicySingleStack indicates that this service is required to have a single IPFamily. // The IPFamily assigned is based on the default IPFamily used by the cluster // or as identified by service.spec.ipFamilies field IPFamilyPolicySingleStack IPFamilyPolicy = "SingleStack" // IPFamilyPolicyPreferDualStack indicates that this service prefers dual-stack when // the cluster is configured for dual-stack. If the cluster is not configured // for dual-stack the service will be assigned a single IPFamily. If the IPFamily is not // set in service.spec.ipFamilies then the service will be assigned the default IPFamily // configured on the cluster IPFamilyPolicyPreferDualStack IPFamilyPolicy = "PreferDualStack" // IPFamilyPolicyRequireDualStack indicates that this service requires dual-stack. Using // IPFamilyPolicyRequireDualStack on a single stack cluster will result in validation errors. The // IPFamilies (and their order) assigned to this service is based on service.spec.ipFamilies. If // service.spec.ipFamilies was not provided then it will be assigned according to how they are // configured on the cluster. If service.spec.ipFamilies has only one entry then the alternative // IPFamily will be added by apiserver IPFamilyPolicyRequireDualStack IPFamilyPolicy = "RequireDualStack" ) // for backwards compat // +enum type IPFamilyPolicyType = IPFamilyPolicy // 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 // +mapType=atomic 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. If an address is specified manually, is in-range (as per // system configuration), and is not in use, it will be allocated to the // service; otherwise creation of the service will fail. This field may not // be changed through updates unless the type field is also being changed // to ExternalName (which requires this field to be blank) or the type // field is being changed from ExternalName (in which case this field may // optionally be specified, as describe above). Valid values are "None", // empty string (""), or a valid IP address. Setting this to "None" makes a // "headless service" (no virtual IP), which is useful when direct endpoint // connections are preferred and proxying is not required. Only applies to // types ClusterIP, NodePort, and LoadBalancer. If this field is specified // when creating a Service of type ExternalName, creation will fail. This // field will be wiped when updating a Service to type 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"` // ClusterIPs is a list of IP addresses assigned to this service, and are // usually assigned randomly. If an address is specified manually, is // in-range (as per system configuration), and is not in use, it will be // allocated to the service; otherwise creation of the service will fail. // This field may not be changed through updates unless the type field is // also being changed to ExternalName (which requires this field to be // empty) or the type field is being changed from ExternalName (in which // case this field may optionally be specified, as describe above). Valid // values are "None", empty string (""), or a valid IP address. Setting // this to "None" makes a "headless service" (no virtual IP), which is // useful when direct endpoint connections are preferred and proxying is // not required. Only applies to types ClusterIP, NodePort, and // LoadBalancer. If this field is specified when creating a Service of type // ExternalName, creation will fail. This field will be wiped when updating // a Service to type ExternalName. If this field is not specified, it will // be initialized from the clusterIP field. If this field is specified, // clients must ensure that clusterIPs[0] and clusterIP have the same // value. // // This field may hold a maximum of two entries (dual-stack IPs, in either order). // These IPs must correspond to the values of the ipFamilies field. Both // clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies // +listType=atomic // +optional ClusterIPs []string `json:"clusterIPs,omitempty" protobuf:"bytes,18,opt,name=clusterIPs"` // type determines how the Service is exposed. Defaults to ClusterIP. Valid // options are ExternalName, ClusterIP, NodePort, and LoadBalancer. // "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 or // EndpointSlice objects. If clusterIP is "None", no virtual IP is // allocated and the endpoints are published as a set of endpoints rather // than a virtual IP. // "NodePort" builds on ClusterIP and allocates a port on every node which // routes to the same endpoints as the clusterIP. // "LoadBalancer" builds on NodePort and creates an external load-balancer // (if supported in the current cloud) which routes to the same endpoints // as the clusterIP. // "ExternalName" aliases this service to the specified externalName. // Several other fields do not apply to ExternalName services. // 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. // 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. // Deprecated: This field was under-specified and its meaning varies across implementations. // Using it is non-portable and it may not support dual-stack. // Users are encouraged to use implementation-specific annotations when available. // +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/create-external-load-balancer/ // +optional LoadBalancerSourceRanges []string `json:"loadBalancerSourceRanges,omitempty" protobuf:"bytes,9,opt,name=loadBalancerSourceRanges"` // externalName is the external reference that discovery mechanisms will // return as an alias for this service (e.g. a DNS CNAME record). No // proxying will be involved. Must be a lowercase 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 describes how nodes distribute service traffic they // receive on one of the Service's "externally-facing" addresses (NodePorts, // ExternalIPs, and LoadBalancer IPs). If set to "Local", the proxy will configure // the service in a way that assumes that external load balancers will take care // of balancing the service traffic between nodes, and so each node will deliver // traffic only to the node-local endpoints of the service, without masquerading // the client source IP. (Traffic mistakenly sent to a node with no endpoints will // be dropped.) The default value, "Cluster", uses the standard behavior of // routing to all endpoints evenly (possibly modified by topology and other // features). Note that traffic sent to an External IP or LoadBalancer IP from // within the cluster will always get "Cluster" semantics, but clients sending to // a NodePort from within the cluster may need to take traffic policy into account // when picking a node. // +optional ExternalTrafficPolicy ServiceExternalTrafficPolicy `json:"externalTrafficPolicy,omitempty" protobuf:"bytes,11,opt,name=externalTrafficPolicy"` // healthCheckNodePort specifies the healthcheck nodePort for the service. // This only applies when type is set to LoadBalancer and // externalTrafficPolicy is set to Local. If a value is specified, is // in-range, and is not in use, it will be used. If not specified, a value // will be automatically allocated. External systems (e.g. load-balancers) // can use this port to determine if a given node holds endpoints for this // service or not. If this field is specified when creating a Service // which does not need it, creation will fail. This field will be wiped // when updating a Service to no longer need it (e.g. changing type). // This field cannot be updated once set. // +optional HealthCheckNodePort int32 `json:"healthCheckNodePort,omitempty" protobuf:"bytes,12,opt,name=healthCheckNodePort"` // publishNotReadyAddresses indicates that any agent which deals with endpoints for this // Service should disregard any indications of ready/not-ready. // The primary use case for setting this field is for a StatefulSet's Headless Service to // propagate SRV DNS records for its Pods for the purpose of peer discovery. // The Kubernetes controllers that generate Endpoints and EndpointSlice resources for // Services interpret this to mean that all endpoints are considered "ready" even if the // Pods themselves are not. Agents which consume only Kubernetes generated endpoints // through the Endpoints or EndpointSlice resources can safely assume this behavior. // +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"` // TopologyKeys is tombstoned to show why 16 is reserved protobuf tag. // TopologyKeys []string `json:"topologyKeys,omitempty" protobuf:"bytes,16,opt,name=topologyKeys"` // IPFamily is tombstoned to show why 15 is a reserved protobuf tag. // IPFamily *IPFamily `json:"ipFamily,omitempty" protobuf:"bytes,15,opt,name=ipFamily,Configcasttype=IPFamily"` // IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this // service. This field is usually assigned automatically based on cluster // configuration and the ipFamilyPolicy field. If this field is specified // manually, the requested family is available in the cluster, // and ipFamilyPolicy allows it, it will be used; otherwise creation of // the service will fail. This field is conditionally mutable: it allows // for adding or removing a secondary IP family, but it does not allow // changing the primary IP family of the Service. Valid values are "IPv4" // and "IPv6". This field only applies to Services of types ClusterIP, // NodePort, and LoadBalancer, and does apply to "headless" services. // This field will be wiped when updating a Service to type ExternalName. // // This field may hold a maximum of two entries (dual-stack families, in // either order). These families must correspond to the values of the // clusterIPs field, if specified. Both clusterIPs and ipFamilies are // governed by the ipFamilyPolicy field. // +listType=atomic // +optional IPFamilies []IPFamily `json:"ipFamilies,omitempty" protobuf:"bytes,19,opt,name=ipFamilies,casttype=IPFamily"` // IPFamilyPolicy represents the dual-stack-ness requested or required by // this Service. If there is no value provided, then this field will be set // to SingleStack. Services can be "SingleStack" (a single IP family), // "PreferDualStack" (two IP families on dual-stack configured clusters or // a single IP family on single-stack clusters), or "RequireDualStack" // (two IP families on dual-stack configured clusters, otherwise fail). The // ipFamilies and clusterIPs fields depend on the value of this field. This // field will be wiped when updating a service to type ExternalName. // +optional IPFamilyPolicy *IPFamilyPolicy `json:"ipFamilyPolicy,omitempty" protobuf:"bytes,17,opt,name=ipFamilyPolicy,casttype=IPFamilyPolicy"` // allocateLoadBalancerNodePorts defines if NodePorts will be automatically // allocated for services with type LoadBalancer. Default is "true". It // may be set to "false" if the cluster load-balancer does not rely on // NodePorts. If the caller requests specific NodePorts (by specifying a // value), those requests will be respected, regardless of this field. // This field may only be set for services with type LoadBalancer and will // be cleared if the type is changed to any other type. // +optional AllocateLoadBalancerNodePorts *bool `json:"allocateLoadBalancerNodePorts,omitempty" protobuf:"bytes,20,opt,name=allocateLoadBalancerNodePorts"` // loadBalancerClass is the class of the load balancer implementation this Service belongs to. // If specified, the value of this field must be a label-style identifier, with an optional prefix, // e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users. // This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load // balancer implementation is used, today this is typically done through the cloud provider integration, // but should apply for any default implementation. If set, it is assumed that a load balancer // implementation is watching for Services with a matching class. Any default load balancer // implementation (e.g. cloud providers) should ignore Services that set this field. // This field can only be set when creating or updating a Service to type 'LoadBalancer'. // Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. // +optional LoadBalancerClass *string `json:"loadBalancerClass,omitempty" protobuf:"bytes,21,opt,name=loadBalancerClass"` // InternalTrafficPolicy describes how nodes distribute service traffic they // receive on the ClusterIP. If set to "Local", the proxy will assume that pods // only want to talk to endpoints of the service on the same node as the pod, // dropping the traffic if there are no local endpoints. The default value, // "Cluster", uses the standard behavior of routing to all endpoints evenly // (possibly modified by topology and other features). // +optional InternalTrafficPolicy *ServiceInternalTrafficPolicy `json:"internalTrafficPolicy,omitempty" protobuf:"bytes,22,opt,name=internalTrafficPolicy"` } // 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. // +default="TCP" // +optional Protocol Protocol `json:"protocol,omitempty" protobuf:"bytes,2,opt,name=protocol,casttype=Protocol"` // The application protocol for this port. // This is used as a hint for implementations to offer richer behavior for protocols that they understand. // This field follows standard Kubernetes label syntax. // Valid values are either: // // * Un-prefixed protocol names - reserved for IANA standard service names (as per // RFC-6335 and https://www.iana.org/assignments/service-names). // // * Kubernetes-defined prefixed names: // * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- // * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 // * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 // // * Other protocols should use implementation-defined prefixed names such as // mycompany.com/my-custom-protocol. // +optional AppProtocol *string `json:"appProtocol,omitempty" protobuf:"bytes,6,opt,name=appProtocol"` // 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 is // NodePort or LoadBalancer. Usually assigned by the system. If a value is // specified, in-range, and not in use it will be used, otherwise the // operation will fail. If not specified, a port will be allocated if this // Service requires one. If this field is specified when creating a // Service which does not need it, creation will fail. This field will be // wiped when updating a Service to no longer need it (e.g. changing type // from NodePort to ClusterIP). // 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=k8s.io/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=k8s.io/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 // +genclient:method=CreateToken,verb=create,subresource=token,input=k8s.io/api/authentication/v1.TokenRequest,result=k8s.io/api/authentication/v1.TokenRequest // +k8s:deepcopy-gen:interfaces=k8s.io/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 a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. // Pods are only limited to this list if this service account has a "kubernetes.io/enforce-mountable-secrets" annotation set to "true". // This field should not be used to find auto-generated service account token secrets for use outside of pods. // Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. // 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=k8s.io/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=k8s.io/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. // +structType=atomic type EndpointAddress struct { // The IP of this endpoint. // May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), // or link-local multicast (224.0.0.0/24 or ff02::/16). 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. // +structType=atomic 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"` // The application protocol for this port. // This is used as a hint for implementations to offer richer behavior for protocols that they understand. // This field follows standard Kubernetes label syntax. // Valid values are either: // // * Un-prefixed protocol names - reserved for IANA standard service names (as per // RFC-6335 and https://www.iana.org/assignments/service-names). // // * Kubernetes-defined prefixed names: // * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- // * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 // * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 // // * Other protocols should use implementation-defined prefixed names such as // mycompany.com/my-custom-protocol. // +optional AppProtocol *string `json:"appProtocol,omitempty" protobuf:"bytes,4,opt,name=appProtocol"` } // +k8s:deepcopy-gen:interfaces=k8s.io/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"` // Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed. // +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 DoNotUseExternalID 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. // This API is deprecated since 1.22 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. // This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration 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/uuid 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. containerd://1.4.2). 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 https://pr.k8s.io/79391 for an example. // Consumers should assume that addresses can change during the // lifetime of a Node. However, there are some exceptions where this may not // be possible, such as Pods that inherit a Node's address in its own status or // consumers of the downward API (status.hostIP). // +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. ["kubernetes.example/hyperkube:v1.0.7", "cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7"] // +optional 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"` } // +enum 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 but not exhaustive conditions of node. A cloud provider may set a condition not listed here. // The built-in 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 built-in addresses type of node. A cloud provider may set a type not listed here. const ( // NodeHostName identifies a name of the node. Although every node can be assumed // to have a NodeAddress of this type, its exact syntax and semantics are not // defined, and are not consistent between different clusters. NodeHostName NodeAddressType = "Hostname" // NodeInternalIP identifies an IP address which is assigned to one of the node's // network interfaces. Every node should have at least one address of this type. // // An internal IP is normally expected to be reachable from every other node, but // may not be visible to hosts outside the cluster. By default it is assumed that // kube-apiserver can reach node internal IPs, though it is possible to configure // clusters where this is not the case. // // NodeInternalIP is the default type of node IP, and does not necessarily imply // that the IP is ONLY reachable internally. If a node has multiple internal IPs, // no specific semantics are assigned to the additional IPs. NodeInternalIP NodeAddressType = "InternalIP" // NodeExternalIP identifies an IP address which is, in some way, intended to be // more usable from outside the cluster then an internal IP, though no specific // semantics are defined. It may be a globally routable IP, though it is not // required to be. // // External IPs may be assigned directly to an interface on the node, like a // NodeInternalIP, or alternatively, packets sent to the external IP may be NAT'ed // to an internal node IP rather than being delivered directly (making the IP less // efficient for node-to-node traffic than a NodeInternalIP). NodeExternalIP NodeAddressType = "ExternalIP" // NodeInternalDNS identifies a DNS name which resolves to an IP address which has // the characteristics of a NodeInternalIP. The IP it resolves to may or may not // be a listed NodeInternalIP address. NodeInternalDNS NodeAddressType = "InternalDNS" // NodeExternalDNS identifies a DNS name which resolves to an IP address which has // the characteristics of a NodeExternalIP. The IP it resolves to may or may not // be a listed NodeExternalIP address. NodeExternalDNS NodeAddressType = "ExternalDNS" ) // 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=k8s.io/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=k8s.io/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"` } // +enum 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" ) const ( // NamespaceTerminatingCause is returned as a defaults.cause item when a change is // forbidden due to the namespace being terminated. NamespaceTerminatingCause metav1.CauseType = "NamespaceTerminating" ) type NamespaceConditionType string // These are built-in 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" // NamespaceContentRemaining contains information about resources remaining in a namespace. NamespaceContentRemaining NamespaceConditionType = "NamespaceContentRemaining" // NamespaceFinalizersRemaining contains information about which finalizers are on resources remaining in a namespace. NamespaceFinalizersRemaining NamespaceConditionType = "NamespaceFinalizersRemaining" ) // 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=k8s.io/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=k8s.io/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=k8s.io/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"` } // 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=k8s.io/apimachinery/pkg/types.UID"` } // +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/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"` // insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the // serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver // and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real // kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the // connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept // the actual log data coming from the real kubelet). // +optional InsecureSkipTLSVerifyBackend bool `json:"insecureSkipTLSVerifyBackend,omitempty" protobuf:"varint,9,opt,name=insecureSkipTLSVerifyBackend"` } // +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/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:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/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. // +optional Stdout bool `json:"stdout,omitempty" protobuf:"varint,2,opt,name=stdout"` // Redirect the standard error stream of the pod for this call. // +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:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/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:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/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:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/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:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/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. // --- // New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs. // 1. Ignored fields. It includes many fields which are not generally honored. For instance, ResourceVersion and FieldPath are both very rarely valid in actual usage. // 2. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular // restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted". // Those cannot be well described when embedded. // 3. Inconsistent validation. Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen. // 4. The fields are both imprecise and overly precise. Kind is not a precise mapping to a URL. This can produce ambiguity // during interpretation and require a REST mapping. In most cases, the dependency is on the group,resource tuple // and the version of the actual struct is irrelevant. // 5. We cannot easily change it. Because this type is embedded in many locations, updates to this type // will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control. // // Instead of using this type, create a locally provided and used type that is well-focused on your reference. // For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 . // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +structType=atomic 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=k8s.io/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. // +structType=atomic 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. // +structType=atomic 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=k8s.io/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=k8s.io/apimachinery/pkg/runtime.Object // Event is a report of an event somewhere in the cluster. Events // have a limited retention time and triggers and messages may evolve // with time. Event consumers should not rely on the timing of an event // with a given Reason reflecting a consistent underlying trigger, or the // continued existence of events with that Reason. Events should be // treated as informative, best-effort, supplemental data. 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"` // +k8s:deprecated=state,protobuf=3 } // +k8s:deepcopy-gen:interfaces=k8s.io/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=k8s.io/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. It can be Pod, Container, PersistentVolumeClaim or // a fully qualified resource name. 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. Type LimitType `json:"type" 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=k8s.io/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=k8s.io/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-resources-containers/ 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 // +enum type ResourceQuotaScope string const ( // Match all pod objects where spec.activeDeadlineSeconds >=0 ResourceQuotaScopeTerminating ResourceQuotaScope = "Terminating" // Match all pod objects where spec.activeDeadlineSeconds is nil 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" // Match all pod objects that have cross-namespace pod (anti)affinity mentioned. ResourceQuotaScopeCrossNamespacePodAffinity ResourceQuotaScope = "CrossNamespacePodAffinity" ) // 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. // +structType=atomic 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. // +enum 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=k8s.io/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=k8s.io/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=k8s.io/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"` // Immutable, if set to true, ensures that data stored in the Secret cannot // be updated (only object metadata can be modified). // If not set to true, the field can be modified at any time. // Defaulted to nil. // +optional Immutable *bool `json:"immutable,omitempty" protobuf:"varint,5,opt,name=immutable"` // 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 input field for convenience. // All keys and values are merged into the data field on write, overwriting any existing values. // The stringData field 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. // More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types // +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 secret. 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=k8s.io/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=k8s.io/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"` // Immutable, if set to true, ensures that data stored in the ConfigMap cannot // be updated (only object metadata can be modified). // If not set to true, the field can be modified at any time. // Defaulted to nil. // +optional Immutable *bool `json:"immutable,omitempty" protobuf:"varint,4,opt,name=immutable"` // 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=k8s.io/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=k8s.io/apimachinery/pkg/runtime.Object // ComponentStatus (and ComponentStatusList) holds the cluster validation info. // Deprecated: This API is deprecated in v1.19+ 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=k8s.io/apimachinery/pkg/runtime.Object // Status of all the conditions for the component as a list of ComponentStatus objects. // Deprecated: This API is deprecated in v1.19+ 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 // Optional: mode bits used to set permissions on created files by default. // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. // 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 used to set permissions on this file, must be an octal value // between 0000 and 0777 or a decimal value between 0 and 511. // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. // 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. // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is linux. // +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. // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is windows. // +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 // Note that this field cannot be set when spec.os.name is windows. // +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. // Note that this field cannot be set when spec.os.name is windows. // +optional ProcMount *ProcMountType `json:"procMount,omitempty" protobuf:"bytes,9,opt,name=procMount"` // The seccomp options to use by this container. If seccomp options are // provided at both the pod & container level, the container options // override the pod options. // Note that this field cannot be set when spec.os.name is windows. // +optional SeccompProfile *SeccompProfile `json:"seccompProfile,omitempty" protobuf:"bytes,11,opt,name=seccompProfile"` } // +enum 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. // +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. // +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. // +optional RunAsUserName *string `json:"runAsUserName,omitempty" protobuf:"bytes,3,opt,name=runAsUserName"` // HostProcess determines if a container should be run as a 'Host Process' container. // All of a Pod's containers must have the same effective HostProcess value // (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). // In addition, if HostProcess is true then HostNetwork must also be set to true. // +optional HostProcess *bool `json:"hostProcess,omitempty" protobuf:"bytes,4,opt,name=hostProcess"` } // +k8s:deepcopy-gen:interfaces=k8s.io/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 ( // DefaultSchedulerName defines 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 https://kubernetes.io/docs/concepts/architecture/nodes/#capacity 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" ) const ( // MixedProtocolNotSupported error in PortStatus means that the cloud provider // can't publish the port on the load balancer because mixed values of protocols // on the same LoadBalancer type of Service are not supported by the cloud provider. MixedProtocolNotSupported = "MixedProtocolNotSupported" ) // PortStatus represents the error condition of a service port type PortStatus struct { // Port is the port number of the service port of which status is recorded here Port int32 `json:"port" protobuf:"varint,1,opt,name=port"` // Protocol is the protocol of the service port of which status is recorded here // The supported values are: "TCP", "UDP", "SCTP" Protocol Protocol `json:"protocol" protobuf:"bytes,2,opt,name=protocol,casttype=Protocol"` // Error is to record the problem with the service port // The format of the error shall comply with the following rules: // - built-in error values shall be specified in this file and those shall use // CamelCase names // - cloud provider specific error values must have names that comply with the // format foo.example.com/CamelCase. // --- // The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) // +optional // +kubebuilder:validation:Required // +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` // +kubebuilder:validation:MaxLength=316 Error *string `json:"error,omitempty" protobuf:"bytes,3,opt,name=error"` } // LoadBalancerIPMode represents the mode of the LoadBalancer ingress IP type LoadBalancerIPMode string const ( // LoadBalancerIPModeVIP indicates that traffic is delivered to the node with // the destination set to the load-balancer's IP and port. LoadBalancerIPModeVIP LoadBalancerIPMode = "VIP" // LoadBalancerIPModeProxy indicates that traffic is delivered to the node or pod with // the destination set to the node's IP and port or the pod's IP and port. LoadBalancerIPModeProxy LoadBalancerIPMode = "Proxy" ) golang-k8s-api-0.29.0/core/v1/types_swagger_doc_generated.go000066400000000000000000007621261453636404600237070ustar00rootroot00000000000000/* 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-codegen.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": "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", "fsType": "fsType is the 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": "partition is 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": "readOnly value true will force the readOnly setting in VolumeMounts. 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": "diskName is the Name of the data disk in the blob storage", "diskURI": "diskURI is the URI of data disk in the blob storage", "cachingMode": "cachingMode is the Host Caching mode: None, Read Only, Read Write.", "fsType": "fsType is 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": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", "kind": "kind expected values are 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": "secretName is the name of secret that contains Azure Storage Account Name and Key", "shareName": "shareName is the azure Share Name", "readOnly": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", "secretNamespace": "secretNamespace is 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": "secretName is the name of secret that contains Azure Storage Account Name and Key", "shareName": "shareName is the azure share Name", "readOnly": "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": "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", "fsType": "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", "volumeAttributes": "volumeAttributes 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 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.", "nodeExpandSecretRef": "nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This field is optional, may be omitted 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": "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).", "fsType": "fsType 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": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", "path": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", "user": "user is 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": "secretFile is 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": "secretRef is 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": "readOnly is 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": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", "path": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", "user": "user is 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": "secretFile is 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": "secretRef is 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": "readOnly is 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": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", "fsType": "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": "readOnly is 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": "secretRef is 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": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", "fsType": "fsType is the 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": "readOnly 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": "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack.", } func (CinderVolumeSource) SwaggerDoc() map[string]string { return map_CinderVolumeSource } var map_ClaimSource = map[string]string{ "": "ClaimSource describes a reference to a ResourceClaim.\n\nExactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value.", "resourceClaimName": "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.", "resourceClaimTemplateName": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.", } func (ClaimSource) SwaggerDoc() map[string]string { return map_ClaimSource } 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_ClusterTrustBundleProjection = map[string]string{ "": "ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem.", "name": "Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector.", "signerName": "Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.", "labelSelector": "Select all ClusterTrustBundles that match this label selector. Only has effect if signerName is set. Mutually-exclusive with name. If unset, interpreted as \"match nothing\". If set but empty, interpreted as \"match everything\".", "optional": "If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles.", "path": "Relative path from the volume root to write the bundle.", } func (ClusterTrustBundleProjection) SwaggerDoc() map[string]string { return map_ClusterTrustBundleProjection } 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. Deprecated: This API is deprecated in v1.19+", "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. Deprecated: This API is deprecated in v1.19+", "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", "immutable": "Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", "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. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration", "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": "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": "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": "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": "defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. 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 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": "Container 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 container 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(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 container 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(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. 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. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. 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-resources-containers/", "resizePolicy": "Resources resize policy for the container.", "restartPolicy": "RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed.", "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.", "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. 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": "SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. 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. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/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_ContainerResizePolicy = map[string]string{ "": "ContainerResizePolicy represents resource resize policy for the container.", "resourceName": "Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.", "restartPolicy": "Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.", } func (ContainerResizePolicy) SwaggerDoc() map[string]string { return map_ContainerResizePolicy } 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 '://'", } 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": "Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated.", "state": "State holds details about the container's current condition.", "lastState": "LastTerminationState holds the last termination state of the container to help debug container crashes and restarts. This field is not populated if the container is still running and RestartCount is 0.", "ready": "Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field).\n\nThe value is typically used to determine whether a container is ready to accept traffic.", "restartCount": "RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.", "image": "Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images.", "imageID": "ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.", "containerID": "ContainerID is the ID of the container in the format '://'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").", "started": "Started indicates whether the container has finished its postStart lifecycle hook and 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. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false.", "allocatedResources": "AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.", "resources": "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized.", } 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 used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. 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 Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. 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": "medium represents 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": "sizeLimit is the 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: https://kubernetes.io/docs/concepts/storage/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 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16).", "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.", "appProtocol": "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", } 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\t{\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 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\n\t Name: \"mysvc\",\n\t Subsets: [\n\t {\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t },\n\t]", "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 previously 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(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, status.podIPs.", "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 temporary container that you may add 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. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation.\n\nTo add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.", "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 uses the namespaces configured in the Pod spec.\n\nThe container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined.", } 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": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images", "command": "Entrypoint array. Not executed within a shell. The 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(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 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(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.", "resizePolicy": "Resources resize policy for the container.", "restartPolicy": "Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers.", "volumeMounts": "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", "volumeDevices": "volumeDevices is the list of block devices to be used by the container.", "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": "Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.", "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_EphemeralVolumeSource = map[string]string{ "": "Represents an ephemeral volume that is handled by a normal storage driver.", "volumeClaimTemplate": "Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.\n\nRequired, must not be nil.", } func (EphemeralVolumeSource) SwaggerDoc() map[string]string { return map_EphemeralVolumeSource } var map_Event = map[string]string{ "": "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", "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", } 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": "targetWWNs is Optional: FC target worldwide names (WWNs)", "lun": "lun is Optional: FC target lun number", "fsType": "fsType is the 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": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", "wwids": "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": "fsType is the 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": "secretRef is 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": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", "options": "options is Optional: this field holds 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": "fsType is the 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": "secretRef is 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": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", "options": "options is Optional: this field holds 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": "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", "datasetUUID": "datasetUUID is the 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": "pdName is 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": "fsType is 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": "partition is 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_GRPCAction = map[string]string{ "port": "Port number of the gRPC service. Number must be in the range 1 to 65535.", "service": "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", } func (GRPCAction) SwaggerDoc() map[string]string { return map_GRPCAction } 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 is the URL", "revision": "revision is the commit hash for the specified revision.", "directory": "directory is the 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": "endpoints 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": "endpoints 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. This will be canonicalized upon output, so case-variant names will be understood as the same header.", "value": "The header field value", } func (HTTPHeader) SwaggerDoc() map[string]string { return map_HTTPHeader } 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_HostIP = map[string]string{ "": "HostIP represents a single IP address allocated to the host.", "ip": "IP is the IP address assigned to the host", } func (HostIP) SwaggerDoc() map[string]string { return map_HostIP } 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": "targetPortal is 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": "iqn is Target iSCSI Qualified Name.", "lun": "lun is iSCSI Target Lun number.", "iscsiInterface": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", "fsType": "fsType is the 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": "portals is the 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": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", "chapAuthSession": "chapAuthSession defines whether support iSCSI Session CHAP authentication", "secretRef": "secretRef is the CHAP Secret for iSCSI target and initiator authentication", "initiatorName": "initiatorName is the 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": "targetPortal is 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": "iqn is the target iSCSI Qualified Name.", "lun": "lun represents iSCSI Target Lun number.", "iscsiInterface": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", "fsType": "fsType is the 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": "portals is the 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": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", "chapAuthSession": "chapAuthSession defines whether support iSCSI Session CHAP authentication", "secretRef": "secretRef is the CHAP Secret for iSCSI target and initiator authentication", "initiatorName": "initiatorName is the 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": "key is the key to project.", "path": "path is 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": "mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. 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 Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). 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_LifecycleHandler = map[string]string{ "": "LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.", "exec": "Exec specifies the action to take.", "httpGet": "HTTPGet specifies the http request to perform.", "tcpSocket": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified.", "sleep": "Sleep represents the duration that the container should sleep before being terminated.", } func (LifecycleHandler) SwaggerDoc() map[string]string { return map_LifecycleHandler } 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-resources-containers/", } 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)", "ipMode": "IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to \"VIP\" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to \"Proxy\" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing.", "ports": "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it", } 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": "path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).", "fsType": "fsType is the 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 filesystem if unspecified.", } func (LocalVolumeSource) SwaggerDoc() map[string]string { return map_LocalVolumeSource } var map_ModifyVolumeStatus = map[string]string{ "": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation", "targetVolumeAttributesClassName": "targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled", "status": "status is the status of the ControllerModifyVolume operation. It can be in any of following states:\n - Pending\n Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as\n the specified VolumeAttributesClass not existing.\n - InProgress\n InProgress indicates that the volume is being modified.\n - Infeasible\n Infeasible indicates that the request has been rejected as invalid by the CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass needs to be specified.\nNote: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.", } func (ModifyVolumeStatus) SwaggerDoc() map[string]string { return map_ModifyVolumeStatus } 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. This API is deprecated since 1.22", "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 https://kubernetes.io/docs/concepts/architecture/nodes/#capacity 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": "Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed.", "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 https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).", "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/uuid", "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. containerd://1.4.2).", "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 contains details about state of pvc", "lastProbeTime": "lastProbeTime is the time we probed the condition.", "lastTransitionTime": "lastTransitionTime is the time the condition transitioned from one status to another.", "reason": "reason is a 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": "message is the 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": "items is 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": "selector is a label query over volumes to consider for binding.", "resources": "resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", "volumeName": "volumeName is the binding reference to the PersistentVolume backing this claim.", "storageClassName": "storageClassName is the 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.", "dataSource": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.", "dataSourceRef": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", "volumeAttributesClassName": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#volumeattributesclass (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled.", } 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": "capacity represents the actual resources of the underlying volume.", "conditions": "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.", "allocatedResources": "allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nCapacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity.\n\nA controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", "allocatedResourceStatuses": "allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nClaimResourceStatus can be in any of following states:\n\t- ControllerResizeInProgress:\n\t\tState set when resize controller starts resizing the volume in control-plane.\n\t- ControllerResizeFailed:\n\t\tState set when resize has failed in resize controller with a terminal error.\n\t- NodeResizePending:\n\t\tState set when resize controller has finished resizing the volume but further resizing of\n\t\tvolume is needed on the node.\n\t- NodeResizeInProgress:\n\t\tState set when kubelet starts resizing the volume.\n\t- NodeResizeFailed:\n\t\tState set when resizing has failed in kubelet with a terminal error. Transient errors don't set\n\t\tNodeResizeFailed.\nFor example: if expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC.\n\nA controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", "currentVolumeAttributesClassName": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is an alpha field and requires enabling VolumeAttributesClass feature.", "modifyVolumeStatus": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted. This is an alpha field and requires enabling VolumeAttributesClass feature.", } func (PersistentVolumeClaimStatus) SwaggerDoc() map[string]string { return map_PersistentVolumeClaimStatus } var map_PersistentVolumeClaimTemplate = map[string]string{ "": "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.", "metadata": "May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.", "spec": "The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here.", } func (PersistentVolumeClaimTemplate) SwaggerDoc() map[string]string { return map_PersistentVolumeClaimTemplate } 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": "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": "items is a 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": "capacity is the 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": "persistentVolumeReclaimPolicy defines 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": "storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.", "mountOptions": "mountOptions is the 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.", "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.", "volumeAttributesClassName": "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is an alpha field and requires enabling VolumeAttributesClass feature.", } 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": "message is 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.", "lastPhaseTransitionTime": "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. This is an alpha field and requires enabling PersistentVolumeLastPhaseTransitionTime feature.", } func (PersistentVolumeStatus) SwaggerDoc() map[string]string { return map_PersistentVolumeStatus } var map_PhotonPersistentDiskVolumeSource = map[string]string{ "": "Represents a Photon Controller persistent disk resource.", "pdID": "pdID is the ID that identifies Photon Controller persistent disk", "fsType": "fsType is the 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. If it's null, this PodAffinityTerm matches with no Pods.", "namespaces": "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector 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.", "namespaceSelector": "A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces.", "matchLabelKeys": "MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. Also, MatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.", "mismatchLabelKeys": "MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.", } 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.", "stderr": "Redirect the standard error stream of the pod for this call.", "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{ "": "PodIP represents a single IP address allocated to the pod.", "ip": "IP is the IP address 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.", "insecureSkipTLSVerifyBackend": "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet).", } func (PodLogOptions) SwaggerDoc() map[string]string { return map_PodLogOptions } var map_PodOS = map[string]string{ "": "PodOS defines the OS parameters of a pod.", "name": "Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null", } func (PodOS) SwaggerDoc() map[string]string { return map_PodOS } 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_PodResourceClaim = map[string]string{ "": "PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.", "name": "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.", "source": "Source describes where to find the ResourceClaim.", } func (PodResourceClaim) SwaggerDoc() map[string]string { return map_PodResourceClaim } var map_PodResourceClaimStatus = map[string]string{ "": "PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.", "name": "Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL.", "resourceClaimName": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.", } func (PodResourceClaimStatus) SwaggerDoc() map[string]string { return map_PodResourceClaimStatus } var map_PodSchedulingGate = map[string]string{ "": "PodSchedulingGate is associated to a Pod to guard its scheduling.", "name": "Name of the scheduling gate. Each scheduling gate must have a unique name field.", } func (PodSchedulingGate) SwaggerDoc() map[string]string { return map_PodSchedulingGate } 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. Note that this field cannot be set when spec.os.name is windows.", "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. Note that this field cannot be set when spec.os.name is linux.", "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. Note that this field cannot be set when spec.os.name is windows.", "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. Note that this field cannot be set when spec.os.name is windows.", "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, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.", "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. Note that this field cannot be set when spec.os.name is windows.", "fsGroupChangePolicy": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows.", "seccompProfile": "The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows.", } 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.", "restartPolicy": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. 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 stop immediately via the kill signal (no opportunity to shut down). 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.", "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. 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/580-pod-readiness-gates", "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/585-runtime-class", "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.", "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/688-pod-overhead/README.md", "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. All topologySpreadConstraints are ANDed.", "setHostnameAsFQDN": "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.", "os": "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup", "hostUsers": "Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.", "schedulingGates": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\n\nSchedulingGates can only be set at pod creation time, and be removed only afterwards.\n\nThis is a beta feature enabled by the PodSchedulingReadiness feature gate.", "resourceClaims": "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable.", } 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": "hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod", "hostIPs": "hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod.", "podIP": "podIP 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. 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://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes", "ephemeralContainerStatuses": "Status for any ephemeral containers that have run in this pod.", "resize": "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\"", "resourceClaimStatuses": "Status of resource claims.", } 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_PortStatus = map[string]string{ "port": "Port is the port number of the service port of which status is recorded here", "protocol": "Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"", "error": "Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", } func (PortStatus) SwaggerDoc() map[string]string { return map_PortStatus } 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": "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.", "terminationGracePeriodSeconds": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure. 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. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", } func (Probe) SwaggerDoc() map[string]string { return map_Probe } var map_ProbeHandler = map[string]string{ "": "ProbeHandler defines a specific action that should be taken in a probe. One and only one of the fields must be specified.", "exec": "Exec specifies the action to take.", "httpGet": "HTTPGet specifies the http request to perform.", "tcpSocket": "TCPSocket specifies an action involving a TCP port.", "grpc": "GRPC specifies an action involving a GRPC port.", } func (ProbeHandler) SwaggerDoc() map[string]string { return map_ProbeHandler } var map_ProjectedVolumeSource = map[string]string{ "": "Represents a projected volume source", "sources": "sources is the list of volume projections", "defaultMode": "defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. 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": "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", "image": "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", "fsType": "fsType is the 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": "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", "user": "user is 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": "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", "image": "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", "fsType": "fsType is the 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": "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", "user": "user is 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. The only allowed template.spec.restartPolicy value is \"Always\". 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 observed 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_ResourceClaim = map[string]string{ "": "ResourceClaim references one entry in PodSpec.ResourceClaims.", "name": "Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.", } func (ResourceClaim) SwaggerDoc() map[string]string { return map_ResourceClaim } 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-resources-containers/", "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. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", "claims": "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", } 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": "gateway is the host address of the ScaleIO API Gateway.", "system": "system is 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": "sslEnabled is the flag to enable/disable SSL communication with Gateway, default false", "protectionDomain": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", "storagePool": "storagePool is the ScaleIO Storage Pool associated with the protection domain.", "storageMode": "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", "volumeName": "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", "fsType": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\"", "readOnly": "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": "gateway is the host address of the ScaleIO API Gateway.", "system": "system is 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": "sslEnabled Flag enable/disable SSL communication with Gateway, default false", "protectionDomain": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", "storagePool": "storagePool is the ScaleIO Storage Pool associated with the protection domain.", "storageMode": "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", "volumeName": "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", "fsType": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\".", "readOnly": "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_SeccompProfile = map[string]string{ "": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.", "type": "type indicates which kind of seccomp profile will be applied. Valid options are:\n\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.", "localhostProfile": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type.", } func (SeccompProfile) SwaggerDoc() map[string]string { return map_SeccompProfile } 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", "immutable": "Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", "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 input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.", "type": "Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types", } 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": "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": "optional field 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": "secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", "items": "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": "defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. 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 field 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. Note that this field cannot be set when spec.os.name is windows.", "privileged": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows.", "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. Note that this field cannot be set when spec.os.name is windows.", "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. Note that this field cannot be set when spec.os.name is linux.", "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. Note that this field cannot be set when spec.os.name is windows.", "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. Note that this field cannot be set when spec.os.name is windows.", "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. Note that this field cannot be set when spec.os.name is windows.", "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 Note that this field cannot be set when spec.os.name is windows.", "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. Note that this field cannot be set when spec.os.name is windows.", "seccompProfile": "The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows.", } 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 a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. 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.", "appProtocol": "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", "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 is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). 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. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", "clusterIPs": "ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value.\n\nThis field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. 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. \"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 or EndpointSlice objects. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \"ExternalName\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. 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. 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. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available.", "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/create-external-load-balancer/", "externalName": "externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\".", "externalTrafficPolicy": "externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.", "healthCheckNodePort": "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set.", "publishNotReadyAddresses": "publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \"ready\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior.", "sessionAffinityConfig": "sessionAffinityConfig contains the configurations of session affinity.", "ipFamilies": "IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName.\n\nThis field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.", "ipFamilyPolicy": "IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName.", "allocateLoadBalancerNodePorts": "allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type.", "loadBalancerClass": "loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.", "internalTrafficPolicy": "InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features).", } 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.", "conditions": "Current service state", } 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_SleepAction = map[string]string{ "": "SleepAction describes a \"sleep\" action.", "seconds": "Seconds is the number of seconds to sleep.", } func (SleepAction) SwaggerDoc() map[string]string { return map_SleepAction } 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": "fsType is the 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": "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": "fsType is the 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": "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": "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. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. ", "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. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. 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 schedule the pod in any location,\n but giving higher precedence to topologies that would help reduce the\n skew.\nA constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. 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.", "minDomains": "MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: ", "nodeAffinityPolicy": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", "nodeTaintsPolicy": "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", "matchLabelKeys": "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.\n\nThis is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).", } 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_TypedObjectReference = map[string]string{ "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", "namespace": "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", } func (TypedObjectReference) SwaggerDoc() map[string]string { return map_TypedObjectReference } 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": "name of the volume. 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.", } 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": "secret information about the secret data to project", "downwardAPI": "downwardAPI information about the downwardAPI data to project", "configMap": "configMap information about the configMap data to project", "serviceAccountToken": "serviceAccountToken is information about the serviceAccountToken data to project", "clusterTrustBundle": "ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field of ClusterTrustBundle objects in an auto-updating file.\n\nAlpha, gated by the ClusterTrustBundleProjection feature gate.\n\nClusterTrustBundle objects can either be selected by name, or by the combination of signer name and a label selector.\n\nKubelet performs aggressive normalization of the PEM contents written into the pod filesystem. Esoteric PEM features such as inter-block comments and block headers are stripped. Certificates are deduplicated. The ordering of certificates within the file is arbitrary, and Kubelet may change the order over time.", } func (VolumeProjection) SwaggerDoc() map[string]string { return map_VolumeProjection } var map_VolumeResourceRequirements = map[string]string{ "": "VolumeResourceRequirements describes the storage resource requirements for a volume.", "limits": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", "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. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", } func (VolumeResourceRequirements) SwaggerDoc() map[string]string { return map_VolumeResourceRequirements } 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": "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 ephemeral storage that is handled by certain external CSI drivers (Beta feature).", "ephemeral": "ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.\n\nUse this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.\n\nA pod can use both types of ephemeral volumes and persistent volumes at the same time.", } func (VolumeSource) SwaggerDoc() map[string]string { return map_VolumeSource } var map_VsphereVirtualDiskVolumeSource = map[string]string{ "": "Represents a vSphere volume resource.", "volumePath": "volumePath is the path that identifies vSphere volume vmdk", "fsType": "fsType is 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": "storagePolicyName is the storage Policy Based Management (SPBM) profile name.", "storagePolicyID": "storagePolicyID is the 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.", "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.", "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.", "hostProcess": "HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.", } func (WindowsSecurityContextOptions) SwaggerDoc() map[string]string { return map_WindowsSecurityContextOptions } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/core/v1/types_test.go000066400000000000000000000042141453636404600203470ustar00rootroot00000000000000/* Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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" "strings" "testing" ) // Test_ServiceSpecRemovedFieldProtobufNumberReservation tests that the reserved protobuf field numbers // for removed fields are not re-used. DO NOT remove this test for any reason, this ensures that tombstoned // protobuf field numbers are not accidentally reused by other fields. func Test_ServiceSpecRemovedFieldProtobufNumberReservation(t *testing.T) { obj := reflect.ValueOf(ServiceSpec{}).Type() for i := 0; i < obj.NumField(); i++ { f := obj.Field(i) protobufNum := strings.Split(f.Tag.Get("protobuf"), ",")[1] if protobufNum == "15" { t.Errorf("protobuf 15 in ServiceSpec is reserved for removed ipFamily field") } if protobufNum == "16" { t.Errorf("protobuf 16 in ServiceSpec is reserved for removed topologyKeys field") } } } // TestEphemeralContainer ensures that the tags of Container and EphemeralContainerCommon are kept in sync. func TestEphemeralContainer(t *testing.T) { ephemeralType := reflect.TypeOf(EphemeralContainerCommon{}) containerType := reflect.TypeOf(Container{}) ephemeralFields := ephemeralType.NumField() containerFields := containerType.NumField() if containerFields != ephemeralFields { t.Fatalf("%v has %d fields, %v has %d fields", ephemeralType, ephemeralFields, containerType, containerFields) } for i := 0; i < ephemeralFields; i++ { ephemeralField := ephemeralType.Field(i) containerField := containerType.Field(i) if !reflect.DeepEqual(ephemeralField, containerField) { t.Errorf("field %v differs:\n\t%#v\n\t%#v", ephemeralField.Name, ephemeralField, containerField) } } } golang-k8s-api-0.29.0/core/v1/well_known_labels.go000066400000000000000000000074341453636404600216540ustar00rootroot00000000000000/* 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" // Label value is the network location of kube-apiserver stored as // Stored in APIServer Identity lease objects to view what address is used for peer proxy AnnotationPeerAdvertiseAddress = "kubernetes.io/peer-advertise-address" LabelTopologyZone = "topology.kubernetes.io/zone" LabelTopologyRegion = "topology.kubernetes.io/region" // These label have been deprecated since 1.17, but will be supported for // the foreseeable future, to accommodate things like long-lived PVs that // use them. New users should prefer the "topology.kubernetes.io/*" // equivalents. LabelFailureDomainBetaZone = "failure-domain.beta.kubernetes.io/zone" // deprecated LabelFailureDomainBetaRegion = "failure-domain.beta.kubernetes.io/region" // deprecated // Retained for compat when vendored. Do not use these consts in new code. LabelZoneFailureDomain = LabelFailureDomainBetaZone // deprecated LabelZoneRegion = LabelFailureDomainBetaRegion // deprecated LabelZoneFailureDomainStable = LabelTopologyZone // deprecated LabelZoneRegionStable = LabelTopologyRegion // deprecated LabelInstanceType = "beta.kubernetes.io/instance-type" LabelInstanceTypeStable = "node.kubernetes.io/instance-type" LabelOSStable = "kubernetes.io/os" LabelArchStable = "kubernetes.io/arch" // LabelWindowsBuild is used on Windows nodes to specify the Windows build number starting with v1.17.0. // It's in the format MajorVersion.MinorVersion.BuildNumber (for ex: 10.0.17763) LabelWindowsBuild = "node.kubernetes.io/windows-build" // 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" // LabelNodeExcludeBalancers specifies that the node should not be considered as a target // for external load-balancers which use nodes as a second hop (e.g. many cloud LBs which only // understand nodes). For services that use externalTrafficPolicy=Local, this may mean that // any backends on excluded nodes are not reachable by those external load-balancers. // Implementations of this exclusion may vary based on provider. LabelNodeExcludeBalancers = "node.kubernetes.io/exclude-from-external-load-balancers" // LabelMetadataName is the label name which, in-tree, is used to automatically label namespaces, so they can be selected easily by tools which require definitive labels LabelMetadataName = "kubernetes.io/metadata.name" ) golang-k8s-api-0.29.0/core/v1/well_known_taints.go000066400000000000000000000040341453636404600217050ustar00rootroot00000000000000/* 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 ( // TaintNodeNotReady will be added when node is not ready // and removed when node becomes ready. TaintNodeNotReady = "node.kubernetes.io/not-ready" // TaintNodeUnreachable will be added when node becomes unreachable // (corresponding to NodeReady status ConditionUnknown) // and removed when node becomes reachable (NodeReady status ConditionTrue). TaintNodeUnreachable = "node.kubernetes.io/unreachable" // TaintNodeUnschedulable will be added when node becomes unschedulable // and removed when node becomes schedulable. TaintNodeUnschedulable = "node.kubernetes.io/unschedulable" // TaintNodeMemoryPressure will be added when node has memory pressure // and removed when node has enough memory. TaintNodeMemoryPressure = "node.kubernetes.io/memory-pressure" // TaintNodeDiskPressure will be added when node has disk pressure // and removed when node has enough disk. TaintNodeDiskPressure = "node.kubernetes.io/disk-pressure" // TaintNodeNetworkUnavailable will be added when node's network is unavailable // and removed when network becomes ready. TaintNodeNetworkUnavailable = "node.kubernetes.io/network-unavailable" // TaintNodePIDPressure will be added when node has pid pressure // and removed when node has enough pid. TaintNodePIDPressure = "node.kubernetes.io/pid-pressure" // TaintNodeOutOfService can be added when node is out of service in case of // a non-graceful shutdown TaintNodeOutOfService = "node.kubernetes.io/out-of-service" ) golang-k8s-api-0.29.0/core/v1/zz_generated.deepcopy.go000066400000000000000000005433221453636404600224440ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" types "k8s.io/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 } if in.NodeExpandSecretRef != nil { in, out := &in.NodeExpandSecretRef, &out.NodeExpandSecretRef *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 *ClaimSource) DeepCopyInto(out *ClaimSource) { *out = *in if in.ResourceClaimName != nil { in, out := &in.ResourceClaimName, &out.ResourceClaimName *out = new(string) **out = **in } if in.ResourceClaimTemplateName != nil { in, out := &in.ResourceClaimTemplateName, &out.ResourceClaimTemplateName *out = new(string) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClaimSource. func (in *ClaimSource) DeepCopy() *ClaimSource { if in == nil { return nil } out := new(ClaimSource) 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 *ClusterTrustBundleProjection) DeepCopyInto(out *ClusterTrustBundleProjection) { *out = *in if in.Name != nil { in, out := &in.Name, &out.Name *out = new(string) **out = **in } if in.SignerName != nil { in, out := &in.SignerName, &out.SignerName *out = new(string) **out = **in } if in.LabelSelector != nil { in, out := &in.LabelSelector, &out.LabelSelector *out = new(metav1.LabelSelector) (*in).DeepCopyInto(*out) } 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 ClusterTrustBundleProjection. func (in *ClusterTrustBundleProjection) DeepCopy() *ClusterTrustBundleProjection { if in == nil { return nil } out := new(ClusterTrustBundleProjection) 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.Immutable != nil { in, out := &in.Immutable, &out.Immutable *out = new(bool) **out = **in } 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.ResizePolicy != nil { in, out := &in.ResizePolicy, &out.ResizePolicy *out = make([]ContainerResizePolicy, len(*in)) copy(*out, *in) } if in.RestartPolicy != nil { in, out := &in.RestartPolicy, &out.RestartPolicy *out = new(ContainerRestartPolicy) **out = **in } 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 *ContainerResizePolicy) DeepCopyInto(out *ContainerResizePolicy) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerResizePolicy. func (in *ContainerResizePolicy) DeepCopy() *ContainerResizePolicy { if in == nil { return nil } out := new(ContainerResizePolicy) 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 } if in.AllocatedResources != nil { in, out := &in.AllocatedResources, &out.AllocatedResources *out = make(ResourceList, len(*in)) for key, val := range *in { (*out)[key] = val.DeepCopy() } } if in.Resources != nil { in, out := &in.Resources, &out.Resources *out = new(ResourceRequirements) (*in).DeepCopyInto(*out) } 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 if in.AppProtocol != nil { in, out := &in.AppProtocol, &out.AppProtocol *out = new(string) **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)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } 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.ResizePolicy != nil { in, out := &in.ResizePolicy, &out.ResizePolicy *out = make([]ContainerResizePolicy, len(*in)) copy(*out, *in) } if in.RestartPolicy != nil { in, out := &in.RestartPolicy, &out.RestartPolicy *out = new(ContainerRestartPolicy) **out = **in } 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 *EphemeralVolumeSource) DeepCopyInto(out *EphemeralVolumeSource) { *out = *in if in.VolumeClaimTemplate != nil { in, out := &in.VolumeClaimTemplate, &out.VolumeClaimTemplate *out = new(PersistentVolumeClaimTemplate) (*in).DeepCopyInto(*out) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EphemeralVolumeSource. func (in *EphemeralVolumeSource) DeepCopy() *EphemeralVolumeSource { if in == nil { return nil } out := new(EphemeralVolumeSource) in.DeepCopyInto(out) return out } // 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 *GRPCAction) DeepCopyInto(out *GRPCAction) { *out = *in if in.Service != nil { in, out := &in.Service, &out.Service *out = new(string) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GRPCAction. func (in *GRPCAction) DeepCopy() *GRPCAction { if in == nil { return nil } out := new(GRPCAction) 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 *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 *HostIP) DeepCopyInto(out *HostIP) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostIP. func (in *HostIP) DeepCopy() *HostIP { if in == nil { return nil } out := new(HostIP) 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(LifecycleHandler) (*in).DeepCopyInto(*out) } if in.PreStop != nil { in, out := &in.PreStop, &out.PreStop *out = new(LifecycleHandler) (*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 *LifecycleHandler) DeepCopyInto(out *LifecycleHandler) { *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 } if in.Sleep != nil { in, out := &in.Sleep, &out.Sleep *out = new(SleepAction) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LifecycleHandler. func (in *LifecycleHandler) DeepCopy() *LifecycleHandler { if in == nil { return nil } out := new(LifecycleHandler) 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 if in.IPMode != nil { in, out := &in.IPMode, &out.IPMode *out = new(LoadBalancerIPMode) **out = **in } if in.Ports != nil { in, out := &in.Ports, &out.Ports *out = make([]PortStatus, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } 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)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } 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 *ModifyVolumeStatus) DeepCopyInto(out *ModifyVolumeStatus) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModifyVolumeStatus. func (in *ModifyVolumeStatus) DeepCopy() *ModifyVolumeStatus { if in == nil { return nil } out := new(ModifyVolumeStatus) 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) in.Status.DeepCopyInto(&out.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) } if in.DataSourceRef != nil { in, out := &in.DataSourceRef, &out.DataSourceRef *out = new(TypedObjectReference) (*in).DeepCopyInto(*out) } if in.VolumeAttributesClassName != nil { in, out := &in.VolumeAttributesClassName, &out.VolumeAttributesClassName *out = new(string) **out = **in } 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]) } } if in.AllocatedResources != nil { in, out := &in.AllocatedResources, &out.AllocatedResources *out = make(ResourceList, len(*in)) for key, val := range *in { (*out)[key] = val.DeepCopy() } } if in.AllocatedResourceStatuses != nil { in, out := &in.AllocatedResourceStatuses, &out.AllocatedResourceStatuses *out = make(map[ResourceName]ClaimResourceStatus, len(*in)) for key, val := range *in { (*out)[key] = val } } if in.CurrentVolumeAttributesClassName != nil { in, out := &in.CurrentVolumeAttributesClassName, &out.CurrentVolumeAttributesClassName *out = new(string) **out = **in } if in.ModifyVolumeStatus != nil { in, out := &in.ModifyVolumeStatus, &out.ModifyVolumeStatus *out = new(ModifyVolumeStatus) **out = **in } 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 *PersistentVolumeClaimTemplate) DeepCopyInto(out *PersistentVolumeClaimTemplate) { *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 PersistentVolumeClaimTemplate. func (in *PersistentVolumeClaimTemplate) DeepCopy() *PersistentVolumeClaimTemplate { if in == nil { return nil } out := new(PersistentVolumeClaimTemplate) 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) } if in.VolumeAttributesClassName != nil { in, out := &in.VolumeAttributesClassName, &out.VolumeAttributesClassName *out = new(string) **out = **in } 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 if in.LastPhaseTransitionTime != nil { in, out := &in.LastPhaseTransitionTime, &out.LastPhaseTransitionTime *out = (*in).DeepCopy() } 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) } if in.NamespaceSelector != nil { in, out := &in.NamespaceSelector, &out.NamespaceSelector *out = new(metav1.LabelSelector) (*in).DeepCopyInto(*out) } if in.MatchLabelKeys != nil { in, out := &in.MatchLabelKeys, &out.MatchLabelKeys *out = make([]string, len(*in)) copy(*out, *in) } if in.MismatchLabelKeys != nil { in, out := &in.MismatchLabelKeys, &out.MismatchLabelKeys *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 *PodOS) DeepCopyInto(out *PodOS) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodOS. func (in *PodOS) DeepCopy() *PodOS { if in == nil { return nil } out := new(PodOS) in.DeepCopyInto(out) return out } // 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 *PodResourceClaim) DeepCopyInto(out *PodResourceClaim) { *out = *in in.Source.DeepCopyInto(&out.Source) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodResourceClaim. func (in *PodResourceClaim) DeepCopy() *PodResourceClaim { if in == nil { return nil } out := new(PodResourceClaim) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PodResourceClaimStatus) DeepCopyInto(out *PodResourceClaimStatus) { *out = *in if in.ResourceClaimName != nil { in, out := &in.ResourceClaimName, &out.ResourceClaimName *out = new(string) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodResourceClaimStatus. func (in *PodResourceClaimStatus) DeepCopy() *PodResourceClaimStatus { if in == nil { return nil } out := new(PodResourceClaimStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PodSchedulingGate) DeepCopyInto(out *PodSchedulingGate) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingGate. func (in *PodSchedulingGate) DeepCopy() *PodSchedulingGate { if in == nil { return nil } out := new(PodSchedulingGate) 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) } if in.FSGroupChangePolicy != nil { in, out := &in.FSGroupChangePolicy, &out.FSGroupChangePolicy *out = new(PodFSGroupChangePolicy) **out = **in } if in.SeccompProfile != nil { in, out := &in.SeccompProfile, &out.SeccompProfile *out = new(SeccompProfile) (*in).DeepCopyInto(*out) } 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]) } } if in.SetHostnameAsFQDN != nil { in, out := &in.SetHostnameAsFQDN, &out.SetHostnameAsFQDN *out = new(bool) **out = **in } if in.OS != nil { in, out := &in.OS, &out.OS *out = new(PodOS) **out = **in } if in.HostUsers != nil { in, out := &in.HostUsers, &out.HostUsers *out = new(bool) **out = **in } if in.SchedulingGates != nil { in, out := &in.SchedulingGates, &out.SchedulingGates *out = make([]PodSchedulingGate, len(*in)) copy(*out, *in) } if in.ResourceClaims != nil { in, out := &in.ResourceClaims, &out.ResourceClaims *out = make([]PodResourceClaim, 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.HostIPs != nil { in, out := &in.HostIPs, &out.HostIPs *out = make([]HostIP, len(*in)) copy(*out, *in) } 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]) } } if in.ResourceClaimStatuses != nil { in, out := &in.ResourceClaimStatuses, &out.ResourceClaimStatuses *out = make([]PodResourceClaimStatus, 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 *PortStatus) DeepCopyInto(out *PortStatus) { *out = *in if in.Error != nil { in, out := &in.Error, &out.Error *out = new(string) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortStatus. func (in *PortStatus) DeepCopy() *PortStatus { if in == nil { return nil } out := new(PortStatus) 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.ProbeHandler.DeepCopyInto(&out.ProbeHandler) if in.TerminationGracePeriodSeconds != nil { in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds *out = new(int64) **out = **in } 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 *ProbeHandler) DeepCopyInto(out *ProbeHandler) { *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 } if in.GRPC != nil { in, out := &in.GRPC, &out.GRPC *out = new(GRPCAction) (*in).DeepCopyInto(*out) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProbeHandler. func (in *ProbeHandler) DeepCopy() *ProbeHandler { if in == nil { return nil } out := new(ProbeHandler) 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 *ResourceClaim) DeepCopyInto(out *ResourceClaim) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaim. func (in *ResourceClaim) DeepCopy() *ResourceClaim { if in == nil { return nil } out := new(ResourceClaim) 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() } } if in.Claims != nil { in, out := &in.Claims, &out.Claims *out = make([]ResourceClaim, len(*in)) copy(*out, *in) } 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 *SeccompProfile) DeepCopyInto(out *SeccompProfile) { *out = *in if in.LocalhostProfile != nil { in, out := &in.LocalhostProfile, &out.LocalhostProfile *out = new(string) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SeccompProfile. func (in *SeccompProfile) DeepCopy() *SeccompProfile { if in == nil { return nil } out := new(SeccompProfile) 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.Immutable != nil { in, out := &in.Immutable, &out.Immutable *out = new(bool) **out = **in } 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 } if in.SeccompProfile != nil { in, out := &in.SeccompProfile, &out.SeccompProfile *out = new(SeccompProfile) (*in).DeepCopyInto(*out) } 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 if in.AppProtocol != nil { in, out := &in.AppProtocol, &out.AppProtocol *out = new(string) **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)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } 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.ClusterIPs != nil { in, out := &in.ClusterIPs, &out.ClusterIPs *out = make([]string, len(*in)) copy(*out, *in) } 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.IPFamilies != nil { in, out := &in.IPFamilies, &out.IPFamilies *out = make([]IPFamily, len(*in)) copy(*out, *in) } if in.IPFamilyPolicy != nil { in, out := &in.IPFamilyPolicy, &out.IPFamilyPolicy *out = new(IPFamilyPolicy) **out = **in } if in.AllocateLoadBalancerNodePorts != nil { in, out := &in.AllocateLoadBalancerNodePorts, &out.AllocateLoadBalancerNodePorts *out = new(bool) **out = **in } if in.LoadBalancerClass != nil { in, out := &in.LoadBalancerClass, &out.LoadBalancerClass *out = new(string) **out = **in } if in.InternalTrafficPolicy != nil { in, out := &in.InternalTrafficPolicy, &out.InternalTrafficPolicy *out = new(ServiceInternalTrafficPolicy) **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) if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]metav1.Condition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } 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 *SleepAction) DeepCopyInto(out *SleepAction) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SleepAction. func (in *SleepAction) DeepCopy() *SleepAction { if in == nil { return nil } out := new(SleepAction) 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) } if in.MinDomains != nil { in, out := &in.MinDomains, &out.MinDomains *out = new(int32) **out = **in } if in.NodeAffinityPolicy != nil { in, out := &in.NodeAffinityPolicy, &out.NodeAffinityPolicy *out = new(NodeInclusionPolicy) **out = **in } if in.NodeTaintsPolicy != nil { in, out := &in.NodeTaintsPolicy, &out.NodeTaintsPolicy *out = new(NodeInclusionPolicy) **out = **in } if in.MatchLabelKeys != nil { in, out := &in.MatchLabelKeys, &out.MatchLabelKeys *out = make([]string, len(*in)) copy(*out, *in) } 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 *TypedObjectReference) DeepCopyInto(out *TypedObjectReference) { *out = *in if in.APIGroup != nil { in, out := &in.APIGroup, &out.APIGroup *out = new(string) **out = **in } if in.Namespace != nil { in, out := &in.Namespace, &out.Namespace *out = new(string) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TypedObjectReference. func (in *TypedObjectReference) DeepCopy() *TypedObjectReference { if in == nil { return nil } out := new(TypedObjectReference) 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) } if in.ClusterTrustBundle != nil { in, out := &in.ClusterTrustBundle, &out.ClusterTrustBundle *out = new(ClusterTrustBundleProjection) (*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 *VolumeResourceRequirements) DeepCopyInto(out *VolumeResourceRequirements) { *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 VolumeResourceRequirements. func (in *VolumeResourceRequirements) DeepCopy() *VolumeResourceRequirements { if in == nil { return nil } out := new(VolumeResourceRequirements) 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) } if in.Ephemeral != nil { in, out := &in.Ephemeral, &out.Ephemeral *out = new(EphemeralVolumeSource) (*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 } if in.HostProcess != nil { in, out := &in.HostProcess, &out.HostProcess *out = new(bool) **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 } golang-k8s-api-0.29.0/discovery/000077500000000000000000000000001453636404600163455ustar00rootroot00000000000000golang-k8s-api-0.29.0/discovery/v1/000077500000000000000000000000001453636404600166735ustar00rootroot00000000000000golang-k8s-api-0.29.0/discovery/v1/doc.go000066400000000000000000000013351453636404600177710ustar00rootroot00000000000000/* 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 v1 // import "k8s.io/api/discovery/v1" golang-k8s-api-0.29.0/discovery/v1/generated.pb.go000066400000000000000000001573571453636404600216020ustar00rootroot00000000000000/* 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/k8s.io/api/discovery/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 "k8s.io/api/core/v1" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *Endpoint) Reset() { *m = Endpoint{} } func (*Endpoint) ProtoMessage() {} func (*Endpoint) Descriptor() ([]byte, []int) { return fileDescriptor_3a5d310fb1396ddf, []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_3a5d310fb1396ddf, []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 *EndpointHints) Reset() { *m = EndpointHints{} } func (*EndpointHints) ProtoMessage() {} func (*EndpointHints) Descriptor() ([]byte, []int) { return fileDescriptor_3a5d310fb1396ddf, []int{2} } func (m *EndpointHints) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *EndpointHints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *EndpointHints) XXX_Merge(src proto.Message) { xxx_messageInfo_EndpointHints.Merge(m, src) } func (m *EndpointHints) XXX_Size() int { return m.Size() } func (m *EndpointHints) XXX_DiscardUnknown() { xxx_messageInfo_EndpointHints.DiscardUnknown(m) } var xxx_messageInfo_EndpointHints proto.InternalMessageInfo func (m *EndpointPort) Reset() { *m = EndpointPort{} } func (*EndpointPort) ProtoMessage() {} func (*EndpointPort) Descriptor() ([]byte, []int) { return fileDescriptor_3a5d310fb1396ddf, []int{3} } 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_3a5d310fb1396ddf, []int{4} } 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_3a5d310fb1396ddf, []int{5} } 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 (m *ForZone) Reset() { *m = ForZone{} } func (*ForZone) ProtoMessage() {} func (*ForZone) Descriptor() ([]byte, []int) { return fileDescriptor_3a5d310fb1396ddf, []int{6} } func (m *ForZone) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ForZone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ForZone) XXX_Merge(src proto.Message) { xxx_messageInfo_ForZone.Merge(m, src) } func (m *ForZone) XXX_Size() int { return m.Size() } func (m *ForZone) XXX_DiscardUnknown() { xxx_messageInfo_ForZone.DiscardUnknown(m) } var xxx_messageInfo_ForZone proto.InternalMessageInfo func init() { proto.RegisterType((*Endpoint)(nil), "k8s.io.api.discovery.v1.Endpoint") proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.discovery.v1.Endpoint.DeprecatedTopologyEntry") proto.RegisterType((*EndpointConditions)(nil), "k8s.io.api.discovery.v1.EndpointConditions") proto.RegisterType((*EndpointHints)(nil), "k8s.io.api.discovery.v1.EndpointHints") proto.RegisterType((*EndpointPort)(nil), "k8s.io.api.discovery.v1.EndpointPort") proto.RegisterType((*EndpointSlice)(nil), "k8s.io.api.discovery.v1.EndpointSlice") proto.RegisterType((*EndpointSliceList)(nil), "k8s.io.api.discovery.v1.EndpointSliceList") proto.RegisterType((*ForZone)(nil), "k8s.io.api.discovery.v1.ForZone") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/discovery/v1/generated.proto", fileDescriptor_3a5d310fb1396ddf) } var fileDescriptor_3a5d310fb1396ddf = []byte{ // 893 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x4d, 0x6f, 0xe3, 0x44, 0x18, 0x8e, 0x9b, 0x86, 0xda, 0x93, 0x56, 0xec, 0x8e, 0x90, 0x1a, 0x05, 0x14, 0x87, 0xa0, 0x45, 0x91, 0x2a, 0x6c, 0x5a, 0x21, 0xb4, 0x20, 0x21, 0x51, 0xb3, 0x65, 0x97, 0xaf, 0x52, 0xcd, 0xf6, 0xb4, 0x42, 0x5a, 0x5c, 0xfb, 0xad, 0x63, 0xd2, 0xcc, 0x58, 0x33, 0x93, 0x48, 0xe1, 0xc4, 0x85, 0x33, 0xfc, 0x22, 0x8e, 0xa8, 0xc7, 0xbd, 0xb1, 0x27, 0x8b, 0x9a, 0xbf, 0xc0, 0x69, 0x4f, 0x68, 0xc6, 0x9f, 0x25, 0x8d, 0xb2, 0x37, 0xcf, 0x33, 0xcf, 0xf3, 0x7e, 0x3c, 0x33, 0xf3, 0x1a, 0x7d, 0x3e, 0x7d, 0x28, 0x9c, 0x98, 0xb9, 0xd3, 0xf9, 0x05, 0x70, 0x0a, 0x12, 0x84, 0xbb, 0x00, 0x1a, 0x32, 0xee, 0x16, 0x1b, 0x7e, 0x12, 0xbb, 0x61, 0x2c, 0x02, 0xb6, 0x00, 0xbe, 0x74, 0x17, 0x87, 0x6e, 0x04, 0x14, 0xb8, 0x2f, 0x21, 0x74, 0x12, 0xce, 0x24, 0xc3, 0xfb, 0x39, 0xd1, 0xf1, 0x93, 0xd8, 0xa9, 0x88, 0xce, 0xe2, 0xb0, 0xff, 0x41, 0x14, 0xcb, 0xc9, 0xfc, 0xc2, 0x09, 0xd8, 0xcc, 0x8d, 0x58, 0xc4, 0x5c, 0xcd, 0xbf, 0x98, 0x5f, 0xea, 0x95, 0x5e, 0xe8, 0xaf, 0x3c, 0x4e, 0x7f, 0xd4, 0x48, 0x18, 0x30, 0x0e, 0x77, 0xe4, 0xea, 0x7f, 0x54, 0x73, 0x66, 0x7e, 0x30, 0x89, 0xa9, 0xaa, 0x29, 0x99, 0x46, 0x0a, 0x10, 0xee, 0x0c, 0xa4, 0x7f, 0x97, 0xca, 0x5d, 0xa7, 0xe2, 0x73, 0x2a, 0xe3, 0x19, 0xac, 0x08, 0x3e, 0xde, 0x24, 0x10, 0xc1, 0x04, 0x66, 0xfe, 0xff, 0x75, 0xa3, 0x7f, 0xb7, 0x91, 0x79, 0x42, 0xc3, 0x84, 0xc5, 0x54, 0xe2, 0x03, 0x64, 0xf9, 0x61, 0xc8, 0x41, 0x08, 0x10, 0x3d, 0x63, 0xd8, 0x1e, 0x5b, 0xde, 0x5e, 0x96, 0xda, 0xd6, 0x71, 0x09, 0x92, 0x7a, 0x1f, 0x3f, 0x47, 0x28, 0x60, 0x34, 0x8c, 0x65, 0xcc, 0xa8, 0xe8, 0x6d, 0x0d, 0x8d, 0x71, 0xf7, 0xe8, 0xc0, 0x59, 0xe3, 0xac, 0x53, 0xe6, 0xf8, 0xa2, 0x92, 0x78, 0xf8, 0x3a, 0xb5, 0x5b, 0x59, 0x6a, 0xa3, 0x1a, 0x23, 0x8d, 0x90, 0x78, 0x8c, 0xcc, 0x09, 0x13, 0x92, 0xfa, 0x33, 0xe8, 0xb5, 0x87, 0xc6, 0xd8, 0xf2, 0x76, 0xb3, 0xd4, 0x36, 0x9f, 0x14, 0x18, 0xa9, 0x76, 0xf1, 0x19, 0xb2, 0xa4, 0xcf, 0x23, 0x90, 0x04, 0x2e, 0x7b, 0xdb, 0xba, 0x92, 0xf7, 0x9a, 0x95, 0xa8, 0xb3, 0x51, 0x45, 0x7c, 0x7f, 0xf1, 0x13, 0x04, 0x8a, 0x04, 0x1c, 0x68, 0x00, 0x79, 0x73, 0xe7, 0xa5, 0x92, 0xd4, 0x41, 0xf0, 0xaf, 0x06, 0xc2, 0x21, 0x24, 0x1c, 0x02, 0xe5, 0xd5, 0x39, 0x4b, 0xd8, 0x15, 0x8b, 0x96, 0xbd, 0xce, 0xb0, 0x3d, 0xee, 0x1e, 0x7d, 0xb2, 0xb1, 0x4b, 0xe7, 0xd1, 0x8a, 0xf6, 0x84, 0x4a, 0xbe, 0xf4, 0xfa, 0x45, 0xcf, 0x78, 0x95, 0x40, 0xee, 0x48, 0xa8, 0x3c, 0xa0, 0x2c, 0x84, 0x53, 0xe5, 0xc1, 0x1b, 0xb5, 0x07, 0xa7, 0x05, 0x46, 0xaa, 0x5d, 0xfc, 0x0e, 0xda, 0xfe, 0x99, 0x51, 0xe8, 0xed, 0x68, 0x96, 0x99, 0xa5, 0xf6, 0xf6, 0x33, 0x46, 0x81, 0x68, 0x14, 0x3f, 0x46, 0x9d, 0x49, 0x4c, 0xa5, 0xe8, 0x99, 0xda, 0x9d, 0xf7, 0x37, 0x76, 0xf0, 0x44, 0xb1, 0x3d, 0x2b, 0x4b, 0xed, 0x8e, 0xfe, 0x24, 0xb9, 0xbe, 0x7f, 0x82, 0xf6, 0xd7, 0xf4, 0x86, 0xef, 0xa1, 0xf6, 0x14, 0x96, 0x3d, 0x43, 0x15, 0x40, 0xd4, 0x27, 0x7e, 0x0b, 0x75, 0x16, 0xfe, 0xd5, 0x1c, 0xf4, 0xed, 0xb0, 0x48, 0xbe, 0xf8, 0x74, 0xeb, 0xa1, 0x31, 0xfa, 0xcd, 0x40, 0x78, 0xf5, 0x4a, 0x60, 0x1b, 0x75, 0x38, 0xf8, 0x61, 0x1e, 0xc4, 0xcc, 0xd3, 0x13, 0x05, 0x90, 0x1c, 0xc7, 0x0f, 0xd0, 0x8e, 0x00, 0xbe, 0x88, 0x69, 0xa4, 0x63, 0x9a, 0x5e, 0x37, 0x4b, 0xed, 0x9d, 0xa7, 0x39, 0x44, 0xca, 0x3d, 0x7c, 0x88, 0xba, 0x12, 0xf8, 0x2c, 0xa6, 0xbe, 0x54, 0xd4, 0xb6, 0xa6, 0xbe, 0x99, 0xa5, 0x76, 0xf7, 0xbc, 0x86, 0x49, 0x93, 0x33, 0x7a, 0x8e, 0xf6, 0x6e, 0xf5, 0x8e, 0x4f, 0x91, 0x79, 0xc9, 0xb8, 0xf2, 0x30, 0x7f, 0x0b, 0xdd, 0xa3, 0xe1, 0x5a, 0xd7, 0xbe, 0xcc, 0x89, 0xde, 0xbd, 0xe2, 0x78, 0xcd, 0x02, 0x10, 0xa4, 0x8a, 0x31, 0xfa, 0xd3, 0x40, 0xbb, 0x65, 0x86, 0x33, 0xc6, 0xa5, 0x3a, 0x31, 0x7d, 0xb7, 0x8d, 0xfa, 0xc4, 0xf4, 0x99, 0x6a, 0x14, 0x3f, 0x46, 0xa6, 0x7e, 0xa1, 0x01, 0xbb, 0xca, 0xed, 0xf3, 0x0e, 0x54, 0xe0, 0xb3, 0x02, 0x7b, 0x95, 0xda, 0x6f, 0xaf, 0x4e, 0x1f, 0xa7, 0xdc, 0x26, 0x95, 0x58, 0xa5, 0x49, 0x18, 0x97, 0xda, 0x84, 0x4e, 0x9e, 0x46, 0xa5, 0x27, 0x1a, 0x55, 0x4e, 0xf9, 0x49, 0x52, 0xca, 0xf4, 0xe3, 0xb1, 0x72, 0xa7, 0x8e, 0x6b, 0x98, 0x34, 0x39, 0xa3, 0xbf, 0xb6, 0x6a, 0xab, 0x9e, 0x5e, 0xc5, 0x01, 0xe0, 0x1f, 0x91, 0xa9, 0x06, 0x59, 0xe8, 0x4b, 0x5f, 0x77, 0xd3, 0x3d, 0xfa, 0xb0, 0x61, 0x55, 0x35, 0x8f, 0x9c, 0x64, 0x1a, 0x29, 0x40, 0x38, 0x8a, 0x5d, 0x3f, 0xc8, 0xef, 0x40, 0xfa, 0xf5, 0x34, 0xa8, 0x31, 0x52, 0x45, 0xc5, 0x8f, 0x50, 0xb7, 0x98, 0x3c, 0xe7, 0xcb, 0x04, 0x8a, 0x32, 0x47, 0x85, 0xa4, 0x7b, 0x5c, 0x6f, 0xbd, 0xba, 0xbd, 0x24, 0x4d, 0x19, 0x26, 0xc8, 0x82, 0xa2, 0x70, 0x35, 0xb1, 0xd4, 0x99, 0xbe, 0xbb, 0xf1, 0x25, 0x78, 0xf7, 0x8b, 0x34, 0x56, 0x89, 0x08, 0x52, 0x87, 0xc1, 0x5f, 0xa3, 0x8e, 0x32, 0x52, 0xf4, 0xda, 0x3a, 0xde, 0x83, 0x8d, 0xf1, 0x94, 0xf9, 0xde, 0x5e, 0x11, 0xb3, 0xa3, 0x56, 0x82, 0xe4, 0x21, 0x46, 0x7f, 0x18, 0xe8, 0xfe, 0x2d, 0x67, 0xbf, 0x8d, 0x85, 0xc4, 0x3f, 0xac, 0xb8, 0xeb, 0xbc, 0x9e, 0xbb, 0x4a, 0xad, 0xbd, 0xad, 0xae, 0x65, 0x89, 0x34, 0x9c, 0xfd, 0x06, 0x75, 0x62, 0x09, 0xb3, 0xd2, 0x8f, 0xcd, 0x93, 0x41, 0x17, 0x56, 0x37, 0xf0, 0x95, 0x12, 0x93, 0x3c, 0xc6, 0xe8, 0x00, 0xed, 0x14, 0x37, 0x1f, 0x0f, 0x6f, 0xdd, 0xee, 0xdd, 0x82, 0xde, 0xb8, 0xe1, 0xde, 0x67, 0xd7, 0x37, 0x83, 0xd6, 0x8b, 0x9b, 0x41, 0xeb, 0xe5, 0xcd, 0xa0, 0xf5, 0x4b, 0x36, 0x30, 0xae, 0xb3, 0x81, 0xf1, 0x22, 0x1b, 0x18, 0x2f, 0xb3, 0x81, 0xf1, 0x77, 0x36, 0x30, 0x7e, 0xff, 0x67, 0xd0, 0x7a, 0xb6, 0xbf, 0xe6, 0xa7, 0xfe, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2e, 0xd0, 0xcc, 0x2e, 0x07, 0x08, 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 m.Hints != nil { { size, err := m.Hints.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x42 } if m.Zone != nil { i -= len(*m.Zone) copy(dAtA[i:], *m.Zone) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Zone))) i-- dAtA[i] = 0x3a } if m.NodeName != nil { i -= len(*m.NodeName) copy(dAtA[i:], *m.NodeName) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.NodeName))) i-- dAtA[i] = 0x32 } if len(m.DeprecatedTopology) > 0 { keysForDeprecatedTopology := make([]string, 0, len(m.DeprecatedTopology)) for k := range m.DeprecatedTopology { keysForDeprecatedTopology = append(keysForDeprecatedTopology, string(k)) } github_com_gogo_protobuf_sortkeys.Strings(keysForDeprecatedTopology) for iNdEx := len(keysForDeprecatedTopology) - 1; iNdEx >= 0; iNdEx-- { v := m.DeprecatedTopology[string(keysForDeprecatedTopology[iNdEx])] baseI := i i -= len(v) copy(dAtA[i:], v) i = encodeVarintGenerated(dAtA, i, uint64(len(v))) i-- dAtA[i] = 0x12 i -= len(keysForDeprecatedTopology[iNdEx]) copy(dAtA[i:], keysForDeprecatedTopology[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(keysForDeprecatedTopology[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.Terminating != nil { i-- if *m.Terminating { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x18 } if m.Serving != nil { i-- if *m.Serving { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x10 } 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 *EndpointHints) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *EndpointHints) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *EndpointHints) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.ForZones) > 0 { for iNdEx := len(m.ForZones) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.ForZones[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 *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.AppProtocol != nil { i -= len(*m.AppProtocol) copy(dAtA[i:], *m.AppProtocol) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.AppProtocol))) i-- dAtA[i] = 0x22 } 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 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 (m *ForZone) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ForZone) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ForZone) 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 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.DeprecatedTopology) > 0 { for k, v := range m.DeprecatedTopology { _ = 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.NodeName != nil { l = len(*m.NodeName) n += 1 + l + sovGenerated(uint64(l)) } if m.Zone != nil { l = len(*m.Zone) n += 1 + l + sovGenerated(uint64(l)) } if m.Hints != nil { l = m.Hints.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *EndpointConditions) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Ready != nil { n += 2 } if m.Serving != nil { n += 2 } if m.Terminating != nil { n += 2 } return n } func (m *EndpointHints) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.ForZones) > 0 { for _, e := range m.ForZones { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } 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)) } if m.AppProtocol != nil { l = len(*m.AppProtocol) n += 1 + l + sovGenerated(uint64(l)) } 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)) } } 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 (m *ForZone) 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 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" } keysForDeprecatedTopology := make([]string, 0, len(this.DeprecatedTopology)) for k := range this.DeprecatedTopology { keysForDeprecatedTopology = append(keysForDeprecatedTopology, k) } github_com_gogo_protobuf_sortkeys.Strings(keysForDeprecatedTopology) mapStringForDeprecatedTopology := "map[string]string{" for _, k := range keysForDeprecatedTopology { mapStringForDeprecatedTopology += fmt.Sprintf("%v: %v,", k, this.DeprecatedTopology[k]) } mapStringForDeprecatedTopology += "}" 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) + `,`, `DeprecatedTopology:` + mapStringForDeprecatedTopology + `,`, `NodeName:` + valueToStringGenerated(this.NodeName) + `,`, `Zone:` + valueToStringGenerated(this.Zone) + `,`, `Hints:` + strings.Replace(this.Hints.String(), "EndpointHints", "EndpointHints", 1) + `,`, `}`, }, "") return s } func (this *EndpointConditions) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&EndpointConditions{`, `Ready:` + valueToStringGenerated(this.Ready) + `,`, `Serving:` + valueToStringGenerated(this.Serving) + `,`, `Terminating:` + valueToStringGenerated(this.Terminating) + `,`, `}`, }, "") return s } func (this *EndpointHints) String() string { if this == nil { return "nil" } repeatedStringForForZones := "[]ForZone{" for _, f := range this.ForZones { repeatedStringForForZones += strings.Replace(strings.Replace(f.String(), "ForZone", "ForZone", 1), `&`, ``, 1) + "," } repeatedStringForForZones += "}" s := strings.Join([]string{`&EndpointHints{`, `ForZones:` + repeatedStringForForZones + `,`, `}`, }, "") 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) + `,`, `AppProtocol:` + valueToStringGenerated(this.AppProtocol) + `,`, `}`, }, "") 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:` + fmt.Sprintf("%v", 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 (this *ForZone) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ForZone{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `}`, }, "") 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 DeprecatedTopology", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.DeprecatedTopology == nil { m.DeprecatedTopology = 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > postIndex { return io.ErrUnexpectedEOF } iNdEx += skippy } } m.DeprecatedTopology[mapkey] = mapvalue iNdEx = postIndex case 6: 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 case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Zone", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.Zone = &s iNdEx = postIndex case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Hints", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Hints == nil { m.Hints = &EndpointHints{} } if err := m.Hints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Serving", 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.Serving = &b case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Terminating", 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.Terminating = &b default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *EndpointHints) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: EndpointHints: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: EndpointHints: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ForZones", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ForZones = append(m.ForZones, ForZone{}) if err := m.ForZones[len(m.ForZones)-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) || (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 case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AppProtocol", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.AppProtocol = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 } m.AddressType = AddressType(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ForZone) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ForZone: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ForZone: 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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/discovery/v1/generated.proto000066400000000000000000000204301453636404600217150ustar00rootroot00000000000000/* 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.v1; import "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/discovery/v1"; // 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. Consumers // 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. These are all assumed to be fungible and clients may choose to only // use the first element. Refer to: https://issue.k8s.io/106267 // +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 be lowercase and 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; // deprecatedTopology contains topology information part of the v1beta1 // API. This field is deprecated, and will be removed when the v1beta1 // API is removed (no sooner than kubernetes v1.24). While this field can // hold values, it is not writable through the v1 API, and any attempts to // write to it will be silently ignored. Topology information can be found // in the zone and nodeName fields instead. // +optional map deprecatedTopology = 5; // nodeName represents the name of the Node hosting this endpoint. This can // be used to determine endpoints local to a Node. // +optional optional string nodeName = 6; // zone is the name of the Zone this endpoint exists in. // +optional optional string zone = 7; // hints contains information associated with how an endpoint should be // consumed. // +optional optional EndpointHints hints = 8; } // 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. For compatibility reasons, ready should never be // "true" for terminating endpoints, except when the normal readiness // behavior is being explicitly overridden, for example when the associated // Service has set the publishNotReadyAddresses flag. // +optional optional bool ready = 1; // serving is identical to ready except that it is set regardless of the // terminating state of endpoints. This condition should be set to true for // a ready endpoint that is terminating. If nil, consumers should defer to // the ready condition. // +optional optional bool serving = 2; // terminating indicates that this endpoint is terminating. A nil value // indicates an unknown state. Consumers should interpret this unknown state // to mean that the endpoint is not terminating. // +optional optional bool terminating = 3; } // EndpointHints provides hints describing how an endpoint should be consumed. message EndpointHints { // forZones indicates the zone(s) this endpoint should be consumed by to // enable topology aware routing. // +listType=atomic repeated ForZone forZones = 1; } // EndpointPort represents a Port used by an EndpointSlice // +structType=atomic message EndpointPort { // name represents the name of this port. All ports in an EndpointSlice must have a unique name. // If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. // Name must either be an empty string or pass DNS_LABEL validation: // * must be no more than 63 characters long. // * must consist of lower case alphanumeric characters or '-'. // * must start and end with an alphanumeric character. // Default is empty string. optional string name = 1; // protocol represents the IP protocol for this port. // Must be UDP, TCP, or SCTP. // Default is TCP. optional string protocol = 2; // port represents 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; // The application protocol for this port. // This is used as a hint for implementations to offer richer behavior for protocols that they understand. // This field follows standard Kubernetes label syntax. // Valid values are either: // // * Un-prefixed protocol names - reserved for IANA standard service names (as per // RFC-6335 and https://www.iana.org/assignments/service-names). // // * Kubernetes-defined prefixed names: // * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- // * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 // * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 // // * Other protocols should use implementation-defined prefixed names such as // mycompany.com/my-custom-protocol. // +optional optional string appProtocol = 4; } // 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. This field is // immutable after creation. The following address types are currently // supported: // * IPv4: Represents an IPv4 Address. // * IPv6: Represents an IPv6 Address. // * FQDN: Represents a Fully Qualified Domain Name. 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; // items is the list of endpoint slices repeated EndpointSlice items = 2; } // ForZone provides information about which zones should consume this endpoint. message ForZone { // name represents the name of the zone. optional string name = 1; } golang-k8s-api-0.29.0/discovery/v1/register.go000066400000000000000000000035721453636404600210550ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/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: "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 ( // 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 } golang-k8s-api-0.29.0/discovery/v1/types.go000066400000000000000000000226531453636404600203760ustar00rootroot00000000000000/* 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 ( v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/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. This field is // immutable after creation. The following address types are currently // supported: // * IPv4: Represents an IPv4 Address. // * IPv6: Represents an IPv6 Address. // * FQDN: Represents a Fully Qualified Domain Name. 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. // +enum type AddressType string const ( // AddressTypeIPv4 represents an IPv4 Address. AddressTypeIPv4 = AddressType(v1.IPv4Protocol) // AddressTypeIPv6 represents an IPv6 Address. AddressTypeIPv6 = AddressType(v1.IPv6Protocol) // AddressTypeFQDN represents a FQDN. AddressTypeFQDN = AddressType("FQDN") ) // 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. Consumers // 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. These are all assumed to be fungible and clients may choose to only // use the first element. Refer to: https://issue.k8s.io/106267 // +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 be lowercase and 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"` // deprecatedTopology contains topology information part of the v1beta1 // API. This field is deprecated, and will be removed when the v1beta1 // API is removed (no sooner than kubernetes v1.24). While this field can // hold values, it is not writable through the v1 API, and any attempts to // write to it will be silently ignored. Topology information can be found // in the zone and nodeName fields instead. // +optional DeprecatedTopology map[string]string `json:"deprecatedTopology,omitempty" protobuf:"bytes,5,opt,name=deprecatedTopology"` // nodeName represents the name of the Node hosting this endpoint. This can // be used to determine endpoints local to a Node. // +optional NodeName *string `json:"nodeName,omitempty" protobuf:"bytes,6,opt,name=nodeName"` // zone is the name of the Zone this endpoint exists in. // +optional Zone *string `json:"zone,omitempty" protobuf:"bytes,7,opt,name=zone"` // hints contains information associated with how an endpoint should be // consumed. // +optional Hints *EndpointHints `json:"hints,omitempty" protobuf:"bytes,8,opt,name=hints"` } // 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. For compatibility reasons, ready should never be // "true" for terminating endpoints, except when the normal readiness // behavior is being explicitly overridden, for example when the associated // Service has set the publishNotReadyAddresses flag. // +optional Ready *bool `json:"ready,omitempty" protobuf:"bytes,1,name=ready"` // serving is identical to ready except that it is set regardless of the // terminating state of endpoints. This condition should be set to true for // a ready endpoint that is terminating. If nil, consumers should defer to // the ready condition. // +optional Serving *bool `json:"serving,omitempty" protobuf:"bytes,2,name=serving"` // terminating indicates that this endpoint is terminating. A nil value // indicates an unknown state. Consumers should interpret this unknown state // to mean that the endpoint is not terminating. // +optional Terminating *bool `json:"terminating,omitempty" protobuf:"bytes,3,name=terminating"` } // EndpointHints provides hints describing how an endpoint should be consumed. type EndpointHints struct { // forZones indicates the zone(s) this endpoint should be consumed by to // enable topology aware routing. // +listType=atomic ForZones []ForZone `json:"forZones,omitempty" protobuf:"bytes,1,name=forZones"` } // ForZone provides information about which zones should consume this endpoint. type ForZone struct { // name represents the name of the zone. Name string `json:"name" protobuf:"bytes,1,name=name"` } // EndpointPort represents a Port used by an EndpointSlice // +structType=atomic type EndpointPort struct { // name represents the name of this port. All ports in an EndpointSlice must have a unique name. // If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. // Name must either be an empty string or pass DNS_LABEL validation: // * must be no more than 63 characters long. // * must consist of lower case alphanumeric characters or '-'. // * must start and end with an alphanumeric character. // Default is empty string. Name *string `json:"name,omitempty" protobuf:"bytes,1,name=name"` // protocol represents 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"` // port represents 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"` // The application protocol for this port. // This is used as a hint for implementations to offer richer behavior for protocols that they understand. // This field follows standard Kubernetes label syntax. // Valid values are either: // // * Un-prefixed protocol names - reserved for IANA standard service names (as per // RFC-6335 and https://www.iana.org/assignments/service-names). // // * Kubernetes-defined prefixed names: // * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- // * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 // * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 // // * Other protocols should use implementation-defined prefixed names such as // mycompany.com/my-custom-protocol. // +optional AppProtocol *string `json:"appProtocol,omitempty" protobuf:"bytes,4,name=appProtocol"` } // +k8s:deepcopy-gen:interfaces=k8s.io/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"` // items is the list of endpoint slices Items []EndpointSlice `json:"items" protobuf:"bytes,2,rep,name=items"` } golang-k8s-api-0.29.0/discovery/v1/types_swagger_doc_generated.go000066400000000000000000000202071453636404600247510ustar00rootroot00000000000000/* 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-codegen.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. Consumers 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. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267", "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 be lowercase and pass DNS Label (RFC 1123) validation.", "targetRef": "targetRef is a reference to a Kubernetes object that represents this endpoint.", "deprecatedTopology": "deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead.", "nodeName": "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.", "zone": "zone is the name of the Zone this endpoint exists in.", "hints": "hints contains information associated with how an endpoint should be consumed.", } 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. For compatibility reasons, ready should never be \"true\" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag.", "serving": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.", "terminating": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.", } func (EndpointConditions) SwaggerDoc() map[string]string { return map_EndpointConditions } var map_EndpointHints = map[string]string{ "": "EndpointHints provides hints describing how an endpoint should be consumed.", "forZones": "forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.", } func (EndpointHints) SwaggerDoc() map[string]string { return map_EndpointHints } var map_EndpointPort = map[string]string{ "": "EndpointPort represents a Port used by an EndpointSlice", "name": "name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.", "protocol": "protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", "port": "port represents 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.", "appProtocol": "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", } 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. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.", "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": "items is the list of endpoint slices", } func (EndpointSliceList) SwaggerDoc() map[string]string { return map_EndpointSliceList } var map_ForZone = map[string]string{ "": "ForZone provides information about which zones should consume this endpoint.", "name": "name represents the name of the zone.", } func (ForZone) SwaggerDoc() map[string]string { return map_ForZone } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/discovery/v1/well_known_labels.go000066400000000000000000000024671453636404600227340ustar00rootroot00000000000000/* 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 ( // LabelServiceName is used to indicate the name of a Kubernetes service. LabelServiceName = "kubernetes.io/service-name" // LabelManagedBy is used to indicate the controller or entity that manages // an EndpointSlice. This label aims to enable different EndpointSlice // objects to be managed by different controllers or entities within the // same cluster. It is highly recommended to configure this label for all // EndpointSlices. LabelManagedBy = "endpointslice.kubernetes.io/managed-by" // LabelSkipMirror can be set to true on an Endpoints resource to indicate // that the EndpointSliceMirroring controller should not mirror this // resource with EndpointSlices. LabelSkipMirror = "endpointslice.kubernetes.io/skip-mirror" ) golang-k8s-api-0.29.0/discovery/v1/zz_generated.deepcopy.go000066400000000000000000000151621453636404600235170ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *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(corev1.ObjectReference) **out = **in } if in.DeprecatedTopology != nil { in, out := &in.DeprecatedTopology, &out.DeprecatedTopology *out = make(map[string]string, len(*in)) for key, val := range *in { (*out)[key] = val } } if in.NodeName != nil { in, out := &in.NodeName, &out.NodeName *out = new(string) **out = **in } if in.Zone != nil { in, out := &in.Zone, &out.Zone *out = new(string) **out = **in } if in.Hints != nil { in, out := &in.Hints, &out.Hints *out = new(EndpointHints) (*in).DeepCopyInto(*out) } 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 } if in.Serving != nil { in, out := &in.Serving, &out.Serving *out = new(bool) **out = **in } if in.Terminating != nil { in, out := &in.Terminating, &out.Terminating *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 *EndpointHints) DeepCopyInto(out *EndpointHints) { *out = *in if in.ForZones != nil { in, out := &in.ForZones, &out.ForZones *out = make([]ForZone, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointHints. func (in *EndpointHints) DeepCopy() *EndpointHints { if in == nil { return nil } out := new(EndpointHints) 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(corev1.Protocol) **out = **in } if in.Port != nil { in, out := &in.Port, &out.Port *out = new(int32) **out = **in } if in.AppProtocol != nil { in, out := &in.AppProtocol, &out.AppProtocol *out = new(string) **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.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 } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ForZone) DeepCopyInto(out *ForZone) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ForZone. func (in *ForZone) DeepCopy() *ForZone { if in == nil { return nil } out := new(ForZone) in.DeepCopyInto(out) return out } golang-k8s-api-0.29.0/discovery/v1beta1/000077500000000000000000000000001453636404600176105ustar00rootroot00000000000000golang-k8s-api-0.29.0/discovery/v1beta1/doc.go000066400000000000000000000014151453636404600207050ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true // +groupName=discovery.k8s.io package v1beta1 // import "k8s.io/api/discovery/v1beta1" golang-k8s-api-0.29.0/discovery/v1beta1/generated.pb.go000066400000000000000000001545171453636404600225120ustar00rootroot00000000000000/* 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/k8s.io/api/discovery/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 "k8s.io/api/core/v1" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *Endpoint) Reset() { *m = Endpoint{} } func (*Endpoint) ProtoMessage() {} func (*Endpoint) Descriptor() ([]byte, []int) { return fileDescriptor_ece80bbc872d519b, []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_ece80bbc872d519b, []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 *EndpointHints) Reset() { *m = EndpointHints{} } func (*EndpointHints) ProtoMessage() {} func (*EndpointHints) Descriptor() ([]byte, []int) { return fileDescriptor_ece80bbc872d519b, []int{2} } func (m *EndpointHints) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *EndpointHints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *EndpointHints) XXX_Merge(src proto.Message) { xxx_messageInfo_EndpointHints.Merge(m, src) } func (m *EndpointHints) XXX_Size() int { return m.Size() } func (m *EndpointHints) XXX_DiscardUnknown() { xxx_messageInfo_EndpointHints.DiscardUnknown(m) } var xxx_messageInfo_EndpointHints proto.InternalMessageInfo func (m *EndpointPort) Reset() { *m = EndpointPort{} } func (*EndpointPort) ProtoMessage() {} func (*EndpointPort) Descriptor() ([]byte, []int) { return fileDescriptor_ece80bbc872d519b, []int{3} } 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_ece80bbc872d519b, []int{4} } 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_ece80bbc872d519b, []int{5} } 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 (m *ForZone) Reset() { *m = ForZone{} } func (*ForZone) ProtoMessage() {} func (*ForZone) Descriptor() ([]byte, []int) { return fileDescriptor_ece80bbc872d519b, []int{6} } func (m *ForZone) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ForZone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ForZone) XXX_Merge(src proto.Message) { xxx_messageInfo_ForZone.Merge(m, src) } func (m *ForZone) XXX_Size() int { return m.Size() } func (m *ForZone) XXX_DiscardUnknown() { xxx_messageInfo_ForZone.DiscardUnknown(m) } var xxx_messageInfo_ForZone proto.InternalMessageInfo func init() { proto.RegisterType((*Endpoint)(nil), "k8s.io.api.discovery.v1beta1.Endpoint") proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.discovery.v1beta1.Endpoint.TopologyEntry") proto.RegisterType((*EndpointConditions)(nil), "k8s.io.api.discovery.v1beta1.EndpointConditions") proto.RegisterType((*EndpointHints)(nil), "k8s.io.api.discovery.v1beta1.EndpointHints") proto.RegisterType((*EndpointPort)(nil), "k8s.io.api.discovery.v1beta1.EndpointPort") proto.RegisterType((*EndpointSlice)(nil), "k8s.io.api.discovery.v1beta1.EndpointSlice") proto.RegisterType((*EndpointSliceList)(nil), "k8s.io.api.discovery.v1beta1.EndpointSliceList") proto.RegisterType((*ForZone)(nil), "k8s.io.api.discovery.v1beta1.ForZone") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/discovery/v1beta1/generated.proto", fileDescriptor_ece80bbc872d519b) } var fileDescriptor_ece80bbc872d519b = []byte{ // 871 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x41, 0x6f, 0xe3, 0x44, 0x14, 0x8e, 0x9b, 0x86, 0xda, 0x93, 0x56, 0xec, 0x8e, 0x38, 0x44, 0xa5, 0xb2, 0x23, 0xa3, 0x45, 0x11, 0x15, 0x36, 0xad, 0x56, 0x68, 0x05, 0xa7, 0x1a, 0x0a, 0x8b, 0xb4, 0xec, 0x56, 0xd3, 0x4a, 0x48, 0x2b, 0x0e, 0x4c, 0xec, 0xa9, 0x63, 0xd2, 0xcc, 0x58, 0x33, 0x93, 0x48, 0xb9, 0xf1, 0x0f, 0xe0, 0xb7, 0xf0, 0x17, 0x90, 0x50, 0x8f, 0x7b, 0xdc, 0x93, 0x45, 0xcd, 0xbf, 0xe8, 0x09, 0xcd, 0x78, 0x6c, 0x27, 0x04, 0xba, 0xb9, 0x79, 0xbe, 0x79, 0xdf, 0xf7, 0xde, 0xfb, 0xde, 0xcc, 0x18, 0x9c, 0x4f, 0x9f, 0x89, 0x20, 0x63, 0xe1, 0x74, 0x3e, 0x26, 0x9c, 0x12, 0x49, 0x44, 0xb8, 0x20, 0x34, 0x61, 0x3c, 0x34, 0x1b, 0x38, 0xcf, 0xc2, 0x24, 0x13, 0x31, 0x5b, 0x10, 0xbe, 0x0c, 0x17, 0x27, 0x63, 0x22, 0xf1, 0x49, 0x98, 0x12, 0x4a, 0x38, 0x96, 0x24, 0x09, 0x72, 0xce, 0x24, 0x83, 0x47, 0x55, 0x74, 0x80, 0xf3, 0x2c, 0x68, 0xa2, 0x03, 0x13, 0x7d, 0xf8, 0x69, 0x9a, 0xc9, 0xc9, 0x7c, 0x1c, 0xc4, 0x6c, 0x16, 0xa6, 0x2c, 0x65, 0xa1, 0x26, 0x8d, 0xe7, 0xd7, 0x7a, 0xa5, 0x17, 0xfa, 0xab, 0x12, 0x3b, 0xf4, 0x57, 0x52, 0xc7, 0x8c, 0x93, 0x70, 0xb1, 0x91, 0xf0, 0xf0, 0x69, 0x1b, 0x33, 0xc3, 0xf1, 0x24, 0xa3, 0xaa, 0xba, 0x7c, 0x9a, 0x2a, 0x40, 0x84, 0x33, 0x22, 0xf1, 0x7f, 0xb1, 0xc2, 0xff, 0x63, 0xf1, 0x39, 0x95, 0xd9, 0x8c, 0x6c, 0x10, 0x3e, 0x7f, 0x17, 0x41, 0xc4, 0x13, 0x32, 0xc3, 0xff, 0xe6, 0xf9, 0xbf, 0xef, 0x02, 0xfb, 0x9c, 0x26, 0x39, 0xcb, 0xa8, 0x84, 0xc7, 0xc0, 0xc1, 0x49, 0xc2, 0x89, 0x10, 0x44, 0x0c, 0xac, 0x61, 0x77, 0xe4, 0x44, 0x07, 0x65, 0xe1, 0x39, 0x67, 0x35, 0x88, 0xda, 0x7d, 0x98, 0x00, 0x10, 0x33, 0x9a, 0x64, 0x32, 0x63, 0x54, 0x0c, 0x76, 0x86, 0xd6, 0xa8, 0x7f, 0xfa, 0x59, 0xf0, 0x90, 0xbd, 0x41, 0x9d, 0xe8, 0xab, 0x86, 0x17, 0xc1, 0xdb, 0xc2, 0xeb, 0x94, 0x85, 0x07, 0x5a, 0x0c, 0xad, 0xe8, 0xc2, 0x11, 0xb0, 0x27, 0x4c, 0x48, 0x8a, 0x67, 0x64, 0xd0, 0x1d, 0x5a, 0x23, 0x27, 0xda, 0x2f, 0x0b, 0xcf, 0x7e, 0x6e, 0x30, 0xd4, 0xec, 0xc2, 0x0b, 0xe0, 0x48, 0xcc, 0x53, 0x22, 0x11, 0xb9, 0x1e, 0xec, 0xea, 0x72, 0x3e, 0x5a, 0x2d, 0x47, 0x0d, 0x28, 0x58, 0x9c, 0x04, 0xaf, 0xc6, 0x3f, 0x93, 0x58, 0x05, 0x11, 0x4e, 0x68, 0x4c, 0xaa, 0x0e, 0xaf, 0x6a, 0x26, 0x6a, 0x45, 0xe0, 0x18, 0xd8, 0x92, 0xe5, 0xec, 0x86, 0xa5, 0xcb, 0x41, 0x6f, 0xd8, 0x1d, 0xf5, 0x4f, 0x9f, 0x6e, 0xd7, 0x5f, 0x70, 0x65, 0x68, 0xe7, 0x54, 0xf2, 0x65, 0xf4, 0xc8, 0xf4, 0x68, 0xd7, 0x30, 0x6a, 0x74, 0x55, 0x7f, 0x94, 0x25, 0xe4, 0xa5, 0xea, 0xef, 0xbd, 0xb6, 0xbf, 0x97, 0x06, 0x43, 0xcd, 0x2e, 0x7c, 0x01, 0x7a, 0x93, 0x8c, 0x4a, 0x31, 0xd8, 0xd3, 0xbd, 0x1d, 0x6f, 0x57, 0xca, 0x73, 0x45, 0x89, 0x9c, 0xb2, 0xf0, 0x7a, 0xfa, 0x13, 0x55, 0x22, 0x87, 0x5f, 0x82, 0x83, 0xb5, 0x22, 0xe1, 0x23, 0xd0, 0x9d, 0x92, 0xe5, 0xc0, 0x52, 0x35, 0x20, 0xf5, 0x09, 0x3f, 0x00, 0xbd, 0x05, 0xbe, 0x99, 0x13, 0x3d, 0x5b, 0x07, 0x55, 0x8b, 0x2f, 0x76, 0x9e, 0x59, 0xfe, 0xaf, 0x16, 0x80, 0x9b, 0xb3, 0x84, 0x1e, 0xe8, 0x71, 0x82, 0x93, 0x4a, 0xc4, 0xae, 0x92, 0x22, 0x05, 0xa0, 0x0a, 0x87, 0x4f, 0xc0, 0x9e, 0x20, 0x7c, 0x91, 0xd1, 0x54, 0x6b, 0xda, 0x51, 0xbf, 0x2c, 0xbc, 0xbd, 0xcb, 0x0a, 0x42, 0xf5, 0x1e, 0x3c, 0x01, 0x7d, 0x49, 0xf8, 0x2c, 0xa3, 0x58, 0xaa, 0xd0, 0xae, 0x0e, 0x7d, 0xbf, 0x2c, 0xbc, 0xfe, 0x55, 0x0b, 0xa3, 0xd5, 0x18, 0x3f, 0x01, 0x07, 0x6b, 0x1d, 0xc3, 0x4b, 0x60, 0x5f, 0x33, 0xfe, 0x9a, 0x51, 0x73, 0x92, 0xfb, 0xa7, 0x4f, 0x1e, 0x36, 0xec, 0x9b, 0x2a, 0xba, 0x1d, 0x96, 0x01, 0x04, 0x6a, 0x84, 0xfc, 0x3f, 0x2d, 0xb0, 0x5f, 0xa7, 0xb9, 0x60, 0x5c, 0xc2, 0x23, 0xb0, 0xab, 0x4f, 0xa6, 0x76, 0x2d, 0xb2, 0xcb, 0xc2, 0xdb, 0xd5, 0x53, 0xd3, 0x28, 0xfc, 0x16, 0xd8, 0xfa, 0x92, 0xc5, 0xec, 0xa6, 0xf2, 0x30, 0x3a, 0x56, 0xc2, 0x17, 0x06, 0xbb, 0x2f, 0xbc, 0x0f, 0x37, 0x1f, 0x90, 0xa0, 0xde, 0x46, 0x0d, 0x59, 0xa5, 0xc9, 0x19, 0x97, 0xda, 0x89, 0x5e, 0x95, 0x46, 0xa5, 0x47, 0x1a, 0x55, 0x76, 0xe1, 0x3c, 0xaf, 0x69, 0xfa, 0xe8, 0x3b, 0x95, 0x5d, 0x67, 0x2d, 0x8c, 0x56, 0x63, 0xfc, 0xbb, 0x9d, 0xd6, 0xaf, 0xcb, 0x9b, 0x2c, 0x26, 0xf0, 0x27, 0x60, 0xab, 0xb7, 0x28, 0xc1, 0x12, 0xeb, 0x6e, 0xd6, 0xef, 0x72, 0xf3, 0xa4, 0x04, 0xf9, 0x34, 0x55, 0x80, 0x08, 0x54, 0x74, 0x7b, 0x9d, 0xbe, 0x27, 0x12, 0xb7, 0x77, 0xb9, 0xc5, 0x50, 0xa3, 0x0a, 0xbf, 0x06, 0x7d, 0xf3, 0x78, 0x5c, 0x2d, 0x73, 0x62, 0xca, 0xf4, 0x0d, 0xa5, 0x7f, 0xd6, 0x6e, 0xdd, 0xaf, 0x2f, 0xd1, 0x2a, 0x0d, 0xfe, 0x00, 0x1c, 0x62, 0x0a, 0x57, 0x8f, 0x8e, 0x1a, 0xec, 0xc7, 0xdb, 0xdd, 0x84, 0xe8, 0xb1, 0xc9, 0xe5, 0xd4, 0x88, 0x40, 0xad, 0x16, 0x7c, 0x05, 0x7a, 0xca, 0x4d, 0x31, 0xe8, 0x6a, 0xd1, 0x4f, 0xb6, 0x13, 0x55, 0x63, 0x88, 0x0e, 0x8c, 0x70, 0x4f, 0xad, 0x04, 0xaa, 0x74, 0xfc, 0x3f, 0x2c, 0xf0, 0x78, 0xcd, 0xe3, 0x17, 0x99, 0x90, 0xf0, 0xc7, 0x0d, 0x9f, 0x83, 0xed, 0x7c, 0x56, 0x6c, 0xed, 0x72, 0x73, 0x40, 0x6b, 0x64, 0xc5, 0xe3, 0x0b, 0xd0, 0xcb, 0x24, 0x99, 0xd5, 0xce, 0x6c, 0xf9, 0x46, 0xe8, 0xea, 0xda, 0x2e, 0xbe, 0x53, 0x0a, 0xa8, 0x12, 0xf2, 0x8f, 0xc1, 0x9e, 0xb9, 0x08, 0x70, 0xb8, 0x76, 0xd8, 0xf7, 0x4d, 0xf8, 0xca, 0x81, 0x8f, 0xa2, 0xdb, 0x3b, 0xb7, 0xf3, 0xe6, 0xce, 0xed, 0xbc, 0xbd, 0x73, 0x3b, 0xbf, 0x94, 0xae, 0x75, 0x5b, 0xba, 0xd6, 0x9b, 0xd2, 0xb5, 0xde, 0x96, 0xae, 0xf5, 0x57, 0xe9, 0x5a, 0xbf, 0xfd, 0xed, 0x76, 0x5e, 0x1f, 0x3d, 0xf4, 0xc3, 0xfe, 0x27, 0x00, 0x00, 0xff, 0xff, 0xd2, 0xeb, 0x52, 0x19, 0xe8, 0x07, 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 m.Hints != nil { { size, err := m.Hints.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a } if m.NodeName != nil { i -= len(*m.NodeName) copy(dAtA[i:], *m.NodeName) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.NodeName))) i-- dAtA[i] = 0x32 } 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.Terminating != nil { i-- if *m.Terminating { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x18 } if m.Serving != nil { i-- if *m.Serving { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x10 } 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 *EndpointHints) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *EndpointHints) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *EndpointHints) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.ForZones) > 0 { for iNdEx := len(m.ForZones) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.ForZones[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 *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.AppProtocol != nil { i -= len(*m.AppProtocol) copy(dAtA[i:], *m.AppProtocol) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.AppProtocol))) i-- dAtA[i] = 0x22 } 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 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 (m *ForZone) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ForZone) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ForZone) 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 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)) } } if m.NodeName != nil { l = len(*m.NodeName) n += 1 + l + sovGenerated(uint64(l)) } if m.Hints != nil { l = m.Hints.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *EndpointConditions) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Ready != nil { n += 2 } if m.Serving != nil { n += 2 } if m.Terminating != nil { n += 2 } return n } func (m *EndpointHints) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.ForZones) > 0 { for _, e := range m.ForZones { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } 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)) } if m.AppProtocol != nil { l = len(*m.AppProtocol) n += 1 + l + sovGenerated(uint64(l)) } 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)) } } 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 (m *ForZone) 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 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 + `,`, `NodeName:` + valueToStringGenerated(this.NodeName) + `,`, `Hints:` + strings.Replace(this.Hints.String(), "EndpointHints", "EndpointHints", 1) + `,`, `}`, }, "") return s } func (this *EndpointConditions) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&EndpointConditions{`, `Ready:` + valueToStringGenerated(this.Ready) + `,`, `Serving:` + valueToStringGenerated(this.Serving) + `,`, `Terminating:` + valueToStringGenerated(this.Terminating) + `,`, `}`, }, "") return s } func (this *EndpointHints) String() string { if this == nil { return "nil" } repeatedStringForForZones := "[]ForZone{" for _, f := range this.ForZones { repeatedStringForForZones += strings.Replace(strings.Replace(f.String(), "ForZone", "ForZone", 1), `&`, ``, 1) + "," } repeatedStringForForZones += "}" s := strings.Join([]string{`&EndpointHints{`, `ForZones:` + repeatedStringForForZones + `,`, `}`, }, "") 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) + `,`, `AppProtocol:` + valueToStringGenerated(this.AppProtocol) + `,`, `}`, }, "") 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:` + fmt.Sprintf("%v", 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 (this *ForZone) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ForZone{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `}`, }, "") 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > postIndex { return io.ErrUnexpectedEOF } iNdEx += skippy } } m.Topology[mapkey] = mapvalue iNdEx = postIndex case 6: 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 case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Hints", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Hints == nil { m.Hints = &EndpointHints{} } if err := m.Hints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Serving", 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.Serving = &b case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Terminating", 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.Terminating = &b default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *EndpointHints) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: EndpointHints: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: EndpointHints: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ForZones", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ForZones = append(m.ForZones, ForZone{}) if err := m.ForZones[len(m.ForZones)-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) || (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 case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AppProtocol", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.AppProtocol = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 } m.AddressType = AddressType(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ForZone) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ForZone: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ForZone: 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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/discovery/v1beta1/generated.proto000066400000000000000000000177351453636404600226500ustar00rootroot00000000000000/* 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.v1beta1; import "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/discovery/v1beta1"; // 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. Consumers // 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. These are all assumed to be fungible and clients may choose to only // use the first element. Refer to: https://issue.k8s.io/106267 // +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 be lowercase and 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. // This field is deprecated and will be removed in future api versions. // +optional map topology = 5; // nodeName represents the name of the Node hosting this endpoint. This can // be used to determine endpoints local to a Node. // +optional optional string nodeName = 6; // hints contains information associated with how an endpoint should be // consumed. // +featureGate=TopologyAwareHints // +optional optional EndpointHints hints = 7; } // 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. For compatibility reasons, ready should never be // "true" for terminating endpoints. // +optional optional bool ready = 1; // serving is identical to ready except that it is set regardless of the // terminating state of endpoints. This condition should be set to true for // a ready endpoint that is terminating. If nil, consumers should defer to // the ready condition. // +optional optional bool serving = 2; // terminating indicates that this endpoint is terminating. A nil value // indicates an unknown state. Consumers should interpret this unknown state // to mean that the endpoint is not terminating. // +optional optional bool terminating = 3; } // EndpointHints provides hints describing how an endpoint should be consumed. message EndpointHints { // forZones indicates the zone(s) this endpoint should be consumed by to // enable topology aware routing. May contain a maximum of 8 entries. // +listType=atomic repeated ForZone forZones = 1; } // EndpointPort represents a Port used by an EndpointSlice message EndpointPort { // name represents the name of this port. All ports in an EndpointSlice must have a unique name. // If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. // Name must either be an empty string or pass DNS_LABEL validation: // * must be no more than 63 characters long. // * must consist of lower case alphanumeric characters or '-'. // * must start and end with an alphanumeric character. // Default is empty string. optional string name = 1; // protocol represents the IP protocol for this port. // Must be UDP, TCP, or SCTP. // Default is TCP. optional string protocol = 2; // port represents 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; // appProtocol represents the application protocol for this port. // This field follows standard Kubernetes label syntax. // Un-prefixed names are reserved for IANA standard service names (as per // RFC-6335 and https://www.iana.org/assignments/service-names). // Non-standard protocols should use prefixed names such as // mycompany.com/my-custom-protocol. // +optional optional string appProtocol = 4; } // 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. This field is // immutable after creation. The following address types are currently // supported: // * IPv4: Represents an IPv4 Address. // * IPv6: Represents an IPv6 Address. // * FQDN: Represents a Fully Qualified Domain Name. 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; // items is the list of endpoint slices repeated EndpointSlice items = 2; } // ForZone provides information about which zones should consume this endpoint. message ForZone { // name represents the name of the zone. optional string name = 1; } golang-k8s-api-0.29.0/discovery/v1beta1/register.go000066400000000000000000000036041453636404600217660ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/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: "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 ( // 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 } golang-k8s-api-0.29.0/discovery/v1beta1/types.go000066400000000000000000000227461453636404600213160ustar00rootroot00000000000000/* 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 ( v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.16 // +k8s:prerelease-lifecycle-gen:deprecated=1.21 // +k8s:prerelease-lifecycle-gen:removed=1.25 // +k8s:prerelease-lifecycle-gen:replacement=discovery.k8s.io,v1,EndpointSlice // 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. This field is // immutable after creation. The following address types are currently // supported: // * IPv4: Represents an IPv4 Address. // * IPv6: Represents an IPv6 Address. // * FQDN: Represents a Fully Qualified Domain Name. 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 ( // AddressTypeIPv4 represents an IPv4 Address. AddressTypeIPv4 = AddressType(v1.IPv4Protocol) // AddressTypeIPv6 represents an IPv6 Address. AddressTypeIPv6 = AddressType(v1.IPv6Protocol) // AddressTypeFQDN represents a FQDN. AddressTypeFQDN = AddressType("FQDN") ) // 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. Consumers // 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. These are all assumed to be fungible and clients may choose to only // use the first element. Refer to: https://issue.k8s.io/106267 // +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 be lowercase and 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. // This field is deprecated and will be removed in future api versions. // +optional Topology map[string]string `json:"topology,omitempty" protobuf:"bytes,5,opt,name=topology"` // nodeName represents the name of the Node hosting this endpoint. This can // be used to determine endpoints local to a Node. // +optional NodeName *string `json:"nodeName,omitempty" protobuf:"bytes,6,opt,name=nodeName"` // hints contains information associated with how an endpoint should be // consumed. // +featureGate=TopologyAwareHints // +optional Hints *EndpointHints `json:"hints,omitempty" protobuf:"bytes,7,opt,name=hints"` } // 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. For compatibility reasons, ready should never be // "true" for terminating endpoints. // +optional Ready *bool `json:"ready,omitempty" protobuf:"bytes,1,name=ready"` // serving is identical to ready except that it is set regardless of the // terminating state of endpoints. This condition should be set to true for // a ready endpoint that is terminating. If nil, consumers should defer to // the ready condition. // +optional Serving *bool `json:"serving,omitempty" protobuf:"bytes,2,name=serving"` // terminating indicates that this endpoint is terminating. A nil value // indicates an unknown state. Consumers should interpret this unknown state // to mean that the endpoint is not terminating. // +optional Terminating *bool `json:"terminating,omitempty" protobuf:"bytes,3,name=terminating"` } // EndpointHints provides hints describing how an endpoint should be consumed. type EndpointHints struct { // forZones indicates the zone(s) this endpoint should be consumed by to // enable topology aware routing. May contain a maximum of 8 entries. // +listType=atomic ForZones []ForZone `json:"forZones,omitempty" protobuf:"bytes,1,name=forZones"` } // ForZone provides information about which zones should consume this endpoint. type ForZone struct { // name represents the name of the zone. Name string `json:"name" protobuf:"bytes,1,name=name"` } // EndpointPort represents a Port used by an EndpointSlice type EndpointPort struct { // name represents the name of this port. All ports in an EndpointSlice must have a unique name. // If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. // Name must either be an empty string or pass DNS_LABEL validation: // * must be no more than 63 characters long. // * must consist of lower case alphanumeric characters or '-'. // * must start and end with an alphanumeric character. // Default is empty string. Name *string `json:"name,omitempty" protobuf:"bytes,1,name=name"` // protocol represents 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"` // port represents 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"` // appProtocol represents the application protocol for this port. // This field follows standard Kubernetes label syntax. // Un-prefixed names are reserved for IANA standard service names (as per // RFC-6335 and https://www.iana.org/assignments/service-names). // Non-standard protocols should use prefixed names such as // mycompany.com/my-custom-protocol. // +optional AppProtocol *string `json:"appProtocol,omitempty" protobuf:"bytes,4,name=appProtocol"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.16 // +k8s:prerelease-lifecycle-gen:deprecated=1.21 // +k8s:prerelease-lifecycle-gen:removed=1.25 // +k8s:prerelease-lifecycle-gen:replacement=discovery.k8s.io,v1,EndpointSlice // 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"` // items is the list of endpoint slices Items []EndpointSlice `json:"items" protobuf:"bytes,2,rep,name=items"` } golang-k8s-api-0.29.0/discovery/v1beta1/types_swagger_doc_generated.go000066400000000000000000000174501453636404600256740ustar00rootroot00000000000000/* 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-codegen.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. Consumers 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. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267", "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 be lowercase and 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.\nThis field is deprecated and will be removed in future api versions.", "nodeName": "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.", "hints": "hints contains information associated with how an endpoint should be consumed.", } 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. For compatibility reasons, ready should never be \"true\" for terminating endpoints.", "serving": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.", "terminating": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.", } func (EndpointConditions) SwaggerDoc() map[string]string { return map_EndpointConditions } var map_EndpointHints = map[string]string{ "": "EndpointHints provides hints describing how an endpoint should be consumed.", "forZones": "forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. May contain a maximum of 8 entries.", } func (EndpointHints) SwaggerDoc() map[string]string { return map_EndpointHints } var map_EndpointPort = map[string]string{ "": "EndpointPort represents a Port used by an EndpointSlice", "name": "name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.", "protocol": "protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", "port": "port represents 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.", "appProtocol": "appProtocol represents the application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.", } 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. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.", "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": "items is the list of endpoint slices", } func (EndpointSliceList) SwaggerDoc() map[string]string { return map_EndpointSliceList } var map_ForZone = map[string]string{ "": "ForZone provides information about which zones should consume this endpoint.", "name": "name represents the name of the zone.", } func (ForZone) SwaggerDoc() map[string]string { return map_ForZone } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/discovery/v1beta1/well_known_labels.go000066400000000000000000000024741453636404600236470ustar00rootroot00000000000000/* 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 const ( // LabelServiceName is used to indicate the name of a Kubernetes service. LabelServiceName = "kubernetes.io/service-name" // LabelManagedBy is used to indicate the controller or entity that manages // an EndpointSlice. This label aims to enable different EndpointSlice // objects to be managed by different controllers or entities within the // same cluster. It is highly recommended to configure this label for all // EndpointSlices. LabelManagedBy = "endpointslice.kubernetes.io/managed-by" // LabelSkipMirror can be set to true on an Endpoints resource to indicate // that the EndpointSliceMirroring controller should not mirror this // resource with EndpointSlices. LabelSkipMirror = "endpointslice.kubernetes.io/skip-mirror" ) golang-k8s-api-0.29.0/discovery/v1beta1/zz_generated.deepcopy.go000066400000000000000000000147601453636404600244370ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *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 } } if in.NodeName != nil { in, out := &in.NodeName, &out.NodeName *out = new(string) **out = **in } if in.Hints != nil { in, out := &in.Hints, &out.Hints *out = new(EndpointHints) (*in).DeepCopyInto(*out) } 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 } if in.Serving != nil { in, out := &in.Serving, &out.Serving *out = new(bool) **out = **in } if in.Terminating != nil { in, out := &in.Terminating, &out.Terminating *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 *EndpointHints) DeepCopyInto(out *EndpointHints) { *out = *in if in.ForZones != nil { in, out := &in.ForZones, &out.ForZones *out = make([]ForZone, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointHints. func (in *EndpointHints) DeepCopy() *EndpointHints { if in == nil { return nil } out := new(EndpointHints) 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 } if in.AppProtocol != nil { in, out := &in.AppProtocol, &out.AppProtocol *out = new(string) **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.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 } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ForZone) DeepCopyInto(out *ForZone) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ForZone. func (in *ForZone) DeepCopy() *ForZone { if in == nil { return nil } out := new(ForZone) in.DeepCopyInto(out) return out } golang-k8s-api-0.29.0/discovery/v1beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000075461453636404600267170ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta1 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *EndpointSlice) APILifecycleIntroduced() (major, minor int) { return 1, 16 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *EndpointSlice) APILifecycleDeprecated() (major, minor int) { return 1, 21 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *EndpointSlice) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "discovery.k8s.io", Version: "v1", Kind: "EndpointSlice"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *EndpointSlice) APILifecycleRemoved() (major, minor int) { return 1, 25 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *EndpointSliceList) APILifecycleIntroduced() (major, minor int) { return 1, 16 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *EndpointSliceList) APILifecycleDeprecated() (major, minor int) { return 1, 21 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *EndpointSliceList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "discovery.k8s.io", Version: "v1", Kind: "EndpointSlice"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *EndpointSliceList) APILifecycleRemoved() (major, minor int) { return 1, 25 } golang-k8s-api-0.29.0/doc.go000066400000000000000000000011361453636404600154330ustar00rootroot00000000000000/* Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package api // import "k8s.io/api" golang-k8s-api-0.29.0/events/000077500000000000000000000000001453636404600156425ustar00rootroot00000000000000golang-k8s-api-0.29.0/events/v1/000077500000000000000000000000001453636404600161705ustar00rootroot00000000000000golang-k8s-api-0.29.0/events/v1/doc.go000066400000000000000000000013301453636404600172610ustar00rootroot00000000000000/* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 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 v1 // import "k8s.io/api/events/v1" golang-k8s-api-0.29.0/events/v1/generated.pb.go000066400000000000000000001073561453636404600210710ustar00rootroot00000000000000/* 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/k8s.io/api/events/v1/generated.proto package v1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" v11 "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *Event) Reset() { *m = Event{} } func (*Event) ProtoMessage() {} func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor_ee2600587b650fac, []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_ee2600587b650fac, []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_ee2600587b650fac, []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.v1.Event") proto.RegisterType((*EventList)(nil), "k8s.io.api.events.v1.EventList") proto.RegisterType((*EventSeries)(nil), "k8s.io.api.events.v1.EventSeries") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/events/v1/generated.proto", fileDescriptor_ee2600587b650fac) } var fileDescriptor_ee2600587b650fac = []byte{ // 775 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x4f, 0x6f, 0xe3, 0x44, 0x14, 0x8f, 0x77, 0x9b, 0xb4, 0x99, 0xec, 0x6e, 0xd3, 0xd9, 0x95, 0x3a, 0x74, 0x25, 0x27, 0x64, 0x25, 0x14, 0x21, 0x61, 0xd3, 0x0a, 0x21, 0x84, 0x84, 0x44, 0xdd, 0x14, 0x54, 0xd4, 0x52, 0x69, 0xda, 0x13, 0xe2, 0xd0, 0x89, 0xf3, 0xea, 0x9a, 0xc4, 0x33, 0xd6, 0xcc, 0x24, 0x52, 0x6f, 0x5c, 0x90, 0x38, 0xf2, 0x05, 0xf8, 0x00, 0x88, 0x2f, 0xd2, 0x63, 0x8f, 0x3d, 0x45, 0xd4, 0x7c, 0x11, 0xe4, 0xb1, 0x13, 0xa7, 0xf9, 0x03, 0x41, 0x7b, 0xf3, 0xbc, 0xf7, 0xfb, 0xf3, 0xde, 0xcc, 0xcb, 0x0b, 0xfa, 0xaa, 0xff, 0x85, 0x72, 0x42, 0xe1, 0xf6, 0x87, 0x5d, 0x90, 0x1c, 0x34, 0x28, 0x77, 0x04, 0xbc, 0x27, 0xa4, 0x9b, 0x27, 0x58, 0x1c, 0xba, 0x30, 0x02, 0xae, 0x95, 0x3b, 0xda, 0x77, 0x03, 0xe0, 0x20, 0x99, 0x86, 0x9e, 0x13, 0x4b, 0xa1, 0x05, 0x7e, 0x93, 0xa1, 0x1c, 0x16, 0x87, 0x4e, 0x86, 0x72, 0x46, 0xfb, 0x7b, 0x9f, 0x04, 0xa1, 0xbe, 0x19, 0x76, 0x1d, 0x5f, 0x44, 0x6e, 0x20, 0x02, 0xe1, 0x1a, 0x70, 0x77, 0x78, 0x6d, 0x4e, 0xe6, 0x60, 0xbe, 0x32, 0x91, 0xbd, 0xd6, 0x8c, 0x95, 0x2f, 0x24, 0x2c, 0x31, 0xda, 0xfb, 0xac, 0xc0, 0x44, 0xcc, 0xbf, 0x09, 0x39, 0xc8, 0x5b, 0x37, 0xee, 0x07, 0x69, 0x40, 0xb9, 0x11, 0x68, 0xb6, 0x8c, 0xe5, 0xae, 0x62, 0xc9, 0x21, 0xd7, 0x61, 0x04, 0x0b, 0x84, 0xcf, 0xff, 0x8b, 0xa0, 0xfc, 0x1b, 0x88, 0xd8, 0x3c, 0xaf, 0xf5, 0x7b, 0x15, 0x95, 0x8f, 0xd3, 0xfe, 0xf1, 0x15, 0xda, 0x4a, 0xab, 0xe9, 0x31, 0xcd, 0x88, 0xd5, 0xb4, 0xda, 0xb5, 0x83, 0x4f, 0x9d, 0xe2, 0x92, 0xa6, 0xa2, 0x4e, 0xdc, 0x0f, 0xd2, 0x80, 0x72, 0x52, 0xb4, 0x33, 0xda, 0x77, 0xce, 0xbb, 0x3f, 0x81, 0xaf, 0xcf, 0x40, 0x33, 0x0f, 0xdf, 0x8d, 0x1b, 0xa5, 0x64, 0xdc, 0x40, 0x45, 0x8c, 0x4e, 0x55, 0xf1, 0x15, 0xaa, 0x9a, 0xab, 0xbe, 0x0c, 0x23, 0x20, 0xcf, 0x8c, 0x85, 0xbb, 0x9e, 0xc5, 0x59, 0xe8, 0x4b, 0x91, 0xd2, 0xbc, 0x9d, 0xdc, 0xa1, 0x7a, 0x3c, 0x51, 0xa2, 0x85, 0x28, 0x3e, 0x46, 0x15, 0x05, 0x32, 0x04, 0x45, 0x9e, 0x1b, 0xf9, 0x0f, 0x9d, 0x65, 0xcf, 0xec, 0x18, 0xee, 0x85, 0x01, 0x7a, 0x28, 0x19, 0x37, 0x2a, 0xd9, 0x37, 0xcd, 0xc9, 0xf8, 0x0c, 0xbd, 0x96, 0x10, 0x0b, 0xa9, 0x43, 0x1e, 0x1c, 0x09, 0xae, 0xa5, 0x18, 0x0c, 0x40, 0x92, 0x8d, 0xa6, 0xd5, 0xae, 0x7a, 0x6f, 0xf3, 0x0a, 0x5e, 0xd3, 0x45, 0x08, 0x5d, 0xc6, 0xc3, 0xdf, 0xa2, 0x9d, 0x69, 0xf8, 0x84, 0x2b, 0xcd, 0xb8, 0x0f, 0xa4, 0x6c, 0xc4, 0x3e, 0xc8, 0xc5, 0x76, 0xe8, 0x3c, 0x80, 0x2e, 0x72, 0xf0, 0x47, 0xa8, 0xc2, 0x7c, 0x1d, 0x0a, 0x4e, 0x2a, 0x86, 0xfd, 0x2a, 0x67, 0x57, 0x0e, 0x4d, 0x94, 0xe6, 0xd9, 0x14, 0x27, 0x81, 0x29, 0xc1, 0xc9, 0xe6, 0x53, 0x1c, 0x35, 0x51, 0x9a, 0x67, 0xf1, 0x25, 0xaa, 0x4a, 0x08, 0x98, 0xec, 0x85, 0x3c, 0x20, 0x5b, 0xe6, 0xc6, 0xde, 0xcd, 0xde, 0x58, 0x3a, 0xd3, 0xc5, 0x0b, 0x53, 0xb8, 0x06, 0x09, 0xdc, 0x9f, 0x79, 0x04, 0x3a, 0x61, 0xd3, 0x42, 0x08, 0x7f, 0x87, 0x36, 0x25, 0x0c, 0xd2, 0x19, 0x23, 0xd5, 0xf5, 0x35, 0x6b, 0xc9, 0xb8, 0xb1, 0x49, 0x33, 0x1e, 0x9d, 0x08, 0xe0, 0x26, 0xda, 0xe0, 0x42, 0x03, 0x41, 0xa6, 0x8f, 0x17, 0xb9, 0xef, 0xc6, 0xf7, 0x42, 0x03, 0x35, 0x99, 0x14, 0xa1, 0x6f, 0x63, 0x20, 0xb5, 0xa7, 0x88, 0xcb, 0xdb, 0x18, 0xa8, 0xc9, 0x60, 0x40, 0xf5, 0x1e, 0xc4, 0x12, 0xfc, 0x54, 0xf1, 0x42, 0x0c, 0xa5, 0x0f, 0xe4, 0x85, 0x29, 0xac, 0xb1, 0xac, 0xb0, 0x6c, 0x38, 0x0c, 0xcc, 0x23, 0xb9, 0x5c, 0xbd, 0x33, 0x27, 0x40, 0x17, 0x24, 0xf1, 0xaf, 0x16, 0x22, 0x45, 0xf0, 0x9b, 0x50, 0x2a, 0x33, 0x93, 0x4a, 0xb3, 0x28, 0x26, 0x2f, 0x8d, 0xdf, 0xc7, 0xeb, 0x4d, 0xbb, 0x19, 0xf4, 0x66, 0x6e, 0x4d, 0x3a, 0x2b, 0x34, 0xe9, 0x4a, 0x37, 0xfc, 0x8b, 0x85, 0x76, 0x8b, 0xe4, 0x29, 0x9b, 0xad, 0xe4, 0xd5, 0xff, 0xae, 0xa4, 0x91, 0x57, 0xb2, 0xdb, 0x59, 0x2e, 0x49, 0x57, 0x79, 0xe1, 0x43, 0xb4, 0x5d, 0xa4, 0x8e, 0xc4, 0x90, 0x6b, 0xb2, 0xdd, 0xb4, 0xda, 0x65, 0x6f, 0x37, 0x97, 0xdc, 0xee, 0x3c, 0x4d, 0xd3, 0x79, 0x7c, 0xeb, 0x4f, 0x0b, 0x65, 0x3f, 0xf5, 0xd3, 0x50, 0x69, 0xfc, 0xe3, 0xc2, 0x8e, 0x72, 0xd6, 0x6b, 0x24, 0x65, 0x9b, 0x0d, 0x55, 0xcf, 0x9d, 0xb7, 0x26, 0x91, 0x99, 0xfd, 0xf4, 0x35, 0x2a, 0x87, 0x1a, 0x22, 0x45, 0x9e, 0x35, 0x9f, 0xb7, 0x6b, 0x07, 0x6f, 0xff, 0x65, 0x79, 0x78, 0x2f, 0x73, 0x9d, 0xf2, 0x49, 0xca, 0xa0, 0x19, 0xb1, 0xf5, 0x87, 0x85, 0x6a, 0x33, 0xcb, 0x05, 0xbf, 0x43, 0x65, 0xdf, 0xb4, 0x6d, 0x99, 0xb6, 0xa7, 0xa4, 0xac, 0xd9, 0x2c, 0x87, 0x87, 0xa8, 0x3e, 0x60, 0x4a, 0x9f, 0x77, 0x15, 0xc8, 0x11, 0xf4, 0xde, 0x67, 0x3b, 0x4e, 0xe7, 0xf5, 0x74, 0x4e, 0x90, 0x2e, 0x58, 0x78, 0x5f, 0xde, 0x3d, 0xda, 0xa5, 0xfb, 0x47, 0xbb, 0xf4, 0xf0, 0x68, 0x97, 0x7e, 0x4e, 0x6c, 0xeb, 0x2e, 0xb1, 0xad, 0xfb, 0xc4, 0xb6, 0x1e, 0x12, 0xdb, 0xfa, 0x2b, 0xb1, 0xad, 0xdf, 0xfe, 0xb6, 0x4b, 0x3f, 0xbc, 0x59, 0xf6, 0x6f, 0xfa, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe0, 0xc8, 0x73, 0x3d, 0x7d, 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 { 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)) 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) + `,`, `}`, }, "") 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) || (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) || (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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/events/v1/generated.proto000066400000000000000000000130351453636404600212150ustar00rootroot00000000000000/* 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.v1; import "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/events/v1"; // Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. // Events have a limited retention time and triggers and messages may evolve // with time. Event consumers should not rely on the timing of an event // with a given Reason reflecting a consistent underlying trigger, or the // continued existence of events with that Reason. Events should be // treated as informative, best-effort, supplemental data. message Event { // 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; // eventTime is the time when this Event was first observed. It is required. optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 2; // series is data about the Event series this event represents or nil if it's a singleton Event. // +optional optional EventSeries series = 3; // reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. // This field cannot be empty for new Events. optional string reportingController = 4; // reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. // This field cannot be empty for new Events and it can have at most 128 characters. optional string reportingInstance = 5; // action is what action was taken/failed regarding to the regarding object. It is machine-readable. // This field cannot be empty for new Events and it can have at most 128 characters. optional string action = 6; // reason is why the action was taken. It is human-readable. // This field cannot be empty for new Events and it can have at most 128 characters. optional string reason = 7; // regarding contains 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; // related is the 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; // note is 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 is the type of this event (Normal, Warning), new types could be added in the future. // It is machine-readable. // This field cannot be empty for new Events. optional string type = 11; // deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. // +optional optional k8s.io.api.core.v1.EventSource deprecatedSource = 12; // deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedFirstTimestamp = 13; // deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedLastTimestamp = 14; // deprecatedCount is the 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. How often to update the EventSeries is up to the event reporters. // The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows // how this struct is updated on heartbeats and can guide customized reporter implementations. message EventSeries { // count is the number of occurrences in this series up to the last heartbeat time. optional int32 count = 1; // lastObservedTime is the time when last Event from the series was seen before last heartbeat. optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; } golang-k8s-api-0.29.0/events/v1/register.go000066400000000000000000000032551453636404600203500ustar00rootroot00000000000000/* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "events.k8s.io" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Event{}, &EventList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/events/v1/types.go000066400000000000000000000142011453636404600176610ustar00rootroot00000000000000/* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. // Events have a limited retention time and triggers and messages may evolve // with time. Event consumers should not rely on the timing of an event // with a given Reason reflecting a consistent underlying trigger, or the // continued existence of events with that Reason. Events should be // treated as informative, best-effort, supplemental data. 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 // +optional metav1.ObjectMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"` // eventTime is the time when this Event was first observed. It is required. EventTime metav1.MicroTime `json:"eventTime" protobuf:"bytes,2,opt,name=eventTime"` // series is 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"` // reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. // This field cannot be empty for new Events. ReportingController string `json:"reportingController,omitempty" protobuf:"bytes,4,opt,name=reportingController"` // reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. // This field cannot be empty for new Events and it can have at most 128 characters. ReportingInstance string `json:"reportingInstance,omitempty" protobuf:"bytes,5,opt,name=reportingInstance"` // action is what action was taken/failed regarding to the regarding object. It is machine-readable. // This field cannot be empty for new Events and it can have at most 128 characters. Action string `json:"action,omitempty" protobuf:"bytes,6,name=action"` // reason is why the action was taken. It is human-readable. // This field cannot be empty for new Events and it can have at most 128 characters. Reason string `json:"reason,omitempty" protobuf:"bytes,7,name=reason"` // regarding contains 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"` // related is the 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"` // note is 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 is the type of this event (Normal, Warning), new types could be added in the future. // It is machine-readable. // This field cannot be empty for new Events. Type string `json:"type,omitempty" protobuf:"bytes,11,opt,name=type"` // deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. // +optional DeprecatedSource corev1.EventSource `json:"deprecatedSource,omitempty" protobuf:"bytes,12,opt,name=deprecatedSource"` // deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. // +optional DeprecatedFirstTimestamp metav1.Time `json:"deprecatedFirstTimestamp,omitempty" protobuf:"bytes,13,opt,name=deprecatedFirstTimestamp"` // deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. // +optional DeprecatedLastTimestamp metav1.Time `json:"deprecatedLastTimestamp,omitempty" protobuf:"bytes,14,opt,name=deprecatedLastTimestamp"` // deprecatedCount is the 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. How often to update the EventSeries is up to the event reporters. // The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows // how this struct is updated on heartbeats and can guide customized reporter implementations. type EventSeries struct { // count is the number of occurrences in this series up to the last heartbeat time. Count int32 `json:"count" protobuf:"varint,1,opt,name=count"` // lastObservedTime is the time when last Event from the series was seen before last heartbeat. LastObservedTime metav1.MicroTime `json:"lastObservedTime" protobuf:"bytes,2,opt,name=lastObservedTime"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // EventList is a list of Event objects. type EventList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/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"` } golang-k8s-api-0.29.0/events/v1/types_swagger_doc_generated.go000066400000000000000000000124471453636404600242550ustar00rootroot00000000000000/* 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-codegen.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. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "eventTime": "eventTime is the time when this Event was first observed. It is required.", "series": "series is data about the Event series this event represents or nil if it's a singleton Event.", "reportingController": "reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.", "reportingInstance": "reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.", "action": "action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters.", "reason": "reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters.", "regarding": "regarding contains 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": "related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object.", "note": "note is 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 is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events.", "deprecatedSource": "deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.", "deprecatedFirstTimestamp": "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.", "deprecatedLastTimestamp": "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.", "deprecatedCount": "deprecatedCount is the 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. How often to update the EventSeries is up to the event reporters. The default event reporter in \"k8s.io/client-go/tools/events/event_broadcaster.go\" shows how this struct is updated on heartbeats and can guide customized reporter implementations.", "count": "count is the number of occurrences in this series up to the last heartbeat time.", "lastObservedTime": "lastObservedTime is the time when last Event from the series was seen before last heartbeat.", } func (EventSeries) SwaggerDoc() map[string]string { return map_EventSeries } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/events/v1/zz_generated.deepcopy.go000066400000000000000000000064231453636404600230140ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Event) DeepCopyInto(out *Event) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.EventTime.DeepCopyInto(&out.EventTime) if in.Series != nil { in, out := &in.Series, &out.Series *out = new(EventSeries) (*in).DeepCopyInto(*out) } out.Regarding = in.Regarding if in.Related != nil { in, out := &in.Related, &out.Related *out = new(corev1.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 } golang-k8s-api-0.29.0/events/v1beta1/000077500000000000000000000000001453636404600171055ustar00rootroot00000000000000golang-k8s-api-0.29.0/events/v1beta1/doc.go000066400000000000000000000014101453636404600201750ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true // +groupName=events.k8s.io package v1beta1 // import "k8s.io/api/events/v1beta1" golang-k8s-api-0.29.0/events/v1beta1/generated.pb.go000066400000000000000000001074441453636404600220040ustar00rootroot00000000000000/* 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/k8s.io/api/events/v1beta1/generated.proto package v1beta1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" v11 "k8s.io/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.GoGoProtoPackageIsVersion3 // 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/k8s.io/api/events/v1beta1/generated.proto", fileDescriptor_4f97f691c32a5ac8) } var fileDescriptor_4f97f691c32a5ac8 = []byte{ // 779 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x95, 0xcf, 0x6e, 0xdb, 0x46, 0x10, 0xc6, 0xc5, 0xc4, 0x92, 0xad, 0x55, 0x12, 0xcb, 0x9b, 0x83, 0xd7, 0x2e, 0x40, 0x09, 0x0a, 0x10, 0x08, 0x05, 0x4a, 0xd6, 0x41, 0x51, 0xf4, 0x56, 0x84, 0x91, 0x5b, 0x24, 0xb0, 0x1b, 0x60, 0xe3, 0x53, 0xd1, 0x43, 0x56, 0xd4, 0x84, 0x66, 0x25, 0xee, 0x12, 0xbb, 0x2b, 0x01, 0xbe, 0xf5, 0x52, 0xa0, 0xc7, 0x3e, 0x43, 0x6f, 0xbd, 0xf5, 0x31, 0x7c, 0xf4, 0xd1, 0x27, 0xa1, 0x66, 0x5f, 0xa4, 0xe0, 0x72, 0x25, 0xca, 0xfa, 0x03, 0xab, 0xe8, 0x8d, 0x9c, 0xf9, 0xbe, 0xdf, 0xcc, 0x2e, 0x47, 0x23, 0x14, 0x0c, 0xbf, 0x51, 0x5e, 0x2c, 0xfc, 0xe1, 0xb8, 0x0f, 0x92, 0x83, 0x06, 0xe5, 0x4f, 0x80, 0x0f, 0x84, 0xf4, 0x6d, 0x82, 0xa5, 0xb1, 0x0f, 0x13, 0xe0, 0x5a, 0xf9, 0x93, 0x93, 0x3e, 0x68, 0x76, 0xe2, 0x47, 0xc0, 0x41, 0x32, 0x0d, 0x03, 0x2f, 0x95, 0x42, 0x0b, 0x7c, 0x54, 0x48, 0x3d, 0x96, 0xc6, 0x5e, 0x21, 0xf5, 0xac, 0xf4, 0xf8, 0x8b, 0x28, 0xd6, 0x97, 0xe3, 0xbe, 0x17, 0x8a, 0xc4, 0x8f, 0x44, 0x24, 0x7c, 0xe3, 0xe8, 0x8f, 0x3f, 0x99, 0x37, 0xf3, 0x62, 0x9e, 0x0a, 0xd2, 0x71, 0x67, 0xa1, 0x68, 0x28, 0x24, 0xf8, 0x93, 0x95, 0x6a, 0xc7, 0x5f, 0x95, 0x9a, 0x84, 0x85, 0x97, 0x31, 0x07, 0x79, 0xe5, 0xa7, 0xc3, 0x28, 0x0f, 0x28, 0x3f, 0x01, 0xcd, 0xd6, 0xb9, 0xfc, 0x4d, 0x2e, 0x39, 0xe6, 0x3a, 0x4e, 0x60, 0xc5, 0xf0, 0xf5, 0x43, 0x06, 0x15, 0x5e, 0x42, 0xc2, 0x96, 0x7d, 0x9d, 0x3f, 0xea, 0xa8, 0x7a, 0x9a, 0x5f, 0x02, 0xfe, 0x88, 0xf6, 0xf2, 0x6e, 0x06, 0x4c, 0x33, 0xe2, 0xb4, 0x9d, 0x6e, 0xe3, 0xd5, 0x97, 0x5e, 0x79, 0x53, 0x73, 0xa8, 0x97, 0x0e, 0xa3, 0x3c, 0xa0, 0xbc, 0x5c, 0xed, 0x4d, 0x4e, 0xbc, 0xf7, 0xfd, 0x9f, 0x21, 0xd4, 0xe7, 0xa0, 0x59, 0x80, 0xaf, 0xa7, 0xad, 0x4a, 0x36, 0x6d, 0xa1, 0x32, 0x46, 0xe7, 0x54, 0xfc, 0x11, 0xd5, 0xcd, 0x7d, 0x5f, 0xc4, 0x09, 0x90, 0x47, 0xa6, 0x84, 0xbf, 0x5d, 0x89, 0xf3, 0x38, 0x94, 0x22, 0xb7, 0x05, 0x07, 0xb6, 0x42, 0xfd, 0x74, 0x46, 0xa2, 0x25, 0x14, 0xbf, 0x43, 0x35, 0x05, 0x32, 0x06, 0x45, 0x1e, 0x1b, 0xfc, 0x4b, 0x6f, 0xe3, 0xb7, 0xf6, 0x0c, 0xe0, 0x83, 0x51, 0x07, 0x28, 0x9b, 0xb6, 0x6a, 0xc5, 0x33, 0xb5, 0x04, 0x7c, 0x8e, 0x9e, 0x4b, 0x48, 0x85, 0xd4, 0x31, 0x8f, 0xde, 0x08, 0xae, 0xa5, 0x18, 0x8d, 0x40, 0x92, 0x9d, 0xb6, 0xd3, 0xad, 0x07, 0x9f, 0xd9, 0x36, 0x9e, 0xd3, 0x55, 0x09, 0x5d, 0xe7, 0xc3, 0xdf, 0xa3, 0x83, 0x79, 0xf8, 0x2d, 0x57, 0x9a, 0xf1, 0x10, 0x48, 0xd5, 0xc0, 0x8e, 0x2c, 0xec, 0x80, 0x2e, 0x0b, 0xe8, 0xaa, 0x07, 0xbf, 0x44, 0x35, 0x16, 0xea, 0x58, 0x70, 0x52, 0x33, 0xee, 0x67, 0xd6, 0x5d, 0x7b, 0x6d, 0xa2, 0xd4, 0x66, 0x73, 0x9d, 0x04, 0xa6, 0x04, 0x27, 0xbb, 0xf7, 0x75, 0xd4, 0x44, 0xa9, 0xcd, 0xe2, 0x0b, 0x54, 0x97, 0x10, 0x31, 0x39, 0x88, 0x79, 0x44, 0xf6, 0xcc, 0xb5, 0xbd, 0x58, 0xbc, 0xb6, 0x7c, 0xb0, 0xcb, 0xcf, 0x4c, 0xe1, 0x13, 0x48, 0xe0, 0xe1, 0xc2, 0x97, 0xa0, 0x33, 0x37, 0x2d, 0x41, 0xf8, 0x1d, 0xda, 0x95, 0x30, 0xca, 0x07, 0x8d, 0xd4, 0xb7, 0x67, 0x36, 0xb2, 0x69, 0x6b, 0x97, 0x16, 0x3e, 0x3a, 0x03, 0xe0, 0x36, 0xda, 0xe1, 0x42, 0x03, 0x41, 0xe6, 0x1c, 0x4f, 0x6c, 0xdd, 0x9d, 0x1f, 0x84, 0x06, 0x6a, 0x32, 0xb9, 0x42, 0x5f, 0xa5, 0x40, 0x1a, 0xf7, 0x15, 0x17, 0x57, 0x29, 0x50, 0x93, 0xc1, 0x80, 0x9a, 0x03, 0x48, 0x25, 0x84, 0x39, 0xf1, 0x83, 0x18, 0xcb, 0x10, 0xc8, 0x13, 0xd3, 0x58, 0x6b, 0x5d, 0x63, 0xc5, 0x70, 0x18, 0x59, 0x40, 0x2c, 0xae, 0xd9, 0x5b, 0x02, 0xd0, 0x15, 0x24, 0xfe, 0xcd, 0x41, 0xa4, 0x0c, 0x7e, 0x17, 0x4b, 0x65, 0x06, 0x53, 0x69, 0x96, 0xa4, 0xe4, 0xa9, 0xa9, 0xf7, 0xf9, 0x76, 0x23, 0x6f, 0xa6, 0xbd, 0x6d, 0x4b, 0x93, 0xde, 0x06, 0x26, 0xdd, 0x58, 0x0d, 0xff, 0xea, 0xa0, 0xc3, 0x32, 0x79, 0xc6, 0x16, 0x3b, 0x79, 0xf6, 0x9f, 0x3b, 0x69, 0xd9, 0x4e, 0x0e, 0x7b, 0xeb, 0x91, 0x74, 0x53, 0x2d, 0xfc, 0x1a, 0xed, 0x97, 0xa9, 0x37, 0x62, 0xcc, 0x35, 0xd9, 0x6f, 0x3b, 0xdd, 0x6a, 0x70, 0x68, 0x91, 0xfb, 0xbd, 0xfb, 0x69, 0xba, 0xac, 0xef, 0xfc, 0xe5, 0xa0, 0xe2, 0xf7, 0x7e, 0x16, 0x2b, 0x8d, 0x7f, 0x5a, 0x59, 0x54, 0xde, 0x76, 0x07, 0xc9, 0xdd, 0x66, 0x4d, 0x35, 0x6d, 0xe5, 0xbd, 0x59, 0x64, 0x61, 0x49, 0x9d, 0xa2, 0x6a, 0xac, 0x21, 0x51, 0xe4, 0x51, 0xfb, 0x71, 0xb7, 0xf1, 0xaa, 0xfd, 0xd0, 0x06, 0x09, 0x9e, 0x5a, 0x58, 0xf5, 0x6d, 0x6e, 0xa3, 0x85, 0xbb, 0xf3, 0xa7, 0x83, 0x1a, 0x0b, 0x1b, 0x06, 0xbf, 0x40, 0xd5, 0xd0, 0x9c, 0xdd, 0x31, 0x67, 0x9f, 0x9b, 0x8a, 0x13, 0x17, 0x39, 0x3c, 0x46, 0xcd, 0x11, 0x53, 0xfa, 0x7d, 0x5f, 0x81, 0x9c, 0xc0, 0xe0, 0xff, 0xec, 0xc9, 0xf9, 0xd0, 0x9e, 0x2d, 0x01, 0xe9, 0x4a, 0x89, 0xe0, 0xdb, 0xeb, 0x3b, 0xb7, 0x72, 0x73, 0xe7, 0x56, 0x6e, 0xef, 0xdc, 0xca, 0x2f, 0x99, 0xeb, 0x5c, 0x67, 0xae, 0x73, 0x93, 0xb9, 0xce, 0x6d, 0xe6, 0x3a, 0x7f, 0x67, 0xae, 0xf3, 0xfb, 0x3f, 0x6e, 0xe5, 0xc7, 0xa3, 0x8d, 0xff, 0xb0, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xae, 0x19, 0x45, 0xf5, 0x96, 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 { 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)) 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) + `,`, `}`, }, "") 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) || (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) || (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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/events/v1beta1/generated.proto000066400000000000000000000123711453636404600221340ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/events/v1beta1"; // Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. // Events have a limited retention time and triggers and messages may evolve // with time. Event consumers should not rely on the timing of an event // with a given Reason reflecting a consistent underlying trigger, or the // continued existence of events with that Reason. Events should be // treated as informative, best-effort, supplemental data. message Event { // 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; // eventTime is the time when this Event was first observed. It is required. optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 2; // series is data about the Event series this event represents or nil if it's a singleton Event. // +optional optional EventSeries series = 3; // reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. // This field cannot be empty for new Events. // +optional optional string reportingController = 4; // reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. // This field cannot be empty for new Events and it can have at most 128 characters. // +optional optional string reportingInstance = 5; // action is what action was taken/failed regarding to the regarding object. It is machine-readable. // This field can have at most 128 characters. // +optional optional string action = 6; // reason is why the action was taken. It is human-readable. // This field can have at most 128 characters. // +optional optional string reason = 7; // regarding contains 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; // related is the 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; // note is 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 is the type of this event (Normal, Warning), new types could be added in the future. // It is machine-readable. // +optional optional string type = 11; // deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. // +optional optional k8s.io.api.core.v1.EventSource deprecatedSource = 12; // deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedFirstTimestamp = 13; // deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedLastTimestamp = 14; // deprecatedCount is the 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 { // count is the number of occurrences in this series up to the last heartbeat time. optional int32 count = 1; // lastObservedTime is the time when last Event from the series was seen before last heartbeat. optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; } golang-k8s-api-0.29.0/events/v1beta1/register.go000066400000000000000000000032671453636404600212700ustar00rootroot00000000000000/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package v1beta1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "events.k8s.io" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"} // Resource takes an unqualified resource and returns a Group qualified GroupResource func Resource(resource string) schema.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Event{}, &EventList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/events/v1beta1/types.go000066400000000000000000000140741453636404600206060ustar00rootroot00000000000000/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package v1beta1 import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.8 // +k8s:prerelease-lifecycle-gen:deprecated=1.22 // Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. // Events have a limited retention time and triggers and messages may evolve // with time. Event consumers should not rely on the timing of an event // with a given Reason reflecting a consistent underlying trigger, or the // continued existence of events with that Reason. Events should be // treated as informative, best-effort, supplemental data. 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 // +optional metav1.ObjectMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"` // eventTime is the time when this Event was first observed. It is required. EventTime metav1.MicroTime `json:"eventTime" protobuf:"bytes,2,opt,name=eventTime"` // series is 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"` // reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. // This field cannot be empty for new Events. // +optional ReportingController string `json:"reportingController,omitempty" protobuf:"bytes,4,opt,name=reportingController"` // reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. // This field cannot be empty for new Events and it can have at most 128 characters. // +optional ReportingInstance string `json:"reportingInstance,omitempty" protobuf:"bytes,5,opt,name=reportingInstance"` // action is what action was taken/failed regarding to the regarding object. It is machine-readable. // This field can have at most 128 characters. // +optional Action string `json:"action,omitempty" protobuf:"bytes,6,name=action"` // reason is why the action was taken. It is human-readable. // This field can have at most 128 characters. // +optional Reason string `json:"reason,omitempty" protobuf:"bytes,7,name=reason"` // regarding contains 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"` // related is the 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"` // note is 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 is the type of this event (Normal, Warning), new types could be added in the future. // It is machine-readable. // +optional Type string `json:"type,omitempty" protobuf:"bytes,11,opt,name=type"` // deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. // +optional DeprecatedSource corev1.EventSource `json:"deprecatedSource,omitempty" protobuf:"bytes,12,opt,name=deprecatedSource"` // deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. // +optional DeprecatedFirstTimestamp metav1.Time `json:"deprecatedFirstTimestamp,omitempty" protobuf:"bytes,13,opt,name=deprecatedFirstTimestamp"` // deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. // +optional DeprecatedLastTimestamp metav1.Time `json:"deprecatedLastTimestamp,omitempty" protobuf:"bytes,14,opt,name=deprecatedLastTimestamp"` // deprecatedCount is the 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 { // count is the number of occurrences in this series up to the last heartbeat time. Count int32 `json:"count" protobuf:"varint,1,opt,name=count"` // lastObservedTime is the time when last Event from the series was seen before last heartbeat. LastObservedTime metav1.MicroTime `json:"lastObservedTime" protobuf:"bytes,2,opt,name=lastObservedTime"` // +k8s:deprecated=state,protobuf=3 } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.8 // +k8s:prerelease-lifecycle-gen:deprecated=1.22 // 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"` } golang-k8s-api-0.29.0/events/v1beta1/types_swagger_doc_generated.go000066400000000000000000000116741453636404600251730ustar00rootroot00000000000000/* 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-codegen.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. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "eventTime": "eventTime is the time when this Event was first observed. It is required.", "series": "series is data about the Event series this event represents or nil if it's a singleton Event.", "reportingController": "reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.", "reportingInstance": "reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.", "action": "action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field can have at most 128 characters.", "reason": "reason is why the action was taken. It is human-readable. This field can have at most 128 characters.", "regarding": "regarding contains 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": "related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object.", "note": "note is 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 is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable.", "deprecatedSource": "deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.", "deprecatedFirstTimestamp": "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.", "deprecatedLastTimestamp": "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.", "deprecatedCount": "deprecatedCount is the 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": "count is the number of occurrences in this series up to the last heartbeat time.", "lastObservedTime": "lastObservedTime is the time when last Event from the series was seen before last heartbeat.", } func (EventSeries) SwaggerDoc() map[string]string { return map_EventSeries } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/events/v1beta1/zz_generated.deepcopy.go000066400000000000000000000064201453636404600237260ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Event) DeepCopyInto(out *Event) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.EventTime.DeepCopyInto(&out.EventTime) if in.Series != nil { in, out := &in.Series, &out.Series *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 } golang-k8s-api-0.29.0/events/v1beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000056151453636404600262070ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta1 // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *Event) APILifecycleIntroduced() (major, minor int) { return 1, 8 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *Event) APILifecycleDeprecated() (major, minor int) { return 1, 22 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *Event) APILifecycleRemoved() (major, minor int) { return 1, 25 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *EventList) APILifecycleIntroduced() (major, minor int) { return 1, 8 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *EventList) APILifecycleDeprecated() (major, minor int) { return 1, 22 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *EventList) APILifecycleRemoved() (major, minor int) { return 1, 25 } golang-k8s-api-0.29.0/extensions/000077500000000000000000000000001453636404600165355ustar00rootroot00000000000000golang-k8s-api-0.29.0/extensions/OWNERS000066400000000000000000000004371453636404600175010ustar00rootroot00000000000000# See the OWNERS docs at https://go.k8s.io/owners reviewers: - thockin - smarterclayton - wojtek-t - deads2k - derekwaynecarr - caesarxuchao - mikedanese - liggitt - sttts - saad-ali - janetkuo - justinsb - ncdc - tallclair - mwielgus - soltysh - dims golang-k8s-api-0.29.0/extensions/v1beta1/000077500000000000000000000000001453636404600200005ustar00rootroot00000000000000golang-k8s-api-0.29.0/extensions/v1beta1/doc.go000066400000000000000000000013571453636404600211020ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true package v1beta1 // import "k8s.io/api/extensions/v1beta1" golang-k8s-api-0.29.0/extensions/v1beta1/generated.pb.go000066400000000000000000011127401453636404600226730ustar00rootroot00000000000000/* 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/k8s.io/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 "k8s.io/api/core/v1" v11 "k8s.io/api/core/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" math "math" math_bits "math/bits" reflect "reflect" strings "strings" intstr "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *DaemonSet) Reset() { *m = DaemonSet{} } func (*DaemonSet) ProtoMessage() {} func (*DaemonSet) Descriptor() ([]byte, []int) { return fileDescriptor_cdc93917efc28165, []int{0} } 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{1} } 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{2} } 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{3} } 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{4} } 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{5} } 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{6} } 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{7} } 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{8} } 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{9} } 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{10} } 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{11} } 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{12} } 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 *HTTPIngressPath) Reset() { *m = HTTPIngressPath{} } func (*HTTPIngressPath) ProtoMessage() {} func (*HTTPIngressPath) Descriptor() ([]byte, []int) { return fileDescriptor_cdc93917efc28165, []int{13} } 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{14} } 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 *IPBlock) Reset() { *m = IPBlock{} } func (*IPBlock) ProtoMessage() {} func (*IPBlock) Descriptor() ([]byte, []int) { return fileDescriptor_cdc93917efc28165, []int{15} } 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{16} } 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{17} } 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{18} } 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 *IngressLoadBalancerIngress) Reset() { *m = IngressLoadBalancerIngress{} } func (*IngressLoadBalancerIngress) ProtoMessage() {} func (*IngressLoadBalancerIngress) Descriptor() ([]byte, []int) { return fileDescriptor_cdc93917efc28165, []int{19} } func (m *IngressLoadBalancerIngress) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IngressLoadBalancerIngress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IngressLoadBalancerIngress) XXX_Merge(src proto.Message) { xxx_messageInfo_IngressLoadBalancerIngress.Merge(m, src) } func (m *IngressLoadBalancerIngress) XXX_Size() int { return m.Size() } func (m *IngressLoadBalancerIngress) XXX_DiscardUnknown() { xxx_messageInfo_IngressLoadBalancerIngress.DiscardUnknown(m) } var xxx_messageInfo_IngressLoadBalancerIngress proto.InternalMessageInfo func (m *IngressLoadBalancerStatus) Reset() { *m = IngressLoadBalancerStatus{} } func (*IngressLoadBalancerStatus) ProtoMessage() {} func (*IngressLoadBalancerStatus) Descriptor() ([]byte, []int) { return fileDescriptor_cdc93917efc28165, []int{20} } func (m *IngressLoadBalancerStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IngressLoadBalancerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IngressLoadBalancerStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_IngressLoadBalancerStatus.Merge(m, src) } func (m *IngressLoadBalancerStatus) XXX_Size() int { return m.Size() } func (m *IngressLoadBalancerStatus) XXX_DiscardUnknown() { xxx_messageInfo_IngressLoadBalancerStatus.DiscardUnknown(m) } var xxx_messageInfo_IngressLoadBalancerStatus proto.InternalMessageInfo func (m *IngressPortStatus) Reset() { *m = IngressPortStatus{} } func (*IngressPortStatus) ProtoMessage() {} func (*IngressPortStatus) Descriptor() ([]byte, []int) { return fileDescriptor_cdc93917efc28165, []int{21} } func (m *IngressPortStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IngressPortStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IngressPortStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_IngressPortStatus.Merge(m, src) } func (m *IngressPortStatus) XXX_Size() int { return m.Size() } func (m *IngressPortStatus) XXX_DiscardUnknown() { xxx_messageInfo_IngressPortStatus.DiscardUnknown(m) } var xxx_messageInfo_IngressPortStatus proto.InternalMessageInfo func (m *IngressRule) Reset() { *m = IngressRule{} } func (*IngressRule) ProtoMessage() {} func (*IngressRule) Descriptor() ([]byte, []int) { return fileDescriptor_cdc93917efc28165, []int{22} } 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{23} } 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{24} } 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{25} } 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{26} } 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{27} } 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{28} } 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{29} } 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{30} } 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{31} } 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{32} } 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{33} } 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 *ReplicaSet) Reset() { *m = ReplicaSet{} } func (*ReplicaSet) ProtoMessage() {} func (*ReplicaSet) Descriptor() ([]byte, []int) { return fileDescriptor_cdc93917efc28165, []int{34} } 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{35} } 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{36} } 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{37} } 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{38} } 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 *RollbackConfig) Reset() { *m = RollbackConfig{} } func (*RollbackConfig) ProtoMessage() {} func (*RollbackConfig) Descriptor() ([]byte, []int) { return fileDescriptor_cdc93917efc28165, []int{39} } 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{40} } 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{41} } 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 *Scale) Reset() { *m = Scale{} } func (*Scale) ProtoMessage() {} func (*Scale) Descriptor() ([]byte, []int) { return fileDescriptor_cdc93917efc28165, []int{42} } 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{43} } 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{44} } 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((*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((*HTTPIngressPath)(nil), "k8s.io.api.extensions.v1beta1.HTTPIngressPath") proto.RegisterType((*HTTPIngressRuleValue)(nil), "k8s.io.api.extensions.v1beta1.HTTPIngressRuleValue") 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((*IngressLoadBalancerIngress)(nil), "k8s.io.api.extensions.v1beta1.IngressLoadBalancerIngress") proto.RegisterType((*IngressLoadBalancerStatus)(nil), "k8s.io.api.extensions.v1beta1.IngressLoadBalancerStatus") proto.RegisterType((*IngressPortStatus)(nil), "k8s.io.api.extensions.v1beta1.IngressPortStatus") 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((*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((*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((*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") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/extensions/v1beta1/generated.proto", fileDescriptor_cdc93917efc28165) } var fileDescriptor_cdc93917efc28165 = []byte{ // 2858 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5b, 0xcd, 0x6f, 0x24, 0x47, 0x15, 0xdf, 0x9e, 0xf1, 0xd8, 0xe3, 0xe7, 0xb5, 0xbd, 0x5b, 0xeb, 0xac, 0x1d, 0x2f, 0xb1, 0xa3, 0x46, 0x84, 0x4d, 0xd8, 0xcc, 0xb0, 0x9b, 0x64, 0xc9, 0x87, 0x94, 0xb0, 0xe3, 0xdd, 0x64, 0x9d, 0xd8, 0xe3, 0x49, 0xcd, 0x38, 0x41, 0x11, 0x01, 0xda, 0x3d, 0xe5, 0x71, 0xc7, 0x3d, 0xdd, 0xa3, 0xee, 0x1a, 0xb3, 0xbe, 0x81, 0xe0, 0x92, 0x13, 0x5c, 0x02, 0x1c, 0x91, 0x90, 0xb8, 0x72, 0xe5, 0x10, 0x22, 0x10, 0x41, 0x5a, 0x21, 0x0e, 0x91, 0x38, 0x90, 0x93, 0x45, 0x9c, 0x13, 0xe2, 0x1f, 0x40, 0x7b, 0x42, 0xf5, 0xd1, 0xd5, 0xdf, 0x76, 0x8f, 0xf1, 0x5a, 0x04, 0x71, 0x5a, 0x4f, 0xbd, 0xf7, 0x7e, 0xf5, 0xaa, 0xea, 0xd5, 0x7b, 0xbf, 0xaa, 0xea, 0x85, 0x57, 0x77, 0x9f, 0xf7, 0x6b, 0x96, 0x5b, 0xdf, 0x1d, 0x6e, 0x11, 0xcf, 0x21, 0x94, 0xf8, 0xf5, 0x3d, 0xe2, 0x74, 0x5d, 0xaf, 0x2e, 0x05, 0xc6, 0xc0, 0xaa, 0x93, 0x7b, 0x94, 0x38, 0xbe, 0xe5, 0x3a, 0x7e, 0x7d, 0xef, 0xfa, 0x16, 0xa1, 0xc6, 0xf5, 0x7a, 0x8f, 0x38, 0xc4, 0x33, 0x28, 0xe9, 0xd6, 0x06, 0x9e, 0x4b, 0x5d, 0xf4, 0x98, 0x50, 0xaf, 0x19, 0x03, 0xab, 0x16, 0xaa, 0xd7, 0xa4, 0xfa, 0xe2, 0xd3, 0x3d, 0x8b, 0xee, 0x0c, 0xb7, 0x6a, 0xa6, 0xdb, 0xaf, 0xf7, 0xdc, 0x9e, 0x5b, 0xe7, 0x56, 0x5b, 0xc3, 0x6d, 0xfe, 0x8b, 0xff, 0xe0, 0x7f, 0x09, 0xb4, 0x45, 0x3d, 0xd2, 0xb9, 0xe9, 0x7a, 0xa4, 0xbe, 0x97, 0xea, 0x71, 0xf1, 0xd9, 0x50, 0xa7, 0x6f, 0x98, 0x3b, 0x96, 0x43, 0xbc, 0xfd, 0xfa, 0x60, 0xb7, 0xc7, 0x1a, 0xfc, 0x7a, 0x9f, 0x50, 0x23, 0xcb, 0xaa, 0x9e, 0x67, 0xe5, 0x0d, 0x1d, 0x6a, 0xf5, 0x49, 0xca, 0xe0, 0xe6, 0x71, 0x06, 0xbe, 0xb9, 0x43, 0xfa, 0x46, 0xca, 0xee, 0x99, 0x3c, 0xbb, 0x21, 0xb5, 0xec, 0xba, 0xe5, 0x50, 0x9f, 0x7a, 0x49, 0x23, 0xfd, 0x83, 0x12, 0x4c, 0xde, 0x36, 0x48, 0xdf, 0x75, 0xda, 0x84, 0xa2, 0xef, 0x41, 0x95, 0x0d, 0xa3, 0x6b, 0x50, 0x63, 0x41, 0x7b, 0x5c, 0xbb, 0x3a, 0x75, 0xe3, 0xeb, 0xb5, 0x70, 0x9a, 0x15, 0x6a, 0x6d, 0xb0, 0xdb, 0x63, 0x0d, 0x7e, 0x8d, 0x69, 0xd7, 0xf6, 0xae, 0xd7, 0x36, 0xb6, 0xde, 0x23, 0x26, 0x5d, 0x27, 0xd4, 0x68, 0xa0, 0xfb, 0x07, 0xcb, 0xe7, 0x0e, 0x0f, 0x96, 0x21, 0x6c, 0xc3, 0x0a, 0x15, 0x35, 0x61, 0xcc, 0x1f, 0x10, 0x73, 0xa1, 0xc4, 0xd1, 0xaf, 0xd5, 0x8e, 0x5c, 0xc4, 0x9a, 0xf2, 0xac, 0x3d, 0x20, 0x66, 0xe3, 0xbc, 0x44, 0x1e, 0x63, 0xbf, 0x30, 0xc7, 0x41, 0x6f, 0xc1, 0xb8, 0x4f, 0x0d, 0x3a, 0xf4, 0x17, 0xca, 0x1c, 0xb1, 0x56, 0x18, 0x91, 0x5b, 0x35, 0x66, 0x24, 0xe6, 0xb8, 0xf8, 0x8d, 0x25, 0x9a, 0xfe, 0x8f, 0x12, 0x20, 0xa5, 0xbb, 0xe2, 0x3a, 0x5d, 0x8b, 0x5a, 0xae, 0x83, 0x5e, 0x84, 0x31, 0xba, 0x3f, 0x20, 0x7c, 0x72, 0x26, 0x1b, 0x4f, 0x04, 0x0e, 0x75, 0xf6, 0x07, 0xe4, 0xc1, 0xc1, 0xf2, 0xe5, 0xb4, 0x05, 0x93, 0x60, 0x6e, 0x83, 0xd6, 0x94, 0xab, 0x25, 0x6e, 0xfd, 0x6c, 0xbc, 0xeb, 0x07, 0x07, 0xcb, 0x19, 0x41, 0x58, 0x53, 0x48, 0x71, 0x07, 0xd1, 0x1e, 0x20, 0xdb, 0xf0, 0x69, 0xc7, 0x33, 0x1c, 0x5f, 0xf4, 0x64, 0xf5, 0x89, 0x9c, 0x84, 0xa7, 0x8a, 0x2d, 0x1a, 0xb3, 0x68, 0x2c, 0x4a, 0x2f, 0xd0, 0x5a, 0x0a, 0x0d, 0x67, 0xf4, 0x80, 0x9e, 0x80, 0x71, 0x8f, 0x18, 0xbe, 0xeb, 0x2c, 0x8c, 0xf1, 0x51, 0xa8, 0x09, 0xc4, 0xbc, 0x15, 0x4b, 0x29, 0x7a, 0x12, 0x26, 0xfa, 0xc4, 0xf7, 0x8d, 0x1e, 0x59, 0xa8, 0x70, 0xc5, 0x59, 0xa9, 0x38, 0xb1, 0x2e, 0x9a, 0x71, 0x20, 0xd7, 0x3f, 0xd4, 0x60, 0x5a, 0xcd, 0xdc, 0x9a, 0xe5, 0x53, 0xf4, 0xed, 0x54, 0x1c, 0xd6, 0x8a, 0x0d, 0x89, 0x59, 0xf3, 0x28, 0xbc, 0x20, 0x7b, 0xab, 0x06, 0x2d, 0x91, 0x18, 0x5c, 0x87, 0x8a, 0x45, 0x49, 0x9f, 0xad, 0x43, 0xf9, 0xea, 0xd4, 0x8d, 0xab, 0x45, 0x43, 0xa6, 0x31, 0x2d, 0x41, 0x2b, 0xab, 0xcc, 0x1c, 0x0b, 0x14, 0xfd, 0x67, 0x63, 0x11, 0xf7, 0x59, 0x68, 0xa2, 0x77, 0xa1, 0xea, 0x13, 0x9b, 0x98, 0xd4, 0xf5, 0xa4, 0xfb, 0xcf, 0x14, 0x74, 0xdf, 0xd8, 0x22, 0x76, 0x5b, 0x9a, 0x36, 0xce, 0x33, 0xff, 0x83, 0x5f, 0x58, 0x41, 0xa2, 0x37, 0xa1, 0x4a, 0x49, 0x7f, 0x60, 0x1b, 0x94, 0xc8, 0x7d, 0xf4, 0xe5, 0xe8, 0x10, 0x58, 0xe4, 0x30, 0xb0, 0x96, 0xdb, 0xed, 0x48, 0x35, 0xbe, 0x7d, 0xd4, 0x94, 0x04, 0xad, 0x58, 0xc1, 0xa0, 0x3d, 0x98, 0x19, 0x0e, 0xba, 0x4c, 0x93, 0xb2, 0xec, 0xd0, 0xdb, 0x97, 0x91, 0x74, 0xb3, 0xe8, 0xdc, 0x6c, 0xc6, 0xac, 0x1b, 0x97, 0x65, 0x5f, 0x33, 0xf1, 0x76, 0x9c, 0xe8, 0x05, 0xdd, 0x82, 0xd9, 0xbe, 0xe5, 0x60, 0x62, 0x74, 0xf7, 0xdb, 0xc4, 0x74, 0x9d, 0xae, 0xcf, 0xc3, 0xaa, 0xd2, 0x98, 0x97, 0x00, 0xb3, 0xeb, 0x71, 0x31, 0x4e, 0xea, 0xa3, 0xd7, 0x01, 0x05, 0xc3, 0x78, 0x4d, 0x24, 0x37, 0xcb, 0x75, 0x78, 0xcc, 0x95, 0xc3, 0xe0, 0xee, 0xa4, 0x34, 0x70, 0x86, 0x15, 0x5a, 0x83, 0x39, 0x8f, 0xec, 0x59, 0x6c, 0x8c, 0x77, 0x2d, 0x9f, 0xba, 0xde, 0xfe, 0x9a, 0xd5, 0xb7, 0xe8, 0xc2, 0x38, 0xf7, 0x69, 0xe1, 0xf0, 0x60, 0x79, 0x0e, 0x67, 0xc8, 0x71, 0xa6, 0x95, 0xfe, 0xf3, 0x71, 0x98, 0x4d, 0xe4, 0x1b, 0xf4, 0x16, 0x5c, 0x36, 0x87, 0x9e, 0x47, 0x1c, 0xda, 0x1c, 0xf6, 0xb7, 0x88, 0xd7, 0x36, 0x77, 0x48, 0x77, 0x68, 0x93, 0x2e, 0x0f, 0x94, 0x4a, 0x63, 0x49, 0x7a, 0x7c, 0x79, 0x25, 0x53, 0x0b, 0xe7, 0x58, 0xb3, 0x59, 0x70, 0x78, 0xd3, 0xba, 0xe5, 0xfb, 0x0a, 0xb3, 0xc4, 0x31, 0xd5, 0x2c, 0x34, 0x53, 0x1a, 0x38, 0xc3, 0x8a, 0xf9, 0xd8, 0x25, 0xbe, 0xe5, 0x91, 0x6e, 0xd2, 0xc7, 0x72, 0xdc, 0xc7, 0xdb, 0x99, 0x5a, 0x38, 0xc7, 0x1a, 0x3d, 0x07, 0x53, 0xa2, 0x37, 0xbe, 0x7e, 0x72, 0xa1, 0x2f, 0x49, 0xb0, 0xa9, 0x66, 0x28, 0xc2, 0x51, 0x3d, 0x36, 0x34, 0x77, 0xcb, 0x27, 0xde, 0x1e, 0xe9, 0xe6, 0x2f, 0xf0, 0x46, 0x4a, 0x03, 0x67, 0x58, 0xb1, 0xa1, 0x89, 0x08, 0x4c, 0x0d, 0x6d, 0x3c, 0x3e, 0xb4, 0xcd, 0x4c, 0x2d, 0x9c, 0x63, 0xcd, 0xe2, 0x58, 0xb8, 0x7c, 0x6b, 0xcf, 0xb0, 0x6c, 0x63, 0xcb, 0x26, 0x0b, 0x13, 0xf1, 0x38, 0x6e, 0xc6, 0xc5, 0x38, 0xa9, 0x8f, 0x5e, 0x83, 0x8b, 0xa2, 0x69, 0xd3, 0x31, 0x14, 0x48, 0x95, 0x83, 0x3c, 0x2a, 0x41, 0x2e, 0x36, 0x93, 0x0a, 0x38, 0x6d, 0x83, 0x5e, 0x84, 0x19, 0xd3, 0xb5, 0x6d, 0x1e, 0x8f, 0x2b, 0xee, 0xd0, 0xa1, 0x0b, 0x93, 0x1c, 0x05, 0xb1, 0xfd, 0xb8, 0x12, 0x93, 0xe0, 0x84, 0x26, 0x22, 0x00, 0x66, 0x50, 0x70, 0xfc, 0x05, 0xe0, 0xf9, 0xf1, 0x7a, 0xd1, 0x1c, 0xa0, 0x4a, 0x55, 0xc8, 0x01, 0x54, 0x93, 0x8f, 0x23, 0xc0, 0xfa, 0x9f, 0x35, 0x98, 0xcf, 0x49, 0x1d, 0xe8, 0x95, 0x58, 0x89, 0xfd, 0x5a, 0xa2, 0xc4, 0x5e, 0xc9, 0x31, 0x8b, 0xd4, 0x59, 0x07, 0xa6, 0x3d, 0x36, 0x2a, 0xa7, 0x27, 0x54, 0x64, 0x8e, 0x7c, 0xee, 0x98, 0x61, 0xe0, 0xa8, 0x4d, 0x98, 0xf3, 0x2f, 0x1e, 0x1e, 0x2c, 0x4f, 0xc7, 0x64, 0x38, 0x0e, 0xaf, 0xff, 0xa2, 0x04, 0x70, 0x9b, 0x0c, 0x6c, 0x77, 0xbf, 0x4f, 0x9c, 0xb3, 0xe0, 0x50, 0x1b, 0x31, 0x0e, 0xf5, 0xf4, 0x71, 0xcb, 0xa3, 0x5c, 0xcb, 0x25, 0x51, 0x6f, 0x27, 0x48, 0x54, 0xbd, 0x38, 0xe4, 0xd1, 0x2c, 0xea, 0x6f, 0x65, 0xb8, 0x14, 0x2a, 0x87, 0x34, 0xea, 0xa5, 0xd8, 0x1a, 0x7f, 0x35, 0xb1, 0xc6, 0xf3, 0x19, 0x26, 0x0f, 0x8d, 0x47, 0xbd, 0x07, 0x33, 0x8c, 0xe5, 0x88, 0xb5, 0xe4, 0x1c, 0x6a, 0x7c, 0x64, 0x0e, 0xa5, 0xaa, 0xdd, 0x5a, 0x0c, 0x09, 0x27, 0x90, 0x73, 0x38, 0xdb, 0xc4, 0x17, 0x91, 0xb3, 0x7d, 0xa4, 0xc1, 0x4c, 0xb8, 0x4c, 0x67, 0x40, 0xda, 0x9a, 0x71, 0xd2, 0xf6, 0x64, 0xe1, 0x10, 0xcd, 0x61, 0x6d, 0xff, 0x62, 0x04, 0x5f, 0x29, 0xb1, 0x0d, 0xbe, 0x65, 0x98, 0xbb, 0xe8, 0x71, 0x18, 0x73, 0x8c, 0x7e, 0x10, 0x99, 0x6a, 0xb3, 0x34, 0x8d, 0x3e, 0xc1, 0x5c, 0x82, 0x3e, 0xd0, 0x00, 0xc9, 0x2a, 0x70, 0xcb, 0x71, 0x5c, 0x6a, 0x88, 0x5c, 0x29, 0xdc, 0x5a, 0x2d, 0xec, 0x56, 0xd0, 0x63, 0x6d, 0x33, 0x85, 0x75, 0xc7, 0xa1, 0xde, 0x7e, 0xb8, 0xc8, 0x69, 0x05, 0x9c, 0xe1, 0x00, 0x32, 0x00, 0x3c, 0x89, 0xd9, 0x71, 0xe5, 0x46, 0x7e, 0xba, 0x40, 0xce, 0x63, 0x06, 0x2b, 0xae, 0xb3, 0x6d, 0xf5, 0xc2, 0xb4, 0x83, 0x15, 0x10, 0x8e, 0x80, 0x2e, 0xde, 0x81, 0xf9, 0x1c, 0x6f, 0xd1, 0x05, 0x28, 0xef, 0x92, 0x7d, 0x31, 0x6d, 0x98, 0xfd, 0x89, 0xe6, 0xa0, 0xb2, 0x67, 0xd8, 0x43, 0x91, 0x7e, 0x27, 0xb1, 0xf8, 0xf1, 0x62, 0xe9, 0x79, 0x4d, 0xff, 0xb0, 0x12, 0x8d, 0x1d, 0xce, 0x98, 0xaf, 0x42, 0xd5, 0x23, 0x03, 0xdb, 0x32, 0x0d, 0x5f, 0x12, 0x21, 0x4e, 0x7e, 0xb1, 0x6c, 0xc3, 0x4a, 0x1a, 0xe3, 0xd6, 0xa5, 0x87, 0xcb, 0xad, 0xcb, 0xa7, 0xc3, 0xad, 0xbf, 0x0b, 0x55, 0x3f, 0x60, 0xd5, 0x63, 0x1c, 0xf2, 0xfa, 0x08, 0xf9, 0x55, 0x12, 0x6a, 0xd5, 0x81, 0xa2, 0xd2, 0x0a, 0x34, 0x8b, 0x44, 0x57, 0x46, 0x24, 0xd1, 0xa7, 0x4a, 0x7c, 0x59, 0xbe, 0x19, 0x18, 0x43, 0x9f, 0x74, 0x79, 0x6e, 0xab, 0x86, 0xf9, 0xa6, 0xc5, 0x5b, 0xb1, 0x94, 0xa2, 0x77, 0x63, 0x21, 0x5b, 0x3d, 0x49, 0xc8, 0xce, 0xe4, 0x87, 0x2b, 0xda, 0x84, 0xf9, 0x81, 0xe7, 0xf6, 0x3c, 0xe2, 0xfb, 0xb7, 0x89, 0xd1, 0xb5, 0x2d, 0x87, 0x04, 0xf3, 0x23, 0x18, 0xd1, 0x95, 0xc3, 0x83, 0xe5, 0xf9, 0x56, 0xb6, 0x0a, 0xce, 0xb3, 0xd5, 0xef, 0x8f, 0xc1, 0x85, 0x64, 0x05, 0xcc, 0x21, 0xa9, 0xda, 0x89, 0x48, 0xea, 0xb5, 0xc8, 0x66, 0x10, 0x0c, 0x5e, 0xad, 0x7e, 0xc6, 0x86, 0xb8, 0x05, 0xb3, 0x32, 0x1b, 0x04, 0x42, 0x49, 0xd3, 0xd5, 0xea, 0x6f, 0xc6, 0xc5, 0x38, 0xa9, 0x8f, 0x5e, 0x82, 0x69, 0x8f, 0xf3, 0xee, 0x00, 0x40, 0x70, 0xd7, 0x47, 0x24, 0xc0, 0x34, 0x8e, 0x0a, 0x71, 0x5c, 0x97, 0xf1, 0xd6, 0x90, 0x8e, 0x06, 0x00, 0x63, 0x71, 0xde, 0x7a, 0x2b, 0xa9, 0x80, 0xd3, 0x36, 0x68, 0x1d, 0x2e, 0x0d, 0x9d, 0x34, 0x94, 0x08, 0xe5, 0x2b, 0x12, 0xea, 0xd2, 0x66, 0x5a, 0x05, 0x67, 0xd9, 0xa1, 0xed, 0x18, 0x95, 0x1d, 0xe7, 0xe9, 0xf9, 0x46, 0xe1, 0x8d, 0x57, 0x98, 0xcb, 0x66, 0xd0, 0xed, 0x6a, 0x51, 0xba, 0xad, 0xff, 0x41, 0x8b, 0x16, 0x21, 0x45, 0x81, 0x8f, 0xbb, 0x65, 0x4a, 0x59, 0x44, 0xd8, 0x91, 0x9b, 0xcd, 0x7e, 0x6f, 0x8e, 0xc4, 0x7e, 0xc3, 0xe2, 0x79, 0x3c, 0xfd, 0xfd, 0xa3, 0x06, 0xb3, 0x77, 0x3b, 0x9d, 0xd6, 0xaa, 0xc3, 0x77, 0x4b, 0xcb, 0xa0, 0x3b, 0xac, 0x8a, 0x0e, 0x0c, 0xba, 0x93, 0xac, 0xa2, 0x4c, 0x86, 0xb9, 0x04, 0x3d, 0x0b, 0x55, 0xf6, 0x2f, 0x73, 0x9c, 0x87, 0xeb, 0x24, 0x4f, 0x32, 0xd5, 0x96, 0x6c, 0x7b, 0x10, 0xf9, 0x1b, 0x2b, 0x4d, 0xf4, 0x2d, 0x98, 0x60, 0x7b, 0x9b, 0x38, 0xdd, 0x82, 0xe4, 0x57, 0x3a, 0xd5, 0x10, 0x46, 0x21, 0x9f, 0x91, 0x0d, 0x38, 0x80, 0xd3, 0x77, 0x61, 0x2e, 0x32, 0x08, 0x3c, 0xb4, 0xc9, 0x5b, 0xac, 0x5e, 0xa1, 0x36, 0x54, 0x58, 0xef, 0xac, 0x2a, 0x95, 0x0b, 0x5c, 0x2f, 0x26, 0x26, 0x22, 0xe4, 0x1e, 0xec, 0x97, 0x8f, 0x05, 0x96, 0xbe, 0x01, 0x13, 0xab, 0xad, 0x86, 0xed, 0x0a, 0xbe, 0x61, 0x5a, 0x5d, 0x2f, 0x39, 0x53, 0x2b, 0xab, 0xb7, 0x31, 0xe6, 0x12, 0xa4, 0xc3, 0x38, 0xb9, 0x67, 0x92, 0x01, 0xe5, 0x14, 0x63, 0xb2, 0x01, 0x2c, 0x91, 0xde, 0xe1, 0x2d, 0x58, 0x4a, 0xf4, 0x9f, 0x94, 0x60, 0x42, 0x76, 0x7b, 0x06, 0xe7, 0x8f, 0xb5, 0xd8, 0xf9, 0xe3, 0xa9, 0x62, 0x4b, 0x90, 0x7b, 0xf8, 0xe8, 0x24, 0x0e, 0x1f, 0xd7, 0x0a, 0xe2, 0x1d, 0x7d, 0xf2, 0x78, 0xbf, 0x04, 0x33, 0xf1, 0xc5, 0x47, 0xcf, 0xc1, 0x14, 0x4b, 0xb5, 0x96, 0x49, 0x9a, 0x21, 0xc3, 0x53, 0xd7, 0x0f, 0xed, 0x50, 0x84, 0xa3, 0x7a, 0xa8, 0xa7, 0xcc, 0x5a, 0xae, 0x47, 0xe5, 0xa0, 0xf3, 0xa7, 0x74, 0x48, 0x2d, 0xbb, 0x26, 0x2e, 0xdb, 0x6b, 0xab, 0x0e, 0xdd, 0xf0, 0xda, 0xd4, 0xb3, 0x9c, 0x5e, 0xaa, 0x23, 0x06, 0x86, 0xa3, 0xc8, 0xe8, 0x6d, 0x96, 0xf6, 0x7d, 0x77, 0xe8, 0x99, 0x24, 0x8b, 0xbe, 0x05, 0xd4, 0x83, 0x6d, 0x84, 0xee, 0x9a, 0x6b, 0x1a, 0xb6, 0x58, 0x1c, 0x4c, 0xb6, 0x89, 0x47, 0x1c, 0x93, 0x04, 0x94, 0x49, 0x40, 0x60, 0x05, 0xa6, 0xff, 0x56, 0x83, 0x29, 0x39, 0x17, 0x67, 0x40, 0xd4, 0xdf, 0x88, 0x13, 0xf5, 0x27, 0x0a, 0xee, 0xd0, 0x6c, 0x96, 0xfe, 0x3b, 0x0d, 0x16, 0x03, 0xd7, 0x5d, 0xa3, 0xdb, 0x30, 0x6c, 0xc3, 0x31, 0x89, 0x17, 0xc4, 0xfa, 0x22, 0x94, 0xac, 0x81, 0x5c, 0x49, 0x90, 0x00, 0xa5, 0xd5, 0x16, 0x2e, 0x59, 0x03, 0x56, 0x45, 0x77, 0x5c, 0x9f, 0x72, 0x36, 0x2f, 0x0e, 0x8a, 0xca, 0xeb, 0xbb, 0xb2, 0x1d, 0x2b, 0x0d, 0xb4, 0x09, 0x95, 0x81, 0xeb, 0x51, 0x56, 0xb9, 0xca, 0x89, 0xf5, 0x3d, 0xc2, 0x6b, 0xb6, 0x6e, 0x32, 0x10, 0xc3, 0x9d, 0xce, 0x60, 0xb0, 0x40, 0xd3, 0x7f, 0xa8, 0xc1, 0xa3, 0x19, 0xfe, 0x4b, 0xd2, 0xd0, 0x85, 0x09, 0x4b, 0x08, 0x65, 0x7a, 0x79, 0xa1, 0x58, 0xb7, 0x19, 0x53, 0x11, 0xa6, 0xb6, 0x20, 0x85, 0x05, 0xd0, 0xfa, 0xaf, 0x34, 0xb8, 0x98, 0xf2, 0x97, 0xa7, 0x68, 0x16, 0xcf, 0x92, 0x6d, 0xab, 0x14, 0xcd, 0xc2, 0x92, 0x4b, 0xd0, 0x1b, 0x50, 0xe5, 0x6f, 0x44, 0xa6, 0x6b, 0xcb, 0x09, 0xac, 0x07, 0x13, 0xd8, 0x92, 0xed, 0x0f, 0x0e, 0x96, 0xaf, 0x64, 0x9c, 0xb5, 0x03, 0x31, 0x56, 0x00, 0x68, 0x19, 0x2a, 0xc4, 0xf3, 0x5c, 0x4f, 0x26, 0xfb, 0x49, 0x36, 0x53, 0x77, 0x58, 0x03, 0x16, 0xed, 0xfa, 0xaf, 0xc3, 0x20, 0x65, 0xd9, 0x97, 0xf9, 0xc7, 0x16, 0x27, 0x99, 0x18, 0xd9, 0xd2, 0x61, 0x2e, 0x41, 0x43, 0xb8, 0x60, 0x25, 0xd2, 0xb5, 0xdc, 0x9d, 0xf5, 0x62, 0xd3, 0xa8, 0xcc, 0x1a, 0x0b, 0x12, 0xfe, 0x42, 0x52, 0x82, 0x53, 0x5d, 0xe8, 0x04, 0x52, 0x5a, 0xe8, 0x4d, 0x18, 0xdb, 0xa1, 0x74, 0x90, 0x71, 0xd9, 0x7f, 0x4c, 0x91, 0x08, 0x5d, 0xa8, 0xf2, 0xd1, 0x75, 0x3a, 0x2d, 0xcc, 0xa1, 0xf4, 0xdf, 0x97, 0xd4, 0x7c, 0xf0, 0x13, 0xd2, 0x37, 0xd5, 0x68, 0x57, 0x6c, 0xc3, 0xf7, 0x79, 0x0a, 0x13, 0xa7, 0xf9, 0xb9, 0x88, 0xe3, 0x4a, 0x86, 0x53, 0xda, 0xa8, 0x13, 0x16, 0x4f, 0xed, 0x24, 0xc5, 0x73, 0x2a, 0xab, 0x70, 0xa2, 0xbb, 0x50, 0xa6, 0x76, 0xd1, 0x53, 0xb9, 0x44, 0xec, 0xac, 0xb5, 0x1b, 0x53, 0x72, 0xca, 0xcb, 0x9d, 0xb5, 0x36, 0x66, 0x10, 0x68, 0x03, 0x2a, 0xde, 0xd0, 0x26, 0xac, 0x0e, 0x94, 0x8b, 0xd7, 0x15, 0x36, 0x83, 0xe1, 0xe6, 0x63, 0xbf, 0x7c, 0x2c, 0x70, 0xf4, 0x1f, 0x69, 0x30, 0x1d, 0xab, 0x16, 0xc8, 0x83, 0xf3, 0x76, 0x64, 0xef, 0xc8, 0x79, 0x78, 0x7e, 0xf4, 0x5d, 0x27, 0x37, 0xfd, 0x9c, 0xec, 0xf7, 0x7c, 0x54, 0x86, 0x63, 0x7d, 0xe8, 0x06, 0x40, 0x38, 0x6c, 0xb6, 0x0f, 0x58, 0xf0, 0x8a, 0x0d, 0x2f, 0xf7, 0x01, 0x8b, 0x69, 0x1f, 0x8b, 0x76, 0x74, 0x03, 0xc0, 0x27, 0xa6, 0x47, 0x68, 0x33, 0x4c, 0x5c, 0xaa, 0x1c, 0xb7, 0x95, 0x04, 0x47, 0xb4, 0xf4, 0x3f, 0x69, 0x30, 0xdd, 0x24, 0xf4, 0xfb, 0xae, 0xb7, 0xdb, 0x72, 0x6d, 0xcb, 0xdc, 0x3f, 0x03, 0x12, 0x80, 0x63, 0x24, 0xe0, 0xb8, 0x7c, 0x19, 0xf3, 0x2e, 0x8f, 0x0a, 0xe8, 0x1f, 0x69, 0x30, 0x1f, 0xd3, 0xbc, 0x13, 0xe6, 0x03, 0x95, 0xa0, 0xb5, 0x42, 0x09, 0x3a, 0x06, 0xc3, 0x92, 0x5a, 0x76, 0x82, 0x46, 0x6b, 0x50, 0xa2, 0xae, 0x8c, 0xde, 0xd1, 0x30, 0x09, 0xf1, 0xc2, 0x9a, 0xd3, 0x71, 0x71, 0x89, 0xba, 0x6c, 0x21, 0x16, 0x62, 0x5a, 0xd1, 0x8c, 0xf6, 0x90, 0x46, 0x80, 0x61, 0x6c, 0xdb, 0x73, 0xfb, 0x27, 0x1e, 0x83, 0x5a, 0x88, 0x57, 0x3d, 0xb7, 0x8f, 0x39, 0x96, 0xfe, 0xb1, 0x06, 0x17, 0x63, 0x9a, 0x67, 0xc0, 0x1b, 0xde, 0x8c, 0xf3, 0x86, 0x6b, 0xa3, 0x0c, 0x24, 0x87, 0x3d, 0x7c, 0x5c, 0x4a, 0x0c, 0x83, 0x0d, 0x18, 0x6d, 0xc3, 0xd4, 0xc0, 0xed, 0xb6, 0x4f, 0xe1, 0x81, 0x76, 0x96, 0xf1, 0xb9, 0x56, 0x88, 0x85, 0xa3, 0xc0, 0xe8, 0x1e, 0x5c, 0x64, 0xd4, 0xc2, 0x1f, 0x18, 0x26, 0x69, 0x9f, 0xc2, 0x95, 0xd5, 0x23, 0xfc, 0x05, 0x28, 0x89, 0x88, 0xd3, 0x9d, 0xa0, 0x75, 0x98, 0xb0, 0x06, 0xfc, 0x7c, 0x21, 0x89, 0xe4, 0xb1, 0x24, 0x4c, 0x9c, 0x46, 0x44, 0x8a, 0x97, 0x3f, 0x70, 0x80, 0xa1, 0xff, 0x35, 0x19, 0x0d, 0x9c, 0xae, 0xbe, 0x16, 0xa1, 0x07, 0xf2, 0xad, 0xe6, 0x64, 0xd4, 0xa0, 0x29, 0x99, 0xc8, 0x49, 0x99, 0x75, 0x35, 0xc1, 0x5b, 0xbe, 0x02, 0x13, 0xc4, 0xe9, 0x72, 0xb2, 0x2e, 0x2e, 0x42, 0xf8, 0xa8, 0xee, 0x88, 0x26, 0x1c, 0xc8, 0xf4, 0x1f, 0x97, 0x13, 0xa3, 0xe2, 0x65, 0xf6, 0xbd, 0x53, 0x0b, 0x0e, 0x45, 0xf8, 0x73, 0x03, 0x64, 0x2b, 0xa4, 0x7f, 0x22, 0xe6, 0xbf, 0x31, 0x4a, 0xcc, 0x47, 0xeb, 0x5f, 0x2e, 0xf9, 0x43, 0xdf, 0x81, 0x71, 0x22, 0xba, 0x10, 0x55, 0xf5, 0xe6, 0x28, 0x5d, 0x84, 0xe9, 0x37, 0x3c, 0x67, 0xc9, 0x36, 0x89, 0x8a, 0x5e, 0x61, 0xf3, 0xc5, 0x74, 0xd9, 0xb1, 0x44, 0xb0, 0xe7, 0xc9, 0xc6, 0x63, 0x62, 0xd8, 0xaa, 0xf9, 0xc1, 0xc1, 0x32, 0x84, 0x3f, 0x71, 0xd4, 0x82, 0xbf, 0x9e, 0xc9, 0x3b, 0x9b, 0xb3, 0xf9, 0x02, 0x69, 0xb4, 0xd7, 0xb3, 0xd0, 0xb5, 0x53, 0x7b, 0x3d, 0x8b, 0x40, 0x1e, 0x7d, 0x86, 0xfd, 0x67, 0x09, 0x2e, 0x85, 0xca, 0x85, 0x5f, 0xcf, 0x32, 0x4c, 0xfe, 0xff, 0x15, 0x52, 0xb1, 0x17, 0xad, 0x70, 0xea, 0xfe, 0xfb, 0x5e, 0xb4, 0x42, 0xdf, 0x72, 0xaa, 0xdd, 0x6f, 0x4a, 0xd1, 0x01, 0x8c, 0xf8, 0xac, 0x72, 0x0a, 0x1f, 0xe2, 0x7c, 0xe1, 0x5e, 0x66, 0xf4, 0xbf, 0x94, 0xe1, 0x42, 0x72, 0x37, 0xc6, 0x6e, 0xdf, 0xb5, 0x63, 0x6f, 0xdf, 0x5b, 0x30, 0xb7, 0x3d, 0xb4, 0xed, 0x7d, 0x3e, 0x86, 0xc8, 0x15, 0xbc, 0xb8, 0xb7, 0xff, 0x92, 0xb4, 0x9c, 0x7b, 0x35, 0x43, 0x07, 0x67, 0x5a, 0xa6, 0x2f, 0xe3, 0xc7, 0xfe, 0xd3, 0xcb, 0xf8, 0xca, 0x09, 0x2e, 0xe3, 0xb3, 0xdf, 0x33, 0xca, 0x27, 0x7a, 0xcf, 0x38, 0xc9, 0x4d, 0x7c, 0x46, 0x12, 0x3b, 0xf6, 0xab, 0x92, 0x97, 0x61, 0x26, 0xfe, 0x3a, 0x24, 0xd6, 0x52, 0x3c, 0x50, 0xc9, 0xb7, 0x98, 0xc8, 0x5a, 0x8a, 0x76, 0xac, 0x34, 0xf4, 0x43, 0x0d, 0x2e, 0x67, 0x7f, 0x05, 0x82, 0x6c, 0x98, 0xe9, 0x1b, 0xf7, 0xa2, 0x5f, 0xe6, 0x68, 0x27, 0x64, 0x2b, 0xfc, 0x59, 0x60, 0x3d, 0x86, 0x85, 0x13, 0xd8, 0xe8, 0x1d, 0xa8, 0xf6, 0x8d, 0x7b, 0xed, 0xa1, 0xd7, 0x23, 0x27, 0x66, 0x45, 0x7c, 0x1b, 0xad, 0x4b, 0x14, 0xac, 0xf0, 0xf4, 0xcf, 0x35, 0x98, 0xcf, 0xb9, 0xec, 0xff, 0x1f, 0x1a, 0xe5, 0xfb, 0x25, 0xa8, 0xb4, 0x4d, 0xc3, 0x26, 0x67, 0x40, 0x28, 0x5e, 0x8f, 0x11, 0x8a, 0xe3, 0xbe, 0x26, 0xe5, 0x5e, 0xe5, 0x72, 0x09, 0x9c, 0xe0, 0x12, 0x4f, 0x15, 0x42, 0x3b, 0x9a, 0x46, 0xbc, 0x00, 0x93, 0xaa, 0xd3, 0xd1, 0xb2, 0x9b, 0xfe, 0xcb, 0x12, 0x4c, 0x45, 0xba, 0x18, 0x31, 0x37, 0x6e, 0xc7, 0x0a, 0x42, 0xb9, 0xc0, 0x4d, 0x4b, 0xa4, 0xaf, 0x5a, 0x50, 0x02, 0xc4, 0xd7, 0x10, 0xe1, 0xfb, 0x77, 0xba, 0x32, 0xbc, 0x0c, 0x33, 0xd4, 0xf0, 0x7a, 0x84, 0x2a, 0xda, 0x2e, 0x2e, 0x19, 0xd5, 0x67, 0x39, 0x9d, 0x98, 0x14, 0x27, 0xb4, 0x17, 0x5f, 0x82, 0xe9, 0x58, 0x67, 0xa3, 0x7c, 0xcc, 0xd0, 0x58, 0xb9, 0xff, 0xd9, 0xd2, 0xb9, 0x4f, 0x3e, 0x5b, 0x3a, 0xf7, 0xe9, 0x67, 0x4b, 0xe7, 0x7e, 0x70, 0xb8, 0xa4, 0xdd, 0x3f, 0x5c, 0xd2, 0x3e, 0x39, 0x5c, 0xd2, 0x3e, 0x3d, 0x5c, 0xd2, 0xfe, 0x7e, 0xb8, 0xa4, 0xfd, 0xf4, 0xf3, 0xa5, 0x73, 0xef, 0x3c, 0x76, 0xe4, 0xff, 0x6d, 0xf8, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf3, 0x1c, 0xa0, 0x16, 0x14, 0x31, 0x00, 0x00, } 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 *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 if m.PathType != nil { i -= len(*m.PathType) copy(dAtA[i:], *m.PathType) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PathType))) i-- dAtA[i] = 0x1a } { 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 *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 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] = 0x1a } { 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 *IngressLoadBalancerIngress) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IngressLoadBalancerIngress) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IngressLoadBalancerIngress) 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] = 0x22 } } 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 *IngressLoadBalancerStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IngressLoadBalancerStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IngressLoadBalancerStatus) 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 *IngressPortStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IngressPortStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IngressPortStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Error != nil { i -= len(*m.Error) copy(dAtA[i:], *m.Error) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Error))) i-- dAtA[i] = 0x1a } i -= len(m.Protocol) copy(dAtA[i:], m.Protocol) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Protocol))) i-- dAtA[i] = 0x12 i = encodeVarintGenerated(dAtA, i, uint64(m.Port)) i-- dAtA[i] = 0x8 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 m.IngressClassName != nil { i -= len(*m.IngressClassName) copy(dAtA[i:], *m.IngressClassName) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.IngressClassName))) 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 } } 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.EndPort != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.EndPort)) i-- dAtA[i] = 0x18 } 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 *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 *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.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 *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 *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 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 *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 *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)) if m.PathType != nil { l = len(*m.PathType) 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 *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)) if m.Resource != nil { l = m.Resource.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 *IngressLoadBalancerIngress) 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)) if len(m.Ports) > 0 { for _, e := range m.Ports { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *IngressLoadBalancerStatus) 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 *IngressPortStatus) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 1 + sovGenerated(uint64(m.Port)) l = len(m.Protocol) n += 1 + l + sovGenerated(uint64(l)) if m.Error != nil { l = len(*m.Error) 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)) } } if m.IngressClassName != nil { l = len(*m.IngressClassName) 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)) } if m.EndPort != nil { n += 1 + sovGenerated(uint64(*m.EndPort)) } 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 *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 *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)) } if m.MaxSurge != nil { l = m.MaxSurge.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 *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 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 *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 *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) + `,`, `PathType:` + valueToStringGenerated(this.PathType) + `,`, `}`, }, "") 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 *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) + `,`, `Resource:` + strings.Replace(fmt.Sprintf("%v", this.Resource), "TypedLocalObjectReference", "v11.TypedLocalObjectReference", 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 *IngressLoadBalancerIngress) String() string { if this == nil { return "nil" } repeatedStringForPorts := "[]IngressPortStatus{" for _, f := range this.Ports { repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "IngressPortStatus", "IngressPortStatus", 1), `&`, ``, 1) + "," } repeatedStringForPorts += "}" s := strings.Join([]string{`&IngressLoadBalancerIngress{`, `IP:` + fmt.Sprintf("%v", this.IP) + `,`, `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, `Ports:` + repeatedStringForPorts + `,`, `}`, }, "") return s } func (this *IngressLoadBalancerStatus) String() string { if this == nil { return "nil" } repeatedStringForIngress := "[]IngressLoadBalancerIngress{" for _, f := range this.Ingress { repeatedStringForIngress += strings.Replace(strings.Replace(f.String(), "IngressLoadBalancerIngress", "IngressLoadBalancerIngress", 1), `&`, ``, 1) + "," } repeatedStringForIngress += "}" s := strings.Join([]string{`&IngressLoadBalancerStatus{`, `Ingress:` + repeatedStringForIngress + `,`, `}`, }, "") return s } func (this *IngressPortStatus) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&IngressPortStatus{`, `Port:` + fmt.Sprintf("%v", this.Port) + `,`, `Protocol:` + fmt.Sprintf("%v", this.Protocol) + `,`, `Error:` + valueToStringGenerated(this.Error) + `,`, `}`, }, "") 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 + `,`, `IngressClassName:` + valueToStringGenerated(this.IngressClassName) + `,`, `}`, }, "") return s } func (this *IngressStatus) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&IngressStatus{`, `LoadBalancer:` + strings.Replace(strings.Replace(this.LoadBalancer.String(), "IngressLoadBalancerStatus", "IngressLoadBalancerStatus", 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) + `,`, `EndPort:` + valueToStringGenerated(this.EndPort) + `,`, `}`, }, "") 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 *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 *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) + `,`, `MaxSurge:` + strings.Replace(fmt.Sprintf("%v", this.MaxSurge), "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 *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 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 *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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (iNdEx+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) || (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) || (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) || (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) || (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 case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PathType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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 := PathType(dAtA[iNdEx:postIndex]) m.PathType = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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 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 m.Resource == nil { m.Resource = &v11.TypedLocalObjectReference{} } if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IngressLoadBalancerIngress) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IngressLoadBalancerIngress: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IngressLoadBalancerIngress: 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 case 4: 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, IngressPortStatus{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IngressLoadBalancerStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IngressLoadBalancerStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IngressLoadBalancerStatus: 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, IngressLoadBalancerIngress{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IngressPortStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IngressPortStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IngressPortStatus: 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 } } 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 = k8s_io_api_core_v1.Protocol(dAtA[iNdEx:postIndex]) 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 } s := string(dAtA[iNdEx:postIndex]) m.Error = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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 case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field IngressClassName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.IngressClassName = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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 case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field EndPort", 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.EndPort = &v default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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 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) || (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) || (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) || (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) || (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) || (iNdEx+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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/extensions/v1beta1/generated.proto000066400000000000000000001320151453636404600230250ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/extensions/v1beta1"; // 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; } // DaemonSetUpdateStrategy indicates the strategy that the DaemonSet // controller will use to perform updates. It includes any additional parameters // necessary to perform the update for the indicated strategy. 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 ReplicaSets". // +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; } // HTTPIngressPath associates a path with a backend. Incoming urls matching the // path are forwarded to the backend. message HTTPIngressPath { // Path is 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 '/'. When unspecified, // all paths from incoming requests are matched. // +optional optional string path = 1; // PathType determines the interpretation of the Path matching. PathType can // be one of the following values: // * Exact: Matches the URL path exactly. // * Prefix: Matches based on a URL path prefix split by '/'. Matching is // done on a path element by element basis. A path element refers is the // list of labels in the path split by the '/' separator. A request is a // match for path p if every p is an element-wise prefix of p of the // request path. Note that if the last element of the path is a substring // of the last element in request path, it is not a match (e.g. /foo/bar // matches /foo/bar/baz, but does not match /foo/barbaz). // * ImplementationSpecific: Interpretation of the Path matching is up to // the IngressClass. Implementations can treat this as a separate PathType // or treat it identically to Prefix or Exact path types. // Implementations are required to support all path types. // Defaults to ImplementationSpecific. optional string pathType = 3; // 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; } // DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock. // IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") 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.0/24" or "2001:db8::/64" 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.0/24" or "2001:db8::/64" // 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 optional string serviceName = 1; // Specifies the port of the referenced service. // +optional optional k8s.io.apimachinery.pkg.util.intstr.IntOrString servicePort = 2; // Resource is an ObjectRef to another Kubernetes resource in the namespace // of the Ingress object. If resource is specified, serviceName and servicePort // must not be specified. // +optional optional k8s.io.api.core.v1.TypedLocalObjectReference resource = 3; } // 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; } // IngressLoadBalancerIngress represents the status of a load-balancer ingress point. message IngressLoadBalancerIngress { // IP is set for load-balancer ingress points that are IP based. // +optional optional string ip = 1; // Hostname is set for load-balancer ingress points that are DNS based. // +optional optional string hostname = 2; // Ports provides information about the ports exposed by this LoadBalancer. // +listType=atomic // +optional repeated IngressPortStatus ports = 4; } // LoadBalancerStatus represents the status of a load-balancer. message IngressLoadBalancerStatus { // Ingress is a list containing ingress points for the load-balancer. // +optional repeated IngressLoadBalancerIngress ingress = 1; } // IngressPortStatus represents the error condition of a service port message IngressPortStatus { // Port is the port number of the ingress port. optional int32 port = 1; // Protocol is the protocol of the ingress port. // The supported values are: "TCP", "UDP", "SCTP" optional string protocol = 2; // Error is to record the problem with the service port // The format of the error shall comply with the following rules: // - built-in error values shall be specified in this file and those shall use // CamelCase names // - cloud provider specific error values must have names that comply with the // format foo.example.com/CamelCase. // --- // The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) // +optional // +kubebuilder:validation:Required // +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` // +kubebuilder:validation:MaxLength=316 optional string error = 3; } // 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 RFC 3986: // 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. // // Host can be "precise" which is a domain name without the terminating dot of // a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name // prefixed with a single wildcard label (e.g. "*.foo.com"). // The wildcard character '*' must appear by itself as the first DNS label and // matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). // Requests will be matched against the Host field in the following way: // 1. If Host is precise, the request matches this rule if the http host header is equal to Host. // 2. If Host is a wildcard, then the request matches this rule if the http host header // is to equal to the suffix (removing the first label) of the wildcard rule. // +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 { // http is a list of http selectors pointing to backends. // A path is 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 '/'. // A backend defines the referenced service endpoint to which the traffic // will be forwarded to. optional HTTPIngressRuleValue http = 1; } // IngressSpec describes the Ingress the user wishes to exist. message IngressSpec { // IngressClassName is the name of the IngressClass cluster resource. The // associated IngressClass defines which controller will implement the // resource. This replaces the deprecated `kubernetes.io/ingress.class` // annotation. For backwards compatibility, when that annotation is set, it // must be given precedence over this field. The controller may emit a // warning if the field and annotation have different values. // Implementations of this API should ignore Ingresses without a class // specified. An IngressClass resource may be marked as default, which can // be used to set a default value for this field. For more information, // refer to the IngressClass documentation. // +optional optional string ingressClassName = 4; // 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 IngressLoadBalancerStatus 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; // 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; // If set, indicates that the range of ports from port to endPort, inclusive, // should be allowed by the policy. This field cannot be defined if the port field // is not defined or if the port field is defined as a named (string) port. // The endPort must be equal or greater than port. // +optional optional int32 endPort = 3; } // 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; } // 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 observed 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; } // 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 if MaxSurge is 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; // The maximum number of nodes with an existing available DaemonSet pod that // can have an updated DaemonSet pod during during an update. // 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 to a minimum of 1. // Default value is 0. // 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 a new pod created before the old pod is marked as deleted. // The update starts by launching new pods on 30% of nodes. Once an updated // pod is available (Ready for at least minReadySeconds) the old DaemonSet pod // on that node is marked deleted. If the old pod becomes unavailable for any // reason (Ready transitions to false, is evicted, or is drained) an updated // pod is immediatedly created on that node without considering surge limits. // Allowing surge implies the possibility that the resources consumed by the // daemonset on any given node can double if the readiness check fails, and // so resource intensive daemonsets should take into account that they may // cause evictions during disruption. // This is an alpha field and requires enabling DaemonSetUpdateSurge feature gate. // +optional optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2; } // 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; } // 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; // selector is a label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ // +optional // +mapType=atomic 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; } golang-k8s-api-0.29.0/extensions/v1beta1/register.go000066400000000000000000000036451453636404600221630ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Deployment{}, &DeploymentList{}, &DeploymentRollback{}, &Scale{}, &DaemonSetList{}, &DaemonSet{}, &Ingress{}, &IngressList{}, &ReplicaSet{}, &ReplicaSetList{}, &NetworkPolicy{}, &NetworkPolicyList{}, ) // Add the watch version that applies metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/extensions/v1beta1/types.go000066400000000000000000001716561453636404600215130ustar00rootroot00000000000000/* 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 "k8s.io/api/apps/v1beta1" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/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"` // selector is a label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ // +optional // +mapType=atomic 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.1 // +k8s:prerelease-lifecycle-gen:deprecated=1.2 // +k8s:prerelease-lifecycle-gen:removed=1.16 // 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 // +genclient:method=ApplyScale,verb=apply,subresource=scale,input=Scale,result=Scale // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.1 // +k8s:prerelease-lifecycle-gen:deprecated=1.8 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,Deployment // 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 ReplicaSets". // +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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.2 // +k8s:prerelease-lifecycle-gen:deprecated=1.8 // +k8s:prerelease-lifecycle-gen:removed=1.16 // 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=k8s.io/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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.1 // +k8s:prerelease-lifecycle-gen:deprecated=1.8 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,DeploymentList // 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 indicates the strategy that the DaemonSet // controller will use to perform updates. It includes any additional parameters // necessary to perform the update for the indicated strategy. 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 if MaxSurge is 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"` // The maximum number of nodes with an existing available DaemonSet pod that // can have an updated DaemonSet pod during during an update. // 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 to a minimum of 1. // Default value is 0. // 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 a new pod created before the old pod is marked as deleted. // The update starts by launching new pods on 30% of nodes. Once an updated // pod is available (Ready for at least minReadySeconds) the old DaemonSet pod // on that node is marked deleted. If the old pod becomes unavailable for any // reason (Ready transitions to false, is evicted, or is drained) an updated // pod is immediatedly created on that node without considering surge limits. // Allowing surge implies the possibility that the resources consumed by the // daemonset on any given node can double if the readiness check fails, and // so resource intensive daemonsets should take into account that they may // cause evictions during disruption. // This is an alpha field and requires enabling DaemonSetUpdateSurge feature gate. // +optional MaxSurge *intstr.IntOrString `json:"maxSurge,omitempty" protobuf:"bytes,2,opt,name=maxSurge"` } // 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=k8s.io/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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.1 // +k8s:prerelease-lifecycle-gen:deprecated=1.8 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,DaemonSet // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.1 // +k8s:prerelease-lifecycle-gen:deprecated=1.8 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,DaemonSetList // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.1 // +k8s:prerelease-lifecycle-gen:deprecated=1.14 // +k8s:prerelease-lifecycle-gen:removed=1.22 // +k8s:prerelease-lifecycle-gen:replacement=networking.k8s.io,v1,Ingress // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.1 // +k8s:prerelease-lifecycle-gen:deprecated=1.14 // +k8s:prerelease-lifecycle-gen:removed=1.22 // +k8s:prerelease-lifecycle-gen:replacement=networking.k8s.io,v1,IngressList // 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 { // IngressClassName is the name of the IngressClass cluster resource. The // associated IngressClass defines which controller will implement the // resource. This replaces the deprecated `kubernetes.io/ingress.class` // annotation. For backwards compatibility, when that annotation is set, it // must be given precedence over this field. The controller may emit a // warning if the field and annotation have different values. // Implementations of this API should ignore Ingresses without a class // specified. An IngressClass resource may be marked as default, which can // be used to set a default value for this field. For more information, // refer to the IngressClass documentation. // +optional IngressClassName *string `json:"ingressClassName,omitempty" protobuf:"bytes,4,opt,name=ingressClassName"` // 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 IngressLoadBalancerStatus `json:"loadBalancer,omitempty" protobuf:"bytes,1,opt,name=loadBalancer"` } // LoadBalancerStatus represents the status of a load-balancer. type IngressLoadBalancerStatus struct { // Ingress is a list containing ingress points for the load-balancer. // +optional Ingress []IngressLoadBalancerIngress `json:"ingress,omitempty" protobuf:"bytes,1,rep,name=ingress"` } // IngressLoadBalancerIngress represents the status of a load-balancer ingress point. type IngressLoadBalancerIngress struct { // IP is set for load-balancer ingress points that are IP based. // +optional IP string `json:"ip,omitempty" protobuf:"bytes,1,opt,name=ip"` // Hostname is set for load-balancer ingress points that are DNS based. // +optional Hostname string `json:"hostname,omitempty" protobuf:"bytes,2,opt,name=hostname"` // Ports provides information about the ports exposed by this LoadBalancer. // +listType=atomic // +optional Ports []IngressPortStatus `json:"ports,omitempty" protobuf:"bytes,4,rep,name=ports"` } // IngressPortStatus represents the error condition of a service port type IngressPortStatus struct { // Port is the port number of the ingress port. Port int32 `json:"port" protobuf:"varint,1,opt,name=port"` // Protocol is the protocol of the ingress port. // The supported values are: "TCP", "UDP", "SCTP" Protocol v1.Protocol `json:"protocol" protobuf:"bytes,2,opt,name=protocol,casttype=Protocol"` // Error is to record the problem with the service port // The format of the error shall comply with the following rules: // - built-in error values shall be specified in this file and those shall use // CamelCase names // - cloud provider specific error values must have names that comply with the // format foo.example.com/CamelCase. // --- // The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) // +optional // +kubebuilder:validation:Required // +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` // +kubebuilder:validation:MaxLength=316 Error *string `json:"error,omitempty" protobuf:"bytes,3,opt,name=error"` } // 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 RFC 3986: // 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. // // Host can be "precise" which is a domain name without the terminating dot of // a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name // prefixed with a single wildcard label (e.g. "*.foo.com"). // The wildcard character '*' must appear by itself as the first DNS label and // matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). // Requests will be matched against the Host field in the following way: // 1. If Host is precise, the request matches this rule if the http host header is equal to Host. // 2. If Host is a wildcard, then the request matches this rule if the http host header // is to equal to the suffix (removing the first label) of the wildcard rule. // +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. // http is a list of http selectors pointing to backends. // A path is 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 '/'. // A backend defines the referenced service endpoint to which the traffic // will be forwarded to. 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. } // PathType represents the type of path referred to by a HTTPIngressPath. type PathType string const ( // PathTypeExact matches the URL path exactly and with case sensitivity. PathTypeExact = PathType("Exact") // PathTypePrefix matches based on a URL path prefix split by '/'. Matching // is case sensitive and done on a path element by element basis. A path // element refers to the list of labels in the path split by the '/' // separator. A request is a match for path p if every p is an element-wise // prefix of p of the request path. Note that if the last element of the // path is a substring of the last element in request path, it is not a // match (e.g. /foo/bar matches /foo/bar/baz, but does not match // /foo/barbaz). If multiple matching paths exist in an Ingress spec, the // longest matching path is given priority. // Examples: // - /foo/bar does not match requests to /foo/barbaz // - /foo/bar matches request to /foo/bar and /foo/bar/baz // - /foo and /foo/ both match requests to /foo and /foo/. If both paths are // present in an Ingress spec, the longest matching path (/foo/) is given // priority. PathTypePrefix = PathType("Prefix") // PathTypeImplementationSpecific matching is up to the IngressClass. // Implementations can treat this as a separate PathType or treat it // identically to Prefix or Exact path types. PathTypeImplementationSpecific = PathType("ImplementationSpecific") ) // HTTPIngressPath associates a path with a backend. Incoming urls matching the // path are forwarded to the backend. type HTTPIngressPath struct { // Path is 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 '/'. When unspecified, // all paths from incoming requests are matched. // +optional Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` // PathType determines the interpretation of the Path matching. PathType can // be one of the following values: // * Exact: Matches the URL path exactly. // * Prefix: Matches based on a URL path prefix split by '/'. Matching is // done on a path element by element basis. A path element refers is the // list of labels in the path split by the '/' separator. A request is a // match for path p if every p is an element-wise prefix of p of the // request path. Note that if the last element of the path is a substring // of the last element in request path, it is not a match (e.g. /foo/bar // matches /foo/bar/baz, but does not match /foo/barbaz). // * ImplementationSpecific: Interpretation of the Path matching is up to // the IngressClass. Implementations can treat this as a separate PathType // or treat it identically to Prefix or Exact path types. // Implementations are required to support all path types. // Defaults to ImplementationSpecific. PathType *PathType `json:"pathType,omitempty" protobuf:"bytes,3,opt,name=pathType"` // 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. // +optional ServiceName string `json:"serviceName,omitempty" protobuf:"bytes,1,opt,name=serviceName"` // Specifies the port of the referenced service. // +optional ServicePort intstr.IntOrString `json:"servicePort,omitempty" protobuf:"bytes,2,opt,name=servicePort"` // Resource is an ObjectRef to another Kubernetes resource in the namespace // of the Ingress object. If resource is specified, serviceName and servicePort // must not be specified. // +optional Resource *v1.TypedLocalObjectReference `json:"resource,omitempty" protobuf:"bytes,3,opt,name=resource"` } // +genclient // +genclient:method=GetScale,verb=get,subresource=scale,result=Scale // +genclient:method=UpdateScale,verb=update,subresource=scale,input=Scale,result=Scale // +genclient:method=ApplyScale,verb=apply,subresource=scale,input=Scale,result=Scale // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.2 // +k8s:prerelease-lifecycle-gen:deprecated=1.8 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,ReplicaSet // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.2 // +k8s:prerelease-lifecycle-gen:deprecated=1.8 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=apps,v1,ReplicaSetList // 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 observed 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=k8s.io/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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.3 // +k8s:prerelease-lifecycle-gen:deprecated=1.9 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=networking.k8s.io,v1,NetworkPolicy // 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"` // Status is tombstoned to show why 3 is a reserved protobuf tag. // This commented field should remain, so in the future if we decide to reimplement // NetworkPolicyStatus a different protobuf name and tag SHOULD be used! // Status NetworkPolicyStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // 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=k8s.io/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. // 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"` // If set, indicates that the range of ports from port to endPort, inclusive, // should be allowed by the policy. This field cannot be defined if the port field // is not defined or if the port field is defined as a named (string) port. // The endPort must be equal or greater than port. // +optional EndPort *int32 `json:"endPort,omitempty" protobuf:"bytes,3,opt,name=endPort"` } // DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock. // IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") 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.0/24" or "2001:db8::/64" 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.0/24" or "2001:db8::/64" // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.3 // +k8s:prerelease-lifecycle-gen:deprecated=1.9 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=networking.k8s.io,v1,NetworkPolicyList // 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"` } golang-k8s-api-0.29.0/extensions/v1beta1/types_swagger_doc_generated.go000066400000000000000000001247211453636404600260640ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. 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{ "": "DaemonSetUpdateStrategy indicates the strategy that the DaemonSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.", "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 ReplicaSets\".", "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_HTTPIngressPath = map[string]string{ "": "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", "path": "Path is 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 '/'. When unspecified, all paths from incoming requests are matched.", "pathType": "PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types. Defaults to ImplementationSpecific.", "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_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.0/24\",\"2001:db8::/64\") 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.0/24\" or \"2001:db8::/64\"", "except": "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" 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.", "resource": "Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified.", } 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_IngressLoadBalancerIngress = map[string]string{ "": "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", "ip": "IP is set for load-balancer ingress points that are IP based.", "hostname": "Hostname is set for load-balancer ingress points that are DNS based.", "ports": "Ports provides information about the ports exposed by this LoadBalancer.", } func (IngressLoadBalancerIngress) SwaggerDoc() map[string]string { return map_IngressLoadBalancerIngress } var map_IngressLoadBalancerStatus = map[string]string{ "": "LoadBalancerStatus represents the status of a load-balancer.", "ingress": "Ingress is a list containing ingress points for the load-balancer.", } func (IngressLoadBalancerStatus) SwaggerDoc() map[string]string { return map_IngressLoadBalancerStatus } var map_IngressPortStatus = map[string]string{ "": "IngressPortStatus represents the error condition of a service port", "port": "Port is the port number of the ingress port.", "protocol": "Protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"", "error": "Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", } func (IngressPortStatus) SwaggerDoc() map[string]string { return map_IngressPortStatus } 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 RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to\n the 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.\n\nHost can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.", } 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.", "http": "http is a list of http selectors pointing to backends. A path is 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 '/'. A backend defines the referenced service endpoint to which the traffic will be forwarded to.", } func (IngressRuleValue) SwaggerDoc() map[string]string { return map_IngressRuleValue } var map_IngressSpec = map[string]string{ "": "IngressSpec describes the Ingress the user wishes to exist.", "ingressClassName": "IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation.", "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": "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.", "endPort": "If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.", } 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_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 observed 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_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 if MaxSurge is 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.", "maxSurge": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. 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 to a minimum of 1. Default value is 0. 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 a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. This is an alpha field and requires enabling DaemonSetUpdateSurge feature gate.", } 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_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": "selector is a label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/", "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 } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/extensions/v1beta1/types_test.go000066400000000000000000000025071453636404600225360ustar00rootroot00000000000000/* Copyright 2023 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 ( "reflect" "strings" "testing" ) // Test_ServiceSpecRemovedFieldProtobufNumberReservation tests that the reserved protobuf field numbers // for removed fields are not re-used. DO NOT remove this test for any reason, this ensures that tombstoned // protobuf field numbers are not accidentally reused by other fields. func Test_NetworkPolicyRemovedFieldProtobufNumberReservation(t *testing.T) { obj := reflect.ValueOf(NetworkPolicy{}).Type() for i := 0; i < obj.NumField(); i++ { f := obj.Field(i) protobufSpec := f.Tag.Get("protobuf") if protobufSpec == "" { continue } protobufNum := strings.Split(protobufSpec, ",")[1] if protobufNum == "3" { t.Errorf("protobuf 3 in NetworkPolicy is reserved for removed status field") } } } golang-k8s-api-0.29.0/extensions/v1beta1/zz_generated.deepcopy.go000066400000000000000000001023041453636404600246170ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" intstr "k8s.io/apimachinery/pkg/util/intstr" ) // 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 *HTTPIngressPath) DeepCopyInto(out *HTTPIngressPath) { *out = *in if in.PathType != nil { in, out := &in.PathType, &out.PathType *out = new(PathType) **out = **in } in.Backend.DeepCopyInto(&out.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)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } 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 *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 if in.Resource != nil { in, out := &in.Resource, &out.Resource *out = new(corev1.TypedLocalObjectReference) (*in).DeepCopyInto(*out) } 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 *IngressLoadBalancerIngress) DeepCopyInto(out *IngressLoadBalancerIngress) { *out = *in if in.Ports != nil { in, out := &in.Ports, &out.Ports *out = make([]IngressPortStatus, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressLoadBalancerIngress. func (in *IngressLoadBalancerIngress) DeepCopy() *IngressLoadBalancerIngress { if in == nil { return nil } out := new(IngressLoadBalancerIngress) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *IngressLoadBalancerStatus) DeepCopyInto(out *IngressLoadBalancerStatus) { *out = *in if in.Ingress != nil { in, out := &in.Ingress, &out.Ingress *out = make([]IngressLoadBalancerIngress, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressLoadBalancerStatus. func (in *IngressLoadBalancerStatus) DeepCopy() *IngressLoadBalancerStatus { if in == nil { return nil } out := new(IngressLoadBalancerStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *IngressPortStatus) DeepCopyInto(out *IngressPortStatus) { *out = *in if in.Error != nil { in, out := &in.Error, &out.Error *out = new(string) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressPortStatus. func (in *IngressPortStatus) DeepCopy() *IngressPortStatus { if in == nil { return nil } out := new(IngressPortStatus) in.DeepCopyInto(out) return out } // 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.IngressClassName != nil { in, out := &in.IngressClassName, &out.IngressClassName *out = new(string) **out = **in } if in.Backend != nil { in, out := &in.Backend, &out.Backend *out = new(IngressBackend) (*in).DeepCopyInto(*out) } 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 } if in.EndPort != nil { in, out := &in.EndPort, &out.EndPort *out = new(int32) **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 *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 *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 } 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 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 *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 } golang-k8s-api-0.29.0/extensions/v1beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000443651453636404600271070ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta1 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *DaemonSet) APILifecycleIntroduced() (major, minor int) { return 1, 1 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *DaemonSet) APILifecycleDeprecated() (major, minor int) { return 1, 8 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *DaemonSet) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "DaemonSet"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *DaemonSet) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *DaemonSetList) APILifecycleIntroduced() (major, minor int) { return 1, 1 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *DaemonSetList) APILifecycleDeprecated() (major, minor int) { return 1, 8 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *DaemonSetList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "DaemonSetList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *DaemonSetList) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *Deployment) APILifecycleIntroduced() (major, minor int) { return 1, 1 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *Deployment) APILifecycleDeprecated() (major, minor int) { return 1, 8 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *Deployment) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "Deployment"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *Deployment) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *DeploymentList) APILifecycleIntroduced() (major, minor int) { return 1, 1 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *DeploymentList) APILifecycleDeprecated() (major, minor int) { return 1, 8 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *DeploymentList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "DeploymentList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *DeploymentList) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *DeploymentRollback) APILifecycleIntroduced() (major, minor int) { return 1, 2 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *DeploymentRollback) APILifecycleDeprecated() (major, minor int) { return 1, 8 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *DeploymentRollback) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *Ingress) APILifecycleIntroduced() (major, minor int) { return 1, 1 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *Ingress) APILifecycleDeprecated() (major, minor int) { return 1, 14 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *Ingress) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "networking.k8s.io", Version: "v1", Kind: "Ingress"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *Ingress) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *IngressList) APILifecycleIntroduced() (major, minor int) { return 1, 1 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *IngressList) APILifecycleDeprecated() (major, minor int) { return 1, 14 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *IngressList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "networking.k8s.io", Version: "v1", Kind: "IngressList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *IngressList) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *NetworkPolicy) APILifecycleIntroduced() (major, minor int) { return 1, 3 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *NetworkPolicy) APILifecycleDeprecated() (major, minor int) { return 1, 9 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *NetworkPolicy) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "networking.k8s.io", Version: "v1", Kind: "NetworkPolicy"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *NetworkPolicy) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *NetworkPolicyList) APILifecycleIntroduced() (major, minor int) { return 1, 3 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *NetworkPolicyList) APILifecycleDeprecated() (major, minor int) { return 1, 9 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *NetworkPolicyList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "networking.k8s.io", Version: "v1", Kind: "NetworkPolicyList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *NetworkPolicyList) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ReplicaSet) APILifecycleIntroduced() (major, minor int) { return 1, 2 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ReplicaSet) APILifecycleDeprecated() (major, minor int) { return 1, 8 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *ReplicaSet) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "ReplicaSet"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ReplicaSet) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ReplicaSetList) APILifecycleIntroduced() (major, minor int) { return 1, 2 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ReplicaSetList) APILifecycleDeprecated() (major, minor int) { return 1, 8 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *ReplicaSetList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "ReplicaSetList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ReplicaSetList) APILifecycleRemoved() (major, minor int) { return 1, 16 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *Scale) APILifecycleIntroduced() (major, minor int) { return 1, 1 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *Scale) APILifecycleDeprecated() (major, minor int) { return 1, 2 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *Scale) APILifecycleRemoved() (major, minor int) { return 1, 16 } golang-k8s-api-0.29.0/flowcontrol/000077500000000000000000000000001453636404600167065ustar00rootroot00000000000000golang-k8s-api-0.29.0/flowcontrol/v1/000077500000000000000000000000001453636404600172345ustar00rootroot00000000000000golang-k8s-api-0.29.0/flowcontrol/v1/doc.go000066400000000000000000000015021453636404600203260ustar00rootroot00000000000000/* Copyright 2023 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 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=flowcontrol.apiserver.k8s.io // Package v1 holds api types of version v1 for group "flowcontrol.apiserver.k8s.io". package v1 // import "k8s.io/api/flowcontrol/v1" golang-k8s-api-0.29.0/flowcontrol/v1/generated.pb.go000066400000000000000000004336531453636404600221370ustar00rootroot00000000000000/* 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/k8s.io/api/flowcontrol/v1/generated.proto package v1 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *ExemptPriorityLevelConfiguration) Reset() { *m = ExemptPriorityLevelConfiguration{} } func (*ExemptPriorityLevelConfiguration) ProtoMessage() {} func (*ExemptPriorityLevelConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{0} } func (m *ExemptPriorityLevelConfiguration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ExemptPriorityLevelConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ExemptPriorityLevelConfiguration) XXX_Merge(src proto.Message) { xxx_messageInfo_ExemptPriorityLevelConfiguration.Merge(m, src) } func (m *ExemptPriorityLevelConfiguration) XXX_Size() int { return m.Size() } func (m *ExemptPriorityLevelConfiguration) XXX_DiscardUnknown() { xxx_messageInfo_ExemptPriorityLevelConfiguration.DiscardUnknown(m) } var xxx_messageInfo_ExemptPriorityLevelConfiguration proto.InternalMessageInfo func (m *FlowDistinguisherMethod) Reset() { *m = FlowDistinguisherMethod{} } func (*FlowDistinguisherMethod) ProtoMessage() {} func (*FlowDistinguisherMethod) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{1} } func (m *FlowDistinguisherMethod) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowDistinguisherMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowDistinguisherMethod) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowDistinguisherMethod.Merge(m, src) } func (m *FlowDistinguisherMethod) XXX_Size() int { return m.Size() } func (m *FlowDistinguisherMethod) XXX_DiscardUnknown() { xxx_messageInfo_FlowDistinguisherMethod.DiscardUnknown(m) } var xxx_messageInfo_FlowDistinguisherMethod proto.InternalMessageInfo func (m *FlowSchema) Reset() { *m = FlowSchema{} } func (*FlowSchema) ProtoMessage() {} func (*FlowSchema) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{2} } func (m *FlowSchema) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchema) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchema.Merge(m, src) } func (m *FlowSchema) XXX_Size() int { return m.Size() } func (m *FlowSchema) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchema.DiscardUnknown(m) } var xxx_messageInfo_FlowSchema proto.InternalMessageInfo func (m *FlowSchemaCondition) Reset() { *m = FlowSchemaCondition{} } func (*FlowSchemaCondition) ProtoMessage() {} func (*FlowSchemaCondition) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{3} } func (m *FlowSchemaCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchemaCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchemaCondition) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchemaCondition.Merge(m, src) } func (m *FlowSchemaCondition) XXX_Size() int { return m.Size() } func (m *FlowSchemaCondition) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchemaCondition.DiscardUnknown(m) } var xxx_messageInfo_FlowSchemaCondition proto.InternalMessageInfo func (m *FlowSchemaList) Reset() { *m = FlowSchemaList{} } func (*FlowSchemaList) ProtoMessage() {} func (*FlowSchemaList) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{4} } func (m *FlowSchemaList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchemaList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchemaList) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchemaList.Merge(m, src) } func (m *FlowSchemaList) XXX_Size() int { return m.Size() } func (m *FlowSchemaList) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchemaList.DiscardUnknown(m) } var xxx_messageInfo_FlowSchemaList proto.InternalMessageInfo func (m *FlowSchemaSpec) Reset() { *m = FlowSchemaSpec{} } func (*FlowSchemaSpec) ProtoMessage() {} func (*FlowSchemaSpec) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{5} } func (m *FlowSchemaSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchemaSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchemaSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchemaSpec.Merge(m, src) } func (m *FlowSchemaSpec) XXX_Size() int { return m.Size() } func (m *FlowSchemaSpec) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchemaSpec.DiscardUnknown(m) } var xxx_messageInfo_FlowSchemaSpec proto.InternalMessageInfo func (m *FlowSchemaStatus) Reset() { *m = FlowSchemaStatus{} } func (*FlowSchemaStatus) ProtoMessage() {} func (*FlowSchemaStatus) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{6} } func (m *FlowSchemaStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchemaStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchemaStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchemaStatus.Merge(m, src) } func (m *FlowSchemaStatus) XXX_Size() int { return m.Size() } func (m *FlowSchemaStatus) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchemaStatus.DiscardUnknown(m) } var xxx_messageInfo_FlowSchemaStatus proto.InternalMessageInfo func (m *GroupSubject) Reset() { *m = GroupSubject{} } func (*GroupSubject) ProtoMessage() {} func (*GroupSubject) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{7} } func (m *GroupSubject) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *GroupSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *GroupSubject) XXX_Merge(src proto.Message) { xxx_messageInfo_GroupSubject.Merge(m, src) } func (m *GroupSubject) XXX_Size() int { return m.Size() } func (m *GroupSubject) XXX_DiscardUnknown() { xxx_messageInfo_GroupSubject.DiscardUnknown(m) } var xxx_messageInfo_GroupSubject proto.InternalMessageInfo func (m *LimitResponse) Reset() { *m = LimitResponse{} } func (*LimitResponse) ProtoMessage() {} func (*LimitResponse) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{8} } func (m *LimitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *LimitResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_LimitResponse.Merge(m, src) } func (m *LimitResponse) XXX_Size() int { return m.Size() } func (m *LimitResponse) XXX_DiscardUnknown() { xxx_messageInfo_LimitResponse.DiscardUnknown(m) } var xxx_messageInfo_LimitResponse proto.InternalMessageInfo func (m *LimitedPriorityLevelConfiguration) Reset() { *m = LimitedPriorityLevelConfiguration{} } func (*LimitedPriorityLevelConfiguration) ProtoMessage() {} func (*LimitedPriorityLevelConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{9} } func (m *LimitedPriorityLevelConfiguration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LimitedPriorityLevelConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *LimitedPriorityLevelConfiguration) XXX_Merge(src proto.Message) { xxx_messageInfo_LimitedPriorityLevelConfiguration.Merge(m, src) } func (m *LimitedPriorityLevelConfiguration) XXX_Size() int { return m.Size() } func (m *LimitedPriorityLevelConfiguration) XXX_DiscardUnknown() { xxx_messageInfo_LimitedPriorityLevelConfiguration.DiscardUnknown(m) } var xxx_messageInfo_LimitedPriorityLevelConfiguration proto.InternalMessageInfo func (m *NonResourcePolicyRule) Reset() { *m = NonResourcePolicyRule{} } func (*NonResourcePolicyRule) ProtoMessage() {} func (*NonResourcePolicyRule) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{10} } func (m *NonResourcePolicyRule) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *NonResourcePolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *NonResourcePolicyRule) XXX_Merge(src proto.Message) { xxx_messageInfo_NonResourcePolicyRule.Merge(m, src) } func (m *NonResourcePolicyRule) XXX_Size() int { return m.Size() } func (m *NonResourcePolicyRule) XXX_DiscardUnknown() { xxx_messageInfo_NonResourcePolicyRule.DiscardUnknown(m) } var xxx_messageInfo_NonResourcePolicyRule proto.InternalMessageInfo func (m *PolicyRulesWithSubjects) Reset() { *m = PolicyRulesWithSubjects{} } func (*PolicyRulesWithSubjects) ProtoMessage() {} func (*PolicyRulesWithSubjects) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{11} } func (m *PolicyRulesWithSubjects) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PolicyRulesWithSubjects) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PolicyRulesWithSubjects) XXX_Merge(src proto.Message) { xxx_messageInfo_PolicyRulesWithSubjects.Merge(m, src) } func (m *PolicyRulesWithSubjects) XXX_Size() int { return m.Size() } func (m *PolicyRulesWithSubjects) XXX_DiscardUnknown() { xxx_messageInfo_PolicyRulesWithSubjects.DiscardUnknown(m) } var xxx_messageInfo_PolicyRulesWithSubjects proto.InternalMessageInfo func (m *PriorityLevelConfiguration) Reset() { *m = PriorityLevelConfiguration{} } func (*PriorityLevelConfiguration) ProtoMessage() {} func (*PriorityLevelConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{12} } func (m *PriorityLevelConfiguration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfiguration) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfiguration.Merge(m, src) } func (m *PriorityLevelConfiguration) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfiguration) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfiguration.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfiguration proto.InternalMessageInfo func (m *PriorityLevelConfigurationCondition) Reset() { *m = PriorityLevelConfigurationCondition{} } func (*PriorityLevelConfigurationCondition) ProtoMessage() {} func (*PriorityLevelConfigurationCondition) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{13} } func (m *PriorityLevelConfigurationCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationCondition) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationCondition.Merge(m, src) } func (m *PriorityLevelConfigurationCondition) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationCondition) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationCondition.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationCondition proto.InternalMessageInfo func (m *PriorityLevelConfigurationList) Reset() { *m = PriorityLevelConfigurationList{} } func (*PriorityLevelConfigurationList) ProtoMessage() {} func (*PriorityLevelConfigurationList) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{14} } func (m *PriorityLevelConfigurationList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationList) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationList.Merge(m, src) } func (m *PriorityLevelConfigurationList) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationList) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationList.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationList proto.InternalMessageInfo func (m *PriorityLevelConfigurationReference) Reset() { *m = PriorityLevelConfigurationReference{} } func (*PriorityLevelConfigurationReference) ProtoMessage() {} func (*PriorityLevelConfigurationReference) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{15} } func (m *PriorityLevelConfigurationReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationReference) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationReference.Merge(m, src) } func (m *PriorityLevelConfigurationReference) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationReference) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationReference.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationReference proto.InternalMessageInfo func (m *PriorityLevelConfigurationSpec) Reset() { *m = PriorityLevelConfigurationSpec{} } func (*PriorityLevelConfigurationSpec) ProtoMessage() {} func (*PriorityLevelConfigurationSpec) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{16} } func (m *PriorityLevelConfigurationSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationSpec.Merge(m, src) } func (m *PriorityLevelConfigurationSpec) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationSpec) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationSpec.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationSpec proto.InternalMessageInfo func (m *PriorityLevelConfigurationStatus) Reset() { *m = PriorityLevelConfigurationStatus{} } func (*PriorityLevelConfigurationStatus) ProtoMessage() {} func (*PriorityLevelConfigurationStatus) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{17} } func (m *PriorityLevelConfigurationStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationStatus.Merge(m, src) } func (m *PriorityLevelConfigurationStatus) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationStatus) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationStatus.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationStatus proto.InternalMessageInfo func (m *QueuingConfiguration) Reset() { *m = QueuingConfiguration{} } func (*QueuingConfiguration) ProtoMessage() {} func (*QueuingConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{18} } func (m *QueuingConfiguration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueuingConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *QueuingConfiguration) XXX_Merge(src proto.Message) { xxx_messageInfo_QueuingConfiguration.Merge(m, src) } func (m *QueuingConfiguration) XXX_Size() int { return m.Size() } func (m *QueuingConfiguration) XXX_DiscardUnknown() { xxx_messageInfo_QueuingConfiguration.DiscardUnknown(m) } var xxx_messageInfo_QueuingConfiguration proto.InternalMessageInfo func (m *ResourcePolicyRule) Reset() { *m = ResourcePolicyRule{} } func (*ResourcePolicyRule) ProtoMessage() {} func (*ResourcePolicyRule) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{19} } func (m *ResourcePolicyRule) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ResourcePolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ResourcePolicyRule) XXX_Merge(src proto.Message) { xxx_messageInfo_ResourcePolicyRule.Merge(m, src) } func (m *ResourcePolicyRule) XXX_Size() int { return m.Size() } func (m *ResourcePolicyRule) XXX_DiscardUnknown() { xxx_messageInfo_ResourcePolicyRule.DiscardUnknown(m) } var xxx_messageInfo_ResourcePolicyRule proto.InternalMessageInfo func (m *ServiceAccountSubject) Reset() { *m = ServiceAccountSubject{} } func (*ServiceAccountSubject) ProtoMessage() {} func (*ServiceAccountSubject) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{20} } func (m *ServiceAccountSubject) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ServiceAccountSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ServiceAccountSubject) XXX_Merge(src proto.Message) { xxx_messageInfo_ServiceAccountSubject.Merge(m, src) } func (m *ServiceAccountSubject) XXX_Size() int { return m.Size() } func (m *ServiceAccountSubject) XXX_DiscardUnknown() { xxx_messageInfo_ServiceAccountSubject.DiscardUnknown(m) } var xxx_messageInfo_ServiceAccountSubject proto.InternalMessageInfo func (m *Subject) Reset() { *m = Subject{} } func (*Subject) ProtoMessage() {} func (*Subject) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{21} } 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 (m *UserSubject) Reset() { *m = UserSubject{} } func (*UserSubject) ProtoMessage() {} func (*UserSubject) Descriptor() ([]byte, []int) { return fileDescriptor_f8a25df358697d27, []int{22} } func (m *UserSubject) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *UserSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *UserSubject) XXX_Merge(src proto.Message) { xxx_messageInfo_UserSubject.Merge(m, src) } func (m *UserSubject) XXX_Size() int { return m.Size() } func (m *UserSubject) XXX_DiscardUnknown() { xxx_messageInfo_UserSubject.DiscardUnknown(m) } var xxx_messageInfo_UserSubject proto.InternalMessageInfo func init() { proto.RegisterType((*ExemptPriorityLevelConfiguration)(nil), "k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration") proto.RegisterType((*FlowDistinguisherMethod)(nil), "k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod") proto.RegisterType((*FlowSchema)(nil), "k8s.io.api.flowcontrol.v1.FlowSchema") proto.RegisterType((*FlowSchemaCondition)(nil), "k8s.io.api.flowcontrol.v1.FlowSchemaCondition") proto.RegisterType((*FlowSchemaList)(nil), "k8s.io.api.flowcontrol.v1.FlowSchemaList") proto.RegisterType((*FlowSchemaSpec)(nil), "k8s.io.api.flowcontrol.v1.FlowSchemaSpec") proto.RegisterType((*FlowSchemaStatus)(nil), "k8s.io.api.flowcontrol.v1.FlowSchemaStatus") proto.RegisterType((*GroupSubject)(nil), "k8s.io.api.flowcontrol.v1.GroupSubject") proto.RegisterType((*LimitResponse)(nil), "k8s.io.api.flowcontrol.v1.LimitResponse") proto.RegisterType((*LimitedPriorityLevelConfiguration)(nil), "k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration") proto.RegisterType((*NonResourcePolicyRule)(nil), "k8s.io.api.flowcontrol.v1.NonResourcePolicyRule") proto.RegisterType((*PolicyRulesWithSubjects)(nil), "k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects") proto.RegisterType((*PriorityLevelConfiguration)(nil), "k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration") proto.RegisterType((*PriorityLevelConfigurationCondition)(nil), "k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition") proto.RegisterType((*PriorityLevelConfigurationList)(nil), "k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationList") proto.RegisterType((*PriorityLevelConfigurationReference)(nil), "k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference") proto.RegisterType((*PriorityLevelConfigurationSpec)(nil), "k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec") proto.RegisterType((*PriorityLevelConfigurationStatus)(nil), "k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus") proto.RegisterType((*QueuingConfiguration)(nil), "k8s.io.api.flowcontrol.v1.QueuingConfiguration") proto.RegisterType((*ResourcePolicyRule)(nil), "k8s.io.api.flowcontrol.v1.ResourcePolicyRule") proto.RegisterType((*ServiceAccountSubject)(nil), "k8s.io.api.flowcontrol.v1.ServiceAccountSubject") proto.RegisterType((*Subject)(nil), "k8s.io.api.flowcontrol.v1.Subject") proto.RegisterType((*UserSubject)(nil), "k8s.io.api.flowcontrol.v1.UserSubject") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/flowcontrol/v1/generated.proto", fileDescriptor_f8a25df358697d27) } var fileDescriptor_f8a25df358697d27 = []byte{ // 1588 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0x4b, 0x73, 0x1b, 0xc5, 0x16, 0xb6, 0x64, 0xc9, 0xb6, 0x8e, 0x9f, 0x69, 0xc7, 0x65, 0xc5, 0xb9, 0x25, 0x39, 0x73, 0xeb, 0xe6, 0x71, 0x43, 0xa4, 0xc4, 0x45, 0x20, 0xa9, 0x00, 0xa9, 0x4c, 0x12, 0xf2, 0xb2, 0x1d, 0xa7, 0x95, 0x07, 0x15, 0xa8, 0x82, 0xd1, 0xa8, 0x2d, 0x4d, 0x2c, 0xcd, 0x0c, 0xdd, 0x33, 0x32, 0xa6, 0x8a, 0x2a, 0x7e, 0x42, 0x56, 0x2c, 0x59, 0xc0, 0x3f, 0x60, 0x45, 0xc1, 0x86, 0x65, 0x76, 0x64, 0x19, 0x58, 0xa8, 0x88, 0xf8, 0x0b, 0x2c, 0x20, 0x2b, 0xaa, 0x7b, 0x7a, 0x66, 0x34, 0x92, 0x66, 0xac, 0xf2, 0x22, 0x6c, 0xd8, 0x79, 0xce, 0xf9, 0xce, 0x77, 0xba, 0x4f, 0x9f, 0x97, 0x0c, 0xea, 0xce, 0x05, 0x56, 0x32, 0xac, 0xf2, 0x8e, 0x5b, 0x25, 0xd4, 0x24, 0x0e, 0x61, 0xe5, 0x36, 0x31, 0x6b, 0x16, 0x2d, 0x4b, 0x85, 0x66, 0x1b, 0xe5, 0xed, 0xa6, 0xb5, 0xab, 0x5b, 0xa6, 0x43, 0xad, 0x66, 0xb9, 0x7d, 0xae, 0x5c, 0x27, 0x26, 0xa1, 0x9a, 0x43, 0x6a, 0x25, 0x9b, 0x5a, 0x8e, 0x85, 0x8e, 0x78, 0xd0, 0x92, 0x66, 0x1b, 0xa5, 0x1e, 0x68, 0xa9, 0x7d, 0x6e, 0xe5, 0x4c, 0xdd, 0x70, 0x1a, 0x6e, 0xb5, 0xa4, 0x5b, 0xad, 0x72, 0xdd, 0xaa, 0x5b, 0x65, 0x61, 0x51, 0x75, 0xb7, 0xc5, 0x97, 0xf8, 0x10, 0x7f, 0x79, 0x4c, 0x2b, 0x6f, 0x86, 0x4e, 0x5b, 0x9a, 0xde, 0x30, 0x4c, 0x42, 0xf7, 0xca, 0xf6, 0x4e, 0x9d, 0x0b, 0x58, 0xb9, 0x45, 0x1c, 0x6d, 0x88, 0xff, 0x95, 0x72, 0x9c, 0x15, 0x75, 0x4d, 0xc7, 0x68, 0x91, 0x01, 0x83, 0xb7, 0xf6, 0x33, 0x60, 0x7a, 0x83, 0xb4, 0xb4, 0x7e, 0x3b, 0xe5, 0xc7, 0x14, 0xac, 0x5e, 0xff, 0x8c, 0xb4, 0x6c, 0x67, 0x8b, 0x1a, 0x16, 0x35, 0x9c, 0xbd, 0x75, 0xd2, 0x26, 0xcd, 0xab, 0x96, 0xb9, 0x6d, 0xd4, 0x5d, 0xaa, 0x39, 0x86, 0x65, 0xa2, 0x0f, 0x20, 0x6f, 0x5a, 0x2d, 0xc3, 0xd4, 0xb8, 0x5c, 0x77, 0x29, 0x25, 0xa6, 0xbe, 0x57, 0x69, 0x68, 0x94, 0xb0, 0x7c, 0x6a, 0x35, 0x75, 0x32, 0xab, 0xfe, 0xa7, 0xdb, 0x29, 0xe6, 0x37, 0x63, 0x30, 0x38, 0xd6, 0x1a, 0xbd, 0x0b, 0xf3, 0x4d, 0x62, 0xd6, 0xb4, 0x6a, 0x93, 0x6c, 0x11, 0xaa, 0x13, 0xd3, 0xc9, 0xa7, 0x05, 0xe1, 0x62, 0xb7, 0x53, 0x9c, 0x5f, 0x8f, 0xaa, 0x70, 0x3f, 0x56, 0x79, 0x0c, 0xcb, 0xef, 0x37, 0xad, 0xdd, 0x6b, 0x06, 0x73, 0x0c, 0xb3, 0xee, 0x1a, 0xac, 0x41, 0xe8, 0x06, 0x71, 0x1a, 0x56, 0x0d, 0x5d, 0x86, 0x8c, 0xb3, 0x67, 0x13, 0x71, 0xbe, 0x9c, 0x7a, 0xfa, 0x59, 0xa7, 0x38, 0xd6, 0xed, 0x14, 0x33, 0xf7, 0xf7, 0x6c, 0xf2, 0xaa, 0x53, 0x3c, 0x1a, 0x63, 0xc6, 0xd5, 0x58, 0x18, 0x2a, 0x4f, 0xd3, 0x00, 0x1c, 0x55, 0x11, 0x81, 0x43, 0x9f, 0xc0, 0x14, 0x7f, 0xac, 0x9a, 0xe6, 0x68, 0x82, 0x73, 0x7a, 0xed, 0x6c, 0x29, 0x4c, 0x92, 0x20, 0xe6, 0x25, 0x7b, 0xa7, 0xce, 0x05, 0xac, 0xc4, 0xd1, 0xa5, 0xf6, 0xb9, 0xd2, 0xdd, 0xea, 0x13, 0xa2, 0x3b, 0x1b, 0xc4, 0xd1, 0x54, 0x24, 0x4f, 0x01, 0xa1, 0x0c, 0x07, 0xac, 0xe8, 0x0e, 0x64, 0x98, 0x4d, 0x74, 0x11, 0x80, 0xe9, 0xb5, 0x53, 0xa5, 0xd8, 0x14, 0x2c, 0x85, 0xc7, 0xaa, 0xd8, 0x44, 0x57, 0x67, 0xfc, 0xcb, 0xf1, 0x2f, 0x2c, 0x48, 0x50, 0x05, 0x26, 0x98, 0xa3, 0x39, 0x2e, 0xcb, 0x8f, 0x0b, 0xba, 0xd3, 0xa3, 0xd1, 0x09, 0x13, 0x75, 0x4e, 0x12, 0x4e, 0x78, 0xdf, 0x58, 0x52, 0x29, 0x2f, 0xd2, 0xb0, 0x18, 0x82, 0xaf, 0x5a, 0x66, 0xcd, 0x10, 0xf9, 0x71, 0x29, 0x12, 0xeb, 0x13, 0x7d, 0xb1, 0x5e, 0x1e, 0x62, 0x12, 0xc6, 0x19, 0x5d, 0x0c, 0x4e, 0x9a, 0x16, 0xe6, 0xc7, 0xa2, 0xce, 0x5f, 0x75, 0x8a, 0xf3, 0x81, 0x59, 0xf4, 0x3c, 0xa8, 0x0d, 0xa8, 0xa9, 0x31, 0xe7, 0x3e, 0xd5, 0x4c, 0xe6, 0xd1, 0x1a, 0x2d, 0x22, 0x2f, 0xfc, 0xff, 0xd1, 0x5e, 0x87, 0x5b, 0xa8, 0x2b, 0xd2, 0x25, 0x5a, 0x1f, 0x60, 0xc3, 0x43, 0x3c, 0xa0, 0xe3, 0x30, 0x41, 0x89, 0xc6, 0x2c, 0x33, 0x9f, 0x11, 0x47, 0x0e, 0xe2, 0x85, 0x85, 0x14, 0x4b, 0x2d, 0x3a, 0x05, 0x93, 0x2d, 0xc2, 0x98, 0x56, 0x27, 0xf9, 0xac, 0x00, 0xce, 0x4b, 0xe0, 0xe4, 0x86, 0x27, 0xc6, 0xbe, 0x5e, 0xf9, 0x21, 0x05, 0x73, 0x61, 0x9c, 0xd6, 0x0d, 0xe6, 0xa0, 0x8f, 0x06, 0x32, 0xae, 0x34, 0xda, 0x9d, 0xb8, 0xb5, 0xc8, 0xb7, 0x05, 0xe9, 0x6e, 0xca, 0x97, 0xf4, 0x64, 0xdb, 0x6d, 0xc8, 0x1a, 0x0e, 0x69, 0xf1, 0xa8, 0x8f, 0x9f, 0x9c, 0x5e, 0xfb, 0xdf, 0x48, 0xf9, 0xa1, 0xce, 0x4a, 0xc6, 0xec, 0x2d, 0x6e, 0x8b, 0x3d, 0x0a, 0xe5, 0x97, 0xf1, 0xde, 0xc3, 0xf3, 0x2c, 0x44, 0xdf, 0xa4, 0x60, 0xc5, 0x8e, 0xed, 0x28, 0xf2, 0x3e, 0xef, 0x25, 0x38, 0x8d, 0x6f, 0x47, 0x98, 0x6c, 0x13, 0xde, 0x43, 0x88, 0xaa, 0xc8, 0xd3, 0xac, 0x24, 0x80, 0x13, 0x4e, 0x81, 0x6e, 0x03, 0x6a, 0x69, 0x0e, 0x8f, 0x63, 0x7d, 0x8b, 0x12, 0x9d, 0xd4, 0x38, 0xab, 0x6c, 0x40, 0x41, 0x4e, 0x6c, 0x0c, 0x20, 0xf0, 0x10, 0x2b, 0xf4, 0x05, 0x2c, 0xd6, 0x06, 0xfb, 0x89, 0x4c, 0xc6, 0xb5, 0x7d, 0xa2, 0x3b, 0xa4, 0x13, 0xa9, 0xcb, 0xdd, 0x4e, 0x71, 0x71, 0x88, 0x02, 0x0f, 0xf3, 0x83, 0x1e, 0x41, 0x96, 0xba, 0x4d, 0xc2, 0xf2, 0x19, 0xf1, 0x9c, 0x49, 0x0e, 0xb7, 0xac, 0xa6, 0xa1, 0xef, 0x61, 0x8e, 0x7e, 0x64, 0x38, 0x8d, 0x8a, 0x2b, 0x9a, 0x11, 0x0b, 0xdf, 0x56, 0xa8, 0xb0, 0xc7, 0xa7, 0xb4, 0x61, 0xa1, 0xbf, 0x3f, 0xa0, 0x2a, 0x80, 0xee, 0x97, 0x24, 0x9f, 0x00, 0xe3, 0x7d, 0xb9, 0x19, 0x9f, 0x40, 0x41, 0x25, 0x87, 0xbd, 0x30, 0x10, 0x31, 0xdc, 0xc3, 0xaa, 0x9c, 0x85, 0x99, 0x1b, 0xd4, 0x72, 0x6d, 0x79, 0x3c, 0xb4, 0x0a, 0x19, 0x53, 0x6b, 0xf9, 0x3d, 0x26, 0x68, 0x79, 0x9b, 0x5a, 0x8b, 0x60, 0xa1, 0x51, 0xbe, 0x4e, 0xc1, 0xec, 0xba, 0xd1, 0x32, 0x1c, 0x4c, 0x98, 0x6d, 0x99, 0x8c, 0xa0, 0xf3, 0x91, 0xbe, 0x74, 0xac, 0xaf, 0x2f, 0x1d, 0x8a, 0x80, 0x7b, 0x3a, 0xd2, 0x43, 0x98, 0xfc, 0xd4, 0x25, 0xae, 0x61, 0xd6, 0x65, 0x2f, 0x2e, 0x27, 0xdc, 0xed, 0x9e, 0x87, 0x8c, 0x24, 0x96, 0x3a, 0xcd, 0x6b, 0x5c, 0x6a, 0xb0, 0x4f, 0xa6, 0xfc, 0x91, 0x86, 0x63, 0xc2, 0x27, 0xa9, 0xfd, 0x23, 0xc3, 0x96, 0xc0, 0x6c, 0xb3, 0xf7, 0xca, 0xf2, 0x76, 0x27, 0x13, 0x6e, 0x17, 0x09, 0x91, 0xba, 0x24, 0x23, 0x18, 0x0d, 0x33, 0x8e, 0xb2, 0x0e, 0x9b, 0xe9, 0xe3, 0xa3, 0xcf, 0x74, 0x74, 0x17, 0x96, 0xaa, 0x16, 0xa5, 0xd6, 0xae, 0x61, 0xd6, 0x85, 0x1f, 0x9f, 0x24, 0x23, 0x48, 0x8e, 0x74, 0x3b, 0xc5, 0x25, 0x75, 0x18, 0x00, 0x0f, 0xb7, 0x53, 0x76, 0x61, 0x69, 0x93, 0x77, 0x0d, 0x66, 0xb9, 0x54, 0x27, 0x61, 0xf6, 0xa3, 0x22, 0x64, 0xdb, 0x84, 0x56, 0xbd, 0x0c, 0xce, 0xa9, 0x39, 0x9e, 0xfb, 0x0f, 0xb9, 0x00, 0x7b, 0x72, 0x7e, 0x13, 0x33, 0xb4, 0x7c, 0x80, 0xd7, 0x59, 0x7e, 0x42, 0x40, 0xc5, 0x4d, 0x36, 0xa3, 0x2a, 0xdc, 0x8f, 0x55, 0x7e, 0x4e, 0xc3, 0x72, 0x4c, 0xb1, 0xa1, 0x2d, 0x98, 0x62, 0xf2, 0x6f, 0x59, 0x40, 0x4a, 0xc2, 0x33, 0x48, 0xb3, 0xb0, 0xa1, 0xfb, 0x3c, 0x38, 0x60, 0x41, 0x4f, 0x60, 0x96, 0x4a, 0xef, 0xc2, 0x9d, 0x6c, 0xec, 0x67, 0x12, 0x68, 0x07, 0x63, 0x12, 0x3e, 0x31, 0xee, 0xe5, 0xc2, 0x51, 0x6a, 0xd4, 0x86, 0x85, 0x9e, 0xcb, 0x7a, 0xee, 0xc6, 0x85, 0xbb, 0xb3, 0x09, 0xee, 0x86, 0xbe, 0x82, 0x9a, 0x97, 0x1e, 0x17, 0x36, 0xfb, 0x18, 0xf1, 0x80, 0x0f, 0xe5, 0xa7, 0x34, 0x24, 0xf4, 0xfa, 0xd7, 0xb0, 0xa3, 0x7d, 0x18, 0xd9, 0xd1, 0x2e, 0x1e, 0x68, 0x7e, 0xc5, 0xee, 0x6c, 0x7a, 0xdf, 0xce, 0x76, 0xe9, 0x60, 0xf4, 0xc9, 0x3b, 0xdc, 0x9f, 0x69, 0xf8, 0x6f, 0xbc, 0x71, 0xb8, 0xd3, 0xdd, 0x89, 0xf4, 0xce, 0xb7, 0xfb, 0x7a, 0xe7, 0x89, 0x11, 0x28, 0xfe, 0xdd, 0xf1, 0xfa, 0x76, 0xbc, 0x5f, 0x53, 0x50, 0x88, 0x8f, 0xdb, 0x6b, 0xd8, 0xf9, 0x1e, 0x47, 0x77, 0xbe, 0xf3, 0x07, 0xca, 0xaf, 0x98, 0x1d, 0xf0, 0x46, 0x52, 0x5a, 0x05, 0x2b, 0xdb, 0x08, 0x63, 0xfc, 0xdb, 0x74, 0x52, 0x94, 0xc4, 0x72, 0xb9, 0xcf, 0xef, 0x8d, 0x88, 0xf5, 0x75, 0x93, 0x0f, 0x97, 0x16, 0x9f, 0x0f, 0x5e, 0x2e, 0xea, 0x30, 0xd9, 0xf4, 0x86, 0xb0, 0xac, 0xe2, 0x77, 0xf6, 0x9b, 0x7f, 0x49, 0xe3, 0xda, 0x1b, 0xf5, 0x12, 0x86, 0x7d, 0x66, 0xf4, 0x31, 0x4c, 0x10, 0xf1, 0xab, 0x7a, 0x84, 0x52, 0xde, 0xef, 0xe7, 0xb7, 0x0a, 0x3c, 0xed, 0x3c, 0x14, 0x96, 0xb4, 0xca, 0x57, 0x29, 0x58, 0xdd, 0xaf, 0x07, 0x20, 0x3a, 0x64, 0x4f, 0x3b, 0xd8, 0xce, 0x3d, 0xfa, 0xde, 0xf6, 0x5d, 0x0a, 0x0e, 0x0f, 0xdb, 0x89, 0x78, 0x41, 0xf1, 0x45, 0x28, 0xd8, 0x62, 0x82, 0x82, 0xba, 0x27, 0xa4, 0x58, 0x6a, 0xd1, 0x1b, 0x30, 0xd5, 0xd0, 0xcc, 0x5a, 0xc5, 0xf8, 0xdc, 0x5f, 0xc5, 0x83, 0x94, 0xbe, 0x29, 0xe5, 0x38, 0x40, 0xa0, 0x6b, 0xb0, 0x20, 0xec, 0xd6, 0x89, 0x59, 0x77, 0x1a, 0xe2, 0x1d, 0xe4, 0xb6, 0x11, 0xcc, 0x95, 0x7b, 0x7d, 0x7a, 0x3c, 0x60, 0xa1, 0xfc, 0x95, 0x02, 0x74, 0x90, 0x05, 0xe1, 0x34, 0xe4, 0x34, 0xdb, 0x10, 0x7b, 0xaa, 0x57, 0x54, 0x39, 0x75, 0xb6, 0xdb, 0x29, 0xe6, 0xae, 0x6c, 0xdd, 0xf2, 0x84, 0x38, 0xd4, 0x73, 0xb0, 0x3f, 0x45, 0xbd, 0x69, 0x29, 0xc1, 0xbe, 0x63, 0x86, 0x43, 0x3d, 0xba, 0x00, 0x33, 0x7a, 0xd3, 0x65, 0x0e, 0xa1, 0x15, 0xdd, 0xb2, 0x89, 0x68, 0x42, 0x53, 0xea, 0x61, 0x79, 0xa7, 0x99, 0xab, 0x3d, 0x3a, 0x1c, 0x41, 0xa2, 0x12, 0x00, 0xaf, 0x23, 0x66, 0x6b, 0xdc, 0x4f, 0x56, 0xf8, 0x99, 0xe3, 0x0f, 0xb6, 0x19, 0x48, 0x71, 0x0f, 0x42, 0x79, 0x02, 0x4b, 0x15, 0x42, 0xdb, 0x86, 0x4e, 0xae, 0xe8, 0xba, 0xe5, 0x9a, 0x8e, 0xbf, 0x71, 0x97, 0x21, 0x17, 0xc0, 0x64, 0xa9, 0x1d, 0x92, 0xfe, 0x73, 0x01, 0x17, 0x0e, 0x31, 0x41, 0x6d, 0xa7, 0x63, 0x6b, 0xfb, 0xfb, 0x34, 0x4c, 0x86, 0xf4, 0x99, 0x1d, 0xc3, 0xac, 0x49, 0xe6, 0xa3, 0x3e, 0xfa, 0x8e, 0x61, 0xd6, 0x5e, 0x75, 0x8a, 0xd3, 0x12, 0xc6, 0x3f, 0xb1, 0x00, 0xa2, 0x6b, 0x90, 0x71, 0x19, 0xa1, 0xb2, 0x6a, 0x8f, 0x27, 0xe4, 0xf1, 0x03, 0x46, 0xa8, 0xbf, 0x32, 0x4d, 0x71, 0x52, 0x2e, 0xc0, 0xc2, 0x1a, 0xdd, 0x84, 0x6c, 0x9d, 0xbf, 0x87, 0x2c, 0xcc, 0x13, 0x09, 0x34, 0xbd, 0xbf, 0x3f, 0xbc, 0xc7, 0x17, 0x12, 0xec, 0x11, 0xa0, 0x26, 0xcc, 0xb1, 0x48, 0xe0, 0xc4, 0x23, 0x25, 0xaf, 0x40, 0x43, 0x23, 0xad, 0xa2, 0x6e, 0xa7, 0x38, 0x17, 0x55, 0xe1, 0x3e, 0x6e, 0xa5, 0x0c, 0xd3, 0x3d, 0xd7, 0xda, 0xbf, 0x8f, 0xaa, 0x97, 0x9f, 0xbd, 0x2c, 0x8c, 0x3d, 0x7f, 0x59, 0x18, 0x7b, 0xf1, 0xb2, 0x30, 0xf6, 0x65, 0xb7, 0x90, 0x7a, 0xd6, 0x2d, 0xa4, 0x9e, 0x77, 0x0b, 0xa9, 0x17, 0xdd, 0x42, 0xea, 0xb7, 0x6e, 0x21, 0xf5, 0xf4, 0xf7, 0xc2, 0xd8, 0xe3, 0x23, 0xb1, 0xff, 0x13, 0xfd, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xd1, 0x0a, 0x3e, 0x83, 0x48, 0x15, 0x00, 0x00, } func (m *ExemptPriorityLevelConfiguration) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ExemptPriorityLevelConfiguration) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ExemptPriorityLevelConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.LendablePercent != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.LendablePercent)) i-- dAtA[i] = 0x10 } if m.NominalConcurrencyShares != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.NominalConcurrencyShares)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *FlowDistinguisherMethod) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowDistinguisherMethod) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowDistinguisherMethod) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l 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 *FlowSchema) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchema) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchema) 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 *FlowSchemaCondition) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchemaCondition) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchemaCondition) 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 *FlowSchemaList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchemaList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchemaList) 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 *FlowSchemaSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchemaSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchemaSpec) 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] = 0x22 } } if m.DistinguisherMethod != nil { { size, err := m.DistinguisherMethod.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } i = encodeVarintGenerated(dAtA, i, uint64(m.MatchingPrecedence)) i-- dAtA[i] = 0x10 { size, err := m.PriorityLevelConfiguration.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *FlowSchemaStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchemaStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchemaStatus) 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] = 0xa } } return len(dAtA) - i, nil } func (m *GroupSubject) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *GroupSubject) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *GroupSubject) 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 *LimitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *LimitResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LimitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Queuing != nil { { size, err := m.Queuing.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 *LimitedPriorityLevelConfiguration) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *LimitedPriorityLevelConfiguration) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LimitedPriorityLevelConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.BorrowingLimitPercent != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.BorrowingLimitPercent)) i-- dAtA[i] = 0x20 } if m.LendablePercent != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.LendablePercent)) i-- dAtA[i] = 0x18 } { size, err := m.LimitResponse.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 if m.NominalConcurrencyShares != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.NominalConcurrencyShares)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *NonResourcePolicyRule) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *NonResourcePolicyRule) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *NonResourcePolicyRule) 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.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 *PolicyRulesWithSubjects) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PolicyRulesWithSubjects) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PolicyRulesWithSubjects) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l 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] = 0x1a } } 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] = 0x12 } } 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] = 0xa } } return len(dAtA) - i, nil } func (m *PriorityLevelConfiguration) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfiguration) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfiguration) 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 *PriorityLevelConfigurationCondition) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationCondition) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationCondition) 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 *PriorityLevelConfigurationList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationList) 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 *PriorityLevelConfigurationReference) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationReference) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationReference) 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 *PriorityLevelConfigurationSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Exempt != nil { { size, err := m.Exempt.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } if m.Limited != nil { { size, err := m.Limited.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 *PriorityLevelConfigurationStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationStatus) 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] = 0xa } } return len(dAtA) - i, nil } func (m *QueuingConfiguration) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueuingConfiguration) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueuingConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i = encodeVarintGenerated(dAtA, i, uint64(m.QueueLengthLimit)) i-- dAtA[i] = 0x18 i = encodeVarintGenerated(dAtA, i, uint64(m.HandSize)) i-- dAtA[i] = 0x10 i = encodeVarintGenerated(dAtA, i, uint64(m.Queues)) i-- dAtA[i] = 0x8 return len(dAtA) - i, nil } func (m *ResourcePolicyRule) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ResourcePolicyRule) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ResourcePolicyRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l 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] = 0x2a } } i-- if m.ClusterScope { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x20 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 *ServiceAccountSubject) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ServiceAccountSubject) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ServiceAccountSubject) 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] = 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 *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 if m.ServiceAccount != nil { { size, err := m.ServiceAccount.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } if m.Group != nil { { size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } if m.User != nil { { 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 -= 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 *UserSubject) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *UserSubject) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *UserSubject) 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 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 *ExemptPriorityLevelConfiguration) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.NominalConcurrencyShares != nil { n += 1 + sovGenerated(uint64(*m.NominalConcurrencyShares)) } if m.LendablePercent != nil { n += 1 + sovGenerated(uint64(*m.LendablePercent)) } return n } func (m *FlowDistinguisherMethod) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Type) n += 1 + l + sovGenerated(uint64(l)) return n } func (m *FlowSchema) 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 *FlowSchemaCondition) 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 *FlowSchemaList) 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 *FlowSchemaSpec) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.PriorityLevelConfiguration.Size() n += 1 + l + sovGenerated(uint64(l)) n += 1 + sovGenerated(uint64(m.MatchingPrecedence)) if m.DistinguisherMethod != nil { l = m.DistinguisherMethod.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 *FlowSchemaStatus) 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)) } } return n } func (m *GroupSubject) 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 *LimitResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Type) n += 1 + l + sovGenerated(uint64(l)) if m.Queuing != nil { l = m.Queuing.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *LimitedPriorityLevelConfiguration) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.NominalConcurrencyShares != nil { n += 1 + sovGenerated(uint64(*m.NominalConcurrencyShares)) } l = m.LimitResponse.Size() n += 1 + l + sovGenerated(uint64(l)) if m.LendablePercent != nil { n += 1 + sovGenerated(uint64(*m.LendablePercent)) } if m.BorrowingLimitPercent != nil { n += 1 + sovGenerated(uint64(*m.BorrowingLimitPercent)) } return n } func (m *NonResourcePolicyRule) 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 *PolicyRulesWithSubjects) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Subjects) > 0 { for _, e := range m.Subjects { l = e.Size() n += 1 + l + sovGenerated(uint64(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)) } } return n } func (m *PriorityLevelConfiguration) 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 *PriorityLevelConfigurationCondition) 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 *PriorityLevelConfigurationList) 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 *PriorityLevelConfigurationReference) 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 *PriorityLevelConfigurationSpec) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Type) n += 1 + l + sovGenerated(uint64(l)) if m.Limited != nil { l = m.Limited.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.Exempt != nil { l = m.Exempt.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *PriorityLevelConfigurationStatus) 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)) } } return n } func (m *QueuingConfiguration) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 1 + sovGenerated(uint64(m.Queues)) n += 1 + sovGenerated(uint64(m.HandSize)) n += 1 + sovGenerated(uint64(m.QueueLengthLimit)) return n } func (m *ResourcePolicyRule) 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)) } } n += 2 if len(m.Namespaces) > 0 { for _, s := range m.Namespaces { l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *ServiceAccountSubject) 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)) 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)) if m.User != nil { l = m.User.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.Group != nil { l = m.Group.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.ServiceAccount != nil { l = m.ServiceAccount.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *UserSubject) 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 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 *ExemptPriorityLevelConfiguration) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ExemptPriorityLevelConfiguration{`, `NominalConcurrencyShares:` + valueToStringGenerated(this.NominalConcurrencyShares) + `,`, `LendablePercent:` + valueToStringGenerated(this.LendablePercent) + `,`, `}`, }, "") return s } func (this *FlowDistinguisherMethod) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&FlowDistinguisherMethod{`, `Type:` + fmt.Sprintf("%v", this.Type) + `,`, `}`, }, "") return s } func (this *FlowSchema) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&FlowSchema{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "FlowSchemaSpec", "FlowSchemaSpec", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "FlowSchemaStatus", "FlowSchemaStatus", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *FlowSchemaCondition) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&FlowSchemaCondition{`, `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 *FlowSchemaList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]FlowSchema{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "FlowSchema", "FlowSchema", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&FlowSchemaList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *FlowSchemaSpec) String() string { if this == nil { return "nil" } repeatedStringForRules := "[]PolicyRulesWithSubjects{" for _, f := range this.Rules { repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "PolicyRulesWithSubjects", "PolicyRulesWithSubjects", 1), `&`, ``, 1) + "," } repeatedStringForRules += "}" s := strings.Join([]string{`&FlowSchemaSpec{`, `PriorityLevelConfiguration:` + strings.Replace(strings.Replace(this.PriorityLevelConfiguration.String(), "PriorityLevelConfigurationReference", "PriorityLevelConfigurationReference", 1), `&`, ``, 1) + `,`, `MatchingPrecedence:` + fmt.Sprintf("%v", this.MatchingPrecedence) + `,`, `DistinguisherMethod:` + strings.Replace(this.DistinguisherMethod.String(), "FlowDistinguisherMethod", "FlowDistinguisherMethod", 1) + `,`, `Rules:` + repeatedStringForRules + `,`, `}`, }, "") return s } func (this *FlowSchemaStatus) String() string { if this == nil { return "nil" } repeatedStringForConditions := "[]FlowSchemaCondition{" for _, f := range this.Conditions { repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "FlowSchemaCondition", "FlowSchemaCondition", 1), `&`, ``, 1) + "," } repeatedStringForConditions += "}" s := strings.Join([]string{`&FlowSchemaStatus{`, `Conditions:` + repeatedStringForConditions + `,`, `}`, }, "") return s } func (this *GroupSubject) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&GroupSubject{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `}`, }, "") return s } func (this *LimitResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&LimitResponse{`, `Type:` + fmt.Sprintf("%v", this.Type) + `,`, `Queuing:` + strings.Replace(this.Queuing.String(), "QueuingConfiguration", "QueuingConfiguration", 1) + `,`, `}`, }, "") return s } func (this *LimitedPriorityLevelConfiguration) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&LimitedPriorityLevelConfiguration{`, `NominalConcurrencyShares:` + valueToStringGenerated(this.NominalConcurrencyShares) + `,`, `LimitResponse:` + strings.Replace(strings.Replace(this.LimitResponse.String(), "LimitResponse", "LimitResponse", 1), `&`, ``, 1) + `,`, `LendablePercent:` + valueToStringGenerated(this.LendablePercent) + `,`, `BorrowingLimitPercent:` + valueToStringGenerated(this.BorrowingLimitPercent) + `,`, `}`, }, "") return s } func (this *NonResourcePolicyRule) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&NonResourcePolicyRule{`, `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, `NonResourceURLs:` + fmt.Sprintf("%v", this.NonResourceURLs) + `,`, `}`, }, "") return s } func (this *PolicyRulesWithSubjects) 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 += "}" repeatedStringForResourceRules := "[]ResourcePolicyRule{" for _, f := range this.ResourceRules { repeatedStringForResourceRules += strings.Replace(strings.Replace(f.String(), "ResourcePolicyRule", "ResourcePolicyRule", 1), `&`, ``, 1) + "," } repeatedStringForResourceRules += "}" repeatedStringForNonResourceRules := "[]NonResourcePolicyRule{" for _, f := range this.NonResourceRules { repeatedStringForNonResourceRules += strings.Replace(strings.Replace(f.String(), "NonResourcePolicyRule", "NonResourcePolicyRule", 1), `&`, ``, 1) + "," } repeatedStringForNonResourceRules += "}" s := strings.Join([]string{`&PolicyRulesWithSubjects{`, `Subjects:` + repeatedStringForSubjects + `,`, `ResourceRules:` + repeatedStringForResourceRules + `,`, `NonResourceRules:` + repeatedStringForNonResourceRules + `,`, `}`, }, "") return s } func (this *PriorityLevelConfiguration) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PriorityLevelConfiguration{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PriorityLevelConfigurationSpec", "PriorityLevelConfigurationSpec", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PriorityLevelConfigurationStatus", "PriorityLevelConfigurationStatus", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *PriorityLevelConfigurationCondition) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PriorityLevelConfigurationCondition{`, `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 *PriorityLevelConfigurationList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]PriorityLevelConfiguration{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PriorityLevelConfiguration", "PriorityLevelConfiguration", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&PriorityLevelConfigurationList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *PriorityLevelConfigurationReference) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PriorityLevelConfigurationReference{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `}`, }, "") return s } func (this *PriorityLevelConfigurationSpec) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PriorityLevelConfigurationSpec{`, `Type:` + fmt.Sprintf("%v", this.Type) + `,`, `Limited:` + strings.Replace(this.Limited.String(), "LimitedPriorityLevelConfiguration", "LimitedPriorityLevelConfiguration", 1) + `,`, `Exempt:` + strings.Replace(this.Exempt.String(), "ExemptPriorityLevelConfiguration", "ExemptPriorityLevelConfiguration", 1) + `,`, `}`, }, "") return s } func (this *PriorityLevelConfigurationStatus) String() string { if this == nil { return "nil" } repeatedStringForConditions := "[]PriorityLevelConfigurationCondition{" for _, f := range this.Conditions { repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "PriorityLevelConfigurationCondition", "PriorityLevelConfigurationCondition", 1), `&`, ``, 1) + "," } repeatedStringForConditions += "}" s := strings.Join([]string{`&PriorityLevelConfigurationStatus{`, `Conditions:` + repeatedStringForConditions + `,`, `}`, }, "") return s } func (this *QueuingConfiguration) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueuingConfiguration{`, `Queues:` + fmt.Sprintf("%v", this.Queues) + `,`, `HandSize:` + fmt.Sprintf("%v", this.HandSize) + `,`, `QueueLengthLimit:` + fmt.Sprintf("%v", this.QueueLengthLimit) + `,`, `}`, }, "") return s } func (this *ResourcePolicyRule) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ResourcePolicyRule{`, `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`, `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`, `ClusterScope:` + fmt.Sprintf("%v", this.ClusterScope) + `,`, `Namespaces:` + fmt.Sprintf("%v", this.Namespaces) + `,`, `}`, }, "") return s } func (this *ServiceAccountSubject) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ServiceAccountSubject{`, `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, `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) + `,`, `User:` + strings.Replace(this.User.String(), "UserSubject", "UserSubject", 1) + `,`, `Group:` + strings.Replace(this.Group.String(), "GroupSubject", "GroupSubject", 1) + `,`, `ServiceAccount:` + strings.Replace(this.ServiceAccount.String(), "ServiceAccountSubject", "ServiceAccountSubject", 1) + `,`, `}`, }, "") return s } func (this *UserSubject) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&UserSubject{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `}`, }, "") 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 *ExemptPriorityLevelConfiguration) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ExemptPriorityLevelConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ExemptPriorityLevelConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field NominalConcurrencyShares", 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.NominalConcurrencyShares = &v case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field LendablePercent", 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.LendablePercent = &v default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowDistinguisherMethod) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowDistinguisherMethod: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowDistinguisherMethod: 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 = FlowDistinguisherMethodType(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchema) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchema: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchema: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchemaCondition) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchemaCondition: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchemaCondition: 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 = FlowSchemaConditionType(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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchemaList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchemaList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchemaList: 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, FlowSchema{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchemaSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchemaSpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchemaSpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PriorityLevelConfiguration", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.PriorityLevelConfiguration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field MatchingPrecedence", wireType) } m.MatchingPrecedence = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.MatchingPrecedence |= int32(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DistinguisherMethod", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.DistinguisherMethod == nil { m.DistinguisherMethod = &FlowDistinguisherMethod{} } if err := m.DistinguisherMethod.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: 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, PolicyRulesWithSubjects{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchemaStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchemaStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchemaStatus: 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, FlowSchemaCondition{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *GroupSubject) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: GroupSubject: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: GroupSubject: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LimitResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: LimitResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LimitResponse: 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 = LimitResponseType(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Queuing", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Queuing == nil { m.Queuing = &QueuingConfiguration{} } if err := m.Queuing.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LimitedPriorityLevelConfiguration) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: LimitedPriorityLevelConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LimitedPriorityLevelConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field NominalConcurrencyShares", 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.NominalConcurrencyShares = &v case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field LimitResponse", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.LimitResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field LendablePercent", 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.LendablePercent = &v case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field BorrowingLimitPercent", 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.BorrowingLimitPercent = &v default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *NonResourcePolicyRule) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: NonResourcePolicyRule: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: NonResourcePolicyRule: 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 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PolicyRulesWithSubjects) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PolicyRulesWithSubjects: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PolicyRulesWithSubjects: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: 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 2: 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, ResourcePolicyRule{}) if err := m.ResourceRules[len(m.ResourceRules)-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 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, NonResourcePolicyRule{}) if err := m.NonResourceRules[len(m.NonResourceRules)-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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfiguration) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfiguration: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationCondition) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationCondition: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationCondition: 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 = PriorityLevelConfigurationConditionType(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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationList: 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, PriorityLevelConfiguration{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationReference) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationReference: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationReference: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationSpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationSpec: 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 = PriorityLevelEnablement(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Limited", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Limited == nil { m.Limited = &LimitedPriorityLevelConfiguration{} } if err := m.Limited.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Exempt", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Exempt == nil { m.Exempt = &ExemptPriorityLevelConfiguration{} } if err := m.Exempt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationStatus: 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, PriorityLevelConfigurationCondition{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueuingConfiguration) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueuingConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueuingConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Queues", wireType) } m.Queues = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Queues |= int32(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field HandSize", wireType) } m.HandSize = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.HandSize |= int32(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field QueueLengthLimit", wireType) } m.QueueLengthLimit = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.QueueLengthLimit |= int32(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ResourcePolicyRule) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ResourcePolicyRule: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ResourcePolicyRule: 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 != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ClusterScope", 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.ClusterScope = bool(v != 0) case 5: 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ServiceAccountSubject) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ServiceAccountSubject: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ServiceAccountSubject: 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 = SubjectKind(dAtA[iNdEx:postIndex]) iNdEx = postIndex 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 m.User == nil { m.User = &UserSubject{} } 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 Group", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Group == nil { m.Group = &GroupSubject{} } if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ServiceAccount == nil { m.ServiceAccount = &ServiceAccountSubject{} } if err := m.ServiceAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *UserSubject) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: UserSubject: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: UserSubject: 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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/flowcontrol/v1/generated.proto000066400000000000000000000532051453636404600222640ustar00rootroot00000000000000/* 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.flowcontrol.v1; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/flowcontrol/v1"; // ExemptPriorityLevelConfiguration describes the configurable aspects // of the handling of exempt requests. // In the mandatory exempt configuration object the values in the fields // here can be modified by authorized users, unlike the rest of the `spec`. message ExemptPriorityLevelConfiguration { // `nominalConcurrencyShares` (NCS) contributes to the computation of the // NominalConcurrencyLimit (NominalCL) of this level. // This is the number of execution seats nominally reserved for this priority level. // This DOES NOT limit the dispatching from this priority level // but affects the other priority levels through the borrowing mechanism. // The server's concurrency limit (ServerCL) is divided among all the // priority levels in proportion to their NCS values: // // NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) // sum_ncs = sum[priority level k] NCS(k) // // Bigger numbers mean a larger nominal concurrency limit, // at the expense of every other priority level. // This field has a default value of zero. // +optional optional int32 nominalConcurrencyShares = 1; // `lendablePercent` prescribes the fraction of the level's NominalCL that // can be borrowed by other priority levels. This value of this // field must be between 0 and 100, inclusive, and it defaults to 0. // The number of seats that other levels can borrow from this level, known // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. // // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) // // +optional optional int32 lendablePercent = 2; } // FlowDistinguisherMethod specifies the method of a flow distinguisher. message FlowDistinguisherMethod { // `type` is the type of flow distinguisher method // The supported types are "ByUser" and "ByNamespace". // Required. optional string type = 1; } // FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with // similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". message FlowSchema { // `metadata` is the 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 specification of the desired behavior of a FlowSchema. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional FlowSchemaSpec spec = 2; // `status` is the current status of a FlowSchema. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional FlowSchemaStatus status = 3; } // FlowSchemaCondition describes conditions for a FlowSchema. message FlowSchemaCondition { // `type` is the type of the condition. // Required. optional string type = 1; // `status` is the status of the condition. // Can be True, False, Unknown. // Required. optional string status = 2; // `lastTransitionTime` is the last time the condition transitioned from one status to another. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. optional string reason = 4; // `message` is a human-readable message indicating details about last transition. optional string message = 5; } // FlowSchemaList is a list of FlowSchema objects. message FlowSchemaList { // `metadata` is the 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 FlowSchemas. repeated FlowSchema items = 2; } // FlowSchemaSpec describes how the FlowSchema's specification looks like. message FlowSchemaSpec { // `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot // be resolved, the FlowSchema will be ignored and marked as invalid in its status. // Required. optional PriorityLevelConfigurationReference priorityLevelConfiguration = 1; // `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen // FlowSchema is among those with the numerically lowest (which we take to be logically highest) // MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. // Note that if the precedence is not specified, it will be set to 1000 as default. // +optional optional int32 matchingPrecedence = 2; // `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. // `nil` specifies that the distinguisher is disabled and thus will always be the empty string. // +optional optional FlowDistinguisherMethod distinguisherMethod = 3; // `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if // at least one member of rules matches the request. // if it is an empty slice, there will be no requests matching the FlowSchema. // +listType=atomic // +optional repeated PolicyRulesWithSubjects rules = 4; } // FlowSchemaStatus represents the current state of a FlowSchema. message FlowSchemaStatus { // `conditions` is a list of the current states of FlowSchema. // +listType=map // +listMapKey=type // +patchMergeKey=type // +patchStrategy=merge // +optional repeated FlowSchemaCondition conditions = 1; } // GroupSubject holds detailed information for group-kind subject. message GroupSubject { // name is the user group that matches, or "*" to match all user groups. // See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some // well-known group names. // Required. optional string name = 1; } // LimitResponse defines how to handle requests that can not be executed right now. // +union message LimitResponse { // `type` is "Queue" or "Reject". // "Queue" means that requests that can not be executed upon arrival // are held in a queue until they can be executed or a queuing limit // is reached. // "Reject" means that requests that can not be executed upon arrival // are rejected. // Required. // +unionDiscriminator optional string type = 1; // `queuing` holds the configuration parameters for queuing. // This field may be non-empty only if `type` is `"Queue"`. // +optional optional QueuingConfiguration queuing = 2; } // LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. // It addresses two issues: // - How are requests for this priority level limited? // - What should be done with requests that exceed the limit? message LimitedPriorityLevelConfiguration { // `nominalConcurrencyShares` (NCS) contributes to the computation of the // NominalConcurrencyLimit (NominalCL) of this level. // This is the number of execution seats available at this priority level. // This is used both for requests dispatched from this priority level // as well as requests dispatched from other priority levels // borrowing seats from this level. // The server's concurrency limit (ServerCL) is divided among the // Limited priority levels in proportion to their NCS values: // // NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) // sum_ncs = sum[priority level k] NCS(k) // // Bigger numbers mean a larger nominal concurrency limit, // at the expense of every other priority level. // // If not specified, this field defaults to a value of 30. // // Setting this field to zero supports the construction of a // "jail" for this priority level that is used to hold some request(s) // // +optional optional int32 nominalConcurrencyShares = 1; // `limitResponse` indicates what to do with requests that can not be executed right now optional LimitResponse limitResponse = 2; // `lendablePercent` prescribes the fraction of the level's NominalCL that // can be borrowed by other priority levels. The value of this // field must be between 0 and 100, inclusive, and it defaults to 0. // The number of seats that other levels can borrow from this level, known // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. // // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) // // +optional optional int32 lendablePercent = 3; // `borrowingLimitPercent`, if present, configures a limit on how many // seats this priority level can borrow from other priority levels. // The limit is known as this level's BorrowingConcurrencyLimit // (BorrowingCL) and is a limit on the total number of seats that this // level may borrow at any one time. // This field holds the ratio of that limit to the level's nominal // concurrency limit. When this field is non-nil, it must hold a // non-negative integer and the limit is calculated as follows. // // BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) // // The value of this field can be more than 100, implying that this // priority level can borrow a number of seats that is greater than // its own nominal concurrency limit (NominalCL). // When this field is left `nil`, the limit is effectively infinite. // +optional optional int32 borrowingLimitPercent = 4; } // NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the // target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member // of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. message NonResourcePolicyRule { // `verbs` is a list of matching verbs and may not be empty. // "*" matches all verbs. If it is present, it must be the only entry. // +listType=set // Required. repeated string verbs = 1; // `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. // For example: // - "/healthz" is legal // - "/hea*" is illegal // - "/hea" is legal but matches nothing // - "/hea/*" also matches nothing // - "/healthz/*" matches all per-component health checks. // "*" matches all non-resource urls. if it is present, it must be the only entry. // +listType=set // Required. repeated string nonResourceURLs = 6; } // PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject // making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches // a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member // of resourceRules or nonResourceRules matches the request. message PolicyRulesWithSubjects { // subjects is the list of normal user, serviceaccount, or group that this rule cares about. // There must be at least one member in this slice. // A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. // +listType=atomic // Required. repeated Subject subjects = 1; // `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the // target resource. // At least one of `resourceRules` and `nonResourceRules` has to be non-empty. // +listType=atomic // +optional repeated ResourcePolicyRule resourceRules = 2; // `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb // and the target non-resource URL. // +listType=atomic // +optional repeated NonResourcePolicyRule nonResourceRules = 3; } // PriorityLevelConfiguration represents the configuration of a priority level. message PriorityLevelConfiguration { // `metadata` is the 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 specification of the desired behavior of a "request-priority". // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional PriorityLevelConfigurationSpec spec = 2; // `status` is the current status of a "request-priority". // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional PriorityLevelConfigurationStatus status = 3; } // PriorityLevelConfigurationCondition defines the condition of priority level. message PriorityLevelConfigurationCondition { // `type` is the type of the condition. // Required. optional string type = 1; // `status` is the status of the condition. // Can be True, False, Unknown. // Required. optional string status = 2; // `lastTransitionTime` is the last time the condition transitioned from one status to another. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. optional string reason = 4; // `message` is a human-readable message indicating details about last transition. optional string message = 5; } // PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. message PriorityLevelConfigurationList { // `metadata` is the 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 a list of request-priorities. repeated PriorityLevelConfiguration items = 2; } // PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. message PriorityLevelConfigurationReference { // `name` is the name of the priority level configuration being referenced // Required. optional string name = 1; } // PriorityLevelConfigurationSpec specifies the configuration of a priority level. // +union message PriorityLevelConfigurationSpec { // `type` indicates whether this priority level is subject to // limitation on request execution. A value of `"Exempt"` means // that requests of this priority level are not subject to a limit // (and thus are never queued) and do not detract from the // capacity made available to other priority levels. A value of // `"Limited"` means that (a) requests of this priority level // _are_ subject to limits and (b) some of the server's limited // capacity is made available exclusively to this priority level. // Required. // +unionDiscriminator optional string type = 1; // `limited` specifies how requests are handled for a Limited priority level. // This field must be non-empty if and only if `type` is `"Limited"`. // +optional optional LimitedPriorityLevelConfiguration limited = 2; // `exempt` specifies how requests are handled for an exempt priority level. // This field MUST be empty if `type` is `"Limited"`. // This field MAY be non-empty if `type` is `"Exempt"`. // If empty and `type` is `"Exempt"` then the default values // for `ExemptPriorityLevelConfiguration` apply. // +optional optional ExemptPriorityLevelConfiguration exempt = 3; } // PriorityLevelConfigurationStatus represents the current state of a "request-priority". message PriorityLevelConfigurationStatus { // `conditions` is the current state of "request-priority". // +listType=map // +listMapKey=type // +patchMergeKey=type // +patchStrategy=merge // +optional repeated PriorityLevelConfigurationCondition conditions = 1; } // QueuingConfiguration holds the configuration parameters for queuing message QueuingConfiguration { // `queues` is the number of queues for this priority level. The // queues exist independently at each apiserver. The value must be // positive. Setting it to 1 effectively precludes // shufflesharding and thus makes the distinguisher method of // associated flow schemas irrelevant. This field has a default // value of 64. // +optional optional int32 queues = 1; // `handSize` is a small positive number that configures the // shuffle sharding of requests into queues. When enqueuing a request // at this priority level the request's flow identifier (a string // pair) is hashed and the hash value is used to shuffle the list // of queues and deal a hand of the size specified here. The // request is put into one of the shortest queues in that hand. // `handSize` must be no larger than `queues`, and should be // significantly smaller (so that a few heavy flows do not // saturate most of the queues). See the user-facing // documentation for more extensive guidance on setting this // field. This field has a default value of 8. // +optional optional int32 handSize = 2; // `queueLengthLimit` is the maximum number of requests allowed to // be waiting in a given queue of this priority level at a time; // excess requests are rejected. This value must be positive. If // not specified, it will be defaulted to 50. // +optional optional int32 queueLengthLimit = 3; } // ResourcePolicyRule is a predicate that matches some resource // requests, testing the request's verb and the target resource. A // ResourcePolicyRule matches a resource request if and only if: (a) // at least one member of verbs matches the request, (b) at least one // member of apiGroups matches the request, (c) at least one member of // resources matches the request, and (d) either (d1) the request does // not specify a namespace (i.e., `Namespace==""`) and clusterScope is // true or (d2) the request specifies a namespace and least one member // of namespaces matches the request's namespace. message ResourcePolicyRule { // `verbs` is a list of matching verbs and may not be empty. // "*" matches all verbs and, if present, must be the only entry. // +listType=set // Required. repeated string verbs = 1; // `apiGroups` is a list of matching API groups and may not be empty. // "*" matches all API groups and, if present, must be the only entry. // +listType=set // Required. repeated string apiGroups = 2; // `resources` is a list of matching resources (i.e., lowercase // and plural) with, if desired, subresource. For example, [ // "services", "nodes/status" ]. This list may not be empty. // "*" matches all resources and, if present, must be the only entry. // Required. // +listType=set repeated string resources = 3; // `clusterScope` indicates whether to match requests that do not // specify a namespace (which happens either because the resource // is not namespaced or the request targets all namespaces). // If this field is omitted or false then the `namespaces` field // must contain a non-empty list. // +optional optional bool clusterScope = 4; // `namespaces` is a list of target namespaces that restricts // matches. A request that specifies a target namespace matches // only if either (a) this list contains that target namespace or // (b) this list contains "*". Note that "*" matches any // specified namespace but does not match a request that _does // not specify_ a namespace (see the `clusterScope` field for // that). // This list may be empty, but only if `clusterScope` is true. // +optional // +listType=set repeated string namespaces = 5; } // ServiceAccountSubject holds detailed information for service-account-kind subject. message ServiceAccountSubject { // `namespace` is the namespace of matching ServiceAccount objects. // Required. optional string namespace = 1; // `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. // Required. optional string name = 2; } // Subject matches the originator of a request, as identified by the request authentication system. There are three // ways of matching an originator; by user, group, or service account. // +union message Subject { // `kind` indicates which one of the other fields is non-empty. // Required // +unionDiscriminator optional string kind = 1; // `user` matches based on username. // +optional optional UserSubject user = 2; // `group` matches based on user group name. // +optional optional GroupSubject group = 3; // `serviceAccount` matches ServiceAccounts. // +optional optional ServiceAccountSubject serviceAccount = 4; } // UserSubject holds detailed information for user-kind subject. message UserSubject { // `name` is the username that matches, or "*" to match all usernames. // Required. optional string name = 1; } golang-k8s-api-0.29.0/flowcontrol/v1/register.go000066400000000000000000000035041453636404600214110ustar00rootroot00000000000000/* Copyright 2023 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the name of api group const GroupName = "flowcontrol.apiserver.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 ( // SchemeBuilder installs the api group to a scheme SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme adds api 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, &FlowSchema{}, &FlowSchemaList{}, &PriorityLevelConfiguration{}, &PriorityLevelConfigurationList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/flowcontrol/v1/types.go000066400000000000000000000757011453636404600207410ustar00rootroot00000000000000/* Copyright 2023 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // These are valid wildcards. const ( APIGroupAll = "*" ResourceAll = "*" VerbAll = "*" NonResourceAll = "*" NameAll = "*" NamespaceEvery = "*" // matches every particular namespace ) // System preset priority level names const ( PriorityLevelConfigurationNameExempt = "exempt" PriorityLevelConfigurationNameCatchAll = "catch-all" FlowSchemaNameExempt = "exempt" FlowSchemaNameCatchAll = "catch-all" ) // Conditions const ( FlowSchemaConditionDangling = "Dangling" PriorityLevelConfigurationConditionConcurrencyShared = "ConcurrencyShared" ) // Constants used by api validation. const ( FlowSchemaMaxMatchingPrecedence int32 = 10000 ) // Constants for apiserver response headers. const ( ResponseHeaderMatchedPriorityLevelConfigurationUID = "X-Kubernetes-PF-PriorityLevel-UID" ResponseHeaderMatchedFlowSchemaUID = "X-Kubernetes-PF-FlowSchema-UID" ) const ( // AutoUpdateAnnotationKey is the name of an annotation that enables // automatic update of the spec of the bootstrap configuration // object(s), if set to 'true'. // // On a fresh install, all bootstrap configuration objects will have auto // update enabled with the following annotation key: // apf.kubernetes.io/autoupdate-spec: 'true' // // The kube-apiserver periodically checks the bootstrap configuration // objects on the cluster and applies updates if necessary. // // kube-apiserver enforces an 'always auto-update' policy for the // mandatory configuration object(s). This implies: // - the auto-update annotation key is added with a value of 'true' // if it is missing. // - the auto-update annotation key is set to 'true' if its current value // is a boolean false or has an invalid boolean representation // (if the cluster operator sets it to 'false' it will be stomped) // - any changes to the spec made by the cluster operator will be // stomped, except for changes to the `nominalConcurrencyShares` // and `lendablePercent` fields of the PriorityLevelConfiguration // named "exempt". // // The kube-apiserver will apply updates on the suggested configuration if: // - the cluster operator has enabled auto-update by setting the annotation // (apf.kubernetes.io/autoupdate-spec: 'true') or // - the annotation key is missing but the generation is 1 // // If the suggested configuration object is missing the annotation key, // kube-apiserver will update the annotation appropriately: // - it is set to 'true' if generation of the object is '1' which usually // indicates that the spec of the object has not been changed. // - it is set to 'false' if generation of the object is greater than 1. // // The goal is to enable the kube-apiserver to apply update on suggested // configuration objects installed by previous releases but not overwrite // changes made by the cluster operators. // Note that this distinction is imperfectly detected: in the case where an // operator deletes a suggested configuration object and later creates it // but with a variant spec and then does no updates of the object // (generation is 1), the technique outlined above will incorrectly // determine that the object should be auto-updated. AutoUpdateAnnotationKey = "apf.kubernetes.io/autoupdate-spec" ) // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with // similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". type FlowSchema struct { metav1.TypeMeta `json:",inline"` // `metadata` is the 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 specification of the desired behavior of a FlowSchema. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec FlowSchemaSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // `status` is the current status of a FlowSchema. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Status FlowSchemaStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // FlowSchemaList is a list of FlowSchema objects. type FlowSchemaList struct { metav1.TypeMeta `json:",inline"` // `metadata` is the 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 FlowSchemas. Items []FlowSchema `json:"items" protobuf:"bytes,2,rep,name=items"` } // FlowSchemaSpec describes how the FlowSchema's specification looks like. type FlowSchemaSpec struct { // `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot // be resolved, the FlowSchema will be ignored and marked as invalid in its status. // Required. PriorityLevelConfiguration PriorityLevelConfigurationReference `json:"priorityLevelConfiguration" protobuf:"bytes,1,opt,name=priorityLevelConfiguration"` // `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen // FlowSchema is among those with the numerically lowest (which we take to be logically highest) // MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. // Note that if the precedence is not specified, it will be set to 1000 as default. // +optional MatchingPrecedence int32 `json:"matchingPrecedence" protobuf:"varint,2,opt,name=matchingPrecedence"` // `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. // `nil` specifies that the distinguisher is disabled and thus will always be the empty string. // +optional DistinguisherMethod *FlowDistinguisherMethod `json:"distinguisherMethod,omitempty" protobuf:"bytes,3,opt,name=distinguisherMethod"` // `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if // at least one member of rules matches the request. // if it is an empty slice, there will be no requests matching the FlowSchema. // +listType=atomic // +optional Rules []PolicyRulesWithSubjects `json:"rules,omitempty" protobuf:"bytes,4,rep,name=rules"` } // FlowDistinguisherMethodType is the type of flow distinguisher method type FlowDistinguisherMethodType string // These are valid flow-distinguisher methods. const ( // FlowDistinguisherMethodByUserType specifies that the flow distinguisher is the username in the request. // This type is used to provide some insulation between users. FlowDistinguisherMethodByUserType FlowDistinguisherMethodType = "ByUser" // FlowDistinguisherMethodByNamespaceType specifies that the flow distinguisher is the namespace of the // object that the request acts upon. If the object is not namespaced, or if the request is a non-resource // request, then the distinguisher will be the empty string. An example usage of this type is to provide // some insulation between tenants in a situation where there are multiple tenants and each namespace // is dedicated to a tenant. FlowDistinguisherMethodByNamespaceType FlowDistinguisherMethodType = "ByNamespace" ) // FlowDistinguisherMethod specifies the method of a flow distinguisher. type FlowDistinguisherMethod struct { // `type` is the type of flow distinguisher method // The supported types are "ByUser" and "ByNamespace". // Required. Type FlowDistinguisherMethodType `json:"type" protobuf:"bytes,1,opt,name=type"` } // PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. type PriorityLevelConfigurationReference struct { // `name` is the name of the priority level configuration being referenced // Required. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` } // PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject // making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches // a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member // of resourceRules or nonResourceRules matches the request. type PolicyRulesWithSubjects struct { // subjects is the list of normal user, serviceaccount, or group that this rule cares about. // There must be at least one member in this slice. // A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. // +listType=atomic // Required. Subjects []Subject `json:"subjects" protobuf:"bytes,1,rep,name=subjects"` // `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the // target resource. // At least one of `resourceRules` and `nonResourceRules` has to be non-empty. // +listType=atomic // +optional ResourceRules []ResourcePolicyRule `json:"resourceRules,omitempty" protobuf:"bytes,2,opt,name=resourceRules"` // `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb // and the target non-resource URL. // +listType=atomic // +optional NonResourceRules []NonResourcePolicyRule `json:"nonResourceRules,omitempty" protobuf:"bytes,3,opt,name=nonResourceRules"` } // Subject matches the originator of a request, as identified by the request authentication system. There are three // ways of matching an originator; by user, group, or service account. // +union type Subject struct { // `kind` indicates which one of the other fields is non-empty. // Required // +unionDiscriminator Kind SubjectKind `json:"kind" protobuf:"bytes,1,opt,name=kind"` // `user` matches based on username. // +optional User *UserSubject `json:"user,omitempty" protobuf:"bytes,2,opt,name=user"` // `group` matches based on user group name. // +optional Group *GroupSubject `json:"group,omitempty" protobuf:"bytes,3,opt,name=group"` // `serviceAccount` matches ServiceAccounts. // +optional ServiceAccount *ServiceAccountSubject `json:"serviceAccount,omitempty" protobuf:"bytes,4,opt,name=serviceAccount"` } // SubjectKind is the kind of subject. type SubjectKind string // Supported subject's kinds. const ( SubjectKindUser SubjectKind = "User" SubjectKindGroup SubjectKind = "Group" SubjectKindServiceAccount SubjectKind = "ServiceAccount" ) // UserSubject holds detailed information for user-kind subject. type UserSubject struct { // `name` is the username that matches, or "*" to match all usernames. // Required. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` } // GroupSubject holds detailed information for group-kind subject. type GroupSubject struct { // name is the user group that matches, or "*" to match all user groups. // See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some // well-known group names. // Required. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` } // ServiceAccountSubject holds detailed information for service-account-kind subject. type ServiceAccountSubject struct { // `namespace` is the namespace of matching ServiceAccount objects. // Required. Namespace string `json:"namespace" protobuf:"bytes,1,opt,name=namespace"` // `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. // Required. Name string `json:"name" protobuf:"bytes,2,opt,name=name"` } // ResourcePolicyRule is a predicate that matches some resource // requests, testing the request's verb and the target resource. A // ResourcePolicyRule matches a resource request if and only if: (a) // at least one member of verbs matches the request, (b) at least one // member of apiGroups matches the request, (c) at least one member of // resources matches the request, and (d) either (d1) the request does // not specify a namespace (i.e., `Namespace==""`) and clusterScope is // true or (d2) the request specifies a namespace and least one member // of namespaces matches the request's namespace. type ResourcePolicyRule struct { // `verbs` is a list of matching verbs and may not be empty. // "*" matches all verbs and, if present, must be the only entry. // +listType=set // Required. Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` // `apiGroups` is a list of matching API groups and may not be empty. // "*" matches all API groups and, if present, must be the only entry. // +listType=set // Required. APIGroups []string `json:"apiGroups" protobuf:"bytes,2,rep,name=apiGroups"` // `resources` is a list of matching resources (i.e., lowercase // and plural) with, if desired, subresource. For example, [ // "services", "nodes/status" ]. This list may not be empty. // "*" matches all resources and, if present, must be the only entry. // Required. // +listType=set Resources []string `json:"resources" protobuf:"bytes,3,rep,name=resources"` // `clusterScope` indicates whether to match requests that do not // specify a namespace (which happens either because the resource // is not namespaced or the request targets all namespaces). // If this field is omitted or false then the `namespaces` field // must contain a non-empty list. // +optional ClusterScope bool `json:"clusterScope,omitempty" protobuf:"varint,4,opt,name=clusterScope"` // `namespaces` is a list of target namespaces that restricts // matches. A request that specifies a target namespace matches // only if either (a) this list contains that target namespace or // (b) this list contains "*". Note that "*" matches any // specified namespace but does not match a request that _does // not specify_ a namespace (see the `clusterScope` field for // that). // This list may be empty, but only if `clusterScope` is true. // +optional // +listType=set Namespaces []string `json:"namespaces" protobuf:"bytes,5,rep,name=namespaces"` } // NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the // target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member // of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. type NonResourcePolicyRule struct { // `verbs` is a list of matching verbs and may not be empty. // "*" matches all verbs. If it is present, it must be the only entry. // +listType=set // Required. Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` // `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. // For example: // - "/healthz" is legal // - "/hea*" is illegal // - "/hea" is legal but matches nothing // - "/hea/*" also matches nothing // - "/healthz/*" matches all per-component health checks. // "*" matches all non-resource urls. if it is present, it must be the only entry. // +listType=set // Required. NonResourceURLs []string `json:"nonResourceURLs" protobuf:"bytes,6,rep,name=nonResourceURLs"` } // FlowSchemaStatus represents the current state of a FlowSchema. type FlowSchemaStatus struct { // `conditions` is a list of the current states of FlowSchema. // +listType=map // +listMapKey=type // +patchMergeKey=type // +patchStrategy=merge // +optional Conditions []FlowSchemaCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` } // FlowSchemaCondition describes conditions for a FlowSchema. type FlowSchemaCondition struct { // `type` is the type of the condition. // Required. Type FlowSchemaConditionType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type"` // `status` is the status of the condition. // Can be True, False, Unknown. // Required. Status ConditionStatus `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"` // `lastTransitionTime` is the last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` // `message` is a human-readable message indicating details about last transition. Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` } // FlowSchemaConditionType is a valid value for FlowSchemaStatusCondition.Type type FlowSchemaConditionType string // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // PriorityLevelConfiguration represents the configuration of a priority level. type PriorityLevelConfiguration struct { metav1.TypeMeta `json:",inline"` // `metadata` is the 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 specification of the desired behavior of a "request-priority". // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec PriorityLevelConfigurationSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // `status` is the current status of a "request-priority". // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Status PriorityLevelConfigurationStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. type PriorityLevelConfigurationList struct { metav1.TypeMeta `json:",inline"` // `metadata` is the 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 a list of request-priorities. Items []PriorityLevelConfiguration `json:"items" protobuf:"bytes,2,rep,name=items"` } // PriorityLevelConfigurationSpec specifies the configuration of a priority level. // +union type PriorityLevelConfigurationSpec struct { // `type` indicates whether this priority level is subject to // limitation on request execution. A value of `"Exempt"` means // that requests of this priority level are not subject to a limit // (and thus are never queued) and do not detract from the // capacity made available to other priority levels. A value of // `"Limited"` means that (a) requests of this priority level // _are_ subject to limits and (b) some of the server's limited // capacity is made available exclusively to this priority level. // Required. // +unionDiscriminator Type PriorityLevelEnablement `json:"type" protobuf:"bytes,1,opt,name=type"` // `limited` specifies how requests are handled for a Limited priority level. // This field must be non-empty if and only if `type` is `"Limited"`. // +optional Limited *LimitedPriorityLevelConfiguration `json:"limited,omitempty" protobuf:"bytes,2,opt,name=limited"` // `exempt` specifies how requests are handled for an exempt priority level. // This field MUST be empty if `type` is `"Limited"`. // This field MAY be non-empty if `type` is `"Exempt"`. // If empty and `type` is `"Exempt"` then the default values // for `ExemptPriorityLevelConfiguration` apply. // +optional Exempt *ExemptPriorityLevelConfiguration `json:"exempt,omitempty" protobuf:"bytes,3,opt,name=exempt"` } // PriorityLevelEnablement indicates whether limits on execution are enabled for the priority level type PriorityLevelEnablement string // Supported priority level enablement values. const ( // PriorityLevelEnablementExempt means that requests are not subject to limits PriorityLevelEnablementExempt PriorityLevelEnablement = "Exempt" // PriorityLevelEnablementLimited means that requests are subject to limits PriorityLevelEnablementLimited PriorityLevelEnablement = "Limited" ) // LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. // It addresses two issues: // - How are requests for this priority level limited? // - What should be done with requests that exceed the limit? type LimitedPriorityLevelConfiguration struct { // `nominalConcurrencyShares` (NCS) contributes to the computation of the // NominalConcurrencyLimit (NominalCL) of this level. // This is the number of execution seats available at this priority level. // This is used both for requests dispatched from this priority level // as well as requests dispatched from other priority levels // borrowing seats from this level. // The server's concurrency limit (ServerCL) is divided among the // Limited priority levels in proportion to their NCS values: // // NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) // sum_ncs = sum[priority level k] NCS(k) // // Bigger numbers mean a larger nominal concurrency limit, // at the expense of every other priority level. // // If not specified, this field defaults to a value of 30. // // Setting this field to zero supports the construction of a // "jail" for this priority level that is used to hold some request(s) // // +optional NominalConcurrencyShares *int32 `json:"nominalConcurrencyShares" protobuf:"varint,1,opt,name=nominalConcurrencyShares"` // `limitResponse` indicates what to do with requests that can not be executed right now LimitResponse LimitResponse `json:"limitResponse,omitempty" protobuf:"bytes,2,opt,name=limitResponse"` // `lendablePercent` prescribes the fraction of the level's NominalCL that // can be borrowed by other priority levels. The value of this // field must be between 0 and 100, inclusive, and it defaults to 0. // The number of seats that other levels can borrow from this level, known // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. // // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) // // +optional LendablePercent *int32 `json:"lendablePercent,omitempty" protobuf:"varint,3,opt,name=lendablePercent"` // `borrowingLimitPercent`, if present, configures a limit on how many // seats this priority level can borrow from other priority levels. // The limit is known as this level's BorrowingConcurrencyLimit // (BorrowingCL) and is a limit on the total number of seats that this // level may borrow at any one time. // This field holds the ratio of that limit to the level's nominal // concurrency limit. When this field is non-nil, it must hold a // non-negative integer and the limit is calculated as follows. // // BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) // // The value of this field can be more than 100, implying that this // priority level can borrow a number of seats that is greater than // its own nominal concurrency limit (NominalCL). // When this field is left `nil`, the limit is effectively infinite. // +optional BorrowingLimitPercent *int32 `json:"borrowingLimitPercent,omitempty" protobuf:"varint,4,opt,name=borrowingLimitPercent"` } // ExemptPriorityLevelConfiguration describes the configurable aspects // of the handling of exempt requests. // In the mandatory exempt configuration object the values in the fields // here can be modified by authorized users, unlike the rest of the `spec`. type ExemptPriorityLevelConfiguration struct { // `nominalConcurrencyShares` (NCS) contributes to the computation of the // NominalConcurrencyLimit (NominalCL) of this level. // This is the number of execution seats nominally reserved for this priority level. // This DOES NOT limit the dispatching from this priority level // but affects the other priority levels through the borrowing mechanism. // The server's concurrency limit (ServerCL) is divided among all the // priority levels in proportion to their NCS values: // // NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) // sum_ncs = sum[priority level k] NCS(k) // // Bigger numbers mean a larger nominal concurrency limit, // at the expense of every other priority level. // This field has a default value of zero. // +optional NominalConcurrencyShares *int32 `json:"nominalConcurrencyShares,omitempty" protobuf:"varint,1,opt,name=nominalConcurrencyShares"` // `lendablePercent` prescribes the fraction of the level's NominalCL that // can be borrowed by other priority levels. This value of this // field must be between 0 and 100, inclusive, and it defaults to 0. // The number of seats that other levels can borrow from this level, known // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. // // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) // // +optional LendablePercent *int32 `json:"lendablePercent,omitempty" protobuf:"varint,2,opt,name=lendablePercent"` // The `BorrowingCL` of an Exempt priority level is implicitly `ServerCL`. // In other words, an exempt priority level // has no meaningful limit on how much it borrows. // There is no explicit representation of that here. } // LimitResponse defines how to handle requests that can not be executed right now. // +union type LimitResponse struct { // `type` is "Queue" or "Reject". // "Queue" means that requests that can not be executed upon arrival // are held in a queue until they can be executed or a queuing limit // is reached. // "Reject" means that requests that can not be executed upon arrival // are rejected. // Required. // +unionDiscriminator Type LimitResponseType `json:"type" protobuf:"bytes,1,opt,name=type"` // `queuing` holds the configuration parameters for queuing. // This field may be non-empty only if `type` is `"Queue"`. // +optional Queuing *QueuingConfiguration `json:"queuing,omitempty" protobuf:"bytes,2,opt,name=queuing"` } // LimitResponseType identifies how a Limited priority level handles a request that can not be executed right now type LimitResponseType string // Supported limit responses. const ( // LimitResponseTypeQueue means that requests that can not be executed right now are queued until they can be executed or a queuing limit is hit LimitResponseTypeQueue LimitResponseType = "Queue" // LimitResponseTypeReject means that requests that can not be executed right now are rejected LimitResponseTypeReject LimitResponseType = "Reject" ) // QueuingConfiguration holds the configuration parameters for queuing type QueuingConfiguration struct { // `queues` is the number of queues for this priority level. The // queues exist independently at each apiserver. The value must be // positive. Setting it to 1 effectively precludes // shufflesharding and thus makes the distinguisher method of // associated flow schemas irrelevant. This field has a default // value of 64. // +optional Queues int32 `json:"queues" protobuf:"varint,1,opt,name=queues"` // `handSize` is a small positive number that configures the // shuffle sharding of requests into queues. When enqueuing a request // at this priority level the request's flow identifier (a string // pair) is hashed and the hash value is used to shuffle the list // of queues and deal a hand of the size specified here. The // request is put into one of the shortest queues in that hand. // `handSize` must be no larger than `queues`, and should be // significantly smaller (so that a few heavy flows do not // saturate most of the queues). See the user-facing // documentation for more extensive guidance on setting this // field. This field has a default value of 8. // +optional HandSize int32 `json:"handSize" protobuf:"varint,2,opt,name=handSize"` // `queueLengthLimit` is the maximum number of requests allowed to // be waiting in a given queue of this priority level at a time; // excess requests are rejected. This value must be positive. If // not specified, it will be defaulted to 50. // +optional QueueLengthLimit int32 `json:"queueLengthLimit" protobuf:"varint,3,opt,name=queueLengthLimit"` } // PriorityLevelConfigurationConditionType is a valid value for PriorityLevelConfigurationStatusCondition.Type type PriorityLevelConfigurationConditionType string // PriorityLevelConfigurationStatus represents the current state of a "request-priority". type PriorityLevelConfigurationStatus struct { // `conditions` is the current state of "request-priority". // +listType=map // +listMapKey=type // +patchMergeKey=type // +patchStrategy=merge // +optional Conditions []PriorityLevelConfigurationCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` } // PriorityLevelConfigurationCondition defines the condition of priority level. type PriorityLevelConfigurationCondition struct { // `type` is the type of the condition. // Required. Type PriorityLevelConfigurationConditionType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type"` // `status` is the status of the condition. // Can be True, False, Unknown. // Required. Status ConditionStatus `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"` // `lastTransitionTime` is the last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` // `message` is a human-readable message indicating details about last transition. Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` } // ConditionStatus is the status of the condition. 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" ) golang-k8s-api-0.29.0/flowcontrol/v1/types_swagger_doc_generated.go000066400000000000000000000532711453636404600253210ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_ExemptPriorityLevelConfiguration = map[string]string{ "": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.", "nominalConcurrencyShares": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.", "lendablePercent": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", } func (ExemptPriorityLevelConfiguration) SwaggerDoc() map[string]string { return map_ExemptPriorityLevelConfiguration } var map_FlowDistinguisherMethod = map[string]string{ "": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", "type": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", } func (FlowDistinguisherMethod) SwaggerDoc() map[string]string { return map_FlowDistinguisherMethod } var map_FlowSchema = map[string]string{ "": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", "metadata": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "spec": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", "status": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", } func (FlowSchema) SwaggerDoc() map[string]string { return map_FlowSchema } var map_FlowSchemaCondition = map[string]string{ "": "FlowSchemaCondition describes conditions for a FlowSchema.", "type": "`type` is the type of the condition. Required.", "status": "`status` is the status of the condition. Can be True, False, Unknown. Required.", "lastTransitionTime": "`lastTransitionTime` is the last time the condition transitioned from one status to another.", "reason": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", "message": "`message` is a human-readable message indicating details about last transition.", } func (FlowSchemaCondition) SwaggerDoc() map[string]string { return map_FlowSchemaCondition } var map_FlowSchemaList = map[string]string{ "": "FlowSchemaList is a list of FlowSchema objects.", "metadata": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "items": "`items` is a list of FlowSchemas.", } func (FlowSchemaList) SwaggerDoc() map[string]string { return map_FlowSchemaList } var map_FlowSchemaSpec = map[string]string{ "": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", "priorityLevelConfiguration": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required.", "matchingPrecedence": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.", "distinguisherMethod": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string.", "rules": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", } func (FlowSchemaSpec) SwaggerDoc() map[string]string { return map_FlowSchemaSpec } var map_FlowSchemaStatus = map[string]string{ "": "FlowSchemaStatus represents the current state of a FlowSchema.", "conditions": "`conditions` is a list of the current states of FlowSchema.", } func (FlowSchemaStatus) SwaggerDoc() map[string]string { return map_FlowSchemaStatus } var map_GroupSubject = map[string]string{ "": "GroupSubject holds detailed information for group-kind subject.", "name": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.", } func (GroupSubject) SwaggerDoc() map[string]string { return map_GroupSubject } var map_LimitResponse = map[string]string{ "": "LimitResponse defines how to handle requests that can not be executed right now.", "type": "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.", "queuing": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`.", } func (LimitResponse) SwaggerDoc() map[string]string { return map_LimitResponse } var map_LimitedPriorityLevelConfiguration = map[string]string{ "": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", "nominalConcurrencyShares": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level.\n\nIf not specified, this field defaults to a value of 30.\n\nSetting this field to zero supports the construction of a \"jail\" for this priority level that is used to hold some request(s)", "limitResponse": "`limitResponse` indicates what to do with requests that can not be executed right now", "lendablePercent": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", "borrowingLimitPercent": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", } func (LimitedPriorityLevelConfiguration) SwaggerDoc() map[string]string { return map_LimitedPriorityLevelConfiguration } var map_NonResourcePolicyRule = map[string]string{ "": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", "verbs": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", "nonResourceURLs": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", } func (NonResourcePolicyRule) SwaggerDoc() map[string]string { return map_NonResourcePolicyRule } var map_PolicyRulesWithSubjects = map[string]string{ "": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", "subjects": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", "resourceRules": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", "nonResourceRules": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", } func (PolicyRulesWithSubjects) SwaggerDoc() map[string]string { return map_PolicyRulesWithSubjects } var map_PriorityLevelConfiguration = map[string]string{ "": "PriorityLevelConfiguration represents the configuration of a priority level.", "metadata": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "spec": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", "status": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", } func (PriorityLevelConfiguration) SwaggerDoc() map[string]string { return map_PriorityLevelConfiguration } var map_PriorityLevelConfigurationCondition = map[string]string{ "": "PriorityLevelConfigurationCondition defines the condition of priority level.", "type": "`type` is the type of the condition. Required.", "status": "`status` is the status of the condition. Can be True, False, Unknown. Required.", "lastTransitionTime": "`lastTransitionTime` is the last time the condition transitioned from one status to another.", "reason": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", "message": "`message` is a human-readable message indicating details about last transition.", } func (PriorityLevelConfigurationCondition) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationCondition } var map_PriorityLevelConfigurationList = map[string]string{ "": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", "metadata": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "items": "`items` is a list of request-priorities.", } func (PriorityLevelConfigurationList) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationList } var map_PriorityLevelConfigurationReference = map[string]string{ "": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", "name": "`name` is the name of the priority level configuration being referenced Required.", } func (PriorityLevelConfigurationReference) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationReference } var map_PriorityLevelConfigurationSpec = map[string]string{ "": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", "type": "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.", "limited": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`.", "exempt": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply.", } func (PriorityLevelConfigurationSpec) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationSpec } var map_PriorityLevelConfigurationStatus = map[string]string{ "": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", "conditions": "`conditions` is the current state of \"request-priority\".", } func (PriorityLevelConfigurationStatus) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationStatus } var map_QueuingConfiguration = map[string]string{ "": "QueuingConfiguration holds the configuration parameters for queuing", "queues": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", "handSize": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", "queueLengthLimit": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", } func (QueuingConfiguration) SwaggerDoc() map[string]string { return map_QueuingConfiguration } var map_ResourcePolicyRule = map[string]string{ "": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", "verbs": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.", "apiGroups": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.", "resources": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.", "clusterScope": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.", "namespaces": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", } func (ResourcePolicyRule) SwaggerDoc() map[string]string { return map_ResourcePolicyRule } var map_ServiceAccountSubject = map[string]string{ "": "ServiceAccountSubject holds detailed information for service-account-kind subject.", "namespace": "`namespace` is the namespace of matching ServiceAccount objects. Required.", "name": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", } func (ServiceAccountSubject) SwaggerDoc() map[string]string { return map_ServiceAccountSubject } var map_Subject = map[string]string{ "": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", "kind": "`kind` indicates which one of the other fields is non-empty. Required", "user": "`user` matches based on username.", "group": "`group` matches based on user group name.", "serviceAccount": "`serviceAccount` matches ServiceAccounts.", } func (Subject) SwaggerDoc() map[string]string { return map_Subject } var map_UserSubject = map[string]string{ "": "UserSubject holds detailed information for user-kind subject.", "name": "`name` is the username that matches, or \"*\" to match all usernames. Required.", } func (UserSubject) SwaggerDoc() map[string]string { return map_UserSubject } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/flowcontrol/v1/zz_generated.deepcopy.go000066400000000000000000000424321453636404600240600ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ExemptPriorityLevelConfiguration) DeepCopyInto(out *ExemptPriorityLevelConfiguration) { *out = *in if in.NominalConcurrencyShares != nil { in, out := &in.NominalConcurrencyShares, &out.NominalConcurrencyShares *out = new(int32) **out = **in } if in.LendablePercent != nil { in, out := &in.LendablePercent, &out.LendablePercent *out = new(int32) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExemptPriorityLevelConfiguration. func (in *ExemptPriorityLevelConfiguration) DeepCopy() *ExemptPriorityLevelConfiguration { if in == nil { return nil } out := new(ExemptPriorityLevelConfiguration) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FlowDistinguisherMethod) DeepCopyInto(out *FlowDistinguisherMethod) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowDistinguisherMethod. func (in *FlowDistinguisherMethod) DeepCopy() *FlowDistinguisherMethod { if in == nil { return nil } out := new(FlowDistinguisherMethod) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FlowSchema) DeepCopyInto(out *FlowSchema) { *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 FlowSchema. func (in *FlowSchema) DeepCopy() *FlowSchema { if in == nil { return nil } out := new(FlowSchema) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *FlowSchema) 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 *FlowSchemaCondition) DeepCopyInto(out *FlowSchemaCondition) { *out = *in in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowSchemaCondition. func (in *FlowSchemaCondition) DeepCopy() *FlowSchemaCondition { if in == nil { return nil } out := new(FlowSchemaCondition) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FlowSchemaList) DeepCopyInto(out *FlowSchemaList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]FlowSchema, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowSchemaList. func (in *FlowSchemaList) DeepCopy() *FlowSchemaList { if in == nil { return nil } out := new(FlowSchemaList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *FlowSchemaList) 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 *FlowSchemaSpec) DeepCopyInto(out *FlowSchemaSpec) { *out = *in out.PriorityLevelConfiguration = in.PriorityLevelConfiguration if in.DistinguisherMethod != nil { in, out := &in.DistinguisherMethod, &out.DistinguisherMethod *out = new(FlowDistinguisherMethod) **out = **in } if in.Rules != nil { in, out := &in.Rules, &out.Rules *out = make([]PolicyRulesWithSubjects, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowSchemaSpec. func (in *FlowSchemaSpec) DeepCopy() *FlowSchemaSpec { if in == nil { return nil } out := new(FlowSchemaSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FlowSchemaStatus) DeepCopyInto(out *FlowSchemaStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]FlowSchemaCondition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowSchemaStatus. func (in *FlowSchemaStatus) DeepCopy() *FlowSchemaStatus { if in == nil { return nil } out := new(FlowSchemaStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *GroupSubject) DeepCopyInto(out *GroupSubject) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupSubject. func (in *GroupSubject) DeepCopy() *GroupSubject { if in == nil { return nil } out := new(GroupSubject) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *LimitResponse) DeepCopyInto(out *LimitResponse) { *out = *in if in.Queuing != nil { in, out := &in.Queuing, &out.Queuing *out = new(QueuingConfiguration) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LimitResponse. func (in *LimitResponse) DeepCopy() *LimitResponse { if in == nil { return nil } out := new(LimitResponse) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *LimitedPriorityLevelConfiguration) DeepCopyInto(out *LimitedPriorityLevelConfiguration) { *out = *in if in.NominalConcurrencyShares != nil { in, out := &in.NominalConcurrencyShares, &out.NominalConcurrencyShares *out = new(int32) **out = **in } in.LimitResponse.DeepCopyInto(&out.LimitResponse) if in.LendablePercent != nil { in, out := &in.LendablePercent, &out.LendablePercent *out = new(int32) **out = **in } if in.BorrowingLimitPercent != nil { in, out := &in.BorrowingLimitPercent, &out.BorrowingLimitPercent *out = new(int32) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LimitedPriorityLevelConfiguration. func (in *LimitedPriorityLevelConfiguration) DeepCopy() *LimitedPriorityLevelConfiguration { if in == nil { return nil } out := new(LimitedPriorityLevelConfiguration) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NonResourcePolicyRule) DeepCopyInto(out *NonResourcePolicyRule) { *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 NonResourcePolicyRule. func (in *NonResourcePolicyRule) DeepCopy() *NonResourcePolicyRule { if in == nil { return nil } out := new(NonResourcePolicyRule) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PolicyRulesWithSubjects) DeepCopyInto(out *PolicyRulesWithSubjects) { *out = *in if in.Subjects != nil { in, out := &in.Subjects, &out.Subjects *out = make([]Subject, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.ResourceRules != nil { in, out := &in.ResourceRules, &out.ResourceRules *out = make([]ResourcePolicyRule, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.NonResourceRules != nil { in, out := &in.NonResourceRules, &out.NonResourceRules *out = make([]NonResourcePolicyRule, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRulesWithSubjects. func (in *PolicyRulesWithSubjects) DeepCopy() *PolicyRulesWithSubjects { if in == nil { return nil } out := new(PolicyRulesWithSubjects) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PriorityLevelConfiguration) DeepCopyInto(out *PriorityLevelConfiguration) { *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 PriorityLevelConfiguration. func (in *PriorityLevelConfiguration) DeepCopy() *PriorityLevelConfiguration { if in == nil { return nil } out := new(PriorityLevelConfiguration) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *PriorityLevelConfiguration) 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 *PriorityLevelConfigurationCondition) DeepCopyInto(out *PriorityLevelConfigurationCondition) { *out = *in in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationCondition. func (in *PriorityLevelConfigurationCondition) DeepCopy() *PriorityLevelConfigurationCondition { if in == nil { return nil } out := new(PriorityLevelConfigurationCondition) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PriorityLevelConfigurationList) DeepCopyInto(out *PriorityLevelConfigurationList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]PriorityLevelConfiguration, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationList. func (in *PriorityLevelConfigurationList) DeepCopy() *PriorityLevelConfigurationList { if in == nil { return nil } out := new(PriorityLevelConfigurationList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *PriorityLevelConfigurationList) 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 *PriorityLevelConfigurationReference) DeepCopyInto(out *PriorityLevelConfigurationReference) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationReference. func (in *PriorityLevelConfigurationReference) DeepCopy() *PriorityLevelConfigurationReference { if in == nil { return nil } out := new(PriorityLevelConfigurationReference) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PriorityLevelConfigurationSpec) DeepCopyInto(out *PriorityLevelConfigurationSpec) { *out = *in if in.Limited != nil { in, out := &in.Limited, &out.Limited *out = new(LimitedPriorityLevelConfiguration) (*in).DeepCopyInto(*out) } if in.Exempt != nil { in, out := &in.Exempt, &out.Exempt *out = new(ExemptPriorityLevelConfiguration) (*in).DeepCopyInto(*out) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationSpec. func (in *PriorityLevelConfigurationSpec) DeepCopy() *PriorityLevelConfigurationSpec { if in == nil { return nil } out := new(PriorityLevelConfigurationSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PriorityLevelConfigurationStatus) DeepCopyInto(out *PriorityLevelConfigurationStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]PriorityLevelConfigurationCondition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationStatus. func (in *PriorityLevelConfigurationStatus) DeepCopy() *PriorityLevelConfigurationStatus { if in == nil { return nil } out := new(PriorityLevelConfigurationStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *QueuingConfiguration) DeepCopyInto(out *QueuingConfiguration) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueuingConfiguration. func (in *QueuingConfiguration) DeepCopy() *QueuingConfiguration { if in == nil { return nil } out := new(QueuingConfiguration) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ResourcePolicyRule) DeepCopyInto(out *ResourcePolicyRule) { *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.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 ResourcePolicyRule. func (in *ResourcePolicyRule) DeepCopy() *ResourcePolicyRule { if in == nil { return nil } out := new(ResourcePolicyRule) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServiceAccountSubject) DeepCopyInto(out *ServiceAccountSubject) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountSubject. func (in *ServiceAccountSubject) DeepCopy() *ServiceAccountSubject { if in == nil { return nil } out := new(ServiceAccountSubject) 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 if in.User != nil { in, out := &in.User, &out.User *out = new(UserSubject) **out = **in } if in.Group != nil { in, out := &in.Group, &out.Group *out = new(GroupSubject) **out = **in } if in.ServiceAccount != nil { in, out := &in.ServiceAccount, &out.ServiceAccount *out = new(ServiceAccountSubject) **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 } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *UserSubject) DeepCopyInto(out *UserSubject) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSubject. func (in *UserSubject) DeepCopy() *UserSubject { if in == nil { return nil } out := new(UserSubject) in.DeepCopyInto(out) return out } golang-k8s-api-0.29.0/flowcontrol/v1beta1/000077500000000000000000000000001453636404600201515ustar00rootroot00000000000000golang-k8s-api-0.29.0/flowcontrol/v1beta1/doc.go000066400000000000000000000015751453636404600212550ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true // +groupName=flowcontrol.apiserver.k8s.io // Package v1beta1 holds api types of version v1alpha1 for group "flowcontrol.apiserver.k8s.io". package v1beta1 // import "k8s.io/api/flowcontrol/v1beta1" golang-k8s-api-0.29.0/flowcontrol/v1beta1/generated.pb.go000066400000000000000000004341621453636404600230500ustar00rootroot00000000000000/* 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/k8s.io/api/flowcontrol/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *ExemptPriorityLevelConfiguration) Reset() { *m = ExemptPriorityLevelConfiguration{} } func (*ExemptPriorityLevelConfiguration) ProtoMessage() {} func (*ExemptPriorityLevelConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{0} } func (m *ExemptPriorityLevelConfiguration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ExemptPriorityLevelConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ExemptPriorityLevelConfiguration) XXX_Merge(src proto.Message) { xxx_messageInfo_ExemptPriorityLevelConfiguration.Merge(m, src) } func (m *ExemptPriorityLevelConfiguration) XXX_Size() int { return m.Size() } func (m *ExemptPriorityLevelConfiguration) XXX_DiscardUnknown() { xxx_messageInfo_ExemptPriorityLevelConfiguration.DiscardUnknown(m) } var xxx_messageInfo_ExemptPriorityLevelConfiguration proto.InternalMessageInfo func (m *FlowDistinguisherMethod) Reset() { *m = FlowDistinguisherMethod{} } func (*FlowDistinguisherMethod) ProtoMessage() {} func (*FlowDistinguisherMethod) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{1} } func (m *FlowDistinguisherMethod) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowDistinguisherMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowDistinguisherMethod) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowDistinguisherMethod.Merge(m, src) } func (m *FlowDistinguisherMethod) XXX_Size() int { return m.Size() } func (m *FlowDistinguisherMethod) XXX_DiscardUnknown() { xxx_messageInfo_FlowDistinguisherMethod.DiscardUnknown(m) } var xxx_messageInfo_FlowDistinguisherMethod proto.InternalMessageInfo func (m *FlowSchema) Reset() { *m = FlowSchema{} } func (*FlowSchema) ProtoMessage() {} func (*FlowSchema) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{2} } func (m *FlowSchema) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchema) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchema.Merge(m, src) } func (m *FlowSchema) XXX_Size() int { return m.Size() } func (m *FlowSchema) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchema.DiscardUnknown(m) } var xxx_messageInfo_FlowSchema proto.InternalMessageInfo func (m *FlowSchemaCondition) Reset() { *m = FlowSchemaCondition{} } func (*FlowSchemaCondition) ProtoMessage() {} func (*FlowSchemaCondition) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{3} } func (m *FlowSchemaCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchemaCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchemaCondition) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchemaCondition.Merge(m, src) } func (m *FlowSchemaCondition) XXX_Size() int { return m.Size() } func (m *FlowSchemaCondition) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchemaCondition.DiscardUnknown(m) } var xxx_messageInfo_FlowSchemaCondition proto.InternalMessageInfo func (m *FlowSchemaList) Reset() { *m = FlowSchemaList{} } func (*FlowSchemaList) ProtoMessage() {} func (*FlowSchemaList) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{4} } func (m *FlowSchemaList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchemaList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchemaList) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchemaList.Merge(m, src) } func (m *FlowSchemaList) XXX_Size() int { return m.Size() } func (m *FlowSchemaList) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchemaList.DiscardUnknown(m) } var xxx_messageInfo_FlowSchemaList proto.InternalMessageInfo func (m *FlowSchemaSpec) Reset() { *m = FlowSchemaSpec{} } func (*FlowSchemaSpec) ProtoMessage() {} func (*FlowSchemaSpec) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{5} } func (m *FlowSchemaSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchemaSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchemaSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchemaSpec.Merge(m, src) } func (m *FlowSchemaSpec) XXX_Size() int { return m.Size() } func (m *FlowSchemaSpec) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchemaSpec.DiscardUnknown(m) } var xxx_messageInfo_FlowSchemaSpec proto.InternalMessageInfo func (m *FlowSchemaStatus) Reset() { *m = FlowSchemaStatus{} } func (*FlowSchemaStatus) ProtoMessage() {} func (*FlowSchemaStatus) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{6} } func (m *FlowSchemaStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchemaStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchemaStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchemaStatus.Merge(m, src) } func (m *FlowSchemaStatus) XXX_Size() int { return m.Size() } func (m *FlowSchemaStatus) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchemaStatus.DiscardUnknown(m) } var xxx_messageInfo_FlowSchemaStatus proto.InternalMessageInfo func (m *GroupSubject) Reset() { *m = GroupSubject{} } func (*GroupSubject) ProtoMessage() {} func (*GroupSubject) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{7} } func (m *GroupSubject) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *GroupSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *GroupSubject) XXX_Merge(src proto.Message) { xxx_messageInfo_GroupSubject.Merge(m, src) } func (m *GroupSubject) XXX_Size() int { return m.Size() } func (m *GroupSubject) XXX_DiscardUnknown() { xxx_messageInfo_GroupSubject.DiscardUnknown(m) } var xxx_messageInfo_GroupSubject proto.InternalMessageInfo func (m *LimitResponse) Reset() { *m = LimitResponse{} } func (*LimitResponse) ProtoMessage() {} func (*LimitResponse) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{8} } func (m *LimitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *LimitResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_LimitResponse.Merge(m, src) } func (m *LimitResponse) XXX_Size() int { return m.Size() } func (m *LimitResponse) XXX_DiscardUnknown() { xxx_messageInfo_LimitResponse.DiscardUnknown(m) } var xxx_messageInfo_LimitResponse proto.InternalMessageInfo func (m *LimitedPriorityLevelConfiguration) Reset() { *m = LimitedPriorityLevelConfiguration{} } func (*LimitedPriorityLevelConfiguration) ProtoMessage() {} func (*LimitedPriorityLevelConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{9} } func (m *LimitedPriorityLevelConfiguration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LimitedPriorityLevelConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *LimitedPriorityLevelConfiguration) XXX_Merge(src proto.Message) { xxx_messageInfo_LimitedPriorityLevelConfiguration.Merge(m, src) } func (m *LimitedPriorityLevelConfiguration) XXX_Size() int { return m.Size() } func (m *LimitedPriorityLevelConfiguration) XXX_DiscardUnknown() { xxx_messageInfo_LimitedPriorityLevelConfiguration.DiscardUnknown(m) } var xxx_messageInfo_LimitedPriorityLevelConfiguration proto.InternalMessageInfo func (m *NonResourcePolicyRule) Reset() { *m = NonResourcePolicyRule{} } func (*NonResourcePolicyRule) ProtoMessage() {} func (*NonResourcePolicyRule) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{10} } func (m *NonResourcePolicyRule) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *NonResourcePolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *NonResourcePolicyRule) XXX_Merge(src proto.Message) { xxx_messageInfo_NonResourcePolicyRule.Merge(m, src) } func (m *NonResourcePolicyRule) XXX_Size() int { return m.Size() } func (m *NonResourcePolicyRule) XXX_DiscardUnknown() { xxx_messageInfo_NonResourcePolicyRule.DiscardUnknown(m) } var xxx_messageInfo_NonResourcePolicyRule proto.InternalMessageInfo func (m *PolicyRulesWithSubjects) Reset() { *m = PolicyRulesWithSubjects{} } func (*PolicyRulesWithSubjects) ProtoMessage() {} func (*PolicyRulesWithSubjects) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{11} } func (m *PolicyRulesWithSubjects) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PolicyRulesWithSubjects) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PolicyRulesWithSubjects) XXX_Merge(src proto.Message) { xxx_messageInfo_PolicyRulesWithSubjects.Merge(m, src) } func (m *PolicyRulesWithSubjects) XXX_Size() int { return m.Size() } func (m *PolicyRulesWithSubjects) XXX_DiscardUnknown() { xxx_messageInfo_PolicyRulesWithSubjects.DiscardUnknown(m) } var xxx_messageInfo_PolicyRulesWithSubjects proto.InternalMessageInfo func (m *PriorityLevelConfiguration) Reset() { *m = PriorityLevelConfiguration{} } func (*PriorityLevelConfiguration) ProtoMessage() {} func (*PriorityLevelConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{12} } func (m *PriorityLevelConfiguration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfiguration) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfiguration.Merge(m, src) } func (m *PriorityLevelConfiguration) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfiguration) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfiguration.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfiguration proto.InternalMessageInfo func (m *PriorityLevelConfigurationCondition) Reset() { *m = PriorityLevelConfigurationCondition{} } func (*PriorityLevelConfigurationCondition) ProtoMessage() {} func (*PriorityLevelConfigurationCondition) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{13} } func (m *PriorityLevelConfigurationCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationCondition) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationCondition.Merge(m, src) } func (m *PriorityLevelConfigurationCondition) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationCondition) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationCondition.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationCondition proto.InternalMessageInfo func (m *PriorityLevelConfigurationList) Reset() { *m = PriorityLevelConfigurationList{} } func (*PriorityLevelConfigurationList) ProtoMessage() {} func (*PriorityLevelConfigurationList) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{14} } func (m *PriorityLevelConfigurationList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationList) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationList.Merge(m, src) } func (m *PriorityLevelConfigurationList) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationList) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationList.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationList proto.InternalMessageInfo func (m *PriorityLevelConfigurationReference) Reset() { *m = PriorityLevelConfigurationReference{} } func (*PriorityLevelConfigurationReference) ProtoMessage() {} func (*PriorityLevelConfigurationReference) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{15} } func (m *PriorityLevelConfigurationReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationReference) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationReference.Merge(m, src) } func (m *PriorityLevelConfigurationReference) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationReference) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationReference.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationReference proto.InternalMessageInfo func (m *PriorityLevelConfigurationSpec) Reset() { *m = PriorityLevelConfigurationSpec{} } func (*PriorityLevelConfigurationSpec) ProtoMessage() {} func (*PriorityLevelConfigurationSpec) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{16} } func (m *PriorityLevelConfigurationSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationSpec.Merge(m, src) } func (m *PriorityLevelConfigurationSpec) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationSpec) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationSpec.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationSpec proto.InternalMessageInfo func (m *PriorityLevelConfigurationStatus) Reset() { *m = PriorityLevelConfigurationStatus{} } func (*PriorityLevelConfigurationStatus) ProtoMessage() {} func (*PriorityLevelConfigurationStatus) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{17} } func (m *PriorityLevelConfigurationStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationStatus.Merge(m, src) } func (m *PriorityLevelConfigurationStatus) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationStatus) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationStatus.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationStatus proto.InternalMessageInfo func (m *QueuingConfiguration) Reset() { *m = QueuingConfiguration{} } func (*QueuingConfiguration) ProtoMessage() {} func (*QueuingConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{18} } func (m *QueuingConfiguration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueuingConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *QueuingConfiguration) XXX_Merge(src proto.Message) { xxx_messageInfo_QueuingConfiguration.Merge(m, src) } func (m *QueuingConfiguration) XXX_Size() int { return m.Size() } func (m *QueuingConfiguration) XXX_DiscardUnknown() { xxx_messageInfo_QueuingConfiguration.DiscardUnknown(m) } var xxx_messageInfo_QueuingConfiguration proto.InternalMessageInfo func (m *ResourcePolicyRule) Reset() { *m = ResourcePolicyRule{} } func (*ResourcePolicyRule) ProtoMessage() {} func (*ResourcePolicyRule) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{19} } func (m *ResourcePolicyRule) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ResourcePolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ResourcePolicyRule) XXX_Merge(src proto.Message) { xxx_messageInfo_ResourcePolicyRule.Merge(m, src) } func (m *ResourcePolicyRule) XXX_Size() int { return m.Size() } func (m *ResourcePolicyRule) XXX_DiscardUnknown() { xxx_messageInfo_ResourcePolicyRule.DiscardUnknown(m) } var xxx_messageInfo_ResourcePolicyRule proto.InternalMessageInfo func (m *ServiceAccountSubject) Reset() { *m = ServiceAccountSubject{} } func (*ServiceAccountSubject) ProtoMessage() {} func (*ServiceAccountSubject) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{20} } func (m *ServiceAccountSubject) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ServiceAccountSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ServiceAccountSubject) XXX_Merge(src proto.Message) { xxx_messageInfo_ServiceAccountSubject.Merge(m, src) } func (m *ServiceAccountSubject) XXX_Size() int { return m.Size() } func (m *ServiceAccountSubject) XXX_DiscardUnknown() { xxx_messageInfo_ServiceAccountSubject.DiscardUnknown(m) } var xxx_messageInfo_ServiceAccountSubject proto.InternalMessageInfo func (m *Subject) Reset() { *m = Subject{} } func (*Subject) ProtoMessage() {} func (*Subject) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{21} } 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 (m *UserSubject) Reset() { *m = UserSubject{} } func (*UserSubject) ProtoMessage() {} func (*UserSubject) Descriptor() ([]byte, []int) { return fileDescriptor_80171c2a4e3669de, []int{22} } func (m *UserSubject) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *UserSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *UserSubject) XXX_Merge(src proto.Message) { xxx_messageInfo_UserSubject.Merge(m, src) } func (m *UserSubject) XXX_Size() int { return m.Size() } func (m *UserSubject) XXX_DiscardUnknown() { xxx_messageInfo_UserSubject.DiscardUnknown(m) } var xxx_messageInfo_UserSubject proto.InternalMessageInfo func init() { proto.RegisterType((*ExemptPriorityLevelConfiguration)(nil), "k8s.io.api.flowcontrol.v1beta1.ExemptPriorityLevelConfiguration") proto.RegisterType((*FlowDistinguisherMethod)(nil), "k8s.io.api.flowcontrol.v1beta1.FlowDistinguisherMethod") proto.RegisterType((*FlowSchema)(nil), "k8s.io.api.flowcontrol.v1beta1.FlowSchema") proto.RegisterType((*FlowSchemaCondition)(nil), "k8s.io.api.flowcontrol.v1beta1.FlowSchemaCondition") proto.RegisterType((*FlowSchemaList)(nil), "k8s.io.api.flowcontrol.v1beta1.FlowSchemaList") proto.RegisterType((*FlowSchemaSpec)(nil), "k8s.io.api.flowcontrol.v1beta1.FlowSchemaSpec") proto.RegisterType((*FlowSchemaStatus)(nil), "k8s.io.api.flowcontrol.v1beta1.FlowSchemaStatus") proto.RegisterType((*GroupSubject)(nil), "k8s.io.api.flowcontrol.v1beta1.GroupSubject") proto.RegisterType((*LimitResponse)(nil), "k8s.io.api.flowcontrol.v1beta1.LimitResponse") proto.RegisterType((*LimitedPriorityLevelConfiguration)(nil), "k8s.io.api.flowcontrol.v1beta1.LimitedPriorityLevelConfiguration") proto.RegisterType((*NonResourcePolicyRule)(nil), "k8s.io.api.flowcontrol.v1beta1.NonResourcePolicyRule") proto.RegisterType((*PolicyRulesWithSubjects)(nil), "k8s.io.api.flowcontrol.v1beta1.PolicyRulesWithSubjects") proto.RegisterType((*PriorityLevelConfiguration)(nil), "k8s.io.api.flowcontrol.v1beta1.PriorityLevelConfiguration") proto.RegisterType((*PriorityLevelConfigurationCondition)(nil), "k8s.io.api.flowcontrol.v1beta1.PriorityLevelConfigurationCondition") proto.RegisterType((*PriorityLevelConfigurationList)(nil), "k8s.io.api.flowcontrol.v1beta1.PriorityLevelConfigurationList") proto.RegisterType((*PriorityLevelConfigurationReference)(nil), "k8s.io.api.flowcontrol.v1beta1.PriorityLevelConfigurationReference") proto.RegisterType((*PriorityLevelConfigurationSpec)(nil), "k8s.io.api.flowcontrol.v1beta1.PriorityLevelConfigurationSpec") proto.RegisterType((*PriorityLevelConfigurationStatus)(nil), "k8s.io.api.flowcontrol.v1beta1.PriorityLevelConfigurationStatus") proto.RegisterType((*QueuingConfiguration)(nil), "k8s.io.api.flowcontrol.v1beta1.QueuingConfiguration") proto.RegisterType((*ResourcePolicyRule)(nil), "k8s.io.api.flowcontrol.v1beta1.ResourcePolicyRule") proto.RegisterType((*ServiceAccountSubject)(nil), "k8s.io.api.flowcontrol.v1beta1.ServiceAccountSubject") proto.RegisterType((*Subject)(nil), "k8s.io.api.flowcontrol.v1beta1.Subject") proto.RegisterType((*UserSubject)(nil), "k8s.io.api.flowcontrol.v1beta1.UserSubject") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/flowcontrol/v1beta1/generated.proto", fileDescriptor_80171c2a4e3669de) } var fileDescriptor_80171c2a4e3669de = []byte{ // 1614 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0xcf, 0x73, 0xdb, 0xc4, 0x17, 0x8f, 0x1c, 0x3b, 0x89, 0x5f, 0x7e, 0x76, 0xd3, 0x4c, 0xfc, 0x4d, 0xbf, 0x63, 0xa7, 0x62, 0x86, 0x02, 0x6d, 0xe5, 0xb6, 0xb4, 0xb4, 0xc0, 0xf0, 0x23, 0x4a, 0x4b, 0x29, 0x4d, 0xd2, 0x74, 0xd3, 0x42, 0xa7, 0x74, 0x86, 0xca, 0xf2, 0xc6, 0x56, 0x63, 0x4b, 0xea, 0xae, 0xe4, 0x10, 0x7a, 0x61, 0xf8, 0x0b, 0x38, 0xc3, 0x91, 0x03, 0x27, 0x2e, 0x5c, 0x39, 0x70, 0xa4, 0xc3, 0xa9, 0xc7, 0x9e, 0x0c, 0x35, 0x27, 0xfe, 0x03, 0xe8, 0x0c, 0x33, 0xcc, 0xae, 0xd6, 0x92, 0xe5, 0x5f, 0xf2, 0xb4, 0x33, 0x3d, 0x71, 0x8b, 0xde, 0xfb, 0xbc, 0xcf, 0xdb, 0x7d, 0xfb, 0x7e, 0x39, 0x70, 0x79, 0xef, 0x02, 0xd3, 0x2c, 0xa7, 0xb8, 0xe7, 0x97, 0x08, 0xb5, 0x89, 0x47, 0x58, 0xb1, 0x41, 0xec, 0xb2, 0x43, 0x8b, 0x52, 0x61, 0xb8, 0x56, 0x71, 0xb7, 0xe6, 0xec, 0x9b, 0x8e, 0xed, 0x51, 0xa7, 0x56, 0x6c, 0x9c, 0x2e, 0x11, 0xcf, 0x38, 0x5d, 0xac, 0x10, 0x9b, 0x50, 0xc3, 0x23, 0x65, 0xcd, 0xa5, 0x8e, 0xe7, 0xa0, 0x7c, 0x80, 0xd7, 0x0c, 0xd7, 0xd2, 0x3a, 0xf0, 0x9a, 0xc4, 0xaf, 0x9c, 0xac, 0x58, 0x5e, 0xd5, 0x2f, 0x69, 0xa6, 0x53, 0x2f, 0x56, 0x9c, 0x8a, 0x53, 0x14, 0x66, 0x25, 0x7f, 0x57, 0x7c, 0x89, 0x0f, 0xf1, 0x57, 0x40, 0xb7, 0x72, 0x36, 0x72, 0x5f, 0x37, 0xcc, 0xaa, 0x65, 0x13, 0x7a, 0x50, 0x74, 0xf7, 0x2a, 0x5c, 0xc0, 0x8a, 0x75, 0xe2, 0x19, 0xc5, 0x46, 0xcf, 0x21, 0x56, 0x8a, 0x83, 0xac, 0xa8, 0x6f, 0x7b, 0x56, 0x9d, 0xf4, 0x18, 0xbc, 0x91, 0x64, 0xc0, 0xcc, 0x2a, 0xa9, 0x1b, 0xdd, 0x76, 0xea, 0x4f, 0x0a, 0xac, 0x5e, 0xfa, 0x9c, 0xd4, 0x5d, 0x6f, 0x9b, 0x5a, 0x0e, 0xb5, 0xbc, 0x83, 0x0d, 0xd2, 0x20, 0xb5, 0x75, 0xc7, 0xde, 0xb5, 0x2a, 0x3e, 0x35, 0x3c, 0xcb, 0xb1, 0xd1, 0x2d, 0xc8, 0xd9, 0x4e, 0xdd, 0xb2, 0x0d, 0x2e, 0x37, 0x7d, 0x4a, 0x89, 0x6d, 0x1e, 0xec, 0x54, 0x0d, 0x4a, 0x58, 0x4e, 0x59, 0x55, 0x5e, 0xc9, 0xe8, 0xff, 0x6f, 0x35, 0x0b, 0xb9, 0xad, 0x01, 0x18, 0x3c, 0xd0, 0x1a, 0xbd, 0x03, 0xf3, 0x35, 0x62, 0x97, 0x8d, 0x52, 0x8d, 0x6c, 0x13, 0x6a, 0x12, 0xdb, 0xcb, 0xa5, 0x04, 0xe1, 0x62, 0xab, 0x59, 0x98, 0xdf, 0x88, 0xab, 0x70, 0x37, 0x56, 0xbd, 0x0d, 0xcb, 0x1f, 0xd4, 0x9c, 0xfd, 0x8b, 0x16, 0xf3, 0x2c, 0xbb, 0xe2, 0x5b, 0xac, 0x4a, 0xe8, 0x26, 0xf1, 0xaa, 0x4e, 0x19, 0xbd, 0x07, 0x69, 0xef, 0xc0, 0x25, 0xe2, 0x7c, 0x59, 0xfd, 0xf8, 0xc3, 0x66, 0x61, 0xac, 0xd5, 0x2c, 0xa4, 0x6f, 0x1c, 0xb8, 0xe4, 0x69, 0xb3, 0x70, 0x64, 0x80, 0x19, 0x57, 0x63, 0x61, 0xa8, 0x7e, 0x93, 0x02, 0xe0, 0xa8, 0x1d, 0x11, 0x38, 0x74, 0x17, 0xa6, 0xf8, 0x63, 0x95, 0x0d, 0xcf, 0x10, 0x9c, 0xd3, 0x67, 0x4e, 0x69, 0x51, 0xa6, 0x84, 0x31, 0xd7, 0xdc, 0xbd, 0x0a, 0x17, 0x30, 0x8d, 0xa3, 0xb5, 0xc6, 0x69, 0xed, 0x5a, 0xe9, 0x1e, 0x31, 0xbd, 0x4d, 0xe2, 0x19, 0x3a, 0x92, 0xa7, 0x80, 0x48, 0x86, 0x43, 0x56, 0xb4, 0x0d, 0x69, 0xe6, 0x12, 0x53, 0x04, 0x60, 0xfa, 0x8c, 0xa6, 0x0d, 0xcf, 0x43, 0x2d, 0x3a, 0xdb, 0x8e, 0x4b, 0x4c, 0x7d, 0xa6, 0x7d, 0x43, 0xfe, 0x85, 0x05, 0x13, 0xba, 0x05, 0x13, 0xcc, 0x33, 0x3c, 0x9f, 0xe5, 0xc6, 0x7b, 0x4e, 0x9c, 0xc4, 0x29, 0xec, 0xf4, 0x39, 0xc9, 0x3a, 0x11, 0x7c, 0x63, 0xc9, 0xa7, 0x3e, 0x4e, 0xc1, 0x62, 0x04, 0x5e, 0x77, 0xec, 0xb2, 0x25, 0x32, 0xe5, 0xed, 0x58, 0xd4, 0x8f, 0x75, 0x45, 0x7d, 0xb9, 0x8f, 0x49, 0x14, 0x71, 0xf4, 0x66, 0x78, 0xdc, 0x94, 0x30, 0x3f, 0x1a, 0x77, 0xfe, 0xb4, 0x59, 0x98, 0x0f, 0xcd, 0xe2, 0xe7, 0x41, 0x0d, 0x40, 0x35, 0x83, 0x79, 0x37, 0xa8, 0x61, 0xb3, 0x80, 0xd6, 0xaa, 0x13, 0x79, 0xeb, 0xd7, 0x46, 0x7b, 0x27, 0x6e, 0xa1, 0xaf, 0x48, 0x97, 0x68, 0xa3, 0x87, 0x0d, 0xf7, 0xf1, 0x80, 0x5e, 0x86, 0x09, 0x4a, 0x0c, 0xe6, 0xd8, 0xb9, 0xb4, 0x38, 0x72, 0x18, 0x2f, 0x2c, 0xa4, 0x58, 0x6a, 0xd1, 0xab, 0x30, 0x59, 0x27, 0x8c, 0x19, 0x15, 0x92, 0xcb, 0x08, 0xe0, 0xbc, 0x04, 0x4e, 0x6e, 0x06, 0x62, 0xdc, 0xd6, 0xab, 0x3f, 0x2b, 0x30, 0x17, 0xc5, 0x69, 0xc3, 0x62, 0x1e, 0xba, 0xd3, 0x93, 0x7b, 0xda, 0x68, 0x77, 0xe2, 0xd6, 0x22, 0xf3, 0x16, 0xa4, 0xbb, 0xa9, 0xb6, 0xa4, 0x23, 0xef, 0xae, 0x41, 0xc6, 0xf2, 0x48, 0x9d, 0x47, 0x7d, 0xbc, 0x2b, 0x5c, 0x09, 0x49, 0xa2, 0xcf, 0x4a, 0xda, 0xcc, 0x15, 0x4e, 0x80, 0x03, 0x1e, 0xf5, 0xcf, 0xf1, 0xce, 0x1b, 0xf0, 0x7c, 0x44, 0xdf, 0x2b, 0xb0, 0xe2, 0x0e, 0x6c, 0x30, 0xf2, 0x52, 0xeb, 0x49, 0x9e, 0x07, 0xb7, 0x28, 0x4c, 0x76, 0x09, 0xef, 0x2b, 0x44, 0x57, 0xe5, 0x91, 0x56, 0x86, 0x80, 0x87, 0x1c, 0x05, 0x7d, 0x04, 0xa8, 0x6e, 0x78, 0x3c, 0xa2, 0x95, 0x6d, 0x4a, 0x4c, 0x52, 0xe6, 0xac, 0xb2, 0x29, 0x85, 0xd9, 0xb1, 0xd9, 0x83, 0xc0, 0x7d, 0xac, 0xd0, 0x57, 0x0a, 0x2c, 0x96, 0x7b, 0x9b, 0x8c, 0xcc, 0xcb, 0xf3, 0xa3, 0x04, 0xba, 0x4f, 0x8f, 0xd2, 0x97, 0x5b, 0xcd, 0xc2, 0x62, 0x1f, 0x05, 0xee, 0xe7, 0x0c, 0xdd, 0x81, 0x0c, 0xf5, 0x6b, 0x84, 0xe5, 0xd2, 0xe2, 0x79, 0x13, 0xbd, 0x6e, 0x3b, 0x35, 0xcb, 0x3c, 0xc0, 0xdc, 0xe4, 0x13, 0xcb, 0xab, 0xee, 0xf8, 0xa2, 0x57, 0xb1, 0xe8, 0xad, 0x85, 0x0a, 0x07, 0xa4, 0xea, 0x03, 0x58, 0xe8, 0x6e, 0x1a, 0xa8, 0x02, 0x60, 0xb6, 0xeb, 0x94, 0x0f, 0x08, 0xee, 0xf6, 0xf5, 0xd1, 0xb3, 0x2a, 0xac, 0xf1, 0xa8, 0x5f, 0x86, 0x22, 0x86, 0x3b, 0xa8, 0xd5, 0x53, 0x30, 0x73, 0x99, 0x3a, 0xbe, 0x2b, 0xcf, 0x88, 0x56, 0x21, 0x6d, 0x1b, 0xf5, 0x76, 0xf7, 0x09, 0x3b, 0xe2, 0x96, 0x51, 0x27, 0x58, 0x68, 0xd4, 0xef, 0x14, 0x98, 0xdd, 0xb0, 0xea, 0x96, 0x87, 0x09, 0x73, 0x1d, 0x9b, 0x11, 0x74, 0x2e, 0xd6, 0xb1, 0x8e, 0x76, 0x75, 0xac, 0x43, 0x31, 0x70, 0x47, 0xaf, 0xfa, 0x14, 0x26, 0xef, 0xfb, 0xc4, 0xb7, 0xec, 0x8a, 0xec, 0xd7, 0x67, 0x93, 0x2e, 0x78, 0x3d, 0x80, 0xc7, 0xb2, 0x4d, 0x9f, 0xe6, 0x2d, 0x40, 0x6a, 0x70, 0x9b, 0x51, 0xfd, 0x27, 0x05, 0x47, 0x85, 0x63, 0x52, 0x1e, 0x32, 0x95, 0xef, 0x40, 0xce, 0x60, 0xcc, 0xa7, 0xa4, 0x3c, 0x68, 0x2a, 0xaf, 0xca, 0xdb, 0xe4, 0xd6, 0x06, 0xe0, 0xf0, 0x40, 0x06, 0x74, 0x0f, 0x66, 0x6b, 0x9d, 0x77, 0x97, 0xd7, 0x3c, 0x99, 0x74, 0xcd, 0x58, 0xc0, 0xf4, 0x25, 0x79, 0x82, 0x78, 0xd0, 0x71, 0x9c, 0xba, 0xdf, 0x16, 0x30, 0x3e, 0xfa, 0x16, 0x80, 0xae, 0xc1, 0x52, 0xc9, 0xa1, 0xd4, 0xd9, 0xb7, 0xec, 0x8a, 0xf0, 0xd3, 0x26, 0x49, 0x0b, 0x92, 0xff, 0xb5, 0x9a, 0x85, 0x25, 0xbd, 0x1f, 0x00, 0xf7, 0xb7, 0x53, 0xf7, 0x61, 0x69, 0x8b, 0xf7, 0x14, 0xe6, 0xf8, 0xd4, 0x24, 0x51, 0x41, 0xa0, 0x02, 0x64, 0x1a, 0x84, 0x96, 0x82, 0xa4, 0xce, 0xea, 0x59, 0x5e, 0x0e, 0x1f, 0x73, 0x01, 0x0e, 0xe4, 0xfc, 0x26, 0x76, 0x64, 0x79, 0x13, 0x6f, 0xb0, 0xdc, 0x84, 0x80, 0x8a, 0x9b, 0x6c, 0xc5, 0x55, 0xb8, 0x1b, 0xab, 0x36, 0x53, 0xb0, 0x3c, 0xa0, 0xfe, 0xd0, 0x4d, 0x98, 0x62, 0xf2, 0x6f, 0x59, 0x53, 0xc7, 0x92, 0xde, 0x42, 0xda, 0x46, 0xdd, 0xbf, 0x4d, 0x86, 0x43, 0x2a, 0xe4, 0xc0, 0x2c, 0x95, 0x47, 0x10, 0x3e, 0xe5, 0x14, 0x38, 0x93, 0xc4, 0xdd, 0x1b, 0x9d, 0xe8, 0xb1, 0x71, 0x27, 0x21, 0x8e, 0xf3, 0xa3, 0x07, 0xb0, 0xd0, 0x71, 0xed, 0xc0, 0xe7, 0xb8, 0xf0, 0x79, 0x2e, 0xc9, 0x67, 0xdf, 0x47, 0xd1, 0x73, 0xd2, 0xed, 0xc2, 0x56, 0x17, 0x2d, 0xee, 0x71, 0xa4, 0xfe, 0x9a, 0x82, 0x21, 0x83, 0xe1, 0x05, 0x2c, 0x79, 0x77, 0x63, 0x4b, 0xde, 0xbb, 0xcf, 0x3e, 0xf1, 0x06, 0x2e, 0x7d, 0xd5, 0xae, 0xa5, 0xef, 0xfd, 0xe7, 0xf0, 0x31, 0x7c, 0x09, 0xfc, 0x2b, 0x05, 0x2f, 0x0d, 0x36, 0x8e, 0x96, 0xc2, 0xab, 0xb1, 0x16, 0x7b, 0xbe, 0xab, 0xc5, 0x1e, 0x1b, 0x81, 0xe2, 0xbf, 0x25, 0xb1, 0x6b, 0x49, 0xfc, 0x4d, 0x81, 0xfc, 0xe0, 0xb8, 0xbd, 0x80, 0xa5, 0xf1, 0xb3, 0xf8, 0xd2, 0xf8, 0xd6, 0xb3, 0x27, 0xd9, 0x80, 0x25, 0xf2, 0xf2, 0xb0, 0xdc, 0x0a, 0xd7, 0xbd, 0x11, 0x46, 0xfe, 0x0f, 0xa9, 0x61, 0xa1, 0x12, 0xdb, 0x69, 0xc2, 0xaf, 0x96, 0x98, 0xf5, 0x25, 0x9b, 0x8f, 0x9e, 0x3a, 0x9f, 0x1e, 0x41, 0x42, 0x56, 0x61, 0xb2, 0x16, 0xcc, 0x6a, 0x59, 0xd4, 0x6b, 0x23, 0x8d, 0xc8, 0x61, 0xa3, 0x3d, 0x58, 0x0b, 0x24, 0x0c, 0xb7, 0xe9, 0x51, 0x19, 0x26, 0x88, 0xf8, 0xa9, 0x3e, 0x6a, 0x65, 0x27, 0xfd, 0xb0, 0xd7, 0x81, 0x67, 0x61, 0x80, 0xc2, 0x92, 0x5b, 0xfd, 0x56, 0x81, 0xd5, 0xa4, 0x96, 0x80, 0xf6, 0xfb, 0xac, 0x78, 0xcf, 0xb1, 0xbe, 0x8f, 0xbe, 0xf2, 0xfd, 0xa8, 0xc0, 0xe1, 0x7e, 0x9b, 0x14, 0x2f, 0x32, 0xbe, 0x3e, 0x85, 0xbb, 0x4f, 0x58, 0x64, 0xd7, 0x85, 0x14, 0x4b, 0x2d, 0x3a, 0x01, 0x53, 0x55, 0xc3, 0x2e, 0xef, 0x58, 0x5f, 0xb4, 0xb7, 0xfa, 0x30, 0xcd, 0x3f, 0x94, 0x72, 0x1c, 0x22, 0xd0, 0x45, 0x58, 0x10, 0x76, 0x1b, 0xc4, 0xae, 0x78, 0x55, 0xf1, 0x22, 0x72, 0x35, 0x09, 0xa7, 0xce, 0xf5, 0x2e, 0x3d, 0xee, 0xb1, 0x50, 0xff, 0x56, 0x00, 0x3d, 0xcb, 0x36, 0x71, 0x1c, 0xb2, 0x86, 0x6b, 0x89, 0x15, 0x37, 0x28, 0xb4, 0xac, 0x3e, 0xdb, 0x6a, 0x16, 0xb2, 0x6b, 0xdb, 0x57, 0x02, 0x21, 0x8e, 0xf4, 0x1c, 0xdc, 0x1e, 0xb4, 0xc1, 0x40, 0x95, 0xe0, 0xb6, 0x63, 0x86, 0x23, 0x3d, 0xba, 0x00, 0x33, 0x66, 0xcd, 0x67, 0x1e, 0xa1, 0x3b, 0xa6, 0xe3, 0x12, 0xd1, 0x98, 0xa6, 0xf4, 0xc3, 0xf2, 0x4e, 0x33, 0xeb, 0x1d, 0x3a, 0x1c, 0x43, 0x22, 0x0d, 0x80, 0x97, 0x15, 0x73, 0x0d, 0xee, 0x27, 0x23, 0xfc, 0xcc, 0xf1, 0x07, 0xdb, 0x0a, 0xa5, 0xb8, 0x03, 0xa1, 0xde, 0x83, 0xa5, 0x1d, 0x42, 0x1b, 0x96, 0x49, 0xd6, 0x4c, 0xd3, 0xf1, 0x6d, 0xaf, 0xbd, 0xac, 0x17, 0x21, 0x1b, 0xc2, 0x64, 0xe5, 0x1d, 0x92, 0xfe, 0xb3, 0x21, 0x17, 0x8e, 0x30, 0x61, 0xa9, 0xa7, 0x06, 0x96, 0xfa, 0x2f, 0x29, 0x98, 0x8c, 0xe8, 0xd3, 0x7b, 0x96, 0x5d, 0x96, 0xcc, 0x47, 0xda, 0xe8, 0xab, 0x96, 0x5d, 0x7e, 0xda, 0x2c, 0x4c, 0x4b, 0x18, 0xff, 0xc4, 0x02, 0x88, 0xae, 0x40, 0xda, 0x67, 0x84, 0xca, 0x22, 0x3e, 0x9e, 0x94, 0xcc, 0x37, 0x19, 0xa1, 0xed, 0xfd, 0x6a, 0x8a, 0x33, 0x73, 0x01, 0x16, 0x14, 0x68, 0x13, 0x32, 0x15, 0xfe, 0x28, 0xb2, 0x4e, 0x4f, 0x24, 0x71, 0x75, 0xfe, 0x88, 0x09, 0xd2, 0x40, 0x48, 0x70, 0xc0, 0x82, 0xee, 0xc3, 0x1c, 0x8b, 0x85, 0x50, 0x3c, 0xd7, 0x08, 0xfb, 0x52, 0xdf, 0xc0, 0xeb, 0xa8, 0xd5, 0x2c, 0xcc, 0xc5, 0x55, 0xb8, 0xcb, 0x81, 0x5a, 0x84, 0xe9, 0x8e, 0x0b, 0x26, 0x77, 0x59, 0xfd, 0xe2, 0xc3, 0x27, 0xf9, 0xb1, 0x47, 0x4f, 0xf2, 0x63, 0x8f, 0x9f, 0xe4, 0xc7, 0xbe, 0x6c, 0xe5, 0x95, 0x87, 0xad, 0xbc, 0xf2, 0xa8, 0x95, 0x57, 0x1e, 0xb7, 0xf2, 0xca, 0xef, 0xad, 0xbc, 0xf2, 0xf5, 0x1f, 0xf9, 0xb1, 0xdb, 0xf9, 0xe1, 0xff, 0x8b, 0xfd, 0x37, 0x00, 0x00, 0xff, 0xff, 0x3a, 0xda, 0x82, 0x48, 0xc5, 0x15, 0x00, 0x00, } func (m *ExemptPriorityLevelConfiguration) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ExemptPriorityLevelConfiguration) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ExemptPriorityLevelConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.LendablePercent != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.LendablePercent)) i-- dAtA[i] = 0x10 } if m.NominalConcurrencyShares != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.NominalConcurrencyShares)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *FlowDistinguisherMethod) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowDistinguisherMethod) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowDistinguisherMethod) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l 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 *FlowSchema) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchema) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchema) 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 *FlowSchemaCondition) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchemaCondition) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchemaCondition) 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 *FlowSchemaList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchemaList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchemaList) 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 *FlowSchemaSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchemaSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchemaSpec) 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] = 0x22 } } if m.DistinguisherMethod != nil { { size, err := m.DistinguisherMethod.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } i = encodeVarintGenerated(dAtA, i, uint64(m.MatchingPrecedence)) i-- dAtA[i] = 0x10 { size, err := m.PriorityLevelConfiguration.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *FlowSchemaStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchemaStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchemaStatus) 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] = 0xa } } return len(dAtA) - i, nil } func (m *GroupSubject) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *GroupSubject) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *GroupSubject) 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 *LimitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *LimitResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LimitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Queuing != nil { { size, err := m.Queuing.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 *LimitedPriorityLevelConfiguration) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *LimitedPriorityLevelConfiguration) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LimitedPriorityLevelConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.BorrowingLimitPercent != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.BorrowingLimitPercent)) i-- dAtA[i] = 0x20 } if m.LendablePercent != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.LendablePercent)) i-- dAtA[i] = 0x18 } { size, err := m.LimitResponse.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.AssuredConcurrencyShares)) i-- dAtA[i] = 0x8 return len(dAtA) - i, nil } func (m *NonResourcePolicyRule) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *NonResourcePolicyRule) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *NonResourcePolicyRule) 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.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 *PolicyRulesWithSubjects) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PolicyRulesWithSubjects) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PolicyRulesWithSubjects) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l 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] = 0x1a } } 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] = 0x12 } } 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] = 0xa } } return len(dAtA) - i, nil } func (m *PriorityLevelConfiguration) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfiguration) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfiguration) 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 *PriorityLevelConfigurationCondition) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationCondition) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationCondition) 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 *PriorityLevelConfigurationList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationList) 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 *PriorityLevelConfigurationReference) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationReference) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationReference) 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 *PriorityLevelConfigurationSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Exempt != nil { { size, err := m.Exempt.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } if m.Limited != nil { { size, err := m.Limited.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 *PriorityLevelConfigurationStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationStatus) 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] = 0xa } } return len(dAtA) - i, nil } func (m *QueuingConfiguration) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueuingConfiguration) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueuingConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i = encodeVarintGenerated(dAtA, i, uint64(m.QueueLengthLimit)) i-- dAtA[i] = 0x18 i = encodeVarintGenerated(dAtA, i, uint64(m.HandSize)) i-- dAtA[i] = 0x10 i = encodeVarintGenerated(dAtA, i, uint64(m.Queues)) i-- dAtA[i] = 0x8 return len(dAtA) - i, nil } func (m *ResourcePolicyRule) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ResourcePolicyRule) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ResourcePolicyRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l 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] = 0x2a } } i-- if m.ClusterScope { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x20 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 *ServiceAccountSubject) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ServiceAccountSubject) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ServiceAccountSubject) 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] = 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 *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 if m.ServiceAccount != nil { { size, err := m.ServiceAccount.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } if m.Group != nil { { size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } if m.User != nil { { 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 -= 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 *UserSubject) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *UserSubject) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *UserSubject) 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 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 *ExemptPriorityLevelConfiguration) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.NominalConcurrencyShares != nil { n += 1 + sovGenerated(uint64(*m.NominalConcurrencyShares)) } if m.LendablePercent != nil { n += 1 + sovGenerated(uint64(*m.LendablePercent)) } return n } func (m *FlowDistinguisherMethod) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Type) n += 1 + l + sovGenerated(uint64(l)) return n } func (m *FlowSchema) 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 *FlowSchemaCondition) 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 *FlowSchemaList) 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 *FlowSchemaSpec) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.PriorityLevelConfiguration.Size() n += 1 + l + sovGenerated(uint64(l)) n += 1 + sovGenerated(uint64(m.MatchingPrecedence)) if m.DistinguisherMethod != nil { l = m.DistinguisherMethod.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 *FlowSchemaStatus) 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)) } } return n } func (m *GroupSubject) 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 *LimitResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Type) n += 1 + l + sovGenerated(uint64(l)) if m.Queuing != nil { l = m.Queuing.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *LimitedPriorityLevelConfiguration) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 1 + sovGenerated(uint64(m.AssuredConcurrencyShares)) l = m.LimitResponse.Size() n += 1 + l + sovGenerated(uint64(l)) if m.LendablePercent != nil { n += 1 + sovGenerated(uint64(*m.LendablePercent)) } if m.BorrowingLimitPercent != nil { n += 1 + sovGenerated(uint64(*m.BorrowingLimitPercent)) } return n } func (m *NonResourcePolicyRule) 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 *PolicyRulesWithSubjects) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Subjects) > 0 { for _, e := range m.Subjects { l = e.Size() n += 1 + l + sovGenerated(uint64(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)) } } return n } func (m *PriorityLevelConfiguration) 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 *PriorityLevelConfigurationCondition) 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 *PriorityLevelConfigurationList) 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 *PriorityLevelConfigurationReference) 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 *PriorityLevelConfigurationSpec) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Type) n += 1 + l + sovGenerated(uint64(l)) if m.Limited != nil { l = m.Limited.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.Exempt != nil { l = m.Exempt.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *PriorityLevelConfigurationStatus) 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)) } } return n } func (m *QueuingConfiguration) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 1 + sovGenerated(uint64(m.Queues)) n += 1 + sovGenerated(uint64(m.HandSize)) n += 1 + sovGenerated(uint64(m.QueueLengthLimit)) return n } func (m *ResourcePolicyRule) 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)) } } n += 2 if len(m.Namespaces) > 0 { for _, s := range m.Namespaces { l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *ServiceAccountSubject) 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)) 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)) if m.User != nil { l = m.User.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.Group != nil { l = m.Group.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.ServiceAccount != nil { l = m.ServiceAccount.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *UserSubject) 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 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 *ExemptPriorityLevelConfiguration) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ExemptPriorityLevelConfiguration{`, `NominalConcurrencyShares:` + valueToStringGenerated(this.NominalConcurrencyShares) + `,`, `LendablePercent:` + valueToStringGenerated(this.LendablePercent) + `,`, `}`, }, "") return s } func (this *FlowDistinguisherMethod) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&FlowDistinguisherMethod{`, `Type:` + fmt.Sprintf("%v", this.Type) + `,`, `}`, }, "") return s } func (this *FlowSchema) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&FlowSchema{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "FlowSchemaSpec", "FlowSchemaSpec", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "FlowSchemaStatus", "FlowSchemaStatus", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *FlowSchemaCondition) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&FlowSchemaCondition{`, `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 *FlowSchemaList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]FlowSchema{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "FlowSchema", "FlowSchema", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&FlowSchemaList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *FlowSchemaSpec) String() string { if this == nil { return "nil" } repeatedStringForRules := "[]PolicyRulesWithSubjects{" for _, f := range this.Rules { repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "PolicyRulesWithSubjects", "PolicyRulesWithSubjects", 1), `&`, ``, 1) + "," } repeatedStringForRules += "}" s := strings.Join([]string{`&FlowSchemaSpec{`, `PriorityLevelConfiguration:` + strings.Replace(strings.Replace(this.PriorityLevelConfiguration.String(), "PriorityLevelConfigurationReference", "PriorityLevelConfigurationReference", 1), `&`, ``, 1) + `,`, `MatchingPrecedence:` + fmt.Sprintf("%v", this.MatchingPrecedence) + `,`, `DistinguisherMethod:` + strings.Replace(this.DistinguisherMethod.String(), "FlowDistinguisherMethod", "FlowDistinguisherMethod", 1) + `,`, `Rules:` + repeatedStringForRules + `,`, `}`, }, "") return s } func (this *FlowSchemaStatus) String() string { if this == nil { return "nil" } repeatedStringForConditions := "[]FlowSchemaCondition{" for _, f := range this.Conditions { repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "FlowSchemaCondition", "FlowSchemaCondition", 1), `&`, ``, 1) + "," } repeatedStringForConditions += "}" s := strings.Join([]string{`&FlowSchemaStatus{`, `Conditions:` + repeatedStringForConditions + `,`, `}`, }, "") return s } func (this *GroupSubject) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&GroupSubject{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `}`, }, "") return s } func (this *LimitResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&LimitResponse{`, `Type:` + fmt.Sprintf("%v", this.Type) + `,`, `Queuing:` + strings.Replace(this.Queuing.String(), "QueuingConfiguration", "QueuingConfiguration", 1) + `,`, `}`, }, "") return s } func (this *LimitedPriorityLevelConfiguration) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&LimitedPriorityLevelConfiguration{`, `AssuredConcurrencyShares:` + fmt.Sprintf("%v", this.AssuredConcurrencyShares) + `,`, `LimitResponse:` + strings.Replace(strings.Replace(this.LimitResponse.String(), "LimitResponse", "LimitResponse", 1), `&`, ``, 1) + `,`, `LendablePercent:` + valueToStringGenerated(this.LendablePercent) + `,`, `BorrowingLimitPercent:` + valueToStringGenerated(this.BorrowingLimitPercent) + `,`, `}`, }, "") return s } func (this *NonResourcePolicyRule) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&NonResourcePolicyRule{`, `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, `NonResourceURLs:` + fmt.Sprintf("%v", this.NonResourceURLs) + `,`, `}`, }, "") return s } func (this *PolicyRulesWithSubjects) 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 += "}" repeatedStringForResourceRules := "[]ResourcePolicyRule{" for _, f := range this.ResourceRules { repeatedStringForResourceRules += strings.Replace(strings.Replace(f.String(), "ResourcePolicyRule", "ResourcePolicyRule", 1), `&`, ``, 1) + "," } repeatedStringForResourceRules += "}" repeatedStringForNonResourceRules := "[]NonResourcePolicyRule{" for _, f := range this.NonResourceRules { repeatedStringForNonResourceRules += strings.Replace(strings.Replace(f.String(), "NonResourcePolicyRule", "NonResourcePolicyRule", 1), `&`, ``, 1) + "," } repeatedStringForNonResourceRules += "}" s := strings.Join([]string{`&PolicyRulesWithSubjects{`, `Subjects:` + repeatedStringForSubjects + `,`, `ResourceRules:` + repeatedStringForResourceRules + `,`, `NonResourceRules:` + repeatedStringForNonResourceRules + `,`, `}`, }, "") return s } func (this *PriorityLevelConfiguration) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PriorityLevelConfiguration{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PriorityLevelConfigurationSpec", "PriorityLevelConfigurationSpec", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PriorityLevelConfigurationStatus", "PriorityLevelConfigurationStatus", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *PriorityLevelConfigurationCondition) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PriorityLevelConfigurationCondition{`, `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 *PriorityLevelConfigurationList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]PriorityLevelConfiguration{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PriorityLevelConfiguration", "PriorityLevelConfiguration", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&PriorityLevelConfigurationList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *PriorityLevelConfigurationReference) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PriorityLevelConfigurationReference{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `}`, }, "") return s } func (this *PriorityLevelConfigurationSpec) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PriorityLevelConfigurationSpec{`, `Type:` + fmt.Sprintf("%v", this.Type) + `,`, `Limited:` + strings.Replace(this.Limited.String(), "LimitedPriorityLevelConfiguration", "LimitedPriorityLevelConfiguration", 1) + `,`, `Exempt:` + strings.Replace(this.Exempt.String(), "ExemptPriorityLevelConfiguration", "ExemptPriorityLevelConfiguration", 1) + `,`, `}`, }, "") return s } func (this *PriorityLevelConfigurationStatus) String() string { if this == nil { return "nil" } repeatedStringForConditions := "[]PriorityLevelConfigurationCondition{" for _, f := range this.Conditions { repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "PriorityLevelConfigurationCondition", "PriorityLevelConfigurationCondition", 1), `&`, ``, 1) + "," } repeatedStringForConditions += "}" s := strings.Join([]string{`&PriorityLevelConfigurationStatus{`, `Conditions:` + repeatedStringForConditions + `,`, `}`, }, "") return s } func (this *QueuingConfiguration) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueuingConfiguration{`, `Queues:` + fmt.Sprintf("%v", this.Queues) + `,`, `HandSize:` + fmt.Sprintf("%v", this.HandSize) + `,`, `QueueLengthLimit:` + fmt.Sprintf("%v", this.QueueLengthLimit) + `,`, `}`, }, "") return s } func (this *ResourcePolicyRule) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ResourcePolicyRule{`, `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`, `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`, `ClusterScope:` + fmt.Sprintf("%v", this.ClusterScope) + `,`, `Namespaces:` + fmt.Sprintf("%v", this.Namespaces) + `,`, `}`, }, "") return s } func (this *ServiceAccountSubject) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ServiceAccountSubject{`, `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, `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) + `,`, `User:` + strings.Replace(this.User.String(), "UserSubject", "UserSubject", 1) + `,`, `Group:` + strings.Replace(this.Group.String(), "GroupSubject", "GroupSubject", 1) + `,`, `ServiceAccount:` + strings.Replace(this.ServiceAccount.String(), "ServiceAccountSubject", "ServiceAccountSubject", 1) + `,`, `}`, }, "") return s } func (this *UserSubject) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&UserSubject{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `}`, }, "") 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 *ExemptPriorityLevelConfiguration) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ExemptPriorityLevelConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ExemptPriorityLevelConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field NominalConcurrencyShares", 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.NominalConcurrencyShares = &v case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field LendablePercent", 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.LendablePercent = &v default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowDistinguisherMethod) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowDistinguisherMethod: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowDistinguisherMethod: 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 = FlowDistinguisherMethodType(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchema) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchema: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchema: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchemaCondition) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchemaCondition: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchemaCondition: 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 = FlowSchemaConditionType(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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchemaList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchemaList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchemaList: 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, FlowSchema{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchemaSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchemaSpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchemaSpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PriorityLevelConfiguration", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.PriorityLevelConfiguration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field MatchingPrecedence", wireType) } m.MatchingPrecedence = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.MatchingPrecedence |= int32(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DistinguisherMethod", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.DistinguisherMethod == nil { m.DistinguisherMethod = &FlowDistinguisherMethod{} } if err := m.DistinguisherMethod.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: 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, PolicyRulesWithSubjects{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchemaStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchemaStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchemaStatus: 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, FlowSchemaCondition{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *GroupSubject) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: GroupSubject: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: GroupSubject: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LimitResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: LimitResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LimitResponse: 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 = LimitResponseType(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Queuing", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Queuing == nil { m.Queuing = &QueuingConfiguration{} } if err := m.Queuing.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LimitedPriorityLevelConfiguration) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: LimitedPriorityLevelConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LimitedPriorityLevelConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field AssuredConcurrencyShares", wireType) } m.AssuredConcurrencyShares = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.AssuredConcurrencyShares |= int32(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field LimitResponse", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.LimitResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field LendablePercent", 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.LendablePercent = &v case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field BorrowingLimitPercent", 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.BorrowingLimitPercent = &v default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *NonResourcePolicyRule) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: NonResourcePolicyRule: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: NonResourcePolicyRule: 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 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PolicyRulesWithSubjects) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PolicyRulesWithSubjects: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PolicyRulesWithSubjects: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: 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 2: 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, ResourcePolicyRule{}) if err := m.ResourceRules[len(m.ResourceRules)-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 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, NonResourcePolicyRule{}) if err := m.NonResourceRules[len(m.NonResourceRules)-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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfiguration) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfiguration: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationCondition) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationCondition: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationCondition: 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 = PriorityLevelConfigurationConditionType(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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationList: 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, PriorityLevelConfiguration{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationReference) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationReference: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationReference: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationSpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationSpec: 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 = PriorityLevelEnablement(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Limited", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Limited == nil { m.Limited = &LimitedPriorityLevelConfiguration{} } if err := m.Limited.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Exempt", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Exempt == nil { m.Exempt = &ExemptPriorityLevelConfiguration{} } if err := m.Exempt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationStatus: 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, PriorityLevelConfigurationCondition{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueuingConfiguration) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueuingConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueuingConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Queues", wireType) } m.Queues = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Queues |= int32(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field HandSize", wireType) } m.HandSize = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.HandSize |= int32(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field QueueLengthLimit", wireType) } m.QueueLengthLimit = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.QueueLengthLimit |= int32(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ResourcePolicyRule) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ResourcePolicyRule: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ResourcePolicyRule: 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 != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ClusterScope", 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.ClusterScope = bool(v != 0) case 5: 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ServiceAccountSubject) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ServiceAccountSubject: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ServiceAccountSubject: 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 = SubjectKind(dAtA[iNdEx:postIndex]) iNdEx = postIndex 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 m.User == nil { m.User = &UserSubject{} } 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 Group", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Group == nil { m.Group = &GroupSubject{} } if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ServiceAccount == nil { m.ServiceAccount = &ServiceAccountSubject{} } if err := m.ServiceAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *UserSubject) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: UserSubject: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: UserSubject: 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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/flowcontrol/v1beta1/generated.proto000066400000000000000000000526011453636404600232000ustar00rootroot00000000000000/* 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.flowcontrol.v1beta1; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/flowcontrol/v1beta1"; // ExemptPriorityLevelConfiguration describes the configurable aspects // of the handling of exempt requests. // In the mandatory exempt configuration object the values in the fields // here can be modified by authorized users, unlike the rest of the `spec`. message ExemptPriorityLevelConfiguration { // `nominalConcurrencyShares` (NCS) contributes to the computation of the // NominalConcurrencyLimit (NominalCL) of this level. // This is the number of execution seats nominally reserved for this priority level. // This DOES NOT limit the dispatching from this priority level // but affects the other priority levels through the borrowing mechanism. // The server's concurrency limit (ServerCL) is divided among all the // priority levels in proportion to their NCS values: // // NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) // sum_ncs = sum[priority level k] NCS(k) // // Bigger numbers mean a larger nominal concurrency limit, // at the expense of every other priority level. // This field has a default value of zero. // +optional optional int32 nominalConcurrencyShares = 1; // `lendablePercent` prescribes the fraction of the level's NominalCL that // can be borrowed by other priority levels. This value of this // field must be between 0 and 100, inclusive, and it defaults to 0. // The number of seats that other levels can borrow from this level, known // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. // // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) // // +optional optional int32 lendablePercent = 2; } // FlowDistinguisherMethod specifies the method of a flow distinguisher. message FlowDistinguisherMethod { // `type` is the type of flow distinguisher method // The supported types are "ByUser" and "ByNamespace". // Required. optional string type = 1; } // FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with // similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". message FlowSchema { // `metadata` is the 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 specification of the desired behavior of a FlowSchema. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional FlowSchemaSpec spec = 2; // `status` is the current status of a FlowSchema. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional FlowSchemaStatus status = 3; } // FlowSchemaCondition describes conditions for a FlowSchema. message FlowSchemaCondition { // `type` is the type of the condition. // Required. optional string type = 1; // `status` is the status of the condition. // Can be True, False, Unknown. // Required. optional string status = 2; // `lastTransitionTime` is the last time the condition transitioned from one status to another. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. optional string reason = 4; // `message` is a human-readable message indicating details about last transition. optional string message = 5; } // FlowSchemaList is a list of FlowSchema objects. message FlowSchemaList { // `metadata` is the 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 FlowSchemas. repeated FlowSchema items = 2; } // FlowSchemaSpec describes how the FlowSchema's specification looks like. message FlowSchemaSpec { // `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot // be resolved, the FlowSchema will be ignored and marked as invalid in its status. // Required. optional PriorityLevelConfigurationReference priorityLevelConfiguration = 1; // `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen // FlowSchema is among those with the numerically lowest (which we take to be logically highest) // MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. // Note that if the precedence is not specified, it will be set to 1000 as default. // +optional optional int32 matchingPrecedence = 2; // `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. // `nil` specifies that the distinguisher is disabled and thus will always be the empty string. // +optional optional FlowDistinguisherMethod distinguisherMethod = 3; // `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if // at least one member of rules matches the request. // if it is an empty slice, there will be no requests matching the FlowSchema. // +listType=atomic // +optional repeated PolicyRulesWithSubjects rules = 4; } // FlowSchemaStatus represents the current state of a FlowSchema. message FlowSchemaStatus { // `conditions` is a list of the current states of FlowSchema. // +listType=map // +listMapKey=type // +optional repeated FlowSchemaCondition conditions = 1; } // GroupSubject holds detailed information for group-kind subject. message GroupSubject { // name is the user group that matches, or "*" to match all user groups. // See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some // well-known group names. // Required. optional string name = 1; } // LimitResponse defines how to handle requests that can not be executed right now. // +union message LimitResponse { // `type` is "Queue" or "Reject". // "Queue" means that requests that can not be executed upon arrival // are held in a queue until they can be executed or a queuing limit // is reached. // "Reject" means that requests that can not be executed upon arrival // are rejected. // Required. // +unionDiscriminator optional string type = 1; // `queuing` holds the configuration parameters for queuing. // This field may be non-empty only if `type` is `"Queue"`. // +optional optional QueuingConfiguration queuing = 2; } // LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. // It addresses two issues: // - How are requests for this priority level limited? // - What should be done with requests that exceed the limit? message LimitedPriorityLevelConfiguration { // `assuredConcurrencyShares` (ACS) configures the execution // limit, which is a limit on the number of requests of this // priority level that may be executing at a given time. ACS must // be a positive number. The server's concurrency limit (SCL) is // divided among the concurrency-controlled priority levels in // proportion to their assured concurrency shares. This produces // the assured concurrency value (ACV) --- the number of requests // that may be executing at a time --- for each such priority // level: // // ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) // // bigger numbers of ACS mean more reserved concurrent requests (at the // expense of every other PL). // This field has a default value of 30. // +optional optional int32 assuredConcurrencyShares = 1; // `limitResponse` indicates what to do with requests that can not be executed right now optional LimitResponse limitResponse = 2; // `lendablePercent` prescribes the fraction of the level's NominalCL that // can be borrowed by other priority levels. The value of this // field must be between 0 and 100, inclusive, and it defaults to 0. // The number of seats that other levels can borrow from this level, known // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. // // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) // // +optional optional int32 lendablePercent = 3; // `borrowingLimitPercent`, if present, configures a limit on how many // seats this priority level can borrow from other priority levels. // The limit is known as this level's BorrowingConcurrencyLimit // (BorrowingCL) and is a limit on the total number of seats that this // level may borrow at any one time. // This field holds the ratio of that limit to the level's nominal // concurrency limit. When this field is non-nil, it must hold a // non-negative integer and the limit is calculated as follows. // // BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) // // The value of this field can be more than 100, implying that this // priority level can borrow a number of seats that is greater than // its own nominal concurrency limit (NominalCL). // When this field is left `nil`, the limit is effectively infinite. // +optional optional int32 borrowingLimitPercent = 4; } // NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the // target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member // of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. message NonResourcePolicyRule { // `verbs` is a list of matching verbs and may not be empty. // "*" matches all verbs. If it is present, it must be the only entry. // +listType=set // Required. repeated string verbs = 1; // `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. // For example: // - "/healthz" is legal // - "/hea*" is illegal // - "/hea" is legal but matches nothing // - "/hea/*" also matches nothing // - "/healthz/*" matches all per-component health checks. // "*" matches all non-resource urls. if it is present, it must be the only entry. // +listType=set // Required. repeated string nonResourceURLs = 6; } // PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject // making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches // a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member // of resourceRules or nonResourceRules matches the request. message PolicyRulesWithSubjects { // subjects is the list of normal user, serviceaccount, or group that this rule cares about. // There must be at least one member in this slice. // A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. // +listType=atomic // Required. repeated Subject subjects = 1; // `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the // target resource. // At least one of `resourceRules` and `nonResourceRules` has to be non-empty. // +listType=atomic // +optional repeated ResourcePolicyRule resourceRules = 2; // `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb // and the target non-resource URL. // +listType=atomic // +optional repeated NonResourcePolicyRule nonResourceRules = 3; } // PriorityLevelConfiguration represents the configuration of a priority level. message PriorityLevelConfiguration { // `metadata` is the 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 specification of the desired behavior of a "request-priority". // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional PriorityLevelConfigurationSpec spec = 2; // `status` is the current status of a "request-priority". // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional PriorityLevelConfigurationStatus status = 3; } // PriorityLevelConfigurationCondition defines the condition of priority level. message PriorityLevelConfigurationCondition { // `type` is the type of the condition. // Required. optional string type = 1; // `status` is the status of the condition. // Can be True, False, Unknown. // Required. optional string status = 2; // `lastTransitionTime` is the last time the condition transitioned from one status to another. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. optional string reason = 4; // `message` is a human-readable message indicating details about last transition. optional string message = 5; } // PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. message PriorityLevelConfigurationList { // `metadata` is the 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 a list of request-priorities. repeated PriorityLevelConfiguration items = 2; } // PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. message PriorityLevelConfigurationReference { // `name` is the name of the priority level configuration being referenced // Required. optional string name = 1; } // PriorityLevelConfigurationSpec specifies the configuration of a priority level. // +union message PriorityLevelConfigurationSpec { // `type` indicates whether this priority level is subject to // limitation on request execution. A value of `"Exempt"` means // that requests of this priority level are not subject to a limit // (and thus are never queued) and do not detract from the // capacity made available to other priority levels. A value of // `"Limited"` means that (a) requests of this priority level // _are_ subject to limits and (b) some of the server's limited // capacity is made available exclusively to this priority level. // Required. // +unionDiscriminator optional string type = 1; // `limited` specifies how requests are handled for a Limited priority level. // This field must be non-empty if and only if `type` is `"Limited"`. // +optional optional LimitedPriorityLevelConfiguration limited = 2; // `exempt` specifies how requests are handled for an exempt priority level. // This field MUST be empty if `type` is `"Limited"`. // This field MAY be non-empty if `type` is `"Exempt"`. // If empty and `type` is `"Exempt"` then the default values // for `ExemptPriorityLevelConfiguration` apply. // +optional optional ExemptPriorityLevelConfiguration exempt = 3; } // PriorityLevelConfigurationStatus represents the current state of a "request-priority". message PriorityLevelConfigurationStatus { // `conditions` is the current state of "request-priority". // +listType=map // +listMapKey=type // +optional repeated PriorityLevelConfigurationCondition conditions = 1; } // QueuingConfiguration holds the configuration parameters for queuing message QueuingConfiguration { // `queues` is the number of queues for this priority level. The // queues exist independently at each apiserver. The value must be // positive. Setting it to 1 effectively precludes // shufflesharding and thus makes the distinguisher method of // associated flow schemas irrelevant. This field has a default // value of 64. // +optional optional int32 queues = 1; // `handSize` is a small positive number that configures the // shuffle sharding of requests into queues. When enqueuing a request // at this priority level the request's flow identifier (a string // pair) is hashed and the hash value is used to shuffle the list // of queues and deal a hand of the size specified here. The // request is put into one of the shortest queues in that hand. // `handSize` must be no larger than `queues`, and should be // significantly smaller (so that a few heavy flows do not // saturate most of the queues). See the user-facing // documentation for more extensive guidance on setting this // field. This field has a default value of 8. // +optional optional int32 handSize = 2; // `queueLengthLimit` is the maximum number of requests allowed to // be waiting in a given queue of this priority level at a time; // excess requests are rejected. This value must be positive. If // not specified, it will be defaulted to 50. // +optional optional int32 queueLengthLimit = 3; } // ResourcePolicyRule is a predicate that matches some resource // requests, testing the request's verb and the target resource. A // ResourcePolicyRule matches a resource request if and only if: (a) // at least one member of verbs matches the request, (b) at least one // member of apiGroups matches the request, (c) at least one member of // resources matches the request, and (d) either (d1) the request does // not specify a namespace (i.e., `Namespace==""`) and clusterScope is // true or (d2) the request specifies a namespace and least one member // of namespaces matches the request's namespace. message ResourcePolicyRule { // `verbs` is a list of matching verbs and may not be empty. // "*" matches all verbs and, if present, must be the only entry. // +listType=set // Required. repeated string verbs = 1; // `apiGroups` is a list of matching API groups and may not be empty. // "*" matches all API groups and, if present, must be the only entry. // +listType=set // Required. repeated string apiGroups = 2; // `resources` is a list of matching resources (i.e., lowercase // and plural) with, if desired, subresource. For example, [ // "services", "nodes/status" ]. This list may not be empty. // "*" matches all resources and, if present, must be the only entry. // Required. // +listType=set repeated string resources = 3; // `clusterScope` indicates whether to match requests that do not // specify a namespace (which happens either because the resource // is not namespaced or the request targets all namespaces). // If this field is omitted or false then the `namespaces` field // must contain a non-empty list. // +optional optional bool clusterScope = 4; // `namespaces` is a list of target namespaces that restricts // matches. A request that specifies a target namespace matches // only if either (a) this list contains that target namespace or // (b) this list contains "*". Note that "*" matches any // specified namespace but does not match a request that _does // not specify_ a namespace (see the `clusterScope` field for // that). // This list may be empty, but only if `clusterScope` is true. // +optional // +listType=set repeated string namespaces = 5; } // ServiceAccountSubject holds detailed information for service-account-kind subject. message ServiceAccountSubject { // `namespace` is the namespace of matching ServiceAccount objects. // Required. optional string namespace = 1; // `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. // Required. optional string name = 2; } // Subject matches the originator of a request, as identified by the request authentication system. There are three // ways of matching an originator; by user, group, or service account. // +union message Subject { // `kind` indicates which one of the other fields is non-empty. // Required // +unionDiscriminator optional string kind = 1; // `user` matches based on username. // +optional optional UserSubject user = 2; // `group` matches based on user group name. // +optional optional GroupSubject group = 3; // `serviceAccount` matches ServiceAccounts. // +optional optional ServiceAccountSubject serviceAccount = 4; } // UserSubject holds detailed information for user-kind subject. message UserSubject { // `name` is the username that matches, or "*" to match all usernames. // Required. optional string name = 1; } golang-k8s-api-0.29.0/flowcontrol/v1beta1/register.go000066400000000000000000000035161453636404600223310ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the name of api group const GroupName = "flowcontrol.apiserver.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 ( // SchemeBuilder installs the api group to a scheme SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme adds api 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, &FlowSchema{}, &FlowSchemaList{}, &PriorityLevelConfiguration{}, &PriorityLevelConfigurationList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/flowcontrol/v1beta1/types.go000066400000000000000000000763121453636404600216550ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // These are valid wildcards. const ( APIGroupAll = "*" ResourceAll = "*" VerbAll = "*" NonResourceAll = "*" NameAll = "*" NamespaceEvery = "*" // matches every particular namespace ) // System preset priority level names const ( PriorityLevelConfigurationNameExempt = "exempt" PriorityLevelConfigurationNameCatchAll = "catch-all" FlowSchemaNameExempt = "exempt" FlowSchemaNameCatchAll = "catch-all" ) // Conditions const ( FlowSchemaConditionDangling = "Dangling" PriorityLevelConfigurationConditionConcurrencyShared = "ConcurrencyShared" ) // Constants used by api validation. const ( FlowSchemaMaxMatchingPrecedence int32 = 10000 ) // Constants for apiserver response headers. const ( ResponseHeaderMatchedPriorityLevelConfigurationUID = "X-Kubernetes-PF-PriorityLevel-UID" ResponseHeaderMatchedFlowSchemaUID = "X-Kubernetes-PF-FlowSchema-UID" ) const ( // AutoUpdateAnnotationKey is the name of an annotation that enables // automatic update of the spec of the bootstrap configuration // object(s), if set to 'true'. // // On a fresh install, all bootstrap configuration objects will have auto // update enabled with the following annotation key: // apf.kubernetes.io/autoupdate-spec: 'true' // // The kube-apiserver periodically checks the bootstrap configuration // objects on the cluster and applies updates if necessary. // // kube-apiserver enforces an 'always auto-update' policy for the // mandatory configuration object(s). This implies: // - the auto-update annotation key is added with a value of 'true' // if it is missing. // - the auto-update annotation key is set to 'true' if its current value // is a boolean false or has an invalid boolean representation // (if the cluster operator sets it to 'false' it will be stomped) // - any changes to the spec made by the cluster operator will be // stomped, except for changes to the `nominalConcurrencyShares` // and `lendablePercent` fields of the PriorityLevelConfiguration // named "exempt". // // The kube-apiserver will apply updates on the suggested configuration if: // - the cluster operator has enabled auto-update by setting the annotation // (apf.kubernetes.io/autoupdate-spec: 'true') or // - the annotation key is missing but the generation is 1 // // If the suggested configuration object is missing the annotation key, // kube-apiserver will update the annotation appropriately: // - it is set to 'true' if generation of the object is '1' which usually // indicates that the spec of the object has not been changed. // - it is set to 'false' if generation of the object is greater than 1. // // The goal is to enable the kube-apiserver to apply update on suggested // configuration objects installed by previous releases but not overwrite // changes made by the cluster operators. // Note that this distinction is imperfectly detected: in the case where an // operator deletes a suggested configuration object and later creates it // but with a variant spec and then does no updates of the object // (generation is 1), the technique outlined above will incorrectly // determine that the object should be auto-updated. AutoUpdateAnnotationKey = "apf.kubernetes.io/autoupdate-spec" ) // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.20 // +k8s:prerelease-lifecycle-gen:replacement=flowcontrol.apiserver.k8s.io,v1beta3,FlowSchema // FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with // similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". type FlowSchema struct { metav1.TypeMeta `json:",inline"` // `metadata` is the 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 specification of the desired behavior of a FlowSchema. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec FlowSchemaSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // `status` is the current status of a FlowSchema. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Status FlowSchemaStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.20 // +k8s:prerelease-lifecycle-gen:replacement=flowcontrol.apiserver.k8s.io,v1beta3,FlowSchemaList // FlowSchemaList is a list of FlowSchema objects. type FlowSchemaList struct { metav1.TypeMeta `json:",inline"` // `metadata` is the 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 FlowSchemas. Items []FlowSchema `json:"items" protobuf:"bytes,2,rep,name=items"` } // FlowSchemaSpec describes how the FlowSchema's specification looks like. type FlowSchemaSpec struct { // `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot // be resolved, the FlowSchema will be ignored and marked as invalid in its status. // Required. PriorityLevelConfiguration PriorityLevelConfigurationReference `json:"priorityLevelConfiguration" protobuf:"bytes,1,opt,name=priorityLevelConfiguration"` // `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen // FlowSchema is among those with the numerically lowest (which we take to be logically highest) // MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. // Note that if the precedence is not specified, it will be set to 1000 as default. // +optional MatchingPrecedence int32 `json:"matchingPrecedence" protobuf:"varint,2,opt,name=matchingPrecedence"` // `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. // `nil` specifies that the distinguisher is disabled and thus will always be the empty string. // +optional DistinguisherMethod *FlowDistinguisherMethod `json:"distinguisherMethod,omitempty" protobuf:"bytes,3,opt,name=distinguisherMethod"` // `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if // at least one member of rules matches the request. // if it is an empty slice, there will be no requests matching the FlowSchema. // +listType=atomic // +optional Rules []PolicyRulesWithSubjects `json:"rules,omitempty" protobuf:"bytes,4,rep,name=rules"` } // FlowDistinguisherMethodType is the type of flow distinguisher method type FlowDistinguisherMethodType string // These are valid flow-distinguisher methods. const ( // FlowDistinguisherMethodByUserType specifies that the flow distinguisher is the username in the request. // This type is used to provide some insulation between users. FlowDistinguisherMethodByUserType FlowDistinguisherMethodType = "ByUser" // FlowDistinguisherMethodByNamespaceType specifies that the flow distinguisher is the namespace of the // object that the request acts upon. If the object is not namespaced, or if the request is a non-resource // request, then the distinguisher will be the empty string. An example usage of this type is to provide // some insulation between tenants in a situation where there are multiple tenants and each namespace // is dedicated to a tenant. FlowDistinguisherMethodByNamespaceType FlowDistinguisherMethodType = "ByNamespace" ) // FlowDistinguisherMethod specifies the method of a flow distinguisher. type FlowDistinguisherMethod struct { // `type` is the type of flow distinguisher method // The supported types are "ByUser" and "ByNamespace". // Required. Type FlowDistinguisherMethodType `json:"type" protobuf:"bytes,1,opt,name=type"` } // PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. type PriorityLevelConfigurationReference struct { // `name` is the name of the priority level configuration being referenced // Required. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` } // PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject // making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches // a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member // of resourceRules or nonResourceRules matches the request. type PolicyRulesWithSubjects struct { // subjects is the list of normal user, serviceaccount, or group that this rule cares about. // There must be at least one member in this slice. // A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. // +listType=atomic // Required. Subjects []Subject `json:"subjects" protobuf:"bytes,1,rep,name=subjects"` // `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the // target resource. // At least one of `resourceRules` and `nonResourceRules` has to be non-empty. // +listType=atomic // +optional ResourceRules []ResourcePolicyRule `json:"resourceRules,omitempty" protobuf:"bytes,2,opt,name=resourceRules"` // `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb // and the target non-resource URL. // +listType=atomic // +optional NonResourceRules []NonResourcePolicyRule `json:"nonResourceRules,omitempty" protobuf:"bytes,3,opt,name=nonResourceRules"` } // Subject matches the originator of a request, as identified by the request authentication system. There are three // ways of matching an originator; by user, group, or service account. // +union type Subject struct { // `kind` indicates which one of the other fields is non-empty. // Required // +unionDiscriminator Kind SubjectKind `json:"kind" protobuf:"bytes,1,opt,name=kind"` // `user` matches based on username. // +optional User *UserSubject `json:"user,omitempty" protobuf:"bytes,2,opt,name=user"` // `group` matches based on user group name. // +optional Group *GroupSubject `json:"group,omitempty" protobuf:"bytes,3,opt,name=group"` // `serviceAccount` matches ServiceAccounts. // +optional ServiceAccount *ServiceAccountSubject `json:"serviceAccount,omitempty" protobuf:"bytes,4,opt,name=serviceAccount"` } // SubjectKind is the kind of subject. type SubjectKind string // Supported subject's kinds. const ( SubjectKindUser SubjectKind = "User" SubjectKindGroup SubjectKind = "Group" SubjectKindServiceAccount SubjectKind = "ServiceAccount" ) // UserSubject holds detailed information for user-kind subject. type UserSubject struct { // `name` is the username that matches, or "*" to match all usernames. // Required. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` } // GroupSubject holds detailed information for group-kind subject. type GroupSubject struct { // name is the user group that matches, or "*" to match all user groups. // See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some // well-known group names. // Required. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` } // ServiceAccountSubject holds detailed information for service-account-kind subject. type ServiceAccountSubject struct { // `namespace` is the namespace of matching ServiceAccount objects. // Required. Namespace string `json:"namespace" protobuf:"bytes,1,opt,name=namespace"` // `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. // Required. Name string `json:"name" protobuf:"bytes,2,opt,name=name"` } // ResourcePolicyRule is a predicate that matches some resource // requests, testing the request's verb and the target resource. A // ResourcePolicyRule matches a resource request if and only if: (a) // at least one member of verbs matches the request, (b) at least one // member of apiGroups matches the request, (c) at least one member of // resources matches the request, and (d) either (d1) the request does // not specify a namespace (i.e., `Namespace==""`) and clusterScope is // true or (d2) the request specifies a namespace and least one member // of namespaces matches the request's namespace. type ResourcePolicyRule struct { // `verbs` is a list of matching verbs and may not be empty. // "*" matches all verbs and, if present, must be the only entry. // +listType=set // Required. Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` // `apiGroups` is a list of matching API groups and may not be empty. // "*" matches all API groups and, if present, must be the only entry. // +listType=set // Required. APIGroups []string `json:"apiGroups" protobuf:"bytes,2,rep,name=apiGroups"` // `resources` is a list of matching resources (i.e., lowercase // and plural) with, if desired, subresource. For example, [ // "services", "nodes/status" ]. This list may not be empty. // "*" matches all resources and, if present, must be the only entry. // Required. // +listType=set Resources []string `json:"resources" protobuf:"bytes,3,rep,name=resources"` // `clusterScope` indicates whether to match requests that do not // specify a namespace (which happens either because the resource // is not namespaced or the request targets all namespaces). // If this field is omitted or false then the `namespaces` field // must contain a non-empty list. // +optional ClusterScope bool `json:"clusterScope,omitempty" protobuf:"varint,4,opt,name=clusterScope"` // `namespaces` is a list of target namespaces that restricts // matches. A request that specifies a target namespace matches // only if either (a) this list contains that target namespace or // (b) this list contains "*". Note that "*" matches any // specified namespace but does not match a request that _does // not specify_ a namespace (see the `clusterScope` field for // that). // This list may be empty, but only if `clusterScope` is true. // +optional // +listType=set Namespaces []string `json:"namespaces" protobuf:"bytes,5,rep,name=namespaces"` } // NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the // target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member // of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. type NonResourcePolicyRule struct { // `verbs` is a list of matching verbs and may not be empty. // "*" matches all verbs. If it is present, it must be the only entry. // +listType=set // Required. Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` // `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. // For example: // - "/healthz" is legal // - "/hea*" is illegal // - "/hea" is legal but matches nothing // - "/hea/*" also matches nothing // - "/healthz/*" matches all per-component health checks. // "*" matches all non-resource urls. if it is present, it must be the only entry. // +listType=set // Required. NonResourceURLs []string `json:"nonResourceURLs" protobuf:"bytes,6,rep,name=nonResourceURLs"` } // FlowSchemaStatus represents the current state of a FlowSchema. type FlowSchemaStatus struct { // `conditions` is a list of the current states of FlowSchema. // +listType=map // +listMapKey=type // +optional Conditions []FlowSchemaCondition `json:"conditions,omitempty" protobuf:"bytes,1,rep,name=conditions"` } // FlowSchemaCondition describes conditions for a FlowSchema. type FlowSchemaCondition struct { // `type` is the type of the condition. // Required. Type FlowSchemaConditionType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type"` // `status` is the status of the condition. // Can be True, False, Unknown. // Required. Status ConditionStatus `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"` // `lastTransitionTime` is the last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` // `message` is a human-readable message indicating details about last transition. Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` } // FlowSchemaConditionType is a valid value for FlowSchemaStatusCondition.Type type FlowSchemaConditionType string // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.20 // +k8s:prerelease-lifecycle-gen:replacement=flowcontrol.apiserver.k8s.io,v1beta3,PriorityLevelConfiguration // PriorityLevelConfiguration represents the configuration of a priority level. type PriorityLevelConfiguration struct { metav1.TypeMeta `json:",inline"` // `metadata` is the 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 specification of the desired behavior of a "request-priority". // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec PriorityLevelConfigurationSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // `status` is the current status of a "request-priority". // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Status PriorityLevelConfigurationStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.20 // +k8s:prerelease-lifecycle-gen:replacement=flowcontrol.apiserver.k8s.io,v1beta3,PriorityLevelConfigurationList // PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. type PriorityLevelConfigurationList struct { metav1.TypeMeta `json:",inline"` // `metadata` is the 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 a list of request-priorities. Items []PriorityLevelConfiguration `json:"items" protobuf:"bytes,2,rep,name=items"` } // PriorityLevelConfigurationSpec specifies the configuration of a priority level. // +union type PriorityLevelConfigurationSpec struct { // `type` indicates whether this priority level is subject to // limitation on request execution. A value of `"Exempt"` means // that requests of this priority level are not subject to a limit // (and thus are never queued) and do not detract from the // capacity made available to other priority levels. A value of // `"Limited"` means that (a) requests of this priority level // _are_ subject to limits and (b) some of the server's limited // capacity is made available exclusively to this priority level. // Required. // +unionDiscriminator Type PriorityLevelEnablement `json:"type" protobuf:"bytes,1,opt,name=type"` // `limited` specifies how requests are handled for a Limited priority level. // This field must be non-empty if and only if `type` is `"Limited"`. // +optional Limited *LimitedPriorityLevelConfiguration `json:"limited,omitempty" protobuf:"bytes,2,opt,name=limited"` // `exempt` specifies how requests are handled for an exempt priority level. // This field MUST be empty if `type` is `"Limited"`. // This field MAY be non-empty if `type` is `"Exempt"`. // If empty and `type` is `"Exempt"` then the default values // for `ExemptPriorityLevelConfiguration` apply. // +optional Exempt *ExemptPriorityLevelConfiguration `json:"exempt,omitempty" protobuf:"bytes,3,opt,name=exempt"` } // PriorityLevelEnablement indicates whether limits on execution are enabled for the priority level type PriorityLevelEnablement string // Supported priority level enablement values. const ( // PriorityLevelEnablementExempt means that requests are not subject to limits PriorityLevelEnablementExempt PriorityLevelEnablement = "Exempt" // PriorityLevelEnablementLimited means that requests are subject to limits PriorityLevelEnablementLimited PriorityLevelEnablement = "Limited" ) // LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. // It addresses two issues: // - How are requests for this priority level limited? // - What should be done with requests that exceed the limit? type LimitedPriorityLevelConfiguration struct { // `assuredConcurrencyShares` (ACS) configures the execution // limit, which is a limit on the number of requests of this // priority level that may be executing at a given time. ACS must // be a positive number. The server's concurrency limit (SCL) is // divided among the concurrency-controlled priority levels in // proportion to their assured concurrency shares. This produces // the assured concurrency value (ACV) --- the number of requests // that may be executing at a time --- for each such priority // level: // // ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) // // bigger numbers of ACS mean more reserved concurrent requests (at the // expense of every other PL). // This field has a default value of 30. // +optional AssuredConcurrencyShares int32 `json:"assuredConcurrencyShares" protobuf:"varint,1,opt,name=assuredConcurrencyShares"` // `limitResponse` indicates what to do with requests that can not be executed right now LimitResponse LimitResponse `json:"limitResponse,omitempty" protobuf:"bytes,2,opt,name=limitResponse"` // `lendablePercent` prescribes the fraction of the level's NominalCL that // can be borrowed by other priority levels. The value of this // field must be between 0 and 100, inclusive, and it defaults to 0. // The number of seats that other levels can borrow from this level, known // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. // // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) // // +optional LendablePercent *int32 `json:"lendablePercent,omitempty" protobuf:"varint,3,opt,name=lendablePercent"` // `borrowingLimitPercent`, if present, configures a limit on how many // seats this priority level can borrow from other priority levels. // The limit is known as this level's BorrowingConcurrencyLimit // (BorrowingCL) and is a limit on the total number of seats that this // level may borrow at any one time. // This field holds the ratio of that limit to the level's nominal // concurrency limit. When this field is non-nil, it must hold a // non-negative integer and the limit is calculated as follows. // // BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) // // The value of this field can be more than 100, implying that this // priority level can borrow a number of seats that is greater than // its own nominal concurrency limit (NominalCL). // When this field is left `nil`, the limit is effectively infinite. // +optional BorrowingLimitPercent *int32 `json:"borrowingLimitPercent,omitempty" protobuf:"varint,4,opt,name=borrowingLimitPercent"` } // ExemptPriorityLevelConfiguration describes the configurable aspects // of the handling of exempt requests. // In the mandatory exempt configuration object the values in the fields // here can be modified by authorized users, unlike the rest of the `spec`. type ExemptPriorityLevelConfiguration struct { // `nominalConcurrencyShares` (NCS) contributes to the computation of the // NominalConcurrencyLimit (NominalCL) of this level. // This is the number of execution seats nominally reserved for this priority level. // This DOES NOT limit the dispatching from this priority level // but affects the other priority levels through the borrowing mechanism. // The server's concurrency limit (ServerCL) is divided among all the // priority levels in proportion to their NCS values: // // NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) // sum_ncs = sum[priority level k] NCS(k) // // Bigger numbers mean a larger nominal concurrency limit, // at the expense of every other priority level. // This field has a default value of zero. // +optional NominalConcurrencyShares *int32 `json:"nominalConcurrencyShares,omitempty" protobuf:"varint,1,opt,name=nominalConcurrencyShares"` // `lendablePercent` prescribes the fraction of the level's NominalCL that // can be borrowed by other priority levels. This value of this // field must be between 0 and 100, inclusive, and it defaults to 0. // The number of seats that other levels can borrow from this level, known // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. // // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) // // +optional LendablePercent *int32 `json:"lendablePercent,omitempty" protobuf:"varint,2,opt,name=lendablePercent"` // The `BorrowingCL` of an Exempt priority level is implicitly `ServerCL`. // In other words, an exempt priority level // has no meaningful limit on how much it borrows. // There is no explicit representation of that here. } // LimitResponse defines how to handle requests that can not be executed right now. // +union type LimitResponse struct { // `type` is "Queue" or "Reject". // "Queue" means that requests that can not be executed upon arrival // are held in a queue until they can be executed or a queuing limit // is reached. // "Reject" means that requests that can not be executed upon arrival // are rejected. // Required. // +unionDiscriminator Type LimitResponseType `json:"type" protobuf:"bytes,1,opt,name=type"` // `queuing` holds the configuration parameters for queuing. // This field may be non-empty only if `type` is `"Queue"`. // +optional Queuing *QueuingConfiguration `json:"queuing,omitempty" protobuf:"bytes,2,opt,name=queuing"` } // LimitResponseType identifies how a Limited priority level handles a request that can not be executed right now type LimitResponseType string // Supported limit responses. const ( // LimitResponseTypeQueue means that requests that can not be executed right now are queued until they can be executed or a queuing limit is hit LimitResponseTypeQueue LimitResponseType = "Queue" // LimitResponseTypeReject means that requests that can not be executed right now are rejected LimitResponseTypeReject LimitResponseType = "Reject" ) // QueuingConfiguration holds the configuration parameters for queuing type QueuingConfiguration struct { // `queues` is the number of queues for this priority level. The // queues exist independently at each apiserver. The value must be // positive. Setting it to 1 effectively precludes // shufflesharding and thus makes the distinguisher method of // associated flow schemas irrelevant. This field has a default // value of 64. // +optional Queues int32 `json:"queues" protobuf:"varint,1,opt,name=queues"` // `handSize` is a small positive number that configures the // shuffle sharding of requests into queues. When enqueuing a request // at this priority level the request's flow identifier (a string // pair) is hashed and the hash value is used to shuffle the list // of queues and deal a hand of the size specified here. The // request is put into one of the shortest queues in that hand. // `handSize` must be no larger than `queues`, and should be // significantly smaller (so that a few heavy flows do not // saturate most of the queues). See the user-facing // documentation for more extensive guidance on setting this // field. This field has a default value of 8. // +optional HandSize int32 `json:"handSize" protobuf:"varint,2,opt,name=handSize"` // `queueLengthLimit` is the maximum number of requests allowed to // be waiting in a given queue of this priority level at a time; // excess requests are rejected. This value must be positive. If // not specified, it will be defaulted to 50. // +optional QueueLengthLimit int32 `json:"queueLengthLimit" protobuf:"varint,3,opt,name=queueLengthLimit"` } // PriorityLevelConfigurationConditionType is a valid value for PriorityLevelConfigurationStatusCondition.Type type PriorityLevelConfigurationConditionType string // PriorityLevelConfigurationStatus represents the current state of a "request-priority". type PriorityLevelConfigurationStatus struct { // `conditions` is the current state of "request-priority". // +listType=map // +listMapKey=type // +optional Conditions []PriorityLevelConfigurationCondition `json:"conditions,omitempty" protobuf:"bytes,1,rep,name=conditions"` } // PriorityLevelConfigurationCondition defines the condition of priority level. type PriorityLevelConfigurationCondition struct { // `type` is the type of the condition. // Required. Type PriorityLevelConfigurationConditionType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type"` // `status` is the status of the condition. // Can be True, False, Unknown. // Required. Status ConditionStatus `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"` // `lastTransitionTime` is the last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` // `message` is a human-readable message indicating details about last transition. Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` } // ConditionStatus is the status of the condition. 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" ) golang-k8s-api-0.29.0/flowcontrol/v1beta1/types_swagger_doc_generated.go000066400000000000000000000523601453636404600262340ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_ExemptPriorityLevelConfiguration = map[string]string{ "": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.", "nominalConcurrencyShares": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.", "lendablePercent": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", } func (ExemptPriorityLevelConfiguration) SwaggerDoc() map[string]string { return map_ExemptPriorityLevelConfiguration } var map_FlowDistinguisherMethod = map[string]string{ "": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", "type": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", } func (FlowDistinguisherMethod) SwaggerDoc() map[string]string { return map_FlowDistinguisherMethod } var map_FlowSchema = map[string]string{ "": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", "metadata": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "spec": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", "status": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", } func (FlowSchema) SwaggerDoc() map[string]string { return map_FlowSchema } var map_FlowSchemaCondition = map[string]string{ "": "FlowSchemaCondition describes conditions for a FlowSchema.", "type": "`type` is the type of the condition. Required.", "status": "`status` is the status of the condition. Can be True, False, Unknown. Required.", "lastTransitionTime": "`lastTransitionTime` is the last time the condition transitioned from one status to another.", "reason": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", "message": "`message` is a human-readable message indicating details about last transition.", } func (FlowSchemaCondition) SwaggerDoc() map[string]string { return map_FlowSchemaCondition } var map_FlowSchemaList = map[string]string{ "": "FlowSchemaList is a list of FlowSchema objects.", "metadata": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "items": "`items` is a list of FlowSchemas.", } func (FlowSchemaList) SwaggerDoc() map[string]string { return map_FlowSchemaList } var map_FlowSchemaSpec = map[string]string{ "": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", "priorityLevelConfiguration": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required.", "matchingPrecedence": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.", "distinguisherMethod": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string.", "rules": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", } func (FlowSchemaSpec) SwaggerDoc() map[string]string { return map_FlowSchemaSpec } var map_FlowSchemaStatus = map[string]string{ "": "FlowSchemaStatus represents the current state of a FlowSchema.", "conditions": "`conditions` is a list of the current states of FlowSchema.", } func (FlowSchemaStatus) SwaggerDoc() map[string]string { return map_FlowSchemaStatus } var map_GroupSubject = map[string]string{ "": "GroupSubject holds detailed information for group-kind subject.", "name": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.", } func (GroupSubject) SwaggerDoc() map[string]string { return map_GroupSubject } var map_LimitResponse = map[string]string{ "": "LimitResponse defines how to handle requests that can not be executed right now.", "type": "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.", "queuing": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`.", } func (LimitResponse) SwaggerDoc() map[string]string { return map_LimitResponse } var map_LimitedPriorityLevelConfiguration = map[string]string{ "": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", "assuredConcurrencyShares": "`assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be executing at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) ", "limitResponse": "`limitResponse` indicates what to do with requests that can not be executed right now", "lendablePercent": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", "borrowingLimitPercent": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", } func (LimitedPriorityLevelConfiguration) SwaggerDoc() map[string]string { return map_LimitedPriorityLevelConfiguration } var map_NonResourcePolicyRule = map[string]string{ "": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", "verbs": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", "nonResourceURLs": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", } func (NonResourcePolicyRule) SwaggerDoc() map[string]string { return map_NonResourcePolicyRule } var map_PolicyRulesWithSubjects = map[string]string{ "": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", "subjects": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", "resourceRules": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", "nonResourceRules": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", } func (PolicyRulesWithSubjects) SwaggerDoc() map[string]string { return map_PolicyRulesWithSubjects } var map_PriorityLevelConfiguration = map[string]string{ "": "PriorityLevelConfiguration represents the configuration of a priority level.", "metadata": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "spec": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", "status": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", } func (PriorityLevelConfiguration) SwaggerDoc() map[string]string { return map_PriorityLevelConfiguration } var map_PriorityLevelConfigurationCondition = map[string]string{ "": "PriorityLevelConfigurationCondition defines the condition of priority level.", "type": "`type` is the type of the condition. Required.", "status": "`status` is the status of the condition. Can be True, False, Unknown. Required.", "lastTransitionTime": "`lastTransitionTime` is the last time the condition transitioned from one status to another.", "reason": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", "message": "`message` is a human-readable message indicating details about last transition.", } func (PriorityLevelConfigurationCondition) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationCondition } var map_PriorityLevelConfigurationList = map[string]string{ "": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", "metadata": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "items": "`items` is a list of request-priorities.", } func (PriorityLevelConfigurationList) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationList } var map_PriorityLevelConfigurationReference = map[string]string{ "": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", "name": "`name` is the name of the priority level configuration being referenced Required.", } func (PriorityLevelConfigurationReference) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationReference } var map_PriorityLevelConfigurationSpec = map[string]string{ "": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", "type": "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.", "limited": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`.", "exempt": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply.", } func (PriorityLevelConfigurationSpec) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationSpec } var map_PriorityLevelConfigurationStatus = map[string]string{ "": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", "conditions": "`conditions` is the current state of \"request-priority\".", } func (PriorityLevelConfigurationStatus) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationStatus } var map_QueuingConfiguration = map[string]string{ "": "QueuingConfiguration holds the configuration parameters for queuing", "queues": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", "handSize": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", "queueLengthLimit": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", } func (QueuingConfiguration) SwaggerDoc() map[string]string { return map_QueuingConfiguration } var map_ResourcePolicyRule = map[string]string{ "": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", "verbs": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.", "apiGroups": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.", "resources": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.", "clusterScope": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.", "namespaces": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", } func (ResourcePolicyRule) SwaggerDoc() map[string]string { return map_ResourcePolicyRule } var map_ServiceAccountSubject = map[string]string{ "": "ServiceAccountSubject holds detailed information for service-account-kind subject.", "namespace": "`namespace` is the namespace of matching ServiceAccount objects. Required.", "name": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", } func (ServiceAccountSubject) SwaggerDoc() map[string]string { return map_ServiceAccountSubject } var map_Subject = map[string]string{ "": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", "kind": "`kind` indicates which one of the other fields is non-empty. Required", "user": "`user` matches based on username.", "group": "`group` matches based on user group name.", "serviceAccount": "`serviceAccount` matches ServiceAccounts.", } func (Subject) SwaggerDoc() map[string]string { return map_Subject } var map_UserSubject = map[string]string{ "": "UserSubject holds detailed information for user-kind subject.", "name": "`name` is the username that matches, or \"*\" to match all usernames. Required.", } func (UserSubject) SwaggerDoc() map[string]string { return map_UserSubject } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/flowcontrol/v1beta1/zz_generated.deepcopy.go000066400000000000000000000422071453636404600247750ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ExemptPriorityLevelConfiguration) DeepCopyInto(out *ExemptPriorityLevelConfiguration) { *out = *in if in.NominalConcurrencyShares != nil { in, out := &in.NominalConcurrencyShares, &out.NominalConcurrencyShares *out = new(int32) **out = **in } if in.LendablePercent != nil { in, out := &in.LendablePercent, &out.LendablePercent *out = new(int32) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExemptPriorityLevelConfiguration. func (in *ExemptPriorityLevelConfiguration) DeepCopy() *ExemptPriorityLevelConfiguration { if in == nil { return nil } out := new(ExemptPriorityLevelConfiguration) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FlowDistinguisherMethod) DeepCopyInto(out *FlowDistinguisherMethod) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowDistinguisherMethod. func (in *FlowDistinguisherMethod) DeepCopy() *FlowDistinguisherMethod { if in == nil { return nil } out := new(FlowDistinguisherMethod) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FlowSchema) DeepCopyInto(out *FlowSchema) { *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 FlowSchema. func (in *FlowSchema) DeepCopy() *FlowSchema { if in == nil { return nil } out := new(FlowSchema) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *FlowSchema) 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 *FlowSchemaCondition) DeepCopyInto(out *FlowSchemaCondition) { *out = *in in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowSchemaCondition. func (in *FlowSchemaCondition) DeepCopy() *FlowSchemaCondition { if in == nil { return nil } out := new(FlowSchemaCondition) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FlowSchemaList) DeepCopyInto(out *FlowSchemaList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]FlowSchema, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowSchemaList. func (in *FlowSchemaList) DeepCopy() *FlowSchemaList { if in == nil { return nil } out := new(FlowSchemaList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *FlowSchemaList) 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 *FlowSchemaSpec) DeepCopyInto(out *FlowSchemaSpec) { *out = *in out.PriorityLevelConfiguration = in.PriorityLevelConfiguration if in.DistinguisherMethod != nil { in, out := &in.DistinguisherMethod, &out.DistinguisherMethod *out = new(FlowDistinguisherMethod) **out = **in } if in.Rules != nil { in, out := &in.Rules, &out.Rules *out = make([]PolicyRulesWithSubjects, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowSchemaSpec. func (in *FlowSchemaSpec) DeepCopy() *FlowSchemaSpec { if in == nil { return nil } out := new(FlowSchemaSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FlowSchemaStatus) DeepCopyInto(out *FlowSchemaStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]FlowSchemaCondition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowSchemaStatus. func (in *FlowSchemaStatus) DeepCopy() *FlowSchemaStatus { if in == nil { return nil } out := new(FlowSchemaStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *GroupSubject) DeepCopyInto(out *GroupSubject) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupSubject. func (in *GroupSubject) DeepCopy() *GroupSubject { if in == nil { return nil } out := new(GroupSubject) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *LimitResponse) DeepCopyInto(out *LimitResponse) { *out = *in if in.Queuing != nil { in, out := &in.Queuing, &out.Queuing *out = new(QueuingConfiguration) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LimitResponse. func (in *LimitResponse) DeepCopy() *LimitResponse { if in == nil { return nil } out := new(LimitResponse) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *LimitedPriorityLevelConfiguration) DeepCopyInto(out *LimitedPriorityLevelConfiguration) { *out = *in in.LimitResponse.DeepCopyInto(&out.LimitResponse) if in.LendablePercent != nil { in, out := &in.LendablePercent, &out.LendablePercent *out = new(int32) **out = **in } if in.BorrowingLimitPercent != nil { in, out := &in.BorrowingLimitPercent, &out.BorrowingLimitPercent *out = new(int32) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LimitedPriorityLevelConfiguration. func (in *LimitedPriorityLevelConfiguration) DeepCopy() *LimitedPriorityLevelConfiguration { if in == nil { return nil } out := new(LimitedPriorityLevelConfiguration) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NonResourcePolicyRule) DeepCopyInto(out *NonResourcePolicyRule) { *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 NonResourcePolicyRule. func (in *NonResourcePolicyRule) DeepCopy() *NonResourcePolicyRule { if in == nil { return nil } out := new(NonResourcePolicyRule) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PolicyRulesWithSubjects) DeepCopyInto(out *PolicyRulesWithSubjects) { *out = *in if in.Subjects != nil { in, out := &in.Subjects, &out.Subjects *out = make([]Subject, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.ResourceRules != nil { in, out := &in.ResourceRules, &out.ResourceRules *out = make([]ResourcePolicyRule, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.NonResourceRules != nil { in, out := &in.NonResourceRules, &out.NonResourceRules *out = make([]NonResourcePolicyRule, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRulesWithSubjects. func (in *PolicyRulesWithSubjects) DeepCopy() *PolicyRulesWithSubjects { if in == nil { return nil } out := new(PolicyRulesWithSubjects) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PriorityLevelConfiguration) DeepCopyInto(out *PriorityLevelConfiguration) { *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 PriorityLevelConfiguration. func (in *PriorityLevelConfiguration) DeepCopy() *PriorityLevelConfiguration { if in == nil { return nil } out := new(PriorityLevelConfiguration) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *PriorityLevelConfiguration) 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 *PriorityLevelConfigurationCondition) DeepCopyInto(out *PriorityLevelConfigurationCondition) { *out = *in in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationCondition. func (in *PriorityLevelConfigurationCondition) DeepCopy() *PriorityLevelConfigurationCondition { if in == nil { return nil } out := new(PriorityLevelConfigurationCondition) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PriorityLevelConfigurationList) DeepCopyInto(out *PriorityLevelConfigurationList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]PriorityLevelConfiguration, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationList. func (in *PriorityLevelConfigurationList) DeepCopy() *PriorityLevelConfigurationList { if in == nil { return nil } out := new(PriorityLevelConfigurationList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *PriorityLevelConfigurationList) 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 *PriorityLevelConfigurationReference) DeepCopyInto(out *PriorityLevelConfigurationReference) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationReference. func (in *PriorityLevelConfigurationReference) DeepCopy() *PriorityLevelConfigurationReference { if in == nil { return nil } out := new(PriorityLevelConfigurationReference) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PriorityLevelConfigurationSpec) DeepCopyInto(out *PriorityLevelConfigurationSpec) { *out = *in if in.Limited != nil { in, out := &in.Limited, &out.Limited *out = new(LimitedPriorityLevelConfiguration) (*in).DeepCopyInto(*out) } if in.Exempt != nil { in, out := &in.Exempt, &out.Exempt *out = new(ExemptPriorityLevelConfiguration) (*in).DeepCopyInto(*out) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationSpec. func (in *PriorityLevelConfigurationSpec) DeepCopy() *PriorityLevelConfigurationSpec { if in == nil { return nil } out := new(PriorityLevelConfigurationSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PriorityLevelConfigurationStatus) DeepCopyInto(out *PriorityLevelConfigurationStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]PriorityLevelConfigurationCondition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationStatus. func (in *PriorityLevelConfigurationStatus) DeepCopy() *PriorityLevelConfigurationStatus { if in == nil { return nil } out := new(PriorityLevelConfigurationStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *QueuingConfiguration) DeepCopyInto(out *QueuingConfiguration) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueuingConfiguration. func (in *QueuingConfiguration) DeepCopy() *QueuingConfiguration { if in == nil { return nil } out := new(QueuingConfiguration) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ResourcePolicyRule) DeepCopyInto(out *ResourcePolicyRule) { *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.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 ResourcePolicyRule. func (in *ResourcePolicyRule) DeepCopy() *ResourcePolicyRule { if in == nil { return nil } out := new(ResourcePolicyRule) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServiceAccountSubject) DeepCopyInto(out *ServiceAccountSubject) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountSubject. func (in *ServiceAccountSubject) DeepCopy() *ServiceAccountSubject { if in == nil { return nil } out := new(ServiceAccountSubject) 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 if in.User != nil { in, out := &in.User, &out.User *out = new(UserSubject) **out = **in } if in.Group != nil { in, out := &in.Group, &out.Group *out = new(GroupSubject) **out = **in } if in.ServiceAccount != nil { in, out := &in.ServiceAccount, &out.ServiceAccount *out = new(ServiceAccountSubject) **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 } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *UserSubject) DeepCopyInto(out *UserSubject) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSubject. func (in *UserSubject) DeepCopy() *UserSubject { if in == nil { return nil } out := new(UserSubject) in.DeepCopyInto(out) return out } golang-k8s-api-0.29.0/flowcontrol/v1beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000161721453636404600272530ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta1 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *FlowSchema) APILifecycleIntroduced() (major, minor int) { return 1, 20 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *FlowSchema) APILifecycleDeprecated() (major, minor int) { return 1, 23 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *FlowSchema) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "flowcontrol.apiserver.k8s.io", Version: "v1beta3", Kind: "FlowSchema"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *FlowSchema) APILifecycleRemoved() (major, minor int) { return 1, 26 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *FlowSchemaList) APILifecycleIntroduced() (major, minor int) { return 1, 20 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *FlowSchemaList) APILifecycleDeprecated() (major, minor int) { return 1, 23 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *FlowSchemaList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "flowcontrol.apiserver.k8s.io", Version: "v1beta3", Kind: "FlowSchemaList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *FlowSchemaList) APILifecycleRemoved() (major, minor int) { return 1, 26 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *PriorityLevelConfiguration) APILifecycleIntroduced() (major, minor int) { return 1, 20 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *PriorityLevelConfiguration) APILifecycleDeprecated() (major, minor int) { return 1, 23 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *PriorityLevelConfiguration) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "flowcontrol.apiserver.k8s.io", Version: "v1beta3", Kind: "PriorityLevelConfiguration"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *PriorityLevelConfiguration) APILifecycleRemoved() (major, minor int) { return 1, 26 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *PriorityLevelConfigurationList) APILifecycleIntroduced() (major, minor int) { return 1, 20 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *PriorityLevelConfigurationList) APILifecycleDeprecated() (major, minor int) { return 1, 23 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *PriorityLevelConfigurationList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "flowcontrol.apiserver.k8s.io", Version: "v1beta3", Kind: "PriorityLevelConfigurationList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *PriorityLevelConfigurationList) APILifecycleRemoved() (major, minor int) { return 1, 26 } golang-k8s-api-0.29.0/flowcontrol/v1beta2/000077500000000000000000000000001453636404600201525ustar00rootroot00000000000000golang-k8s-api-0.29.0/flowcontrol/v1beta2/doc.go000066400000000000000000000015751453636404600212560ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true // +groupName=flowcontrol.apiserver.k8s.io // Package v1beta2 holds api types of version v1alpha1 for group "flowcontrol.apiserver.k8s.io". package v1beta2 // import "k8s.io/api/flowcontrol/v1beta2" golang-k8s-api-0.29.0/flowcontrol/v1beta2/generated.pb.go000066400000000000000000004342051453636404600230470ustar00rootroot00000000000000/* 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/k8s.io/api/flowcontrol/v1beta2/generated.proto package v1beta2 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *ExemptPriorityLevelConfiguration) Reset() { *m = ExemptPriorityLevelConfiguration{} } func (*ExemptPriorityLevelConfiguration) ProtoMessage() {} func (*ExemptPriorityLevelConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{0} } func (m *ExemptPriorityLevelConfiguration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ExemptPriorityLevelConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ExemptPriorityLevelConfiguration) XXX_Merge(src proto.Message) { xxx_messageInfo_ExemptPriorityLevelConfiguration.Merge(m, src) } func (m *ExemptPriorityLevelConfiguration) XXX_Size() int { return m.Size() } func (m *ExemptPriorityLevelConfiguration) XXX_DiscardUnknown() { xxx_messageInfo_ExemptPriorityLevelConfiguration.DiscardUnknown(m) } var xxx_messageInfo_ExemptPriorityLevelConfiguration proto.InternalMessageInfo func (m *FlowDistinguisherMethod) Reset() { *m = FlowDistinguisherMethod{} } func (*FlowDistinguisherMethod) ProtoMessage() {} func (*FlowDistinguisherMethod) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{1} } func (m *FlowDistinguisherMethod) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowDistinguisherMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowDistinguisherMethod) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowDistinguisherMethod.Merge(m, src) } func (m *FlowDistinguisherMethod) XXX_Size() int { return m.Size() } func (m *FlowDistinguisherMethod) XXX_DiscardUnknown() { xxx_messageInfo_FlowDistinguisherMethod.DiscardUnknown(m) } var xxx_messageInfo_FlowDistinguisherMethod proto.InternalMessageInfo func (m *FlowSchema) Reset() { *m = FlowSchema{} } func (*FlowSchema) ProtoMessage() {} func (*FlowSchema) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{2} } func (m *FlowSchema) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchema) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchema.Merge(m, src) } func (m *FlowSchema) XXX_Size() int { return m.Size() } func (m *FlowSchema) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchema.DiscardUnknown(m) } var xxx_messageInfo_FlowSchema proto.InternalMessageInfo func (m *FlowSchemaCondition) Reset() { *m = FlowSchemaCondition{} } func (*FlowSchemaCondition) ProtoMessage() {} func (*FlowSchemaCondition) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{3} } func (m *FlowSchemaCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchemaCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchemaCondition) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchemaCondition.Merge(m, src) } func (m *FlowSchemaCondition) XXX_Size() int { return m.Size() } func (m *FlowSchemaCondition) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchemaCondition.DiscardUnknown(m) } var xxx_messageInfo_FlowSchemaCondition proto.InternalMessageInfo func (m *FlowSchemaList) Reset() { *m = FlowSchemaList{} } func (*FlowSchemaList) ProtoMessage() {} func (*FlowSchemaList) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{4} } func (m *FlowSchemaList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchemaList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchemaList) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchemaList.Merge(m, src) } func (m *FlowSchemaList) XXX_Size() int { return m.Size() } func (m *FlowSchemaList) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchemaList.DiscardUnknown(m) } var xxx_messageInfo_FlowSchemaList proto.InternalMessageInfo func (m *FlowSchemaSpec) Reset() { *m = FlowSchemaSpec{} } func (*FlowSchemaSpec) ProtoMessage() {} func (*FlowSchemaSpec) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{5} } func (m *FlowSchemaSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchemaSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchemaSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchemaSpec.Merge(m, src) } func (m *FlowSchemaSpec) XXX_Size() int { return m.Size() } func (m *FlowSchemaSpec) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchemaSpec.DiscardUnknown(m) } var xxx_messageInfo_FlowSchemaSpec proto.InternalMessageInfo func (m *FlowSchemaStatus) Reset() { *m = FlowSchemaStatus{} } func (*FlowSchemaStatus) ProtoMessage() {} func (*FlowSchemaStatus) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{6} } func (m *FlowSchemaStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchemaStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchemaStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchemaStatus.Merge(m, src) } func (m *FlowSchemaStatus) XXX_Size() int { return m.Size() } func (m *FlowSchemaStatus) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchemaStatus.DiscardUnknown(m) } var xxx_messageInfo_FlowSchemaStatus proto.InternalMessageInfo func (m *GroupSubject) Reset() { *m = GroupSubject{} } func (*GroupSubject) ProtoMessage() {} func (*GroupSubject) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{7} } func (m *GroupSubject) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *GroupSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *GroupSubject) XXX_Merge(src proto.Message) { xxx_messageInfo_GroupSubject.Merge(m, src) } func (m *GroupSubject) XXX_Size() int { return m.Size() } func (m *GroupSubject) XXX_DiscardUnknown() { xxx_messageInfo_GroupSubject.DiscardUnknown(m) } var xxx_messageInfo_GroupSubject proto.InternalMessageInfo func (m *LimitResponse) Reset() { *m = LimitResponse{} } func (*LimitResponse) ProtoMessage() {} func (*LimitResponse) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{8} } func (m *LimitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *LimitResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_LimitResponse.Merge(m, src) } func (m *LimitResponse) XXX_Size() int { return m.Size() } func (m *LimitResponse) XXX_DiscardUnknown() { xxx_messageInfo_LimitResponse.DiscardUnknown(m) } var xxx_messageInfo_LimitResponse proto.InternalMessageInfo func (m *LimitedPriorityLevelConfiguration) Reset() { *m = LimitedPriorityLevelConfiguration{} } func (*LimitedPriorityLevelConfiguration) ProtoMessage() {} func (*LimitedPriorityLevelConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{9} } func (m *LimitedPriorityLevelConfiguration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LimitedPriorityLevelConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *LimitedPriorityLevelConfiguration) XXX_Merge(src proto.Message) { xxx_messageInfo_LimitedPriorityLevelConfiguration.Merge(m, src) } func (m *LimitedPriorityLevelConfiguration) XXX_Size() int { return m.Size() } func (m *LimitedPriorityLevelConfiguration) XXX_DiscardUnknown() { xxx_messageInfo_LimitedPriorityLevelConfiguration.DiscardUnknown(m) } var xxx_messageInfo_LimitedPriorityLevelConfiguration proto.InternalMessageInfo func (m *NonResourcePolicyRule) Reset() { *m = NonResourcePolicyRule{} } func (*NonResourcePolicyRule) ProtoMessage() {} func (*NonResourcePolicyRule) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{10} } func (m *NonResourcePolicyRule) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *NonResourcePolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *NonResourcePolicyRule) XXX_Merge(src proto.Message) { xxx_messageInfo_NonResourcePolicyRule.Merge(m, src) } func (m *NonResourcePolicyRule) XXX_Size() int { return m.Size() } func (m *NonResourcePolicyRule) XXX_DiscardUnknown() { xxx_messageInfo_NonResourcePolicyRule.DiscardUnknown(m) } var xxx_messageInfo_NonResourcePolicyRule proto.InternalMessageInfo func (m *PolicyRulesWithSubjects) Reset() { *m = PolicyRulesWithSubjects{} } func (*PolicyRulesWithSubjects) ProtoMessage() {} func (*PolicyRulesWithSubjects) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{11} } func (m *PolicyRulesWithSubjects) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PolicyRulesWithSubjects) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PolicyRulesWithSubjects) XXX_Merge(src proto.Message) { xxx_messageInfo_PolicyRulesWithSubjects.Merge(m, src) } func (m *PolicyRulesWithSubjects) XXX_Size() int { return m.Size() } func (m *PolicyRulesWithSubjects) XXX_DiscardUnknown() { xxx_messageInfo_PolicyRulesWithSubjects.DiscardUnknown(m) } var xxx_messageInfo_PolicyRulesWithSubjects proto.InternalMessageInfo func (m *PriorityLevelConfiguration) Reset() { *m = PriorityLevelConfiguration{} } func (*PriorityLevelConfiguration) ProtoMessage() {} func (*PriorityLevelConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{12} } func (m *PriorityLevelConfiguration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfiguration) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfiguration.Merge(m, src) } func (m *PriorityLevelConfiguration) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfiguration) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfiguration.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfiguration proto.InternalMessageInfo func (m *PriorityLevelConfigurationCondition) Reset() { *m = PriorityLevelConfigurationCondition{} } func (*PriorityLevelConfigurationCondition) ProtoMessage() {} func (*PriorityLevelConfigurationCondition) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{13} } func (m *PriorityLevelConfigurationCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationCondition) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationCondition.Merge(m, src) } func (m *PriorityLevelConfigurationCondition) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationCondition) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationCondition.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationCondition proto.InternalMessageInfo func (m *PriorityLevelConfigurationList) Reset() { *m = PriorityLevelConfigurationList{} } func (*PriorityLevelConfigurationList) ProtoMessage() {} func (*PriorityLevelConfigurationList) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{14} } func (m *PriorityLevelConfigurationList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationList) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationList.Merge(m, src) } func (m *PriorityLevelConfigurationList) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationList) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationList.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationList proto.InternalMessageInfo func (m *PriorityLevelConfigurationReference) Reset() { *m = PriorityLevelConfigurationReference{} } func (*PriorityLevelConfigurationReference) ProtoMessage() {} func (*PriorityLevelConfigurationReference) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{15} } func (m *PriorityLevelConfigurationReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationReference) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationReference.Merge(m, src) } func (m *PriorityLevelConfigurationReference) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationReference) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationReference.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationReference proto.InternalMessageInfo func (m *PriorityLevelConfigurationSpec) Reset() { *m = PriorityLevelConfigurationSpec{} } func (*PriorityLevelConfigurationSpec) ProtoMessage() {} func (*PriorityLevelConfigurationSpec) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{16} } func (m *PriorityLevelConfigurationSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationSpec.Merge(m, src) } func (m *PriorityLevelConfigurationSpec) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationSpec) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationSpec.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationSpec proto.InternalMessageInfo func (m *PriorityLevelConfigurationStatus) Reset() { *m = PriorityLevelConfigurationStatus{} } func (*PriorityLevelConfigurationStatus) ProtoMessage() {} func (*PriorityLevelConfigurationStatus) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{17} } func (m *PriorityLevelConfigurationStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationStatus.Merge(m, src) } func (m *PriorityLevelConfigurationStatus) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationStatus) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationStatus.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationStatus proto.InternalMessageInfo func (m *QueuingConfiguration) Reset() { *m = QueuingConfiguration{} } func (*QueuingConfiguration) ProtoMessage() {} func (*QueuingConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{18} } func (m *QueuingConfiguration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueuingConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *QueuingConfiguration) XXX_Merge(src proto.Message) { xxx_messageInfo_QueuingConfiguration.Merge(m, src) } func (m *QueuingConfiguration) XXX_Size() int { return m.Size() } func (m *QueuingConfiguration) XXX_DiscardUnknown() { xxx_messageInfo_QueuingConfiguration.DiscardUnknown(m) } var xxx_messageInfo_QueuingConfiguration proto.InternalMessageInfo func (m *ResourcePolicyRule) Reset() { *m = ResourcePolicyRule{} } func (*ResourcePolicyRule) ProtoMessage() {} func (*ResourcePolicyRule) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{19} } func (m *ResourcePolicyRule) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ResourcePolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ResourcePolicyRule) XXX_Merge(src proto.Message) { xxx_messageInfo_ResourcePolicyRule.Merge(m, src) } func (m *ResourcePolicyRule) XXX_Size() int { return m.Size() } func (m *ResourcePolicyRule) XXX_DiscardUnknown() { xxx_messageInfo_ResourcePolicyRule.DiscardUnknown(m) } var xxx_messageInfo_ResourcePolicyRule proto.InternalMessageInfo func (m *ServiceAccountSubject) Reset() { *m = ServiceAccountSubject{} } func (*ServiceAccountSubject) ProtoMessage() {} func (*ServiceAccountSubject) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{20} } func (m *ServiceAccountSubject) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ServiceAccountSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ServiceAccountSubject) XXX_Merge(src proto.Message) { xxx_messageInfo_ServiceAccountSubject.Merge(m, src) } func (m *ServiceAccountSubject) XXX_Size() int { return m.Size() } func (m *ServiceAccountSubject) XXX_DiscardUnknown() { xxx_messageInfo_ServiceAccountSubject.DiscardUnknown(m) } var xxx_messageInfo_ServiceAccountSubject proto.InternalMessageInfo func (m *Subject) Reset() { *m = Subject{} } func (*Subject) ProtoMessage() {} func (*Subject) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{21} } 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 (m *UserSubject) Reset() { *m = UserSubject{} } func (*UserSubject) ProtoMessage() {} func (*UserSubject) Descriptor() ([]byte, []int) { return fileDescriptor_ed300aa8e672704e, []int{22} } func (m *UserSubject) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *UserSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *UserSubject) XXX_Merge(src proto.Message) { xxx_messageInfo_UserSubject.Merge(m, src) } func (m *UserSubject) XXX_Size() int { return m.Size() } func (m *UserSubject) XXX_DiscardUnknown() { xxx_messageInfo_UserSubject.DiscardUnknown(m) } var xxx_messageInfo_UserSubject proto.InternalMessageInfo func init() { proto.RegisterType((*ExemptPriorityLevelConfiguration)(nil), "k8s.io.api.flowcontrol.v1beta2.ExemptPriorityLevelConfiguration") proto.RegisterType((*FlowDistinguisherMethod)(nil), "k8s.io.api.flowcontrol.v1beta2.FlowDistinguisherMethod") proto.RegisterType((*FlowSchema)(nil), "k8s.io.api.flowcontrol.v1beta2.FlowSchema") proto.RegisterType((*FlowSchemaCondition)(nil), "k8s.io.api.flowcontrol.v1beta2.FlowSchemaCondition") proto.RegisterType((*FlowSchemaList)(nil), "k8s.io.api.flowcontrol.v1beta2.FlowSchemaList") proto.RegisterType((*FlowSchemaSpec)(nil), "k8s.io.api.flowcontrol.v1beta2.FlowSchemaSpec") proto.RegisterType((*FlowSchemaStatus)(nil), "k8s.io.api.flowcontrol.v1beta2.FlowSchemaStatus") proto.RegisterType((*GroupSubject)(nil), "k8s.io.api.flowcontrol.v1beta2.GroupSubject") proto.RegisterType((*LimitResponse)(nil), "k8s.io.api.flowcontrol.v1beta2.LimitResponse") proto.RegisterType((*LimitedPriorityLevelConfiguration)(nil), "k8s.io.api.flowcontrol.v1beta2.LimitedPriorityLevelConfiguration") proto.RegisterType((*NonResourcePolicyRule)(nil), "k8s.io.api.flowcontrol.v1beta2.NonResourcePolicyRule") proto.RegisterType((*PolicyRulesWithSubjects)(nil), "k8s.io.api.flowcontrol.v1beta2.PolicyRulesWithSubjects") proto.RegisterType((*PriorityLevelConfiguration)(nil), "k8s.io.api.flowcontrol.v1beta2.PriorityLevelConfiguration") proto.RegisterType((*PriorityLevelConfigurationCondition)(nil), "k8s.io.api.flowcontrol.v1beta2.PriorityLevelConfigurationCondition") proto.RegisterType((*PriorityLevelConfigurationList)(nil), "k8s.io.api.flowcontrol.v1beta2.PriorityLevelConfigurationList") proto.RegisterType((*PriorityLevelConfigurationReference)(nil), "k8s.io.api.flowcontrol.v1beta2.PriorityLevelConfigurationReference") proto.RegisterType((*PriorityLevelConfigurationSpec)(nil), "k8s.io.api.flowcontrol.v1beta2.PriorityLevelConfigurationSpec") proto.RegisterType((*PriorityLevelConfigurationStatus)(nil), "k8s.io.api.flowcontrol.v1beta2.PriorityLevelConfigurationStatus") proto.RegisterType((*QueuingConfiguration)(nil), "k8s.io.api.flowcontrol.v1beta2.QueuingConfiguration") proto.RegisterType((*ResourcePolicyRule)(nil), "k8s.io.api.flowcontrol.v1beta2.ResourcePolicyRule") proto.RegisterType((*ServiceAccountSubject)(nil), "k8s.io.api.flowcontrol.v1beta2.ServiceAccountSubject") proto.RegisterType((*Subject)(nil), "k8s.io.api.flowcontrol.v1beta2.Subject") proto.RegisterType((*UserSubject)(nil), "k8s.io.api.flowcontrol.v1beta2.UserSubject") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/flowcontrol/v1beta2/generated.proto", fileDescriptor_ed300aa8e672704e) } var fileDescriptor_ed300aa8e672704e = []byte{ // 1617 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0x4b, 0x73, 0x1b, 0xc5, 0x16, 0xf6, 0xc8, 0x92, 0x6d, 0x1d, 0x3f, 0xd3, 0x8e, 0xcb, 0xba, 0xce, 0x2d, 0xc9, 0x99, 0x5b, 0x75, 0x73, 0x2f, 0x49, 0x46, 0x89, 0x49, 0x48, 0x80, 0xe2, 0xe1, 0x71, 0x42, 0x08, 0xb1, 0x1d, 0xa7, 0x9d, 0x40, 0x2a, 0xa4, 0x8a, 0x8c, 0x46, 0x6d, 0x69, 0x62, 0x69, 0x66, 0xd2, 0x3d, 0x23, 0x63, 0xb2, 0xa1, 0xf8, 0x05, 0xac, 0x61, 0xc9, 0x82, 0x15, 0x1b, 0xb6, 0x2c, 0x58, 0x92, 0x62, 0x95, 0x65, 0x56, 0x82, 0x88, 0x15, 0xff, 0x00, 0x52, 0x45, 0x15, 0xd5, 0x3d, 0xad, 0x19, 0x8d, 0x5e, 0xa3, 0x4a, 0xaa, 0xb2, 0x62, 0xe7, 0x39, 0xe7, 0x3b, 0xdf, 0xe9, 0x3e, 0x7d, 0x5e, 0x32, 0x5c, 0xd9, 0xbf, 0xc8, 0x34, 0xcb, 0x29, 0xee, 0xfb, 0x25, 0x42, 0x6d, 0xe2, 0x11, 0x56, 0x6c, 0x10, 0xbb, 0xec, 0xd0, 0xa2, 0x54, 0x18, 0xae, 0x55, 0xdc, 0xab, 0x39, 0x07, 0xa6, 0x63, 0x7b, 0xd4, 0xa9, 0x15, 0x1b, 0x67, 0x4b, 0xc4, 0x33, 0xd6, 0x8a, 0x15, 0x62, 0x13, 0x6a, 0x78, 0xa4, 0xac, 0xb9, 0xd4, 0xf1, 0x1c, 0x94, 0x0f, 0xf0, 0x9a, 0xe1, 0x5a, 0x5a, 0x07, 0x5e, 0x93, 0xf8, 0x95, 0xd3, 0x15, 0xcb, 0xab, 0xfa, 0x25, 0xcd, 0x74, 0xea, 0xc5, 0x8a, 0x53, 0x71, 0x8a, 0xc2, 0xac, 0xe4, 0xef, 0x89, 0x2f, 0xf1, 0x21, 0xfe, 0x0a, 0xe8, 0x56, 0xce, 0x45, 0xee, 0xeb, 0x86, 0x59, 0xb5, 0x6c, 0x42, 0x0f, 0x8b, 0xee, 0x7e, 0x85, 0x0b, 0x58, 0xb1, 0x4e, 0x3c, 0xa3, 0xd8, 0x38, 0xdb, 0x7d, 0x88, 0x95, 0xe2, 0x20, 0x2b, 0xea, 0xdb, 0x9e, 0x55, 0x27, 0x3d, 0x06, 0xaf, 0x25, 0x19, 0x30, 0xb3, 0x4a, 0xea, 0x46, 0xb7, 0x9d, 0xfa, 0x83, 0x02, 0xab, 0x97, 0x3f, 0x25, 0x75, 0xd7, 0xdb, 0xa1, 0x96, 0x43, 0x2d, 0xef, 0x70, 0x93, 0x34, 0x48, 0x6d, 0xc3, 0xb1, 0xf7, 0xac, 0x8a, 0x4f, 0x0d, 0xcf, 0x72, 0x6c, 0x74, 0x1b, 0x72, 0xb6, 0x53, 0xb7, 0x6c, 0x83, 0xcb, 0x4d, 0x9f, 0x52, 0x62, 0x9b, 0x87, 0xbb, 0x55, 0x83, 0x12, 0x96, 0x53, 0x56, 0x95, 0xff, 0x65, 0xf4, 0x7f, 0xb7, 0x9a, 0x85, 0xdc, 0xf6, 0x00, 0x0c, 0x1e, 0x68, 0x8d, 0xde, 0x82, 0xf9, 0x1a, 0xb1, 0xcb, 0x46, 0xa9, 0x46, 0x76, 0x08, 0x35, 0x89, 0xed, 0xe5, 0x52, 0x82, 0x70, 0xb1, 0xd5, 0x2c, 0xcc, 0x6f, 0xc6, 0x55, 0xb8, 0x1b, 0xab, 0xde, 0x81, 0xe5, 0xf7, 0x6a, 0xce, 0xc1, 0x25, 0x8b, 0x79, 0x96, 0x5d, 0xf1, 0x2d, 0x56, 0x25, 0x74, 0x8b, 0x78, 0x55, 0xa7, 0x8c, 0xde, 0x81, 0xb4, 0x77, 0xe8, 0x12, 0x71, 0xbe, 0xac, 0x7e, 0xf2, 0x51, 0xb3, 0x30, 0xd6, 0x6a, 0x16, 0xd2, 0x37, 0x0f, 0x5d, 0xf2, 0xac, 0x59, 0x38, 0x36, 0xc0, 0x8c, 0xab, 0xb1, 0x30, 0x54, 0xbf, 0x4a, 0x01, 0x70, 0xd4, 0xae, 0x08, 0x1c, 0xba, 0x07, 0x53, 0xfc, 0xb1, 0xca, 0x86, 0x67, 0x08, 0xce, 0xe9, 0xb5, 0x33, 0x5a, 0x94, 0x29, 0x61, 0xcc, 0x35, 0x77, 0xbf, 0xc2, 0x05, 0x4c, 0xe3, 0x68, 0xad, 0x71, 0x56, 0xbb, 0x5e, 0xba, 0x4f, 0x4c, 0x6f, 0x8b, 0x78, 0x86, 0x8e, 0xe4, 0x29, 0x20, 0x92, 0xe1, 0x90, 0x15, 0xed, 0x40, 0x9a, 0xb9, 0xc4, 0x14, 0x01, 0x98, 0x5e, 0xd3, 0xb4, 0xe1, 0x79, 0xa8, 0x45, 0x67, 0xdb, 0x75, 0x89, 0xa9, 0xcf, 0xb4, 0x6f, 0xc8, 0xbf, 0xb0, 0x60, 0x42, 0xb7, 0x61, 0x82, 0x79, 0x86, 0xe7, 0xb3, 0xdc, 0x78, 0xcf, 0x89, 0x93, 0x38, 0x85, 0x9d, 0x3e, 0x27, 0x59, 0x27, 0x82, 0x6f, 0x2c, 0xf9, 0xd4, 0x27, 0x29, 0x58, 0x8c, 0xc0, 0x1b, 0x8e, 0x5d, 0xb6, 0x44, 0xa6, 0xbc, 0x19, 0x8b, 0xfa, 0x89, 0xae, 0xa8, 0x2f, 0xf7, 0x31, 0x89, 0x22, 0x8e, 0x5e, 0x0f, 0x8f, 0x9b, 0x12, 0xe6, 0xc7, 0xe3, 0xce, 0x9f, 0x35, 0x0b, 0xf3, 0xa1, 0x59, 0xfc, 0x3c, 0xa8, 0x01, 0xa8, 0x66, 0x30, 0xef, 0x26, 0x35, 0x6c, 0x16, 0xd0, 0x5a, 0x75, 0x22, 0x6f, 0xfd, 0xca, 0x68, 0xef, 0xc4, 0x2d, 0xf4, 0x15, 0xe9, 0x12, 0x6d, 0xf6, 0xb0, 0xe1, 0x3e, 0x1e, 0xd0, 0x7f, 0x61, 0x82, 0x12, 0x83, 0x39, 0x76, 0x2e, 0x2d, 0x8e, 0x1c, 0xc6, 0x0b, 0x0b, 0x29, 0x96, 0x5a, 0xf4, 0x7f, 0x98, 0xac, 0x13, 0xc6, 0x8c, 0x0a, 0xc9, 0x65, 0x04, 0x70, 0x5e, 0x02, 0x27, 0xb7, 0x02, 0x31, 0x6e, 0xeb, 0xd5, 0x1f, 0x15, 0x98, 0x8b, 0xe2, 0xb4, 0x69, 0x31, 0x0f, 0xdd, 0xed, 0xc9, 0x3d, 0x6d, 0xb4, 0x3b, 0x71, 0x6b, 0x91, 0x79, 0x0b, 0xd2, 0xdd, 0x54, 0x5b, 0xd2, 0x91, 0x77, 0xd7, 0x21, 0x63, 0x79, 0xa4, 0xce, 0xa3, 0x3e, 0xde, 0x15, 0xae, 0x84, 0x24, 0xd1, 0x67, 0x25, 0x6d, 0xe6, 0x2a, 0x27, 0xc0, 0x01, 0x8f, 0xfa, 0xfb, 0x78, 0xe7, 0x0d, 0x78, 0x3e, 0xa2, 0x6f, 0x15, 0x58, 0x71, 0x07, 0x36, 0x18, 0x79, 0xa9, 0x8d, 0x24, 0xcf, 0x83, 0x5b, 0x14, 0x26, 0x7b, 0x84, 0xf7, 0x15, 0xa2, 0xab, 0xf2, 0x48, 0x2b, 0x43, 0xc0, 0x43, 0x8e, 0x82, 0x3e, 0x00, 0x54, 0x37, 0x3c, 0x1e, 0xd1, 0xca, 0x0e, 0x25, 0x26, 0x29, 0x73, 0x56, 0xd9, 0x94, 0xc2, 0xec, 0xd8, 0xea, 0x41, 0xe0, 0x3e, 0x56, 0xe8, 0x0b, 0x05, 0x16, 0xcb, 0xbd, 0x4d, 0x46, 0xe6, 0xe5, 0x85, 0x51, 0x02, 0xdd, 0xa7, 0x47, 0xe9, 0xcb, 0xad, 0x66, 0x61, 0xb1, 0x8f, 0x02, 0xf7, 0x73, 0x86, 0xee, 0x42, 0x86, 0xfa, 0x35, 0xc2, 0x72, 0x69, 0xf1, 0xbc, 0x89, 0x5e, 0x77, 0x9c, 0x9a, 0x65, 0x1e, 0x62, 0x6e, 0xf2, 0x91, 0xe5, 0x55, 0x77, 0x7d, 0xd1, 0xab, 0x58, 0xf4, 0xd6, 0x42, 0x85, 0x03, 0x52, 0xf5, 0x21, 0x2c, 0x74, 0x37, 0x0d, 0x54, 0x01, 0x30, 0xdb, 0x75, 0xca, 0x07, 0x04, 0x77, 0xfb, 0xea, 0xe8, 0x59, 0x15, 0xd6, 0x78, 0xd4, 0x2f, 0x43, 0x11, 0xc3, 0x1d, 0xd4, 0xea, 0x19, 0x98, 0xb9, 0x42, 0x1d, 0xdf, 0x95, 0x67, 0x44, 0xab, 0x90, 0xb6, 0x8d, 0x7a, 0xbb, 0xfb, 0x84, 0x1d, 0x71, 0xdb, 0xa8, 0x13, 0x2c, 0x34, 0xea, 0x37, 0x0a, 0xcc, 0x6e, 0x5a, 0x75, 0xcb, 0xc3, 0x84, 0xb9, 0x8e, 0xcd, 0x08, 0x3a, 0x1f, 0xeb, 0x58, 0xc7, 0xbb, 0x3a, 0xd6, 0x91, 0x18, 0xb8, 0xa3, 0x57, 0x7d, 0x0c, 0x93, 0x0f, 0x7c, 0xe2, 0x5b, 0x76, 0x45, 0xf6, 0xeb, 0x73, 0x49, 0x17, 0xbc, 0x11, 0xc0, 0x63, 0xd9, 0xa6, 0x4f, 0xf3, 0x16, 0x20, 0x35, 0xb8, 0xcd, 0xa8, 0xfe, 0x95, 0x82, 0xe3, 0xc2, 0x31, 0x29, 0x0f, 0x99, 0xca, 0x77, 0x21, 0x67, 0x30, 0xe6, 0x53, 0x52, 0x1e, 0x34, 0x95, 0x57, 0xe5, 0x6d, 0x72, 0xeb, 0x03, 0x70, 0x78, 0x20, 0x03, 0xba, 0x0f, 0xb3, 0xb5, 0xce, 0xbb, 0xcb, 0x6b, 0x9e, 0x4e, 0xba, 0x66, 0x2c, 0x60, 0xfa, 0x92, 0x3c, 0x41, 0x3c, 0xe8, 0x38, 0x4e, 0xdd, 0x6f, 0x0b, 0x18, 0x1f, 0x7d, 0x0b, 0x40, 0xd7, 0x61, 0xa9, 0xe4, 0x50, 0xea, 0x1c, 0x58, 0x76, 0x45, 0xf8, 0x69, 0x93, 0xa4, 0x05, 0xc9, 0xbf, 0x5a, 0xcd, 0xc2, 0x92, 0xde, 0x0f, 0x80, 0xfb, 0xdb, 0xa9, 0x07, 0xb0, 0xb4, 0xcd, 0x7b, 0x0a, 0x73, 0x7c, 0x6a, 0x92, 0xa8, 0x20, 0x50, 0x01, 0x32, 0x0d, 0x42, 0x4b, 0x41, 0x52, 0x67, 0xf5, 0x2c, 0x2f, 0x87, 0x0f, 0xb9, 0x00, 0x07, 0x72, 0x7e, 0x13, 0x3b, 0xb2, 0xbc, 0x85, 0x37, 0x59, 0x6e, 0x42, 0x40, 0xc5, 0x4d, 0xb6, 0xe3, 0x2a, 0xdc, 0x8d, 0x55, 0x9b, 0x29, 0x58, 0x1e, 0x50, 0x7f, 0xe8, 0x16, 0x4c, 0x31, 0xf9, 0xb7, 0xac, 0xa9, 0x13, 0x49, 0x6f, 0x21, 0x6d, 0xa3, 0xee, 0xdf, 0x26, 0xc3, 0x21, 0x15, 0x72, 0x60, 0x96, 0xca, 0x23, 0x08, 0x9f, 0x72, 0x0a, 0xac, 0x25, 0x71, 0xf7, 0x46, 0x27, 0x7a, 0x6c, 0xdc, 0x49, 0x88, 0xe3, 0xfc, 0xe8, 0x21, 0x2c, 0x74, 0x5c, 0x3b, 0xf0, 0x39, 0x2e, 0x7c, 0x9e, 0x4f, 0xf2, 0xd9, 0xf7, 0x51, 0xf4, 0x9c, 0x74, 0xbb, 0xb0, 0xdd, 0x45, 0x8b, 0x7b, 0x1c, 0xa9, 0x3f, 0xa7, 0x60, 0xc8, 0x60, 0x78, 0x09, 0x4b, 0xde, 0xbd, 0xd8, 0x92, 0xf7, 0xf6, 0xf3, 0x4f, 0xbc, 0x81, 0x4b, 0x5f, 0xb5, 0x6b, 0xe9, 0x7b, 0xf7, 0x05, 0x7c, 0x0c, 0x5f, 0x02, 0xff, 0x48, 0xc1, 0x7f, 0x06, 0x1b, 0x47, 0x4b, 0xe1, 0xb5, 0x58, 0x8b, 0xbd, 0xd0, 0xd5, 0x62, 0x4f, 0x8c, 0x40, 0xf1, 0xcf, 0x92, 0xd8, 0xb5, 0x24, 0xfe, 0xa2, 0x40, 0x7e, 0x70, 0xdc, 0x5e, 0xc2, 0xd2, 0xf8, 0x49, 0x7c, 0x69, 0x7c, 0xe3, 0xf9, 0x93, 0x6c, 0xc0, 0x12, 0x79, 0x65, 0x58, 0x6e, 0x85, 0xeb, 0xde, 0x08, 0x23, 0xff, 0xbb, 0xd4, 0xb0, 0x50, 0x89, 0xed, 0x34, 0xe1, 0x57, 0x4b, 0xcc, 0xfa, 0xb2, 0xcd, 0x47, 0x4f, 0x9d, 0x4f, 0x8f, 0x20, 0x21, 0xab, 0x30, 0x59, 0x0b, 0x66, 0xb5, 0x2c, 0xea, 0xf5, 0x91, 0x46, 0xe4, 0xb0, 0xd1, 0x1e, 0xac, 0x05, 0x12, 0x86, 0xdb, 0xf4, 0xa8, 0x0c, 0x13, 0x44, 0xfc, 0x54, 0x1f, 0xb5, 0xb2, 0x93, 0x7e, 0xd8, 0xeb, 0xc0, 0xb3, 0x30, 0x40, 0x61, 0xc9, 0xad, 0x7e, 0xad, 0xc0, 0x6a, 0x52, 0x4b, 0x40, 0x07, 0x7d, 0x56, 0xbc, 0x17, 0x58, 0xdf, 0x47, 0x5f, 0xf9, 0xbe, 0x57, 0xe0, 0x68, 0xbf, 0x4d, 0x8a, 0x17, 0x19, 0x5f, 0x9f, 0xc2, 0xdd, 0x27, 0x2c, 0xb2, 0x1b, 0x42, 0x8a, 0xa5, 0x16, 0x9d, 0x82, 0xa9, 0xaa, 0x61, 0x97, 0x77, 0xad, 0xcf, 0xda, 0x5b, 0x7d, 0x98, 0xe6, 0xef, 0x4b, 0x39, 0x0e, 0x11, 0xe8, 0x12, 0x2c, 0x08, 0xbb, 0x4d, 0x62, 0x57, 0xbc, 0xaa, 0x78, 0x11, 0xb9, 0x9a, 0x84, 0x53, 0xe7, 0x46, 0x97, 0x1e, 0xf7, 0x58, 0xa8, 0x7f, 0x2a, 0x80, 0x9e, 0x67, 0x9b, 0x38, 0x09, 0x59, 0xc3, 0xb5, 0xc4, 0x8a, 0x1b, 0x14, 0x5a, 0x56, 0x9f, 0x6d, 0x35, 0x0b, 0xd9, 0xf5, 0x9d, 0xab, 0x81, 0x10, 0x47, 0x7a, 0x0e, 0x6e, 0x0f, 0xda, 0x60, 0xa0, 0x4a, 0x70, 0xdb, 0x31, 0xc3, 0x91, 0x1e, 0x5d, 0x84, 0x19, 0xb3, 0xe6, 0x33, 0x8f, 0xd0, 0x5d, 0xd3, 0x71, 0x89, 0x68, 0x4c, 0x53, 0xfa, 0x51, 0x79, 0xa7, 0x99, 0x8d, 0x0e, 0x1d, 0x8e, 0x21, 0x91, 0x06, 0xc0, 0xcb, 0x8a, 0xb9, 0x06, 0xf7, 0x93, 0x11, 0x7e, 0xe6, 0xf8, 0x83, 0x6d, 0x87, 0x52, 0xdc, 0x81, 0x50, 0xef, 0xc3, 0xd2, 0x2e, 0xa1, 0x0d, 0xcb, 0x24, 0xeb, 0xa6, 0xe9, 0xf8, 0xb6, 0xd7, 0x5e, 0xd6, 0x8b, 0x90, 0x0d, 0x61, 0xb2, 0xf2, 0x8e, 0x48, 0xff, 0xd9, 0x90, 0x0b, 0x47, 0x98, 0xb0, 0xd4, 0x53, 0x03, 0x4b, 0xfd, 0xa7, 0x14, 0x4c, 0x46, 0xf4, 0xe9, 0x7d, 0xcb, 0x2e, 0x4b, 0xe6, 0x63, 0x6d, 0xf4, 0x35, 0xcb, 0x2e, 0x3f, 0x6b, 0x16, 0xa6, 0x25, 0x8c, 0x7f, 0x62, 0x01, 0x44, 0x57, 0x21, 0xed, 0x33, 0x42, 0x65, 0x11, 0x9f, 0x4c, 0x4a, 0xe6, 0x5b, 0x8c, 0xd0, 0xf6, 0x7e, 0x35, 0xc5, 0x99, 0xb9, 0x00, 0x0b, 0x0a, 0xb4, 0x05, 0x99, 0x0a, 0x7f, 0x14, 0x59, 0xa7, 0xa7, 0x92, 0xb8, 0x3a, 0x7f, 0xc4, 0x04, 0x69, 0x20, 0x24, 0x38, 0x60, 0x41, 0x0f, 0x60, 0x8e, 0xc5, 0x42, 0x28, 0x9e, 0x6b, 0x84, 0x7d, 0xa9, 0x6f, 0xe0, 0x75, 0xd4, 0x6a, 0x16, 0xe6, 0xe2, 0x2a, 0xdc, 0xe5, 0x40, 0x2d, 0xc2, 0x74, 0xc7, 0x05, 0x93, 0xbb, 0xac, 0x7e, 0xe9, 0xd1, 0xd3, 0xfc, 0xd8, 0xe3, 0xa7, 0xf9, 0xb1, 0x27, 0x4f, 0xf3, 0x63, 0x9f, 0xb7, 0xf2, 0xca, 0xa3, 0x56, 0x5e, 0x79, 0xdc, 0xca, 0x2b, 0x4f, 0x5a, 0x79, 0xe5, 0xd7, 0x56, 0x5e, 0xf9, 0xf2, 0xb7, 0xfc, 0xd8, 0x9d, 0xfc, 0xf0, 0xff, 0xc5, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xfd, 0x4d, 0x1e, 0x25, 0xc5, 0x15, 0x00, 0x00, } func (m *ExemptPriorityLevelConfiguration) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ExemptPriorityLevelConfiguration) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ExemptPriorityLevelConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.LendablePercent != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.LendablePercent)) i-- dAtA[i] = 0x10 } if m.NominalConcurrencyShares != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.NominalConcurrencyShares)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *FlowDistinguisherMethod) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowDistinguisherMethod) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowDistinguisherMethod) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l 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 *FlowSchema) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchema) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchema) 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 *FlowSchemaCondition) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchemaCondition) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchemaCondition) 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 *FlowSchemaList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchemaList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchemaList) 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 *FlowSchemaSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchemaSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchemaSpec) 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] = 0x22 } } if m.DistinguisherMethod != nil { { size, err := m.DistinguisherMethod.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } i = encodeVarintGenerated(dAtA, i, uint64(m.MatchingPrecedence)) i-- dAtA[i] = 0x10 { size, err := m.PriorityLevelConfiguration.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *FlowSchemaStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchemaStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchemaStatus) 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] = 0xa } } return len(dAtA) - i, nil } func (m *GroupSubject) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *GroupSubject) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *GroupSubject) 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 *LimitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *LimitResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LimitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Queuing != nil { { size, err := m.Queuing.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 *LimitedPriorityLevelConfiguration) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *LimitedPriorityLevelConfiguration) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LimitedPriorityLevelConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.BorrowingLimitPercent != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.BorrowingLimitPercent)) i-- dAtA[i] = 0x20 } if m.LendablePercent != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.LendablePercent)) i-- dAtA[i] = 0x18 } { size, err := m.LimitResponse.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.AssuredConcurrencyShares)) i-- dAtA[i] = 0x8 return len(dAtA) - i, nil } func (m *NonResourcePolicyRule) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *NonResourcePolicyRule) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *NonResourcePolicyRule) 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.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 *PolicyRulesWithSubjects) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PolicyRulesWithSubjects) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PolicyRulesWithSubjects) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l 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] = 0x1a } } 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] = 0x12 } } 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] = 0xa } } return len(dAtA) - i, nil } func (m *PriorityLevelConfiguration) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfiguration) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfiguration) 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 *PriorityLevelConfigurationCondition) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationCondition) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationCondition) 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 *PriorityLevelConfigurationList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationList) 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 *PriorityLevelConfigurationReference) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationReference) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationReference) 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 *PriorityLevelConfigurationSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Exempt != nil { { size, err := m.Exempt.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } if m.Limited != nil { { size, err := m.Limited.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 *PriorityLevelConfigurationStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationStatus) 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] = 0xa } } return len(dAtA) - i, nil } func (m *QueuingConfiguration) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueuingConfiguration) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueuingConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i = encodeVarintGenerated(dAtA, i, uint64(m.QueueLengthLimit)) i-- dAtA[i] = 0x18 i = encodeVarintGenerated(dAtA, i, uint64(m.HandSize)) i-- dAtA[i] = 0x10 i = encodeVarintGenerated(dAtA, i, uint64(m.Queues)) i-- dAtA[i] = 0x8 return len(dAtA) - i, nil } func (m *ResourcePolicyRule) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ResourcePolicyRule) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ResourcePolicyRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l 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] = 0x2a } } i-- if m.ClusterScope { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x20 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 *ServiceAccountSubject) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ServiceAccountSubject) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ServiceAccountSubject) 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] = 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 *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 if m.ServiceAccount != nil { { size, err := m.ServiceAccount.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } if m.Group != nil { { size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } if m.User != nil { { 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 -= 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 *UserSubject) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *UserSubject) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *UserSubject) 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 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 *ExemptPriorityLevelConfiguration) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.NominalConcurrencyShares != nil { n += 1 + sovGenerated(uint64(*m.NominalConcurrencyShares)) } if m.LendablePercent != nil { n += 1 + sovGenerated(uint64(*m.LendablePercent)) } return n } func (m *FlowDistinguisherMethod) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Type) n += 1 + l + sovGenerated(uint64(l)) return n } func (m *FlowSchema) 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 *FlowSchemaCondition) 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 *FlowSchemaList) 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 *FlowSchemaSpec) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.PriorityLevelConfiguration.Size() n += 1 + l + sovGenerated(uint64(l)) n += 1 + sovGenerated(uint64(m.MatchingPrecedence)) if m.DistinguisherMethod != nil { l = m.DistinguisherMethod.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 *FlowSchemaStatus) 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)) } } return n } func (m *GroupSubject) 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 *LimitResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Type) n += 1 + l + sovGenerated(uint64(l)) if m.Queuing != nil { l = m.Queuing.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *LimitedPriorityLevelConfiguration) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 1 + sovGenerated(uint64(m.AssuredConcurrencyShares)) l = m.LimitResponse.Size() n += 1 + l + sovGenerated(uint64(l)) if m.LendablePercent != nil { n += 1 + sovGenerated(uint64(*m.LendablePercent)) } if m.BorrowingLimitPercent != nil { n += 1 + sovGenerated(uint64(*m.BorrowingLimitPercent)) } return n } func (m *NonResourcePolicyRule) 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 *PolicyRulesWithSubjects) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Subjects) > 0 { for _, e := range m.Subjects { l = e.Size() n += 1 + l + sovGenerated(uint64(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)) } } return n } func (m *PriorityLevelConfiguration) 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 *PriorityLevelConfigurationCondition) 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 *PriorityLevelConfigurationList) 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 *PriorityLevelConfigurationReference) 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 *PriorityLevelConfigurationSpec) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Type) n += 1 + l + sovGenerated(uint64(l)) if m.Limited != nil { l = m.Limited.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.Exempt != nil { l = m.Exempt.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *PriorityLevelConfigurationStatus) 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)) } } return n } func (m *QueuingConfiguration) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 1 + sovGenerated(uint64(m.Queues)) n += 1 + sovGenerated(uint64(m.HandSize)) n += 1 + sovGenerated(uint64(m.QueueLengthLimit)) return n } func (m *ResourcePolicyRule) 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)) } } n += 2 if len(m.Namespaces) > 0 { for _, s := range m.Namespaces { l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *ServiceAccountSubject) 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)) 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)) if m.User != nil { l = m.User.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.Group != nil { l = m.Group.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.ServiceAccount != nil { l = m.ServiceAccount.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *UserSubject) 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 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 *ExemptPriorityLevelConfiguration) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ExemptPriorityLevelConfiguration{`, `NominalConcurrencyShares:` + valueToStringGenerated(this.NominalConcurrencyShares) + `,`, `LendablePercent:` + valueToStringGenerated(this.LendablePercent) + `,`, `}`, }, "") return s } func (this *FlowDistinguisherMethod) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&FlowDistinguisherMethod{`, `Type:` + fmt.Sprintf("%v", this.Type) + `,`, `}`, }, "") return s } func (this *FlowSchema) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&FlowSchema{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "FlowSchemaSpec", "FlowSchemaSpec", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "FlowSchemaStatus", "FlowSchemaStatus", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *FlowSchemaCondition) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&FlowSchemaCondition{`, `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 *FlowSchemaList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]FlowSchema{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "FlowSchema", "FlowSchema", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&FlowSchemaList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *FlowSchemaSpec) String() string { if this == nil { return "nil" } repeatedStringForRules := "[]PolicyRulesWithSubjects{" for _, f := range this.Rules { repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "PolicyRulesWithSubjects", "PolicyRulesWithSubjects", 1), `&`, ``, 1) + "," } repeatedStringForRules += "}" s := strings.Join([]string{`&FlowSchemaSpec{`, `PriorityLevelConfiguration:` + strings.Replace(strings.Replace(this.PriorityLevelConfiguration.String(), "PriorityLevelConfigurationReference", "PriorityLevelConfigurationReference", 1), `&`, ``, 1) + `,`, `MatchingPrecedence:` + fmt.Sprintf("%v", this.MatchingPrecedence) + `,`, `DistinguisherMethod:` + strings.Replace(this.DistinguisherMethod.String(), "FlowDistinguisherMethod", "FlowDistinguisherMethod", 1) + `,`, `Rules:` + repeatedStringForRules + `,`, `}`, }, "") return s } func (this *FlowSchemaStatus) String() string { if this == nil { return "nil" } repeatedStringForConditions := "[]FlowSchemaCondition{" for _, f := range this.Conditions { repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "FlowSchemaCondition", "FlowSchemaCondition", 1), `&`, ``, 1) + "," } repeatedStringForConditions += "}" s := strings.Join([]string{`&FlowSchemaStatus{`, `Conditions:` + repeatedStringForConditions + `,`, `}`, }, "") return s } func (this *GroupSubject) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&GroupSubject{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `}`, }, "") return s } func (this *LimitResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&LimitResponse{`, `Type:` + fmt.Sprintf("%v", this.Type) + `,`, `Queuing:` + strings.Replace(this.Queuing.String(), "QueuingConfiguration", "QueuingConfiguration", 1) + `,`, `}`, }, "") return s } func (this *LimitedPriorityLevelConfiguration) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&LimitedPriorityLevelConfiguration{`, `AssuredConcurrencyShares:` + fmt.Sprintf("%v", this.AssuredConcurrencyShares) + `,`, `LimitResponse:` + strings.Replace(strings.Replace(this.LimitResponse.String(), "LimitResponse", "LimitResponse", 1), `&`, ``, 1) + `,`, `LendablePercent:` + valueToStringGenerated(this.LendablePercent) + `,`, `BorrowingLimitPercent:` + valueToStringGenerated(this.BorrowingLimitPercent) + `,`, `}`, }, "") return s } func (this *NonResourcePolicyRule) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&NonResourcePolicyRule{`, `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, `NonResourceURLs:` + fmt.Sprintf("%v", this.NonResourceURLs) + `,`, `}`, }, "") return s } func (this *PolicyRulesWithSubjects) 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 += "}" repeatedStringForResourceRules := "[]ResourcePolicyRule{" for _, f := range this.ResourceRules { repeatedStringForResourceRules += strings.Replace(strings.Replace(f.String(), "ResourcePolicyRule", "ResourcePolicyRule", 1), `&`, ``, 1) + "," } repeatedStringForResourceRules += "}" repeatedStringForNonResourceRules := "[]NonResourcePolicyRule{" for _, f := range this.NonResourceRules { repeatedStringForNonResourceRules += strings.Replace(strings.Replace(f.String(), "NonResourcePolicyRule", "NonResourcePolicyRule", 1), `&`, ``, 1) + "," } repeatedStringForNonResourceRules += "}" s := strings.Join([]string{`&PolicyRulesWithSubjects{`, `Subjects:` + repeatedStringForSubjects + `,`, `ResourceRules:` + repeatedStringForResourceRules + `,`, `NonResourceRules:` + repeatedStringForNonResourceRules + `,`, `}`, }, "") return s } func (this *PriorityLevelConfiguration) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PriorityLevelConfiguration{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PriorityLevelConfigurationSpec", "PriorityLevelConfigurationSpec", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PriorityLevelConfigurationStatus", "PriorityLevelConfigurationStatus", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *PriorityLevelConfigurationCondition) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PriorityLevelConfigurationCondition{`, `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 *PriorityLevelConfigurationList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]PriorityLevelConfiguration{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PriorityLevelConfiguration", "PriorityLevelConfiguration", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&PriorityLevelConfigurationList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *PriorityLevelConfigurationReference) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PriorityLevelConfigurationReference{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `}`, }, "") return s } func (this *PriorityLevelConfigurationSpec) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PriorityLevelConfigurationSpec{`, `Type:` + fmt.Sprintf("%v", this.Type) + `,`, `Limited:` + strings.Replace(this.Limited.String(), "LimitedPriorityLevelConfiguration", "LimitedPriorityLevelConfiguration", 1) + `,`, `Exempt:` + strings.Replace(this.Exempt.String(), "ExemptPriorityLevelConfiguration", "ExemptPriorityLevelConfiguration", 1) + `,`, `}`, }, "") return s } func (this *PriorityLevelConfigurationStatus) String() string { if this == nil { return "nil" } repeatedStringForConditions := "[]PriorityLevelConfigurationCondition{" for _, f := range this.Conditions { repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "PriorityLevelConfigurationCondition", "PriorityLevelConfigurationCondition", 1), `&`, ``, 1) + "," } repeatedStringForConditions += "}" s := strings.Join([]string{`&PriorityLevelConfigurationStatus{`, `Conditions:` + repeatedStringForConditions + `,`, `}`, }, "") return s } func (this *QueuingConfiguration) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueuingConfiguration{`, `Queues:` + fmt.Sprintf("%v", this.Queues) + `,`, `HandSize:` + fmt.Sprintf("%v", this.HandSize) + `,`, `QueueLengthLimit:` + fmt.Sprintf("%v", this.QueueLengthLimit) + `,`, `}`, }, "") return s } func (this *ResourcePolicyRule) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ResourcePolicyRule{`, `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`, `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`, `ClusterScope:` + fmt.Sprintf("%v", this.ClusterScope) + `,`, `Namespaces:` + fmt.Sprintf("%v", this.Namespaces) + `,`, `}`, }, "") return s } func (this *ServiceAccountSubject) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ServiceAccountSubject{`, `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, `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) + `,`, `User:` + strings.Replace(this.User.String(), "UserSubject", "UserSubject", 1) + `,`, `Group:` + strings.Replace(this.Group.String(), "GroupSubject", "GroupSubject", 1) + `,`, `ServiceAccount:` + strings.Replace(this.ServiceAccount.String(), "ServiceAccountSubject", "ServiceAccountSubject", 1) + `,`, `}`, }, "") return s } func (this *UserSubject) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&UserSubject{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `}`, }, "") 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 *ExemptPriorityLevelConfiguration) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ExemptPriorityLevelConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ExemptPriorityLevelConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field NominalConcurrencyShares", 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.NominalConcurrencyShares = &v case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field LendablePercent", 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.LendablePercent = &v default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowDistinguisherMethod) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowDistinguisherMethod: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowDistinguisherMethod: 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 = FlowDistinguisherMethodType(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchema) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchema: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchema: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchemaCondition) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchemaCondition: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchemaCondition: 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 = FlowSchemaConditionType(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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchemaList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchemaList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchemaList: 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, FlowSchema{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchemaSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchemaSpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchemaSpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PriorityLevelConfiguration", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.PriorityLevelConfiguration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field MatchingPrecedence", wireType) } m.MatchingPrecedence = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.MatchingPrecedence |= int32(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DistinguisherMethod", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.DistinguisherMethod == nil { m.DistinguisherMethod = &FlowDistinguisherMethod{} } if err := m.DistinguisherMethod.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: 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, PolicyRulesWithSubjects{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchemaStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchemaStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchemaStatus: 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, FlowSchemaCondition{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *GroupSubject) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: GroupSubject: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: GroupSubject: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LimitResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: LimitResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LimitResponse: 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 = LimitResponseType(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Queuing", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Queuing == nil { m.Queuing = &QueuingConfiguration{} } if err := m.Queuing.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LimitedPriorityLevelConfiguration) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: LimitedPriorityLevelConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LimitedPriorityLevelConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field AssuredConcurrencyShares", wireType) } m.AssuredConcurrencyShares = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.AssuredConcurrencyShares |= int32(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field LimitResponse", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.LimitResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field LendablePercent", 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.LendablePercent = &v case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field BorrowingLimitPercent", 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.BorrowingLimitPercent = &v default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *NonResourcePolicyRule) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: NonResourcePolicyRule: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: NonResourcePolicyRule: 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 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PolicyRulesWithSubjects) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PolicyRulesWithSubjects: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PolicyRulesWithSubjects: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: 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 2: 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, ResourcePolicyRule{}) if err := m.ResourceRules[len(m.ResourceRules)-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 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, NonResourcePolicyRule{}) if err := m.NonResourceRules[len(m.NonResourceRules)-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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfiguration) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfiguration: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationCondition) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationCondition: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationCondition: 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 = PriorityLevelConfigurationConditionType(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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationList: 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, PriorityLevelConfiguration{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationReference) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationReference: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationReference: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationSpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationSpec: 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 = PriorityLevelEnablement(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Limited", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Limited == nil { m.Limited = &LimitedPriorityLevelConfiguration{} } if err := m.Limited.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Exempt", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Exempt == nil { m.Exempt = &ExemptPriorityLevelConfiguration{} } if err := m.Exempt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationStatus: 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, PriorityLevelConfigurationCondition{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueuingConfiguration) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueuingConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueuingConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Queues", wireType) } m.Queues = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Queues |= int32(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field HandSize", wireType) } m.HandSize = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.HandSize |= int32(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field QueueLengthLimit", wireType) } m.QueueLengthLimit = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.QueueLengthLimit |= int32(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ResourcePolicyRule) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ResourcePolicyRule: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ResourcePolicyRule: 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 != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ClusterScope", 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.ClusterScope = bool(v != 0) case 5: 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ServiceAccountSubject) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ServiceAccountSubject: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ServiceAccountSubject: 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 = SubjectKind(dAtA[iNdEx:postIndex]) iNdEx = postIndex 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 m.User == nil { m.User = &UserSubject{} } 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 Group", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Group == nil { m.Group = &GroupSubject{} } if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ServiceAccount == nil { m.ServiceAccount = &ServiceAccountSubject{} } if err := m.ServiceAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *UserSubject) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: UserSubject: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: UserSubject: 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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/flowcontrol/v1beta2/generated.proto000066400000000000000000000526011453636404600232010ustar00rootroot00000000000000/* 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.flowcontrol.v1beta2; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/flowcontrol/v1beta2"; // ExemptPriorityLevelConfiguration describes the configurable aspects // of the handling of exempt requests. // In the mandatory exempt configuration object the values in the fields // here can be modified by authorized users, unlike the rest of the `spec`. message ExemptPriorityLevelConfiguration { // `nominalConcurrencyShares` (NCS) contributes to the computation of the // NominalConcurrencyLimit (NominalCL) of this level. // This is the number of execution seats nominally reserved for this priority level. // This DOES NOT limit the dispatching from this priority level // but affects the other priority levels through the borrowing mechanism. // The server's concurrency limit (ServerCL) is divided among all the // priority levels in proportion to their NCS values: // // NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) // sum_ncs = sum[priority level k] NCS(k) // // Bigger numbers mean a larger nominal concurrency limit, // at the expense of every other priority level. // This field has a default value of zero. // +optional optional int32 nominalConcurrencyShares = 1; // `lendablePercent` prescribes the fraction of the level's NominalCL that // can be borrowed by other priority levels. This value of this // field must be between 0 and 100, inclusive, and it defaults to 0. // The number of seats that other levels can borrow from this level, known // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. // // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) // // +optional optional int32 lendablePercent = 2; } // FlowDistinguisherMethod specifies the method of a flow distinguisher. message FlowDistinguisherMethod { // `type` is the type of flow distinguisher method // The supported types are "ByUser" and "ByNamespace". // Required. optional string type = 1; } // FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with // similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". message FlowSchema { // `metadata` is the 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 specification of the desired behavior of a FlowSchema. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional FlowSchemaSpec spec = 2; // `status` is the current status of a FlowSchema. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional FlowSchemaStatus status = 3; } // FlowSchemaCondition describes conditions for a FlowSchema. message FlowSchemaCondition { // `type` is the type of the condition. // Required. optional string type = 1; // `status` is the status of the condition. // Can be True, False, Unknown. // Required. optional string status = 2; // `lastTransitionTime` is the last time the condition transitioned from one status to another. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. optional string reason = 4; // `message` is a human-readable message indicating details about last transition. optional string message = 5; } // FlowSchemaList is a list of FlowSchema objects. message FlowSchemaList { // `metadata` is the 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 FlowSchemas. repeated FlowSchema items = 2; } // FlowSchemaSpec describes how the FlowSchema's specification looks like. message FlowSchemaSpec { // `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot // be resolved, the FlowSchema will be ignored and marked as invalid in its status. // Required. optional PriorityLevelConfigurationReference priorityLevelConfiguration = 1; // `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen // FlowSchema is among those with the numerically lowest (which we take to be logically highest) // MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. // Note that if the precedence is not specified, it will be set to 1000 as default. // +optional optional int32 matchingPrecedence = 2; // `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. // `nil` specifies that the distinguisher is disabled and thus will always be the empty string. // +optional optional FlowDistinguisherMethod distinguisherMethod = 3; // `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if // at least one member of rules matches the request. // if it is an empty slice, there will be no requests matching the FlowSchema. // +listType=atomic // +optional repeated PolicyRulesWithSubjects rules = 4; } // FlowSchemaStatus represents the current state of a FlowSchema. message FlowSchemaStatus { // `conditions` is a list of the current states of FlowSchema. // +listType=map // +listMapKey=type // +optional repeated FlowSchemaCondition conditions = 1; } // GroupSubject holds detailed information for group-kind subject. message GroupSubject { // name is the user group that matches, or "*" to match all user groups. // See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some // well-known group names. // Required. optional string name = 1; } // LimitResponse defines how to handle requests that can not be executed right now. // +union message LimitResponse { // `type` is "Queue" or "Reject". // "Queue" means that requests that can not be executed upon arrival // are held in a queue until they can be executed or a queuing limit // is reached. // "Reject" means that requests that can not be executed upon arrival // are rejected. // Required. // +unionDiscriminator optional string type = 1; // `queuing` holds the configuration parameters for queuing. // This field may be non-empty only if `type` is `"Queue"`. // +optional optional QueuingConfiguration queuing = 2; } // LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. // It addresses two issues: // - How are requests for this priority level limited? // - What should be done with requests that exceed the limit? message LimitedPriorityLevelConfiguration { // `assuredConcurrencyShares` (ACS) configures the execution // limit, which is a limit on the number of requests of this // priority level that may be executing at a given time. ACS must // be a positive number. The server's concurrency limit (SCL) is // divided among the concurrency-controlled priority levels in // proportion to their assured concurrency shares. This produces // the assured concurrency value (ACV) --- the number of requests // that may be executing at a time --- for each such priority // level: // // ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) // // bigger numbers of ACS mean more reserved concurrent requests (at the // expense of every other PL). // This field has a default value of 30. // +optional optional int32 assuredConcurrencyShares = 1; // `limitResponse` indicates what to do with requests that can not be executed right now optional LimitResponse limitResponse = 2; // `lendablePercent` prescribes the fraction of the level's NominalCL that // can be borrowed by other priority levels. The value of this // field must be between 0 and 100, inclusive, and it defaults to 0. // The number of seats that other levels can borrow from this level, known // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. // // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) // // +optional optional int32 lendablePercent = 3; // `borrowingLimitPercent`, if present, configures a limit on how many // seats this priority level can borrow from other priority levels. // The limit is known as this level's BorrowingConcurrencyLimit // (BorrowingCL) and is a limit on the total number of seats that this // level may borrow at any one time. // This field holds the ratio of that limit to the level's nominal // concurrency limit. When this field is non-nil, it must hold a // non-negative integer and the limit is calculated as follows. // // BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) // // The value of this field can be more than 100, implying that this // priority level can borrow a number of seats that is greater than // its own nominal concurrency limit (NominalCL). // When this field is left `nil`, the limit is effectively infinite. // +optional optional int32 borrowingLimitPercent = 4; } // NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the // target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member // of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. message NonResourcePolicyRule { // `verbs` is a list of matching verbs and may not be empty. // "*" matches all verbs. If it is present, it must be the only entry. // +listType=set // Required. repeated string verbs = 1; // `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. // For example: // - "/healthz" is legal // - "/hea*" is illegal // - "/hea" is legal but matches nothing // - "/hea/*" also matches nothing // - "/healthz/*" matches all per-component health checks. // "*" matches all non-resource urls. if it is present, it must be the only entry. // +listType=set // Required. repeated string nonResourceURLs = 6; } // PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject // making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches // a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member // of resourceRules or nonResourceRules matches the request. message PolicyRulesWithSubjects { // subjects is the list of normal user, serviceaccount, or group that this rule cares about. // There must be at least one member in this slice. // A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. // +listType=atomic // Required. repeated Subject subjects = 1; // `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the // target resource. // At least one of `resourceRules` and `nonResourceRules` has to be non-empty. // +listType=atomic // +optional repeated ResourcePolicyRule resourceRules = 2; // `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb // and the target non-resource URL. // +listType=atomic // +optional repeated NonResourcePolicyRule nonResourceRules = 3; } // PriorityLevelConfiguration represents the configuration of a priority level. message PriorityLevelConfiguration { // `metadata` is the 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 specification of the desired behavior of a "request-priority". // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional PriorityLevelConfigurationSpec spec = 2; // `status` is the current status of a "request-priority". // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional PriorityLevelConfigurationStatus status = 3; } // PriorityLevelConfigurationCondition defines the condition of priority level. message PriorityLevelConfigurationCondition { // `type` is the type of the condition. // Required. optional string type = 1; // `status` is the status of the condition. // Can be True, False, Unknown. // Required. optional string status = 2; // `lastTransitionTime` is the last time the condition transitioned from one status to another. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. optional string reason = 4; // `message` is a human-readable message indicating details about last transition. optional string message = 5; } // PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. message PriorityLevelConfigurationList { // `metadata` is the 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 a list of request-priorities. repeated PriorityLevelConfiguration items = 2; } // PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. message PriorityLevelConfigurationReference { // `name` is the name of the priority level configuration being referenced // Required. optional string name = 1; } // PriorityLevelConfigurationSpec specifies the configuration of a priority level. // +union message PriorityLevelConfigurationSpec { // `type` indicates whether this priority level is subject to // limitation on request execution. A value of `"Exempt"` means // that requests of this priority level are not subject to a limit // (and thus are never queued) and do not detract from the // capacity made available to other priority levels. A value of // `"Limited"` means that (a) requests of this priority level // _are_ subject to limits and (b) some of the server's limited // capacity is made available exclusively to this priority level. // Required. // +unionDiscriminator optional string type = 1; // `limited` specifies how requests are handled for a Limited priority level. // This field must be non-empty if and only if `type` is `"Limited"`. // +optional optional LimitedPriorityLevelConfiguration limited = 2; // `exempt` specifies how requests are handled for an exempt priority level. // This field MUST be empty if `type` is `"Limited"`. // This field MAY be non-empty if `type` is `"Exempt"`. // If empty and `type` is `"Exempt"` then the default values // for `ExemptPriorityLevelConfiguration` apply. // +optional optional ExemptPriorityLevelConfiguration exempt = 3; } // PriorityLevelConfigurationStatus represents the current state of a "request-priority". message PriorityLevelConfigurationStatus { // `conditions` is the current state of "request-priority". // +listType=map // +listMapKey=type // +optional repeated PriorityLevelConfigurationCondition conditions = 1; } // QueuingConfiguration holds the configuration parameters for queuing message QueuingConfiguration { // `queues` is the number of queues for this priority level. The // queues exist independently at each apiserver. The value must be // positive. Setting it to 1 effectively precludes // shufflesharding and thus makes the distinguisher method of // associated flow schemas irrelevant. This field has a default // value of 64. // +optional optional int32 queues = 1; // `handSize` is a small positive number that configures the // shuffle sharding of requests into queues. When enqueuing a request // at this priority level the request's flow identifier (a string // pair) is hashed and the hash value is used to shuffle the list // of queues and deal a hand of the size specified here. The // request is put into one of the shortest queues in that hand. // `handSize` must be no larger than `queues`, and should be // significantly smaller (so that a few heavy flows do not // saturate most of the queues). See the user-facing // documentation for more extensive guidance on setting this // field. This field has a default value of 8. // +optional optional int32 handSize = 2; // `queueLengthLimit` is the maximum number of requests allowed to // be waiting in a given queue of this priority level at a time; // excess requests are rejected. This value must be positive. If // not specified, it will be defaulted to 50. // +optional optional int32 queueLengthLimit = 3; } // ResourcePolicyRule is a predicate that matches some resource // requests, testing the request's verb and the target resource. A // ResourcePolicyRule matches a resource request if and only if: (a) // at least one member of verbs matches the request, (b) at least one // member of apiGroups matches the request, (c) at least one member of // resources matches the request, and (d) either (d1) the request does // not specify a namespace (i.e., `Namespace==""`) and clusterScope is // true or (d2) the request specifies a namespace and least one member // of namespaces matches the request's namespace. message ResourcePolicyRule { // `verbs` is a list of matching verbs and may not be empty. // "*" matches all verbs and, if present, must be the only entry. // +listType=set // Required. repeated string verbs = 1; // `apiGroups` is a list of matching API groups and may not be empty. // "*" matches all API groups and, if present, must be the only entry. // +listType=set // Required. repeated string apiGroups = 2; // `resources` is a list of matching resources (i.e., lowercase // and plural) with, if desired, subresource. For example, [ // "services", "nodes/status" ]. This list may not be empty. // "*" matches all resources and, if present, must be the only entry. // Required. // +listType=set repeated string resources = 3; // `clusterScope` indicates whether to match requests that do not // specify a namespace (which happens either because the resource // is not namespaced or the request targets all namespaces). // If this field is omitted or false then the `namespaces` field // must contain a non-empty list. // +optional optional bool clusterScope = 4; // `namespaces` is a list of target namespaces that restricts // matches. A request that specifies a target namespace matches // only if either (a) this list contains that target namespace or // (b) this list contains "*". Note that "*" matches any // specified namespace but does not match a request that _does // not specify_ a namespace (see the `clusterScope` field for // that). // This list may be empty, but only if `clusterScope` is true. // +optional // +listType=set repeated string namespaces = 5; } // ServiceAccountSubject holds detailed information for service-account-kind subject. message ServiceAccountSubject { // `namespace` is the namespace of matching ServiceAccount objects. // Required. optional string namespace = 1; // `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. // Required. optional string name = 2; } // Subject matches the originator of a request, as identified by the request authentication system. There are three // ways of matching an originator; by user, group, or service account. // +union message Subject { // `kind` indicates which one of the other fields is non-empty. // Required // +unionDiscriminator optional string kind = 1; // `user` matches based on username. // +optional optional UserSubject user = 2; // `group` matches based on user group name. // +optional optional GroupSubject group = 3; // `serviceAccount` matches ServiceAccounts. // +optional optional ServiceAccountSubject serviceAccount = 4; } // UserSubject holds detailed information for user-kind subject. message UserSubject { // `name` is the username that matches, or "*" to match all usernames. // Required. optional string name = 1; } golang-k8s-api-0.29.0/flowcontrol/v1beta2/register.go000066400000000000000000000035161453636404600223320ustar00rootroot00000000000000/* 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 v1beta2 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the name of api group const GroupName = "flowcontrol.apiserver.k8s.io" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta2"} // 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 installs the api group to a scheme SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme adds api 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, &FlowSchema{}, &FlowSchemaList{}, &PriorityLevelConfiguration{}, &PriorityLevelConfigurationList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/flowcontrol/v1beta2/types.go000066400000000000000000000763121453636404600216560ustar00rootroot00000000000000/* 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 v1beta2 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // These are valid wildcards. const ( APIGroupAll = "*" ResourceAll = "*" VerbAll = "*" NonResourceAll = "*" NameAll = "*" NamespaceEvery = "*" // matches every particular namespace ) // System preset priority level names const ( PriorityLevelConfigurationNameExempt = "exempt" PriorityLevelConfigurationNameCatchAll = "catch-all" FlowSchemaNameExempt = "exempt" FlowSchemaNameCatchAll = "catch-all" ) // Conditions const ( FlowSchemaConditionDangling = "Dangling" PriorityLevelConfigurationConditionConcurrencyShared = "ConcurrencyShared" ) // Constants used by api validation. const ( FlowSchemaMaxMatchingPrecedence int32 = 10000 ) // Constants for apiserver response headers. const ( ResponseHeaderMatchedPriorityLevelConfigurationUID = "X-Kubernetes-PF-PriorityLevel-UID" ResponseHeaderMatchedFlowSchemaUID = "X-Kubernetes-PF-FlowSchema-UID" ) const ( // AutoUpdateAnnotationKey is the name of an annotation that enables // automatic update of the spec of the bootstrap configuration // object(s), if set to 'true'. // // On a fresh install, all bootstrap configuration objects will have auto // update enabled with the following annotation key: // apf.kubernetes.io/autoupdate-spec: 'true' // // The kube-apiserver periodically checks the bootstrap configuration // objects on the cluster and applies updates if necessary. // // kube-apiserver enforces an 'always auto-update' policy for the // mandatory configuration object(s). This implies: // - the auto-update annotation key is added with a value of 'true' // if it is missing. // - the auto-update annotation key is set to 'true' if its current value // is a boolean false or has an invalid boolean representation // (if the cluster operator sets it to 'false' it will be stomped) // - any changes to the spec made by the cluster operator will be // stomped, except for changes to the `nominalConcurrencyShares` // and `lendablePercent` fields of the PriorityLevelConfiguration // named "exempt". // // The kube-apiserver will apply updates on the suggested configuration if: // - the cluster operator has enabled auto-update by setting the annotation // (apf.kubernetes.io/autoupdate-spec: 'true') or // - the annotation key is missing but the generation is 1 // // If the suggested configuration object is missing the annotation key, // kube-apiserver will update the annotation appropriately: // - it is set to 'true' if generation of the object is '1' which usually // indicates that the spec of the object has not been changed. // - it is set to 'false' if generation of the object is greater than 1. // // The goal is to enable the kube-apiserver to apply update on suggested // configuration objects installed by previous releases but not overwrite // changes made by the cluster operators. // Note that this distinction is imperfectly detected: in the case where an // operator deletes a suggested configuration object and later creates it // but with a variant spec and then does no updates of the object // (generation is 1), the technique outlined above will incorrectly // determine that the object should be auto-updated. AutoUpdateAnnotationKey = "apf.kubernetes.io/autoupdate-spec" ) // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.23 // +k8s:prerelease-lifecycle-gen:replacement=flowcontrol.apiserver.k8s.io,v1beta3,FlowSchema // FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with // similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". type FlowSchema struct { metav1.TypeMeta `json:",inline"` // `metadata` is the 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 specification of the desired behavior of a FlowSchema. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec FlowSchemaSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // `status` is the current status of a FlowSchema. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Status FlowSchemaStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.23 // +k8s:prerelease-lifecycle-gen:replacement=flowcontrol.apiserver.k8s.io,v1beta3,FlowSchemaList // FlowSchemaList is a list of FlowSchema objects. type FlowSchemaList struct { metav1.TypeMeta `json:",inline"` // `metadata` is the 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 FlowSchemas. Items []FlowSchema `json:"items" protobuf:"bytes,2,rep,name=items"` } // FlowSchemaSpec describes how the FlowSchema's specification looks like. type FlowSchemaSpec struct { // `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot // be resolved, the FlowSchema will be ignored and marked as invalid in its status. // Required. PriorityLevelConfiguration PriorityLevelConfigurationReference `json:"priorityLevelConfiguration" protobuf:"bytes,1,opt,name=priorityLevelConfiguration"` // `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen // FlowSchema is among those with the numerically lowest (which we take to be logically highest) // MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. // Note that if the precedence is not specified, it will be set to 1000 as default. // +optional MatchingPrecedence int32 `json:"matchingPrecedence" protobuf:"varint,2,opt,name=matchingPrecedence"` // `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. // `nil` specifies that the distinguisher is disabled and thus will always be the empty string. // +optional DistinguisherMethod *FlowDistinguisherMethod `json:"distinguisherMethod,omitempty" protobuf:"bytes,3,opt,name=distinguisherMethod"` // `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if // at least one member of rules matches the request. // if it is an empty slice, there will be no requests matching the FlowSchema. // +listType=atomic // +optional Rules []PolicyRulesWithSubjects `json:"rules,omitempty" protobuf:"bytes,4,rep,name=rules"` } // FlowDistinguisherMethodType is the type of flow distinguisher method type FlowDistinguisherMethodType string // These are valid flow-distinguisher methods. const ( // FlowDistinguisherMethodByUserType specifies that the flow distinguisher is the username in the request. // This type is used to provide some insulation between users. FlowDistinguisherMethodByUserType FlowDistinguisherMethodType = "ByUser" // FlowDistinguisherMethodByNamespaceType specifies that the flow distinguisher is the namespace of the // object that the request acts upon. If the object is not namespaced, or if the request is a non-resource // request, then the distinguisher will be the empty string. An example usage of this type is to provide // some insulation between tenants in a situation where there are multiple tenants and each namespace // is dedicated to a tenant. FlowDistinguisherMethodByNamespaceType FlowDistinguisherMethodType = "ByNamespace" ) // FlowDistinguisherMethod specifies the method of a flow distinguisher. type FlowDistinguisherMethod struct { // `type` is the type of flow distinguisher method // The supported types are "ByUser" and "ByNamespace". // Required. Type FlowDistinguisherMethodType `json:"type" protobuf:"bytes,1,opt,name=type"` } // PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. type PriorityLevelConfigurationReference struct { // `name` is the name of the priority level configuration being referenced // Required. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` } // PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject // making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches // a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member // of resourceRules or nonResourceRules matches the request. type PolicyRulesWithSubjects struct { // subjects is the list of normal user, serviceaccount, or group that this rule cares about. // There must be at least one member in this slice. // A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. // +listType=atomic // Required. Subjects []Subject `json:"subjects" protobuf:"bytes,1,rep,name=subjects"` // `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the // target resource. // At least one of `resourceRules` and `nonResourceRules` has to be non-empty. // +listType=atomic // +optional ResourceRules []ResourcePolicyRule `json:"resourceRules,omitempty" protobuf:"bytes,2,opt,name=resourceRules"` // `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb // and the target non-resource URL. // +listType=atomic // +optional NonResourceRules []NonResourcePolicyRule `json:"nonResourceRules,omitempty" protobuf:"bytes,3,opt,name=nonResourceRules"` } // Subject matches the originator of a request, as identified by the request authentication system. There are three // ways of matching an originator; by user, group, or service account. // +union type Subject struct { // `kind` indicates which one of the other fields is non-empty. // Required // +unionDiscriminator Kind SubjectKind `json:"kind" protobuf:"bytes,1,opt,name=kind"` // `user` matches based on username. // +optional User *UserSubject `json:"user,omitempty" protobuf:"bytes,2,opt,name=user"` // `group` matches based on user group name. // +optional Group *GroupSubject `json:"group,omitempty" protobuf:"bytes,3,opt,name=group"` // `serviceAccount` matches ServiceAccounts. // +optional ServiceAccount *ServiceAccountSubject `json:"serviceAccount,omitempty" protobuf:"bytes,4,opt,name=serviceAccount"` } // SubjectKind is the kind of subject. type SubjectKind string // Supported subject's kinds. const ( SubjectKindUser SubjectKind = "User" SubjectKindGroup SubjectKind = "Group" SubjectKindServiceAccount SubjectKind = "ServiceAccount" ) // UserSubject holds detailed information for user-kind subject. type UserSubject struct { // `name` is the username that matches, or "*" to match all usernames. // Required. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` } // GroupSubject holds detailed information for group-kind subject. type GroupSubject struct { // name is the user group that matches, or "*" to match all user groups. // See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some // well-known group names. // Required. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` } // ServiceAccountSubject holds detailed information for service-account-kind subject. type ServiceAccountSubject struct { // `namespace` is the namespace of matching ServiceAccount objects. // Required. Namespace string `json:"namespace" protobuf:"bytes,1,opt,name=namespace"` // `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. // Required. Name string `json:"name" protobuf:"bytes,2,opt,name=name"` } // ResourcePolicyRule is a predicate that matches some resource // requests, testing the request's verb and the target resource. A // ResourcePolicyRule matches a resource request if and only if: (a) // at least one member of verbs matches the request, (b) at least one // member of apiGroups matches the request, (c) at least one member of // resources matches the request, and (d) either (d1) the request does // not specify a namespace (i.e., `Namespace==""`) and clusterScope is // true or (d2) the request specifies a namespace and least one member // of namespaces matches the request's namespace. type ResourcePolicyRule struct { // `verbs` is a list of matching verbs and may not be empty. // "*" matches all verbs and, if present, must be the only entry. // +listType=set // Required. Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` // `apiGroups` is a list of matching API groups and may not be empty. // "*" matches all API groups and, if present, must be the only entry. // +listType=set // Required. APIGroups []string `json:"apiGroups" protobuf:"bytes,2,rep,name=apiGroups"` // `resources` is a list of matching resources (i.e., lowercase // and plural) with, if desired, subresource. For example, [ // "services", "nodes/status" ]. This list may not be empty. // "*" matches all resources and, if present, must be the only entry. // Required. // +listType=set Resources []string `json:"resources" protobuf:"bytes,3,rep,name=resources"` // `clusterScope` indicates whether to match requests that do not // specify a namespace (which happens either because the resource // is not namespaced or the request targets all namespaces). // If this field is omitted or false then the `namespaces` field // must contain a non-empty list. // +optional ClusterScope bool `json:"clusterScope,omitempty" protobuf:"varint,4,opt,name=clusterScope"` // `namespaces` is a list of target namespaces that restricts // matches. A request that specifies a target namespace matches // only if either (a) this list contains that target namespace or // (b) this list contains "*". Note that "*" matches any // specified namespace but does not match a request that _does // not specify_ a namespace (see the `clusterScope` field for // that). // This list may be empty, but only if `clusterScope` is true. // +optional // +listType=set Namespaces []string `json:"namespaces" protobuf:"bytes,5,rep,name=namespaces"` } // NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the // target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member // of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. type NonResourcePolicyRule struct { // `verbs` is a list of matching verbs and may not be empty. // "*" matches all verbs. If it is present, it must be the only entry. // +listType=set // Required. Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` // `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. // For example: // - "/healthz" is legal // - "/hea*" is illegal // - "/hea" is legal but matches nothing // - "/hea/*" also matches nothing // - "/healthz/*" matches all per-component health checks. // "*" matches all non-resource urls. if it is present, it must be the only entry. // +listType=set // Required. NonResourceURLs []string `json:"nonResourceURLs" protobuf:"bytes,6,rep,name=nonResourceURLs"` } // FlowSchemaStatus represents the current state of a FlowSchema. type FlowSchemaStatus struct { // `conditions` is a list of the current states of FlowSchema. // +listType=map // +listMapKey=type // +optional Conditions []FlowSchemaCondition `json:"conditions,omitempty" protobuf:"bytes,1,rep,name=conditions"` } // FlowSchemaCondition describes conditions for a FlowSchema. type FlowSchemaCondition struct { // `type` is the type of the condition. // Required. Type FlowSchemaConditionType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type"` // `status` is the status of the condition. // Can be True, False, Unknown. // Required. Status ConditionStatus `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"` // `lastTransitionTime` is the last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` // `message` is a human-readable message indicating details about last transition. Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` } // FlowSchemaConditionType is a valid value for FlowSchemaStatusCondition.Type type FlowSchemaConditionType string // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.23 // +k8s:prerelease-lifecycle-gen:replacement=flowcontrol.apiserver.k8s.io,v1beta3,PriorityLevelConfiguration // PriorityLevelConfiguration represents the configuration of a priority level. type PriorityLevelConfiguration struct { metav1.TypeMeta `json:",inline"` // `metadata` is the 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 specification of the desired behavior of a "request-priority". // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec PriorityLevelConfigurationSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // `status` is the current status of a "request-priority". // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Status PriorityLevelConfigurationStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.23 // +k8s:prerelease-lifecycle-gen:replacement=flowcontrol.apiserver.k8s.io,v1beta3,PriorityLevelConfigurationList // PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. type PriorityLevelConfigurationList struct { metav1.TypeMeta `json:",inline"` // `metadata` is the 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 a list of request-priorities. Items []PriorityLevelConfiguration `json:"items" protobuf:"bytes,2,rep,name=items"` } // PriorityLevelConfigurationSpec specifies the configuration of a priority level. // +union type PriorityLevelConfigurationSpec struct { // `type` indicates whether this priority level is subject to // limitation on request execution. A value of `"Exempt"` means // that requests of this priority level are not subject to a limit // (and thus are never queued) and do not detract from the // capacity made available to other priority levels. A value of // `"Limited"` means that (a) requests of this priority level // _are_ subject to limits and (b) some of the server's limited // capacity is made available exclusively to this priority level. // Required. // +unionDiscriminator Type PriorityLevelEnablement `json:"type" protobuf:"bytes,1,opt,name=type"` // `limited` specifies how requests are handled for a Limited priority level. // This field must be non-empty if and only if `type` is `"Limited"`. // +optional Limited *LimitedPriorityLevelConfiguration `json:"limited,omitempty" protobuf:"bytes,2,opt,name=limited"` // `exempt` specifies how requests are handled for an exempt priority level. // This field MUST be empty if `type` is `"Limited"`. // This field MAY be non-empty if `type` is `"Exempt"`. // If empty and `type` is `"Exempt"` then the default values // for `ExemptPriorityLevelConfiguration` apply. // +optional Exempt *ExemptPriorityLevelConfiguration `json:"exempt,omitempty" protobuf:"bytes,3,opt,name=exempt"` } // PriorityLevelEnablement indicates whether limits on execution are enabled for the priority level type PriorityLevelEnablement string // Supported priority level enablement values. const ( // PriorityLevelEnablementExempt means that requests are not subject to limits PriorityLevelEnablementExempt PriorityLevelEnablement = "Exempt" // PriorityLevelEnablementLimited means that requests are subject to limits PriorityLevelEnablementLimited PriorityLevelEnablement = "Limited" ) // LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. // It addresses two issues: // - How are requests for this priority level limited? // - What should be done with requests that exceed the limit? type LimitedPriorityLevelConfiguration struct { // `assuredConcurrencyShares` (ACS) configures the execution // limit, which is a limit on the number of requests of this // priority level that may be executing at a given time. ACS must // be a positive number. The server's concurrency limit (SCL) is // divided among the concurrency-controlled priority levels in // proportion to their assured concurrency shares. This produces // the assured concurrency value (ACV) --- the number of requests // that may be executing at a time --- for each such priority // level: // // ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) // // bigger numbers of ACS mean more reserved concurrent requests (at the // expense of every other PL). // This field has a default value of 30. // +optional AssuredConcurrencyShares int32 `json:"assuredConcurrencyShares" protobuf:"varint,1,opt,name=assuredConcurrencyShares"` // `limitResponse` indicates what to do with requests that can not be executed right now LimitResponse LimitResponse `json:"limitResponse,omitempty" protobuf:"bytes,2,opt,name=limitResponse"` // `lendablePercent` prescribes the fraction of the level's NominalCL that // can be borrowed by other priority levels. The value of this // field must be between 0 and 100, inclusive, and it defaults to 0. // The number of seats that other levels can borrow from this level, known // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. // // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) // // +optional LendablePercent *int32 `json:"lendablePercent,omitempty" protobuf:"varint,3,opt,name=lendablePercent"` // `borrowingLimitPercent`, if present, configures a limit on how many // seats this priority level can borrow from other priority levels. // The limit is known as this level's BorrowingConcurrencyLimit // (BorrowingCL) and is a limit on the total number of seats that this // level may borrow at any one time. // This field holds the ratio of that limit to the level's nominal // concurrency limit. When this field is non-nil, it must hold a // non-negative integer and the limit is calculated as follows. // // BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) // // The value of this field can be more than 100, implying that this // priority level can borrow a number of seats that is greater than // its own nominal concurrency limit (NominalCL). // When this field is left `nil`, the limit is effectively infinite. // +optional BorrowingLimitPercent *int32 `json:"borrowingLimitPercent,omitempty" protobuf:"varint,4,opt,name=borrowingLimitPercent"` } // ExemptPriorityLevelConfiguration describes the configurable aspects // of the handling of exempt requests. // In the mandatory exempt configuration object the values in the fields // here can be modified by authorized users, unlike the rest of the `spec`. type ExemptPriorityLevelConfiguration struct { // `nominalConcurrencyShares` (NCS) contributes to the computation of the // NominalConcurrencyLimit (NominalCL) of this level. // This is the number of execution seats nominally reserved for this priority level. // This DOES NOT limit the dispatching from this priority level // but affects the other priority levels through the borrowing mechanism. // The server's concurrency limit (ServerCL) is divided among all the // priority levels in proportion to their NCS values: // // NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) // sum_ncs = sum[priority level k] NCS(k) // // Bigger numbers mean a larger nominal concurrency limit, // at the expense of every other priority level. // This field has a default value of zero. // +optional NominalConcurrencyShares *int32 `json:"nominalConcurrencyShares,omitempty" protobuf:"varint,1,opt,name=nominalConcurrencyShares"` // `lendablePercent` prescribes the fraction of the level's NominalCL that // can be borrowed by other priority levels. This value of this // field must be between 0 and 100, inclusive, and it defaults to 0. // The number of seats that other levels can borrow from this level, known // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. // // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) // // +optional LendablePercent *int32 `json:"lendablePercent,omitempty" protobuf:"varint,2,opt,name=lendablePercent"` // The `BorrowingCL` of an Exempt priority level is implicitly `ServerCL`. // In other words, an exempt priority level // has no meaningful limit on how much it borrows. // There is no explicit representation of that here. } // LimitResponse defines how to handle requests that can not be executed right now. // +union type LimitResponse struct { // `type` is "Queue" or "Reject". // "Queue" means that requests that can not be executed upon arrival // are held in a queue until they can be executed or a queuing limit // is reached. // "Reject" means that requests that can not be executed upon arrival // are rejected. // Required. // +unionDiscriminator Type LimitResponseType `json:"type" protobuf:"bytes,1,opt,name=type"` // `queuing` holds the configuration parameters for queuing. // This field may be non-empty only if `type` is `"Queue"`. // +optional Queuing *QueuingConfiguration `json:"queuing,omitempty" protobuf:"bytes,2,opt,name=queuing"` } // LimitResponseType identifies how a Limited priority level handles a request that can not be executed right now type LimitResponseType string // Supported limit responses. const ( // LimitResponseTypeQueue means that requests that can not be executed right now are queued until they can be executed or a queuing limit is hit LimitResponseTypeQueue LimitResponseType = "Queue" // LimitResponseTypeReject means that requests that can not be executed right now are rejected LimitResponseTypeReject LimitResponseType = "Reject" ) // QueuingConfiguration holds the configuration parameters for queuing type QueuingConfiguration struct { // `queues` is the number of queues for this priority level. The // queues exist independently at each apiserver. The value must be // positive. Setting it to 1 effectively precludes // shufflesharding and thus makes the distinguisher method of // associated flow schemas irrelevant. This field has a default // value of 64. // +optional Queues int32 `json:"queues" protobuf:"varint,1,opt,name=queues"` // `handSize` is a small positive number that configures the // shuffle sharding of requests into queues. When enqueuing a request // at this priority level the request's flow identifier (a string // pair) is hashed and the hash value is used to shuffle the list // of queues and deal a hand of the size specified here. The // request is put into one of the shortest queues in that hand. // `handSize` must be no larger than `queues`, and should be // significantly smaller (so that a few heavy flows do not // saturate most of the queues). See the user-facing // documentation for more extensive guidance on setting this // field. This field has a default value of 8. // +optional HandSize int32 `json:"handSize" protobuf:"varint,2,opt,name=handSize"` // `queueLengthLimit` is the maximum number of requests allowed to // be waiting in a given queue of this priority level at a time; // excess requests are rejected. This value must be positive. If // not specified, it will be defaulted to 50. // +optional QueueLengthLimit int32 `json:"queueLengthLimit" protobuf:"varint,3,opt,name=queueLengthLimit"` } // PriorityLevelConfigurationConditionType is a valid value for PriorityLevelConfigurationStatusCondition.Type type PriorityLevelConfigurationConditionType string // PriorityLevelConfigurationStatus represents the current state of a "request-priority". type PriorityLevelConfigurationStatus struct { // `conditions` is the current state of "request-priority". // +listType=map // +listMapKey=type // +optional Conditions []PriorityLevelConfigurationCondition `json:"conditions,omitempty" protobuf:"bytes,1,rep,name=conditions"` } // PriorityLevelConfigurationCondition defines the condition of priority level. type PriorityLevelConfigurationCondition struct { // `type` is the type of the condition. // Required. Type PriorityLevelConfigurationConditionType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type"` // `status` is the status of the condition. // Can be True, False, Unknown. // Required. Status ConditionStatus `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"` // `lastTransitionTime` is the last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` // `message` is a human-readable message indicating details about last transition. Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` } // ConditionStatus is the status of the condition. 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" ) golang-k8s-api-0.29.0/flowcontrol/v1beta2/types_swagger_doc_generated.go000066400000000000000000000523601453636404600262350ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_ExemptPriorityLevelConfiguration = map[string]string{ "": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.", "nominalConcurrencyShares": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.", "lendablePercent": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", } func (ExemptPriorityLevelConfiguration) SwaggerDoc() map[string]string { return map_ExemptPriorityLevelConfiguration } var map_FlowDistinguisherMethod = map[string]string{ "": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", "type": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", } func (FlowDistinguisherMethod) SwaggerDoc() map[string]string { return map_FlowDistinguisherMethod } var map_FlowSchema = map[string]string{ "": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", "metadata": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "spec": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", "status": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", } func (FlowSchema) SwaggerDoc() map[string]string { return map_FlowSchema } var map_FlowSchemaCondition = map[string]string{ "": "FlowSchemaCondition describes conditions for a FlowSchema.", "type": "`type` is the type of the condition. Required.", "status": "`status` is the status of the condition. Can be True, False, Unknown. Required.", "lastTransitionTime": "`lastTransitionTime` is the last time the condition transitioned from one status to another.", "reason": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", "message": "`message` is a human-readable message indicating details about last transition.", } func (FlowSchemaCondition) SwaggerDoc() map[string]string { return map_FlowSchemaCondition } var map_FlowSchemaList = map[string]string{ "": "FlowSchemaList is a list of FlowSchema objects.", "metadata": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "items": "`items` is a list of FlowSchemas.", } func (FlowSchemaList) SwaggerDoc() map[string]string { return map_FlowSchemaList } var map_FlowSchemaSpec = map[string]string{ "": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", "priorityLevelConfiguration": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required.", "matchingPrecedence": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.", "distinguisherMethod": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string.", "rules": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", } func (FlowSchemaSpec) SwaggerDoc() map[string]string { return map_FlowSchemaSpec } var map_FlowSchemaStatus = map[string]string{ "": "FlowSchemaStatus represents the current state of a FlowSchema.", "conditions": "`conditions` is a list of the current states of FlowSchema.", } func (FlowSchemaStatus) SwaggerDoc() map[string]string { return map_FlowSchemaStatus } var map_GroupSubject = map[string]string{ "": "GroupSubject holds detailed information for group-kind subject.", "name": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.", } func (GroupSubject) SwaggerDoc() map[string]string { return map_GroupSubject } var map_LimitResponse = map[string]string{ "": "LimitResponse defines how to handle requests that can not be executed right now.", "type": "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.", "queuing": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`.", } func (LimitResponse) SwaggerDoc() map[string]string { return map_LimitResponse } var map_LimitedPriorityLevelConfiguration = map[string]string{ "": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", "assuredConcurrencyShares": "`assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be executing at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) ", "limitResponse": "`limitResponse` indicates what to do with requests that can not be executed right now", "lendablePercent": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", "borrowingLimitPercent": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", } func (LimitedPriorityLevelConfiguration) SwaggerDoc() map[string]string { return map_LimitedPriorityLevelConfiguration } var map_NonResourcePolicyRule = map[string]string{ "": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", "verbs": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", "nonResourceURLs": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", } func (NonResourcePolicyRule) SwaggerDoc() map[string]string { return map_NonResourcePolicyRule } var map_PolicyRulesWithSubjects = map[string]string{ "": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", "subjects": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", "resourceRules": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", "nonResourceRules": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", } func (PolicyRulesWithSubjects) SwaggerDoc() map[string]string { return map_PolicyRulesWithSubjects } var map_PriorityLevelConfiguration = map[string]string{ "": "PriorityLevelConfiguration represents the configuration of a priority level.", "metadata": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "spec": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", "status": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", } func (PriorityLevelConfiguration) SwaggerDoc() map[string]string { return map_PriorityLevelConfiguration } var map_PriorityLevelConfigurationCondition = map[string]string{ "": "PriorityLevelConfigurationCondition defines the condition of priority level.", "type": "`type` is the type of the condition. Required.", "status": "`status` is the status of the condition. Can be True, False, Unknown. Required.", "lastTransitionTime": "`lastTransitionTime` is the last time the condition transitioned from one status to another.", "reason": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", "message": "`message` is a human-readable message indicating details about last transition.", } func (PriorityLevelConfigurationCondition) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationCondition } var map_PriorityLevelConfigurationList = map[string]string{ "": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", "metadata": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "items": "`items` is a list of request-priorities.", } func (PriorityLevelConfigurationList) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationList } var map_PriorityLevelConfigurationReference = map[string]string{ "": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", "name": "`name` is the name of the priority level configuration being referenced Required.", } func (PriorityLevelConfigurationReference) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationReference } var map_PriorityLevelConfigurationSpec = map[string]string{ "": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", "type": "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.", "limited": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`.", "exempt": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply.", } func (PriorityLevelConfigurationSpec) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationSpec } var map_PriorityLevelConfigurationStatus = map[string]string{ "": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", "conditions": "`conditions` is the current state of \"request-priority\".", } func (PriorityLevelConfigurationStatus) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationStatus } var map_QueuingConfiguration = map[string]string{ "": "QueuingConfiguration holds the configuration parameters for queuing", "queues": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", "handSize": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", "queueLengthLimit": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", } func (QueuingConfiguration) SwaggerDoc() map[string]string { return map_QueuingConfiguration } var map_ResourcePolicyRule = map[string]string{ "": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", "verbs": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.", "apiGroups": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.", "resources": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.", "clusterScope": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.", "namespaces": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", } func (ResourcePolicyRule) SwaggerDoc() map[string]string { return map_ResourcePolicyRule } var map_ServiceAccountSubject = map[string]string{ "": "ServiceAccountSubject holds detailed information for service-account-kind subject.", "namespace": "`namespace` is the namespace of matching ServiceAccount objects. Required.", "name": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", } func (ServiceAccountSubject) SwaggerDoc() map[string]string { return map_ServiceAccountSubject } var map_Subject = map[string]string{ "": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", "kind": "`kind` indicates which one of the other fields is non-empty. Required", "user": "`user` matches based on username.", "group": "`group` matches based on user group name.", "serviceAccount": "`serviceAccount` matches ServiceAccounts.", } func (Subject) SwaggerDoc() map[string]string { return map_Subject } var map_UserSubject = map[string]string{ "": "UserSubject holds detailed information for user-kind subject.", "name": "`name` is the username that matches, or \"*\" to match all usernames. Required.", } func (UserSubject) SwaggerDoc() map[string]string { return map_UserSubject } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/flowcontrol/v1beta2/zz_generated.deepcopy.go000066400000000000000000000422071453636404600247760ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 ( runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ExemptPriorityLevelConfiguration) DeepCopyInto(out *ExemptPriorityLevelConfiguration) { *out = *in if in.NominalConcurrencyShares != nil { in, out := &in.NominalConcurrencyShares, &out.NominalConcurrencyShares *out = new(int32) **out = **in } if in.LendablePercent != nil { in, out := &in.LendablePercent, &out.LendablePercent *out = new(int32) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExemptPriorityLevelConfiguration. func (in *ExemptPriorityLevelConfiguration) DeepCopy() *ExemptPriorityLevelConfiguration { if in == nil { return nil } out := new(ExemptPriorityLevelConfiguration) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FlowDistinguisherMethod) DeepCopyInto(out *FlowDistinguisherMethod) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowDistinguisherMethod. func (in *FlowDistinguisherMethod) DeepCopy() *FlowDistinguisherMethod { if in == nil { return nil } out := new(FlowDistinguisherMethod) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FlowSchema) DeepCopyInto(out *FlowSchema) { *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 FlowSchema. func (in *FlowSchema) DeepCopy() *FlowSchema { if in == nil { return nil } out := new(FlowSchema) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *FlowSchema) 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 *FlowSchemaCondition) DeepCopyInto(out *FlowSchemaCondition) { *out = *in in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowSchemaCondition. func (in *FlowSchemaCondition) DeepCopy() *FlowSchemaCondition { if in == nil { return nil } out := new(FlowSchemaCondition) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FlowSchemaList) DeepCopyInto(out *FlowSchemaList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]FlowSchema, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowSchemaList. func (in *FlowSchemaList) DeepCopy() *FlowSchemaList { if in == nil { return nil } out := new(FlowSchemaList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *FlowSchemaList) 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 *FlowSchemaSpec) DeepCopyInto(out *FlowSchemaSpec) { *out = *in out.PriorityLevelConfiguration = in.PriorityLevelConfiguration if in.DistinguisherMethod != nil { in, out := &in.DistinguisherMethod, &out.DistinguisherMethod *out = new(FlowDistinguisherMethod) **out = **in } if in.Rules != nil { in, out := &in.Rules, &out.Rules *out = make([]PolicyRulesWithSubjects, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowSchemaSpec. func (in *FlowSchemaSpec) DeepCopy() *FlowSchemaSpec { if in == nil { return nil } out := new(FlowSchemaSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FlowSchemaStatus) DeepCopyInto(out *FlowSchemaStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]FlowSchemaCondition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowSchemaStatus. func (in *FlowSchemaStatus) DeepCopy() *FlowSchemaStatus { if in == nil { return nil } out := new(FlowSchemaStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *GroupSubject) DeepCopyInto(out *GroupSubject) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupSubject. func (in *GroupSubject) DeepCopy() *GroupSubject { if in == nil { return nil } out := new(GroupSubject) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *LimitResponse) DeepCopyInto(out *LimitResponse) { *out = *in if in.Queuing != nil { in, out := &in.Queuing, &out.Queuing *out = new(QueuingConfiguration) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LimitResponse. func (in *LimitResponse) DeepCopy() *LimitResponse { if in == nil { return nil } out := new(LimitResponse) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *LimitedPriorityLevelConfiguration) DeepCopyInto(out *LimitedPriorityLevelConfiguration) { *out = *in in.LimitResponse.DeepCopyInto(&out.LimitResponse) if in.LendablePercent != nil { in, out := &in.LendablePercent, &out.LendablePercent *out = new(int32) **out = **in } if in.BorrowingLimitPercent != nil { in, out := &in.BorrowingLimitPercent, &out.BorrowingLimitPercent *out = new(int32) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LimitedPriorityLevelConfiguration. func (in *LimitedPriorityLevelConfiguration) DeepCopy() *LimitedPriorityLevelConfiguration { if in == nil { return nil } out := new(LimitedPriorityLevelConfiguration) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NonResourcePolicyRule) DeepCopyInto(out *NonResourcePolicyRule) { *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 NonResourcePolicyRule. func (in *NonResourcePolicyRule) DeepCopy() *NonResourcePolicyRule { if in == nil { return nil } out := new(NonResourcePolicyRule) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PolicyRulesWithSubjects) DeepCopyInto(out *PolicyRulesWithSubjects) { *out = *in if in.Subjects != nil { in, out := &in.Subjects, &out.Subjects *out = make([]Subject, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.ResourceRules != nil { in, out := &in.ResourceRules, &out.ResourceRules *out = make([]ResourcePolicyRule, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.NonResourceRules != nil { in, out := &in.NonResourceRules, &out.NonResourceRules *out = make([]NonResourcePolicyRule, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRulesWithSubjects. func (in *PolicyRulesWithSubjects) DeepCopy() *PolicyRulesWithSubjects { if in == nil { return nil } out := new(PolicyRulesWithSubjects) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PriorityLevelConfiguration) DeepCopyInto(out *PriorityLevelConfiguration) { *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 PriorityLevelConfiguration. func (in *PriorityLevelConfiguration) DeepCopy() *PriorityLevelConfiguration { if in == nil { return nil } out := new(PriorityLevelConfiguration) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *PriorityLevelConfiguration) 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 *PriorityLevelConfigurationCondition) DeepCopyInto(out *PriorityLevelConfigurationCondition) { *out = *in in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationCondition. func (in *PriorityLevelConfigurationCondition) DeepCopy() *PriorityLevelConfigurationCondition { if in == nil { return nil } out := new(PriorityLevelConfigurationCondition) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PriorityLevelConfigurationList) DeepCopyInto(out *PriorityLevelConfigurationList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]PriorityLevelConfiguration, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationList. func (in *PriorityLevelConfigurationList) DeepCopy() *PriorityLevelConfigurationList { if in == nil { return nil } out := new(PriorityLevelConfigurationList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *PriorityLevelConfigurationList) 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 *PriorityLevelConfigurationReference) DeepCopyInto(out *PriorityLevelConfigurationReference) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationReference. func (in *PriorityLevelConfigurationReference) DeepCopy() *PriorityLevelConfigurationReference { if in == nil { return nil } out := new(PriorityLevelConfigurationReference) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PriorityLevelConfigurationSpec) DeepCopyInto(out *PriorityLevelConfigurationSpec) { *out = *in if in.Limited != nil { in, out := &in.Limited, &out.Limited *out = new(LimitedPriorityLevelConfiguration) (*in).DeepCopyInto(*out) } if in.Exempt != nil { in, out := &in.Exempt, &out.Exempt *out = new(ExemptPriorityLevelConfiguration) (*in).DeepCopyInto(*out) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationSpec. func (in *PriorityLevelConfigurationSpec) DeepCopy() *PriorityLevelConfigurationSpec { if in == nil { return nil } out := new(PriorityLevelConfigurationSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PriorityLevelConfigurationStatus) DeepCopyInto(out *PriorityLevelConfigurationStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]PriorityLevelConfigurationCondition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationStatus. func (in *PriorityLevelConfigurationStatus) DeepCopy() *PriorityLevelConfigurationStatus { if in == nil { return nil } out := new(PriorityLevelConfigurationStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *QueuingConfiguration) DeepCopyInto(out *QueuingConfiguration) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueuingConfiguration. func (in *QueuingConfiguration) DeepCopy() *QueuingConfiguration { if in == nil { return nil } out := new(QueuingConfiguration) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ResourcePolicyRule) DeepCopyInto(out *ResourcePolicyRule) { *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.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 ResourcePolicyRule. func (in *ResourcePolicyRule) DeepCopy() *ResourcePolicyRule { if in == nil { return nil } out := new(ResourcePolicyRule) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServiceAccountSubject) DeepCopyInto(out *ServiceAccountSubject) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountSubject. func (in *ServiceAccountSubject) DeepCopy() *ServiceAccountSubject { if in == nil { return nil } out := new(ServiceAccountSubject) 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 if in.User != nil { in, out := &in.User, &out.User *out = new(UserSubject) **out = **in } if in.Group != nil { in, out := &in.Group, &out.Group *out = new(GroupSubject) **out = **in } if in.ServiceAccount != nil { in, out := &in.ServiceAccount, &out.ServiceAccount *out = new(ServiceAccountSubject) **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 } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *UserSubject) DeepCopyInto(out *UserSubject) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSubject. func (in *UserSubject) DeepCopy() *UserSubject { if in == nil { return nil } out := new(UserSubject) in.DeepCopyInto(out) return out } golang-k8s-api-0.29.0/flowcontrol/v1beta2/zz_generated.prerelease-lifecycle.go000066400000000000000000000161721453636404600272540ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta2 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *FlowSchema) APILifecycleIntroduced() (major, minor int) { return 1, 23 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *FlowSchema) APILifecycleDeprecated() (major, minor int) { return 1, 26 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *FlowSchema) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "flowcontrol.apiserver.k8s.io", Version: "v1beta3", Kind: "FlowSchema"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *FlowSchema) APILifecycleRemoved() (major, minor int) { return 1, 29 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *FlowSchemaList) APILifecycleIntroduced() (major, minor int) { return 1, 23 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *FlowSchemaList) APILifecycleDeprecated() (major, minor int) { return 1, 26 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *FlowSchemaList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "flowcontrol.apiserver.k8s.io", Version: "v1beta3", Kind: "FlowSchemaList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *FlowSchemaList) APILifecycleRemoved() (major, minor int) { return 1, 29 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *PriorityLevelConfiguration) APILifecycleIntroduced() (major, minor int) { return 1, 23 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *PriorityLevelConfiguration) APILifecycleDeprecated() (major, minor int) { return 1, 26 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *PriorityLevelConfiguration) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "flowcontrol.apiserver.k8s.io", Version: "v1beta3", Kind: "PriorityLevelConfiguration"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *PriorityLevelConfiguration) APILifecycleRemoved() (major, minor int) { return 1, 29 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *PriorityLevelConfigurationList) APILifecycleIntroduced() (major, minor int) { return 1, 23 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *PriorityLevelConfigurationList) APILifecycleDeprecated() (major, minor int) { return 1, 26 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *PriorityLevelConfigurationList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "flowcontrol.apiserver.k8s.io", Version: "v1beta3", Kind: "PriorityLevelConfigurationList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *PriorityLevelConfigurationList) APILifecycleRemoved() (major, minor int) { return 1, 29 } golang-k8s-api-0.29.0/flowcontrol/v1beta3/000077500000000000000000000000001453636404600201535ustar00rootroot00000000000000golang-k8s-api-0.29.0/flowcontrol/v1beta3/doc.go000066400000000000000000000015741453636404600212560ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 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 // +k8s:prerelease-lifecycle-gen=true // +groupName=flowcontrol.apiserver.k8s.io // Package v1beta3 holds api types of version v1beta3 for group "flowcontrol.apiserver.k8s.io". package v1beta3 // import "k8s.io/api/flowcontrol/v1beta3" golang-k8s-api-0.29.0/flowcontrol/v1beta3/generated.pb.go000066400000000000000000004340661453636404600230550ustar00rootroot00000000000000/* 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/k8s.io/api/flowcontrol/v1beta3/generated.proto package v1beta3 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *ExemptPriorityLevelConfiguration) Reset() { *m = ExemptPriorityLevelConfiguration{} } func (*ExemptPriorityLevelConfiguration) ProtoMessage() {} func (*ExemptPriorityLevelConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{0} } func (m *ExemptPriorityLevelConfiguration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ExemptPriorityLevelConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ExemptPriorityLevelConfiguration) XXX_Merge(src proto.Message) { xxx_messageInfo_ExemptPriorityLevelConfiguration.Merge(m, src) } func (m *ExemptPriorityLevelConfiguration) XXX_Size() int { return m.Size() } func (m *ExemptPriorityLevelConfiguration) XXX_DiscardUnknown() { xxx_messageInfo_ExemptPriorityLevelConfiguration.DiscardUnknown(m) } var xxx_messageInfo_ExemptPriorityLevelConfiguration proto.InternalMessageInfo func (m *FlowDistinguisherMethod) Reset() { *m = FlowDistinguisherMethod{} } func (*FlowDistinguisherMethod) ProtoMessage() {} func (*FlowDistinguisherMethod) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{1} } func (m *FlowDistinguisherMethod) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowDistinguisherMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowDistinguisherMethod) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowDistinguisherMethod.Merge(m, src) } func (m *FlowDistinguisherMethod) XXX_Size() int { return m.Size() } func (m *FlowDistinguisherMethod) XXX_DiscardUnknown() { xxx_messageInfo_FlowDistinguisherMethod.DiscardUnknown(m) } var xxx_messageInfo_FlowDistinguisherMethod proto.InternalMessageInfo func (m *FlowSchema) Reset() { *m = FlowSchema{} } func (*FlowSchema) ProtoMessage() {} func (*FlowSchema) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{2} } func (m *FlowSchema) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchema) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchema.Merge(m, src) } func (m *FlowSchema) XXX_Size() int { return m.Size() } func (m *FlowSchema) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchema.DiscardUnknown(m) } var xxx_messageInfo_FlowSchema proto.InternalMessageInfo func (m *FlowSchemaCondition) Reset() { *m = FlowSchemaCondition{} } func (*FlowSchemaCondition) ProtoMessage() {} func (*FlowSchemaCondition) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{3} } func (m *FlowSchemaCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchemaCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchemaCondition) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchemaCondition.Merge(m, src) } func (m *FlowSchemaCondition) XXX_Size() int { return m.Size() } func (m *FlowSchemaCondition) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchemaCondition.DiscardUnknown(m) } var xxx_messageInfo_FlowSchemaCondition proto.InternalMessageInfo func (m *FlowSchemaList) Reset() { *m = FlowSchemaList{} } func (*FlowSchemaList) ProtoMessage() {} func (*FlowSchemaList) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{4} } func (m *FlowSchemaList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchemaList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchemaList) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchemaList.Merge(m, src) } func (m *FlowSchemaList) XXX_Size() int { return m.Size() } func (m *FlowSchemaList) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchemaList.DiscardUnknown(m) } var xxx_messageInfo_FlowSchemaList proto.InternalMessageInfo func (m *FlowSchemaSpec) Reset() { *m = FlowSchemaSpec{} } func (*FlowSchemaSpec) ProtoMessage() {} func (*FlowSchemaSpec) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{5} } func (m *FlowSchemaSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchemaSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchemaSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchemaSpec.Merge(m, src) } func (m *FlowSchemaSpec) XXX_Size() int { return m.Size() } func (m *FlowSchemaSpec) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchemaSpec.DiscardUnknown(m) } var xxx_messageInfo_FlowSchemaSpec proto.InternalMessageInfo func (m *FlowSchemaStatus) Reset() { *m = FlowSchemaStatus{} } func (*FlowSchemaStatus) ProtoMessage() {} func (*FlowSchemaStatus) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{6} } func (m *FlowSchemaStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *FlowSchemaStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *FlowSchemaStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_FlowSchemaStatus.Merge(m, src) } func (m *FlowSchemaStatus) XXX_Size() int { return m.Size() } func (m *FlowSchemaStatus) XXX_DiscardUnknown() { xxx_messageInfo_FlowSchemaStatus.DiscardUnknown(m) } var xxx_messageInfo_FlowSchemaStatus proto.InternalMessageInfo func (m *GroupSubject) Reset() { *m = GroupSubject{} } func (*GroupSubject) ProtoMessage() {} func (*GroupSubject) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{7} } func (m *GroupSubject) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *GroupSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *GroupSubject) XXX_Merge(src proto.Message) { xxx_messageInfo_GroupSubject.Merge(m, src) } func (m *GroupSubject) XXX_Size() int { return m.Size() } func (m *GroupSubject) XXX_DiscardUnknown() { xxx_messageInfo_GroupSubject.DiscardUnknown(m) } var xxx_messageInfo_GroupSubject proto.InternalMessageInfo func (m *LimitResponse) Reset() { *m = LimitResponse{} } func (*LimitResponse) ProtoMessage() {} func (*LimitResponse) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{8} } func (m *LimitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *LimitResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_LimitResponse.Merge(m, src) } func (m *LimitResponse) XXX_Size() int { return m.Size() } func (m *LimitResponse) XXX_DiscardUnknown() { xxx_messageInfo_LimitResponse.DiscardUnknown(m) } var xxx_messageInfo_LimitResponse proto.InternalMessageInfo func (m *LimitedPriorityLevelConfiguration) Reset() { *m = LimitedPriorityLevelConfiguration{} } func (*LimitedPriorityLevelConfiguration) ProtoMessage() {} func (*LimitedPriorityLevelConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{9} } func (m *LimitedPriorityLevelConfiguration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LimitedPriorityLevelConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *LimitedPriorityLevelConfiguration) XXX_Merge(src proto.Message) { xxx_messageInfo_LimitedPriorityLevelConfiguration.Merge(m, src) } func (m *LimitedPriorityLevelConfiguration) XXX_Size() int { return m.Size() } func (m *LimitedPriorityLevelConfiguration) XXX_DiscardUnknown() { xxx_messageInfo_LimitedPriorityLevelConfiguration.DiscardUnknown(m) } var xxx_messageInfo_LimitedPriorityLevelConfiguration proto.InternalMessageInfo func (m *NonResourcePolicyRule) Reset() { *m = NonResourcePolicyRule{} } func (*NonResourcePolicyRule) ProtoMessage() {} func (*NonResourcePolicyRule) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{10} } func (m *NonResourcePolicyRule) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *NonResourcePolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *NonResourcePolicyRule) XXX_Merge(src proto.Message) { xxx_messageInfo_NonResourcePolicyRule.Merge(m, src) } func (m *NonResourcePolicyRule) XXX_Size() int { return m.Size() } func (m *NonResourcePolicyRule) XXX_DiscardUnknown() { xxx_messageInfo_NonResourcePolicyRule.DiscardUnknown(m) } var xxx_messageInfo_NonResourcePolicyRule proto.InternalMessageInfo func (m *PolicyRulesWithSubjects) Reset() { *m = PolicyRulesWithSubjects{} } func (*PolicyRulesWithSubjects) ProtoMessage() {} func (*PolicyRulesWithSubjects) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{11} } func (m *PolicyRulesWithSubjects) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PolicyRulesWithSubjects) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PolicyRulesWithSubjects) XXX_Merge(src proto.Message) { xxx_messageInfo_PolicyRulesWithSubjects.Merge(m, src) } func (m *PolicyRulesWithSubjects) XXX_Size() int { return m.Size() } func (m *PolicyRulesWithSubjects) XXX_DiscardUnknown() { xxx_messageInfo_PolicyRulesWithSubjects.DiscardUnknown(m) } var xxx_messageInfo_PolicyRulesWithSubjects proto.InternalMessageInfo func (m *PriorityLevelConfiguration) Reset() { *m = PriorityLevelConfiguration{} } func (*PriorityLevelConfiguration) ProtoMessage() {} func (*PriorityLevelConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{12} } func (m *PriorityLevelConfiguration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfiguration) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfiguration.Merge(m, src) } func (m *PriorityLevelConfiguration) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfiguration) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfiguration.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfiguration proto.InternalMessageInfo func (m *PriorityLevelConfigurationCondition) Reset() { *m = PriorityLevelConfigurationCondition{} } func (*PriorityLevelConfigurationCondition) ProtoMessage() {} func (*PriorityLevelConfigurationCondition) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{13} } func (m *PriorityLevelConfigurationCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationCondition) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationCondition.Merge(m, src) } func (m *PriorityLevelConfigurationCondition) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationCondition) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationCondition.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationCondition proto.InternalMessageInfo func (m *PriorityLevelConfigurationList) Reset() { *m = PriorityLevelConfigurationList{} } func (*PriorityLevelConfigurationList) ProtoMessage() {} func (*PriorityLevelConfigurationList) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{14} } func (m *PriorityLevelConfigurationList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationList) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationList.Merge(m, src) } func (m *PriorityLevelConfigurationList) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationList) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationList.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationList proto.InternalMessageInfo func (m *PriorityLevelConfigurationReference) Reset() { *m = PriorityLevelConfigurationReference{} } func (*PriorityLevelConfigurationReference) ProtoMessage() {} func (*PriorityLevelConfigurationReference) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{15} } func (m *PriorityLevelConfigurationReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationReference) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationReference.Merge(m, src) } func (m *PriorityLevelConfigurationReference) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationReference) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationReference.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationReference proto.InternalMessageInfo func (m *PriorityLevelConfigurationSpec) Reset() { *m = PriorityLevelConfigurationSpec{} } func (*PriorityLevelConfigurationSpec) ProtoMessage() {} func (*PriorityLevelConfigurationSpec) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{16} } func (m *PriorityLevelConfigurationSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationSpec.Merge(m, src) } func (m *PriorityLevelConfigurationSpec) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationSpec) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationSpec.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationSpec proto.InternalMessageInfo func (m *PriorityLevelConfigurationStatus) Reset() { *m = PriorityLevelConfigurationStatus{} } func (*PriorityLevelConfigurationStatus) ProtoMessage() {} func (*PriorityLevelConfigurationStatus) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{17} } func (m *PriorityLevelConfigurationStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PriorityLevelConfigurationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PriorityLevelConfigurationStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_PriorityLevelConfigurationStatus.Merge(m, src) } func (m *PriorityLevelConfigurationStatus) XXX_Size() int { return m.Size() } func (m *PriorityLevelConfigurationStatus) XXX_DiscardUnknown() { xxx_messageInfo_PriorityLevelConfigurationStatus.DiscardUnknown(m) } var xxx_messageInfo_PriorityLevelConfigurationStatus proto.InternalMessageInfo func (m *QueuingConfiguration) Reset() { *m = QueuingConfiguration{} } func (*QueuingConfiguration) ProtoMessage() {} func (*QueuingConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{18} } func (m *QueuingConfiguration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueuingConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *QueuingConfiguration) XXX_Merge(src proto.Message) { xxx_messageInfo_QueuingConfiguration.Merge(m, src) } func (m *QueuingConfiguration) XXX_Size() int { return m.Size() } func (m *QueuingConfiguration) XXX_DiscardUnknown() { xxx_messageInfo_QueuingConfiguration.DiscardUnknown(m) } var xxx_messageInfo_QueuingConfiguration proto.InternalMessageInfo func (m *ResourcePolicyRule) Reset() { *m = ResourcePolicyRule{} } func (*ResourcePolicyRule) ProtoMessage() {} func (*ResourcePolicyRule) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{19} } func (m *ResourcePolicyRule) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ResourcePolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ResourcePolicyRule) XXX_Merge(src proto.Message) { xxx_messageInfo_ResourcePolicyRule.Merge(m, src) } func (m *ResourcePolicyRule) XXX_Size() int { return m.Size() } func (m *ResourcePolicyRule) XXX_DiscardUnknown() { xxx_messageInfo_ResourcePolicyRule.DiscardUnknown(m) } var xxx_messageInfo_ResourcePolicyRule proto.InternalMessageInfo func (m *ServiceAccountSubject) Reset() { *m = ServiceAccountSubject{} } func (*ServiceAccountSubject) ProtoMessage() {} func (*ServiceAccountSubject) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{20} } func (m *ServiceAccountSubject) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ServiceAccountSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ServiceAccountSubject) XXX_Merge(src proto.Message) { xxx_messageInfo_ServiceAccountSubject.Merge(m, src) } func (m *ServiceAccountSubject) XXX_Size() int { return m.Size() } func (m *ServiceAccountSubject) XXX_DiscardUnknown() { xxx_messageInfo_ServiceAccountSubject.DiscardUnknown(m) } var xxx_messageInfo_ServiceAccountSubject proto.InternalMessageInfo func (m *Subject) Reset() { *m = Subject{} } func (*Subject) ProtoMessage() {} func (*Subject) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{21} } 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 (m *UserSubject) Reset() { *m = UserSubject{} } func (*UserSubject) ProtoMessage() {} func (*UserSubject) Descriptor() ([]byte, []int) { return fileDescriptor_803504887082f044, []int{22} } func (m *UserSubject) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *UserSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *UserSubject) XXX_Merge(src proto.Message) { xxx_messageInfo_UserSubject.Merge(m, src) } func (m *UserSubject) XXX_Size() int { return m.Size() } func (m *UserSubject) XXX_DiscardUnknown() { xxx_messageInfo_UserSubject.DiscardUnknown(m) } var xxx_messageInfo_UserSubject proto.InternalMessageInfo func init() { proto.RegisterType((*ExemptPriorityLevelConfiguration)(nil), "k8s.io.api.flowcontrol.v1beta3.ExemptPriorityLevelConfiguration") proto.RegisterType((*FlowDistinguisherMethod)(nil), "k8s.io.api.flowcontrol.v1beta3.FlowDistinguisherMethod") proto.RegisterType((*FlowSchema)(nil), "k8s.io.api.flowcontrol.v1beta3.FlowSchema") proto.RegisterType((*FlowSchemaCondition)(nil), "k8s.io.api.flowcontrol.v1beta3.FlowSchemaCondition") proto.RegisterType((*FlowSchemaList)(nil), "k8s.io.api.flowcontrol.v1beta3.FlowSchemaList") proto.RegisterType((*FlowSchemaSpec)(nil), "k8s.io.api.flowcontrol.v1beta3.FlowSchemaSpec") proto.RegisterType((*FlowSchemaStatus)(nil), "k8s.io.api.flowcontrol.v1beta3.FlowSchemaStatus") proto.RegisterType((*GroupSubject)(nil), "k8s.io.api.flowcontrol.v1beta3.GroupSubject") proto.RegisterType((*LimitResponse)(nil), "k8s.io.api.flowcontrol.v1beta3.LimitResponse") proto.RegisterType((*LimitedPriorityLevelConfiguration)(nil), "k8s.io.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration") proto.RegisterType((*NonResourcePolicyRule)(nil), "k8s.io.api.flowcontrol.v1beta3.NonResourcePolicyRule") proto.RegisterType((*PolicyRulesWithSubjects)(nil), "k8s.io.api.flowcontrol.v1beta3.PolicyRulesWithSubjects") proto.RegisterType((*PriorityLevelConfiguration)(nil), "k8s.io.api.flowcontrol.v1beta3.PriorityLevelConfiguration") proto.RegisterType((*PriorityLevelConfigurationCondition)(nil), "k8s.io.api.flowcontrol.v1beta3.PriorityLevelConfigurationCondition") proto.RegisterType((*PriorityLevelConfigurationList)(nil), "k8s.io.api.flowcontrol.v1beta3.PriorityLevelConfigurationList") proto.RegisterType((*PriorityLevelConfigurationReference)(nil), "k8s.io.api.flowcontrol.v1beta3.PriorityLevelConfigurationReference") proto.RegisterType((*PriorityLevelConfigurationSpec)(nil), "k8s.io.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec") proto.RegisterType((*PriorityLevelConfigurationStatus)(nil), "k8s.io.api.flowcontrol.v1beta3.PriorityLevelConfigurationStatus") proto.RegisterType((*QueuingConfiguration)(nil), "k8s.io.api.flowcontrol.v1beta3.QueuingConfiguration") proto.RegisterType((*ResourcePolicyRule)(nil), "k8s.io.api.flowcontrol.v1beta3.ResourcePolicyRule") proto.RegisterType((*ServiceAccountSubject)(nil), "k8s.io.api.flowcontrol.v1beta3.ServiceAccountSubject") proto.RegisterType((*Subject)(nil), "k8s.io.api.flowcontrol.v1beta3.Subject") proto.RegisterType((*UserSubject)(nil), "k8s.io.api.flowcontrol.v1beta3.UserSubject") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/flowcontrol/v1beta3/generated.proto", fileDescriptor_803504887082f044) } var fileDescriptor_803504887082f044 = []byte{ // 1604 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0xcb, 0x73, 0xdb, 0x54, 0x17, 0x8f, 0x1c, 0x3b, 0x89, 0x4f, 0x9e, 0xbd, 0x69, 0x26, 0xfe, 0xd2, 0x6f, 0xec, 0x54, 0xdf, 0xcc, 0x57, 0xa0, 0xad, 0xdc, 0x27, 0x2d, 0x30, 0x3c, 0xaa, 0xb4, 0x94, 0xd2, 0x24, 0x4d, 0x6f, 0x5a, 0xe8, 0x94, 0xce, 0x50, 0x59, 0xbe, 0xb1, 0xd5, 0x58, 0x8f, 0xea, 0x4a, 0x0e, 0xa1, 0x1b, 0x86, 0xbf, 0x80, 0x35, 0x2c, 0x59, 0xb0, 0x62, 0xc3, 0x96, 0x05, 0x4b, 0x3a, 0xac, 0xba, 0xec, 0xca, 0x50, 0xb3, 0xe2, 0x3f, 0x80, 0xce, 0x30, 0xc3, 0xdc, 0xab, 0x2b, 0xc9, 0xf2, 0x4b, 0x9e, 0x74, 0xa6, 0x2b, 0x76, 0xd1, 0x79, 0xfc, 0xce, 0xbd, 0xe7, 0x9e, 0xc7, 0xcf, 0x81, 0xab, 0xbb, 0x17, 0xa9, 0x62, 0xd8, 0xe5, 0x5d, 0xbf, 0x42, 0x5c, 0x8b, 0x78, 0x84, 0x96, 0x9b, 0xc4, 0xaa, 0xda, 0x6e, 0x59, 0x28, 0x34, 0xc7, 0x28, 0xef, 0x34, 0xec, 0x3d, 0xdd, 0xb6, 0x3c, 0xd7, 0x6e, 0x94, 0x9b, 0xa7, 0x2b, 0xc4, 0xd3, 0xce, 0x96, 0x6b, 0xc4, 0x22, 0xae, 0xe6, 0x91, 0xaa, 0xe2, 0xb8, 0xb6, 0x67, 0xa3, 0x62, 0x60, 0xaf, 0x68, 0x8e, 0xa1, 0x74, 0xd8, 0x2b, 0xc2, 0x7e, 0xe5, 0x64, 0xcd, 0xf0, 0xea, 0x7e, 0x45, 0xd1, 0x6d, 0xb3, 0x5c, 0xb3, 0x6b, 0x76, 0x99, 0xbb, 0x55, 0xfc, 0x1d, 0xfe, 0xc5, 0x3f, 0xf8, 0x5f, 0x01, 0xdc, 0xca, 0xb9, 0x38, 0xbc, 0xa9, 0xe9, 0x75, 0xc3, 0x22, 0xee, 0x7e, 0xd9, 0xd9, 0xad, 0x31, 0x01, 0x2d, 0x9b, 0xc4, 0xd3, 0xca, 0xcd, 0xd3, 0xdd, 0x87, 0x58, 0x29, 0x0f, 0xf2, 0x72, 0x7d, 0xcb, 0x33, 0x4c, 0xd2, 0xe3, 0xf0, 0x7a, 0x9a, 0x03, 0xd5, 0xeb, 0xc4, 0xd4, 0xba, 0xfd, 0xe4, 0x1f, 0x25, 0x58, 0xbd, 0xf2, 0x19, 0x31, 0x1d, 0x6f, 0xcb, 0x35, 0x6c, 0xd7, 0xf0, 0xf6, 0xd7, 0x49, 0x93, 0x34, 0xd6, 0x6c, 0x6b, 0xc7, 0xa8, 0xf9, 0xae, 0xe6, 0x19, 0xb6, 0x85, 0xee, 0x40, 0xc1, 0xb2, 0x4d, 0xc3, 0xd2, 0x98, 0x5c, 0xf7, 0x5d, 0x97, 0x58, 0xfa, 0xfe, 0x76, 0x5d, 0x73, 0x09, 0x2d, 0x48, 0xab, 0xd2, 0x2b, 0x39, 0xf5, 0xbf, 0xed, 0x56, 0xa9, 0xb0, 0x39, 0xc0, 0x06, 0x0f, 0xf4, 0x46, 0x6f, 0xc3, 0x7c, 0x83, 0x58, 0x55, 0xad, 0xd2, 0x20, 0x5b, 0xc4, 0xd5, 0x89, 0xe5, 0x15, 0x32, 0x1c, 0x70, 0xb1, 0xdd, 0x2a, 0xcd, 0xaf, 0x27, 0x55, 0xb8, 0xdb, 0x56, 0xbe, 0x0b, 0xcb, 0xef, 0x37, 0xec, 0xbd, 0xcb, 0x06, 0xf5, 0x0c, 0xab, 0xe6, 0x1b, 0xb4, 0x4e, 0xdc, 0x0d, 0xe2, 0xd5, 0xed, 0x2a, 0x7a, 0x17, 0xb2, 0xde, 0xbe, 0x43, 0xf8, 0xf9, 0xf2, 0xea, 0xf1, 0xc7, 0xad, 0xd2, 0x58, 0xbb, 0x55, 0xca, 0xde, 0xda, 0x77, 0xc8, 0xf3, 0x56, 0xe9, 0xc8, 0x00, 0x37, 0xa6, 0xc6, 0xdc, 0x51, 0xfe, 0x3a, 0x03, 0xc0, 0xac, 0xb6, 0x79, 0xe2, 0xd0, 0x7d, 0x98, 0x62, 0x8f, 0x55, 0xd5, 0x3c, 0x8d, 0x63, 0x4e, 0x9f, 0x39, 0xa5, 0xc4, 0x95, 0x12, 0xe5, 0x5c, 0x71, 0x76, 0x6b, 0x4c, 0x40, 0x15, 0x66, 0xad, 0x34, 0x4f, 0x2b, 0x37, 0x2a, 0x0f, 0x88, 0xee, 0x6d, 0x10, 0x4f, 0x53, 0x91, 0x38, 0x05, 0xc4, 0x32, 0x1c, 0xa1, 0xa2, 0x2d, 0xc8, 0x52, 0x87, 0xe8, 0x3c, 0x01, 0xd3, 0x67, 0x14, 0x65, 0x78, 0x1d, 0x2a, 0xf1, 0xd9, 0xb6, 0x1d, 0xa2, 0xab, 0x33, 0xe1, 0x0d, 0xd9, 0x17, 0xe6, 0x48, 0xe8, 0x0e, 0x4c, 0x50, 0x4f, 0xf3, 0x7c, 0x5a, 0x18, 0xef, 0x39, 0x71, 0x1a, 0x26, 0xf7, 0x53, 0xe7, 0x04, 0xea, 0x44, 0xf0, 0x8d, 0x05, 0x9e, 0xfc, 0x34, 0x03, 0x8b, 0xb1, 0xf1, 0x9a, 0x6d, 0x55, 0x0d, 0x5e, 0x29, 0x6f, 0x25, 0xb2, 0x7e, 0xac, 0x2b, 0xeb, 0xcb, 0x7d, 0x5c, 0xe2, 0x8c, 0xa3, 0x37, 0xa2, 0xe3, 0x66, 0xb8, 0xfb, 0xd1, 0x64, 0xf0, 0xe7, 0xad, 0xd2, 0x7c, 0xe4, 0x96, 0x3c, 0x0f, 0x6a, 0x02, 0x6a, 0x68, 0xd4, 0xbb, 0xe5, 0x6a, 0x16, 0x0d, 0x60, 0x0d, 0x93, 0x88, 0x5b, 0xbf, 0x36, 0xda, 0x3b, 0x31, 0x0f, 0x75, 0x45, 0x84, 0x44, 0xeb, 0x3d, 0x68, 0xb8, 0x4f, 0x04, 0xf4, 0x7f, 0x98, 0x70, 0x89, 0x46, 0x6d, 0xab, 0x90, 0xe5, 0x47, 0x8e, 0xf2, 0x85, 0xb9, 0x14, 0x0b, 0x2d, 0x7a, 0x15, 0x26, 0x4d, 0x42, 0xa9, 0x56, 0x23, 0x85, 0x1c, 0x37, 0x9c, 0x17, 0x86, 0x93, 0x1b, 0x81, 0x18, 0x87, 0x7a, 0xf9, 0x27, 0x09, 0xe6, 0xe2, 0x3c, 0xad, 0x1b, 0xd4, 0x43, 0xf7, 0x7a, 0x6a, 0x4f, 0x19, 0xed, 0x4e, 0xcc, 0x9b, 0x57, 0xde, 0x82, 0x08, 0x37, 0x15, 0x4a, 0x3a, 0xea, 0xee, 0x06, 0xe4, 0x0c, 0x8f, 0x98, 0x2c, 0xeb, 0xe3, 0x5d, 0xe9, 0x4a, 0x29, 0x12, 0x75, 0x56, 0xc0, 0xe6, 0xae, 0x31, 0x00, 0x1c, 0xe0, 0xc8, 0x7f, 0x8c, 0x77, 0xde, 0x80, 0xd5, 0x23, 0xfa, 0x4e, 0x82, 0x15, 0x67, 0xe0, 0x80, 0x11, 0x97, 0x5a, 0x4b, 0x8b, 0x3c, 0x78, 0x44, 0x61, 0xb2, 0x43, 0xd8, 0x5c, 0x21, 0xaa, 0x2c, 0x8e, 0xb4, 0x32, 0xc4, 0x78, 0xc8, 0x51, 0xd0, 0x87, 0x80, 0x4c, 0xcd, 0x63, 0x19, 0xad, 0x6d, 0xb9, 0x44, 0x27, 0x55, 0x86, 0x2a, 0x86, 0x52, 0x54, 0x1d, 0x1b, 0x3d, 0x16, 0xb8, 0x8f, 0x17, 0xfa, 0x52, 0x82, 0xc5, 0x6a, 0xef, 0x90, 0x11, 0x75, 0x79, 0x61, 0x94, 0x44, 0xf7, 0x99, 0x51, 0xea, 0x72, 0xbb, 0x55, 0x5a, 0xec, 0xa3, 0xc0, 0xfd, 0x82, 0xa1, 0x7b, 0x90, 0x73, 0xfd, 0x06, 0xa1, 0x85, 0x2c, 0x7f, 0xde, 0xd4, 0xa8, 0x5b, 0x76, 0xc3, 0xd0, 0xf7, 0x31, 0x73, 0xf9, 0xd8, 0xf0, 0xea, 0xdb, 0x3e, 0x9f, 0x55, 0x34, 0x7e, 0x6b, 0xae, 0xc2, 0x01, 0xa8, 0xfc, 0x08, 0x16, 0xba, 0x87, 0x06, 0xaa, 0x01, 0xe8, 0x61, 0x9f, 0xb2, 0x05, 0xc1, 0xc2, 0x9e, 0x1d, 0xbd, 0xaa, 0xa2, 0x1e, 0x8f, 0xe7, 0x65, 0x24, 0xa2, 0xb8, 0x03, 0x5a, 0x3e, 0x05, 0x33, 0x57, 0x5d, 0xdb, 0x77, 0xc4, 0x19, 0xd1, 0x2a, 0x64, 0x2d, 0xcd, 0x0c, 0xa7, 0x4f, 0x34, 0x11, 0x37, 0x35, 0x93, 0x60, 0xae, 0x91, 0xbf, 0x95, 0x60, 0x76, 0xdd, 0x30, 0x0d, 0x0f, 0x13, 0xea, 0xd8, 0x16, 0x25, 0xe8, 0x7c, 0x62, 0x62, 0x1d, 0xed, 0x9a, 0x58, 0x87, 0x12, 0xc6, 0x1d, 0xb3, 0xea, 0x13, 0x98, 0x7c, 0xe8, 0x13, 0xdf, 0xb0, 0x6a, 0x62, 0x5e, 0x9f, 0x4b, 0xbb, 0xe0, 0xcd, 0xc0, 0x3c, 0x51, 0x6d, 0xea, 0x34, 0x1b, 0x01, 0x42, 0x83, 0x43, 0x44, 0xf9, 0xef, 0x0c, 0x1c, 0xe5, 0x81, 0x49, 0x75, 0xc8, 0x56, 0xbe, 0x97, 0xba, 0x95, 0x57, 0xc5, 0x6d, 0x0e, 0xb2, 0x99, 0x1f, 0xc0, 0x6c, 0xa3, 0xf3, 0xee, 0xe2, 0x9a, 0x27, 0xd3, 0xae, 0x99, 0x48, 0x98, 0xba, 0x24, 0x4e, 0x90, 0x4c, 0x3a, 0x4e, 0x42, 0xf7, 0x63, 0x01, 0xe3, 0xa3, 0xb3, 0x00, 0x74, 0x03, 0x96, 0x2a, 0xb6, 0xeb, 0xda, 0x7b, 0x86, 0x55, 0xe3, 0x71, 0x42, 0x90, 0x2c, 0x07, 0xf9, 0x4f, 0xbb, 0x55, 0x5a, 0x52, 0xfb, 0x19, 0xe0, 0xfe, 0x7e, 0xf2, 0x1e, 0x2c, 0x6d, 0xb2, 0x99, 0x42, 0x6d, 0xdf, 0xd5, 0x49, 0xdc, 0x10, 0xa8, 0x04, 0xb9, 0x26, 0x71, 0x2b, 0x41, 0x51, 0xe7, 0xd5, 0x3c, 0x6b, 0x87, 0x8f, 0x98, 0x00, 0x07, 0x72, 0x76, 0x13, 0x2b, 0xf6, 0xbc, 0x8d, 0xd7, 0x69, 0x61, 0x82, 0x9b, 0xf2, 0x9b, 0x6c, 0x26, 0x55, 0xb8, 0xdb, 0x56, 0x6e, 0x65, 0x60, 0x79, 0x40, 0xff, 0xa1, 0xdb, 0x30, 0x45, 0xc5, 0xdf, 0xa2, 0xa7, 0x8e, 0xa5, 0xbd, 0x85, 0xf0, 0x8d, 0xa7, 0x7f, 0x08, 0x86, 0x23, 0x28, 0x64, 0xc3, 0xac, 0x2b, 0x8e, 0xc0, 0x63, 0x8a, 0x2d, 0x70, 0x26, 0x0d, 0xbb, 0x37, 0x3b, 0xf1, 0x63, 0xe3, 0x4e, 0x40, 0x9c, 0xc4, 0x47, 0x8f, 0x60, 0xa1, 0xe3, 0xda, 0x41, 0xcc, 0x71, 0x1e, 0xf3, 0x7c, 0x5a, 0xcc, 0xbe, 0x8f, 0xa2, 0x16, 0x44, 0xd8, 0x85, 0xcd, 0x2e, 0x58, 0xdc, 0x13, 0x48, 0xfe, 0x25, 0x03, 0x43, 0x16, 0xc3, 0x4b, 0x20, 0x79, 0xf7, 0x13, 0x24, 0xef, 0x9d, 0x83, 0x6f, 0xbc, 0x81, 0xa4, 0xaf, 0xde, 0x45, 0xfa, 0xde, 0x7b, 0x81, 0x18, 0xc3, 0x49, 0xe0, 0x9f, 0x19, 0xf8, 0xdf, 0x60, 0xe7, 0x98, 0x14, 0x5e, 0x4f, 0x8c, 0xd8, 0x0b, 0x5d, 0x23, 0xf6, 0xd8, 0x08, 0x10, 0xff, 0x92, 0xc4, 0x2e, 0x92, 0xf8, 0xab, 0x04, 0xc5, 0xc1, 0x79, 0x7b, 0x09, 0xa4, 0xf1, 0xd3, 0x24, 0x69, 0x7c, 0xf3, 0xe0, 0x45, 0x36, 0x80, 0x44, 0x5e, 0x1d, 0x56, 0x5b, 0x11, 0xdd, 0x1b, 0x61, 0xe5, 0x7f, 0x9f, 0x19, 0x96, 0x2a, 0xce, 0x4e, 0x53, 0x7e, 0xb5, 0x24, 0xbc, 0xaf, 0x58, 0x6c, 0xf5, 0x98, 0x6c, 0x7b, 0x04, 0x05, 0x59, 0x87, 0xc9, 0x46, 0xb0, 0xab, 0x45, 0x53, 0x5f, 0x1a, 0x69, 0x45, 0x0e, 0x5b, 0xed, 0x01, 0x2d, 0x10, 0x66, 0x38, 0x84, 0x47, 0x55, 0x98, 0x20, 0xfc, 0xa7, 0xfa, 0xa8, 0x9d, 0x9d, 0xf6, 0xc3, 0x5e, 0x05, 0x56, 0x85, 0x81, 0x15, 0x16, 0xd8, 0xf2, 0x37, 0x12, 0xac, 0xa6, 0x8d, 0x04, 0xb4, 0xd7, 0x87, 0xe2, 0xbd, 0x00, 0x7d, 0x1f, 0x9d, 0xf2, 0xfd, 0x20, 0xc1, 0xe1, 0x7e, 0x4c, 0x8a, 0x35, 0x19, 0xa3, 0x4f, 0x11, 0xf7, 0x89, 0x9a, 0xec, 0x26, 0x97, 0x62, 0xa1, 0x45, 0x27, 0x60, 0xaa, 0xae, 0x59, 0xd5, 0x6d, 0xe3, 0xf3, 0x90, 0xd5, 0x47, 0x65, 0xfe, 0x81, 0x90, 0xe3, 0xc8, 0x02, 0x5d, 0x86, 0x05, 0xee, 0xb7, 0x4e, 0xac, 0x9a, 0x57, 0xe7, 0x2f, 0x22, 0xa8, 0x49, 0xb4, 0x75, 0x6e, 0x76, 0xe9, 0x71, 0x8f, 0x87, 0xfc, 0x97, 0x04, 0xe8, 0x20, 0x6c, 0xe2, 0x38, 0xe4, 0x35, 0xc7, 0xe0, 0x14, 0x37, 0x68, 0xb4, 0xbc, 0x3a, 0xdb, 0x6e, 0x95, 0xf2, 0x97, 0xb6, 0xae, 0x05, 0x42, 0x1c, 0xeb, 0x99, 0x71, 0xb8, 0x68, 0x83, 0x85, 0x2a, 0x8c, 0xc3, 0xc0, 0x14, 0xc7, 0x7a, 0x74, 0x11, 0x66, 0xf4, 0x86, 0x4f, 0x3d, 0xe2, 0x6e, 0xeb, 0xb6, 0x43, 0xf8, 0x60, 0x9a, 0x52, 0x0f, 0x8b, 0x3b, 0xcd, 0xac, 0x75, 0xe8, 0x70, 0xc2, 0x12, 0x29, 0x00, 0xac, 0xad, 0xa8, 0xa3, 0xb1, 0x38, 0x39, 0x1e, 0x67, 0x8e, 0x3d, 0xd8, 0x66, 0x24, 0xc5, 0x1d, 0x16, 0xf2, 0x03, 0x58, 0xda, 0x26, 0x6e, 0xd3, 0xd0, 0xc9, 0x25, 0x5d, 0xb7, 0x7d, 0xcb, 0x0b, 0xc9, 0x7a, 0x19, 0xf2, 0x91, 0x99, 0xe8, 0xbc, 0x43, 0x22, 0x7e, 0x3e, 0xc2, 0xc2, 0xb1, 0x4d, 0xd4, 0xea, 0x99, 0x81, 0xad, 0xfe, 0x73, 0x06, 0x26, 0x63, 0xf8, 0xec, 0xae, 0x61, 0x55, 0x05, 0xf2, 0x91, 0xd0, 0xfa, 0xba, 0x61, 0x55, 0x9f, 0xb7, 0x4a, 0xd3, 0xc2, 0x8c, 0x7d, 0x62, 0x6e, 0x88, 0xae, 0x41, 0xd6, 0xa7, 0xc4, 0x15, 0x4d, 0x7c, 0x3c, 0xad, 0x98, 0x6f, 0x53, 0xe2, 0x86, 0xfc, 0x6a, 0x8a, 0x21, 0x33, 0x01, 0xe6, 0x10, 0x68, 0x03, 0x72, 0x35, 0xf6, 0x28, 0xa2, 0x4f, 0x4f, 0xa4, 0x61, 0x75, 0xfe, 0x88, 0x09, 0xca, 0x80, 0x4b, 0x70, 0x80, 0x82, 0x1e, 0xc2, 0x1c, 0x4d, 0xa4, 0x90, 0x3f, 0xd7, 0x08, 0x7c, 0xa9, 0x6f, 0xe2, 0x55, 0xd4, 0x6e, 0x95, 0xe6, 0x92, 0x2a, 0xdc, 0x15, 0x40, 0x2e, 0xc3, 0x74, 0xc7, 0x05, 0xd3, 0xa7, 0xac, 0x7a, 0xf9, 0xf1, 0xb3, 0xe2, 0xd8, 0x93, 0x67, 0xc5, 0xb1, 0xa7, 0xcf, 0x8a, 0x63, 0x5f, 0xb4, 0x8b, 0xd2, 0xe3, 0x76, 0x51, 0x7a, 0xd2, 0x2e, 0x4a, 0x4f, 0xdb, 0x45, 0xe9, 0xb7, 0x76, 0x51, 0xfa, 0xea, 0xf7, 0xe2, 0xd8, 0xdd, 0xe2, 0xf0, 0xff, 0xc5, 0xfe, 0x13, 0x00, 0x00, 0xff, 0xff, 0x1d, 0xc5, 0x22, 0x46, 0xc5, 0x15, 0x00, 0x00, } func (m *ExemptPriorityLevelConfiguration) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ExemptPriorityLevelConfiguration) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ExemptPriorityLevelConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.LendablePercent != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.LendablePercent)) i-- dAtA[i] = 0x10 } if m.NominalConcurrencyShares != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.NominalConcurrencyShares)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *FlowDistinguisherMethod) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowDistinguisherMethod) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowDistinguisherMethod) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l 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 *FlowSchema) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchema) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchema) 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 *FlowSchemaCondition) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchemaCondition) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchemaCondition) 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 *FlowSchemaList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchemaList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchemaList) 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 *FlowSchemaSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchemaSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchemaSpec) 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] = 0x22 } } if m.DistinguisherMethod != nil { { size, err := m.DistinguisherMethod.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } i = encodeVarintGenerated(dAtA, i, uint64(m.MatchingPrecedence)) i-- dAtA[i] = 0x10 { size, err := m.PriorityLevelConfiguration.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *FlowSchemaStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FlowSchemaStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *FlowSchemaStatus) 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] = 0xa } } return len(dAtA) - i, nil } func (m *GroupSubject) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *GroupSubject) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *GroupSubject) 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 *LimitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *LimitResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LimitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Queuing != nil { { size, err := m.Queuing.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 *LimitedPriorityLevelConfiguration) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *LimitedPriorityLevelConfiguration) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LimitedPriorityLevelConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.BorrowingLimitPercent != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.BorrowingLimitPercent)) i-- dAtA[i] = 0x20 } if m.LendablePercent != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.LendablePercent)) i-- dAtA[i] = 0x18 } { size, err := m.LimitResponse.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.NominalConcurrencyShares)) i-- dAtA[i] = 0x8 return len(dAtA) - i, nil } func (m *NonResourcePolicyRule) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *NonResourcePolicyRule) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *NonResourcePolicyRule) 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.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 *PolicyRulesWithSubjects) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PolicyRulesWithSubjects) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PolicyRulesWithSubjects) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l 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] = 0x1a } } 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] = 0x12 } } 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] = 0xa } } return len(dAtA) - i, nil } func (m *PriorityLevelConfiguration) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfiguration) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfiguration) 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 *PriorityLevelConfigurationCondition) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationCondition) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationCondition) 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 *PriorityLevelConfigurationList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationList) 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 *PriorityLevelConfigurationReference) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationReference) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationReference) 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 *PriorityLevelConfigurationSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Exempt != nil { { size, err := m.Exempt.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } if m.Limited != nil { { size, err := m.Limited.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 *PriorityLevelConfigurationStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityLevelConfigurationStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PriorityLevelConfigurationStatus) 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] = 0xa } } return len(dAtA) - i, nil } func (m *QueuingConfiguration) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueuingConfiguration) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueuingConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i = encodeVarintGenerated(dAtA, i, uint64(m.QueueLengthLimit)) i-- dAtA[i] = 0x18 i = encodeVarintGenerated(dAtA, i, uint64(m.HandSize)) i-- dAtA[i] = 0x10 i = encodeVarintGenerated(dAtA, i, uint64(m.Queues)) i-- dAtA[i] = 0x8 return len(dAtA) - i, nil } func (m *ResourcePolicyRule) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ResourcePolicyRule) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ResourcePolicyRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l 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] = 0x2a } } i-- if m.ClusterScope { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x20 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 *ServiceAccountSubject) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ServiceAccountSubject) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ServiceAccountSubject) 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] = 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 *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 if m.ServiceAccount != nil { { size, err := m.ServiceAccount.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } if m.Group != nil { { size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } if m.User != nil { { 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 -= 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 *UserSubject) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *UserSubject) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *UserSubject) 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 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 *ExemptPriorityLevelConfiguration) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.NominalConcurrencyShares != nil { n += 1 + sovGenerated(uint64(*m.NominalConcurrencyShares)) } if m.LendablePercent != nil { n += 1 + sovGenerated(uint64(*m.LendablePercent)) } return n } func (m *FlowDistinguisherMethod) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Type) n += 1 + l + sovGenerated(uint64(l)) return n } func (m *FlowSchema) 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 *FlowSchemaCondition) 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 *FlowSchemaList) 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 *FlowSchemaSpec) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.PriorityLevelConfiguration.Size() n += 1 + l + sovGenerated(uint64(l)) n += 1 + sovGenerated(uint64(m.MatchingPrecedence)) if m.DistinguisherMethod != nil { l = m.DistinguisherMethod.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 *FlowSchemaStatus) 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)) } } return n } func (m *GroupSubject) 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 *LimitResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Type) n += 1 + l + sovGenerated(uint64(l)) if m.Queuing != nil { l = m.Queuing.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *LimitedPriorityLevelConfiguration) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 1 + sovGenerated(uint64(m.NominalConcurrencyShares)) l = m.LimitResponse.Size() n += 1 + l + sovGenerated(uint64(l)) if m.LendablePercent != nil { n += 1 + sovGenerated(uint64(*m.LendablePercent)) } if m.BorrowingLimitPercent != nil { n += 1 + sovGenerated(uint64(*m.BorrowingLimitPercent)) } return n } func (m *NonResourcePolicyRule) 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 *PolicyRulesWithSubjects) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Subjects) > 0 { for _, e := range m.Subjects { l = e.Size() n += 1 + l + sovGenerated(uint64(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)) } } return n } func (m *PriorityLevelConfiguration) 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 *PriorityLevelConfigurationCondition) 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 *PriorityLevelConfigurationList) 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 *PriorityLevelConfigurationReference) 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 *PriorityLevelConfigurationSpec) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Type) n += 1 + l + sovGenerated(uint64(l)) if m.Limited != nil { l = m.Limited.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.Exempt != nil { l = m.Exempt.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *PriorityLevelConfigurationStatus) 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)) } } return n } func (m *QueuingConfiguration) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 1 + sovGenerated(uint64(m.Queues)) n += 1 + sovGenerated(uint64(m.HandSize)) n += 1 + sovGenerated(uint64(m.QueueLengthLimit)) return n } func (m *ResourcePolicyRule) 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)) } } n += 2 if len(m.Namespaces) > 0 { for _, s := range m.Namespaces { l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *ServiceAccountSubject) 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)) 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)) if m.User != nil { l = m.User.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.Group != nil { l = m.Group.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.ServiceAccount != nil { l = m.ServiceAccount.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *UserSubject) 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 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 *ExemptPriorityLevelConfiguration) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ExemptPriorityLevelConfiguration{`, `NominalConcurrencyShares:` + valueToStringGenerated(this.NominalConcurrencyShares) + `,`, `LendablePercent:` + valueToStringGenerated(this.LendablePercent) + `,`, `}`, }, "") return s } func (this *FlowDistinguisherMethod) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&FlowDistinguisherMethod{`, `Type:` + fmt.Sprintf("%v", this.Type) + `,`, `}`, }, "") return s } func (this *FlowSchema) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&FlowSchema{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "FlowSchemaSpec", "FlowSchemaSpec", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "FlowSchemaStatus", "FlowSchemaStatus", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *FlowSchemaCondition) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&FlowSchemaCondition{`, `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 *FlowSchemaList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]FlowSchema{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "FlowSchema", "FlowSchema", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&FlowSchemaList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *FlowSchemaSpec) String() string { if this == nil { return "nil" } repeatedStringForRules := "[]PolicyRulesWithSubjects{" for _, f := range this.Rules { repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "PolicyRulesWithSubjects", "PolicyRulesWithSubjects", 1), `&`, ``, 1) + "," } repeatedStringForRules += "}" s := strings.Join([]string{`&FlowSchemaSpec{`, `PriorityLevelConfiguration:` + strings.Replace(strings.Replace(this.PriorityLevelConfiguration.String(), "PriorityLevelConfigurationReference", "PriorityLevelConfigurationReference", 1), `&`, ``, 1) + `,`, `MatchingPrecedence:` + fmt.Sprintf("%v", this.MatchingPrecedence) + `,`, `DistinguisherMethod:` + strings.Replace(this.DistinguisherMethod.String(), "FlowDistinguisherMethod", "FlowDistinguisherMethod", 1) + `,`, `Rules:` + repeatedStringForRules + `,`, `}`, }, "") return s } func (this *FlowSchemaStatus) String() string { if this == nil { return "nil" } repeatedStringForConditions := "[]FlowSchemaCondition{" for _, f := range this.Conditions { repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "FlowSchemaCondition", "FlowSchemaCondition", 1), `&`, ``, 1) + "," } repeatedStringForConditions += "}" s := strings.Join([]string{`&FlowSchemaStatus{`, `Conditions:` + repeatedStringForConditions + `,`, `}`, }, "") return s } func (this *GroupSubject) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&GroupSubject{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `}`, }, "") return s } func (this *LimitResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&LimitResponse{`, `Type:` + fmt.Sprintf("%v", this.Type) + `,`, `Queuing:` + strings.Replace(this.Queuing.String(), "QueuingConfiguration", "QueuingConfiguration", 1) + `,`, `}`, }, "") return s } func (this *LimitedPriorityLevelConfiguration) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&LimitedPriorityLevelConfiguration{`, `NominalConcurrencyShares:` + fmt.Sprintf("%v", this.NominalConcurrencyShares) + `,`, `LimitResponse:` + strings.Replace(strings.Replace(this.LimitResponse.String(), "LimitResponse", "LimitResponse", 1), `&`, ``, 1) + `,`, `LendablePercent:` + valueToStringGenerated(this.LendablePercent) + `,`, `BorrowingLimitPercent:` + valueToStringGenerated(this.BorrowingLimitPercent) + `,`, `}`, }, "") return s } func (this *NonResourcePolicyRule) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&NonResourcePolicyRule{`, `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, `NonResourceURLs:` + fmt.Sprintf("%v", this.NonResourceURLs) + `,`, `}`, }, "") return s } func (this *PolicyRulesWithSubjects) 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 += "}" repeatedStringForResourceRules := "[]ResourcePolicyRule{" for _, f := range this.ResourceRules { repeatedStringForResourceRules += strings.Replace(strings.Replace(f.String(), "ResourcePolicyRule", "ResourcePolicyRule", 1), `&`, ``, 1) + "," } repeatedStringForResourceRules += "}" repeatedStringForNonResourceRules := "[]NonResourcePolicyRule{" for _, f := range this.NonResourceRules { repeatedStringForNonResourceRules += strings.Replace(strings.Replace(f.String(), "NonResourcePolicyRule", "NonResourcePolicyRule", 1), `&`, ``, 1) + "," } repeatedStringForNonResourceRules += "}" s := strings.Join([]string{`&PolicyRulesWithSubjects{`, `Subjects:` + repeatedStringForSubjects + `,`, `ResourceRules:` + repeatedStringForResourceRules + `,`, `NonResourceRules:` + repeatedStringForNonResourceRules + `,`, `}`, }, "") return s } func (this *PriorityLevelConfiguration) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PriorityLevelConfiguration{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PriorityLevelConfigurationSpec", "PriorityLevelConfigurationSpec", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PriorityLevelConfigurationStatus", "PriorityLevelConfigurationStatus", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *PriorityLevelConfigurationCondition) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PriorityLevelConfigurationCondition{`, `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 *PriorityLevelConfigurationList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]PriorityLevelConfiguration{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PriorityLevelConfiguration", "PriorityLevelConfiguration", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&PriorityLevelConfigurationList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *PriorityLevelConfigurationReference) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PriorityLevelConfigurationReference{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `}`, }, "") return s } func (this *PriorityLevelConfigurationSpec) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PriorityLevelConfigurationSpec{`, `Type:` + fmt.Sprintf("%v", this.Type) + `,`, `Limited:` + strings.Replace(this.Limited.String(), "LimitedPriorityLevelConfiguration", "LimitedPriorityLevelConfiguration", 1) + `,`, `Exempt:` + strings.Replace(this.Exempt.String(), "ExemptPriorityLevelConfiguration", "ExemptPriorityLevelConfiguration", 1) + `,`, `}`, }, "") return s } func (this *PriorityLevelConfigurationStatus) String() string { if this == nil { return "nil" } repeatedStringForConditions := "[]PriorityLevelConfigurationCondition{" for _, f := range this.Conditions { repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "PriorityLevelConfigurationCondition", "PriorityLevelConfigurationCondition", 1), `&`, ``, 1) + "," } repeatedStringForConditions += "}" s := strings.Join([]string{`&PriorityLevelConfigurationStatus{`, `Conditions:` + repeatedStringForConditions + `,`, `}`, }, "") return s } func (this *QueuingConfiguration) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueuingConfiguration{`, `Queues:` + fmt.Sprintf("%v", this.Queues) + `,`, `HandSize:` + fmt.Sprintf("%v", this.HandSize) + `,`, `QueueLengthLimit:` + fmt.Sprintf("%v", this.QueueLengthLimit) + `,`, `}`, }, "") return s } func (this *ResourcePolicyRule) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ResourcePolicyRule{`, `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`, `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`, `ClusterScope:` + fmt.Sprintf("%v", this.ClusterScope) + `,`, `Namespaces:` + fmt.Sprintf("%v", this.Namespaces) + `,`, `}`, }, "") return s } func (this *ServiceAccountSubject) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ServiceAccountSubject{`, `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, `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) + `,`, `User:` + strings.Replace(this.User.String(), "UserSubject", "UserSubject", 1) + `,`, `Group:` + strings.Replace(this.Group.String(), "GroupSubject", "GroupSubject", 1) + `,`, `ServiceAccount:` + strings.Replace(this.ServiceAccount.String(), "ServiceAccountSubject", "ServiceAccountSubject", 1) + `,`, `}`, }, "") return s } func (this *UserSubject) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&UserSubject{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `}`, }, "") 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 *ExemptPriorityLevelConfiguration) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ExemptPriorityLevelConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ExemptPriorityLevelConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field NominalConcurrencyShares", 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.NominalConcurrencyShares = &v case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field LendablePercent", 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.LendablePercent = &v default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowDistinguisherMethod) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowDistinguisherMethod: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowDistinguisherMethod: 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 = FlowDistinguisherMethodType(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchema) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchema: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchema: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchemaCondition) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchemaCondition: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchemaCondition: 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 = FlowSchemaConditionType(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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchemaList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchemaList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchemaList: 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, FlowSchema{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchemaSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchemaSpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchemaSpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PriorityLevelConfiguration", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.PriorityLevelConfiguration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field MatchingPrecedence", wireType) } m.MatchingPrecedence = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.MatchingPrecedence |= int32(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DistinguisherMethod", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.DistinguisherMethod == nil { m.DistinguisherMethod = &FlowDistinguisherMethod{} } if err := m.DistinguisherMethod.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: 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, PolicyRulesWithSubjects{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FlowSchemaStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FlowSchemaStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FlowSchemaStatus: 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, FlowSchemaCondition{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *GroupSubject) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: GroupSubject: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: GroupSubject: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LimitResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: LimitResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LimitResponse: 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 = LimitResponseType(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Queuing", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Queuing == nil { m.Queuing = &QueuingConfiguration{} } if err := m.Queuing.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LimitedPriorityLevelConfiguration) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: LimitedPriorityLevelConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LimitedPriorityLevelConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field NominalConcurrencyShares", wireType) } m.NominalConcurrencyShares = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.NominalConcurrencyShares |= int32(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field LimitResponse", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.LimitResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field LendablePercent", 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.LendablePercent = &v case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field BorrowingLimitPercent", 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.BorrowingLimitPercent = &v default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *NonResourcePolicyRule) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: NonResourcePolicyRule: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: NonResourcePolicyRule: 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 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PolicyRulesWithSubjects) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PolicyRulesWithSubjects: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PolicyRulesWithSubjects: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: 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 2: 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, ResourcePolicyRule{}) if err := m.ResourceRules[len(m.ResourceRules)-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 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, NonResourcePolicyRule{}) if err := m.NonResourceRules[len(m.NonResourceRules)-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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfiguration) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfiguration: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationCondition) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationCondition: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationCondition: 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 = PriorityLevelConfigurationConditionType(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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationList: 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, PriorityLevelConfiguration{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationReference) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationReference: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationReference: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationSpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationSpec: 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 = PriorityLevelEnablement(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Limited", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Limited == nil { m.Limited = &LimitedPriorityLevelConfiguration{} } if err := m.Limited.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Exempt", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Exempt == nil { m.Exempt = &ExemptPriorityLevelConfiguration{} } if err := m.Exempt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PriorityLevelConfigurationStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PriorityLevelConfigurationStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PriorityLevelConfigurationStatus: 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, PriorityLevelConfigurationCondition{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueuingConfiguration) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueuingConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueuingConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Queues", wireType) } m.Queues = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Queues |= int32(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field HandSize", wireType) } m.HandSize = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.HandSize |= int32(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field QueueLengthLimit", wireType) } m.QueueLengthLimit = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.QueueLengthLimit |= int32(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ResourcePolicyRule) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ResourcePolicyRule: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ResourcePolicyRule: 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 != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ClusterScope", 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.ClusterScope = bool(v != 0) case 5: 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ServiceAccountSubject) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ServiceAccountSubject: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ServiceAccountSubject: 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 = SubjectKind(dAtA[iNdEx:postIndex]) iNdEx = postIndex 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 m.User == nil { m.User = &UserSubject{} } 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 Group", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Group == nil { m.Group = &GroupSubject{} } if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ServiceAccount == nil { m.ServiceAccount = &ServiceAccountSubject{} } if err := m.ServiceAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *UserSubject) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: UserSubject: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: UserSubject: 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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/flowcontrol/v1beta3/generated.proto000066400000000000000000000527461453636404600232140ustar00rootroot00000000000000/* 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.flowcontrol.v1beta3; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/flowcontrol/v1beta3"; // ExemptPriorityLevelConfiguration describes the configurable aspects // of the handling of exempt requests. // In the mandatory exempt configuration object the values in the fields // here can be modified by authorized users, unlike the rest of the `spec`. message ExemptPriorityLevelConfiguration { // `nominalConcurrencyShares` (NCS) contributes to the computation of the // NominalConcurrencyLimit (NominalCL) of this level. // This is the number of execution seats nominally reserved for this priority level. // This DOES NOT limit the dispatching from this priority level // but affects the other priority levels through the borrowing mechanism. // The server's concurrency limit (ServerCL) is divided among all the // priority levels in proportion to their NCS values: // // NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) // sum_ncs = sum[priority level k] NCS(k) // // Bigger numbers mean a larger nominal concurrency limit, // at the expense of every other priority level. // This field has a default value of zero. // +optional optional int32 nominalConcurrencyShares = 1; // `lendablePercent` prescribes the fraction of the level's NominalCL that // can be borrowed by other priority levels. This value of this // field must be between 0 and 100, inclusive, and it defaults to 0. // The number of seats that other levels can borrow from this level, known // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. // // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) // // +optional optional int32 lendablePercent = 2; } // FlowDistinguisherMethod specifies the method of a flow distinguisher. message FlowDistinguisherMethod { // `type` is the type of flow distinguisher method // The supported types are "ByUser" and "ByNamespace". // Required. optional string type = 1; } // FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with // similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". message FlowSchema { // `metadata` is the 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 specification of the desired behavior of a FlowSchema. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional FlowSchemaSpec spec = 2; // `status` is the current status of a FlowSchema. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional FlowSchemaStatus status = 3; } // FlowSchemaCondition describes conditions for a FlowSchema. message FlowSchemaCondition { // `type` is the type of the condition. // Required. optional string type = 1; // `status` is the status of the condition. // Can be True, False, Unknown. // Required. optional string status = 2; // `lastTransitionTime` is the last time the condition transitioned from one status to another. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. optional string reason = 4; // `message` is a human-readable message indicating details about last transition. optional string message = 5; } // FlowSchemaList is a list of FlowSchema objects. message FlowSchemaList { // `metadata` is the 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 FlowSchemas. repeated FlowSchema items = 2; } // FlowSchemaSpec describes how the FlowSchema's specification looks like. message FlowSchemaSpec { // `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot // be resolved, the FlowSchema will be ignored and marked as invalid in its status. // Required. optional PriorityLevelConfigurationReference priorityLevelConfiguration = 1; // `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen // FlowSchema is among those with the numerically lowest (which we take to be logically highest) // MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. // Note that if the precedence is not specified, it will be set to 1000 as default. // +optional optional int32 matchingPrecedence = 2; // `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. // `nil` specifies that the distinguisher is disabled and thus will always be the empty string. // +optional optional FlowDistinguisherMethod distinguisherMethod = 3; // `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if // at least one member of rules matches the request. // if it is an empty slice, there will be no requests matching the FlowSchema. // +listType=atomic // +optional repeated PolicyRulesWithSubjects rules = 4; } // FlowSchemaStatus represents the current state of a FlowSchema. message FlowSchemaStatus { // `conditions` is a list of the current states of FlowSchema. // +listType=map // +listMapKey=type // +patchMergeKey=type // +patchStrategy=merge // +optional repeated FlowSchemaCondition conditions = 1; } // GroupSubject holds detailed information for group-kind subject. message GroupSubject { // name is the user group that matches, or "*" to match all user groups. // See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some // well-known group names. // Required. optional string name = 1; } // LimitResponse defines how to handle requests that can not be executed right now. // +union message LimitResponse { // `type` is "Queue" or "Reject". // "Queue" means that requests that can not be executed upon arrival // are held in a queue until they can be executed or a queuing limit // is reached. // "Reject" means that requests that can not be executed upon arrival // are rejected. // Required. // +unionDiscriminator optional string type = 1; // `queuing` holds the configuration parameters for queuing. // This field may be non-empty only if `type` is `"Queue"`. // +optional optional QueuingConfiguration queuing = 2; } // LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. // It addresses two issues: // - How are requests for this priority level limited? // - What should be done with requests that exceed the limit? message LimitedPriorityLevelConfiguration { // `nominalConcurrencyShares` (NCS) contributes to the computation of the // NominalConcurrencyLimit (NominalCL) of this level. // This is the number of execution seats available at this priority level. // This is used both for requests dispatched from this priority level // as well as requests dispatched from other priority levels // borrowing seats from this level. // The server's concurrency limit (ServerCL) is divided among the // Limited priority levels in proportion to their NCS values: // // NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) // sum_ncs = sum[priority level k] NCS(k) // // Bigger numbers mean a larger nominal concurrency limit, // at the expense of every other priority level. // This field has a default value of 30. // +optional optional int32 nominalConcurrencyShares = 1; // `limitResponse` indicates what to do with requests that can not be executed right now optional LimitResponse limitResponse = 2; // `lendablePercent` prescribes the fraction of the level's NominalCL that // can be borrowed by other priority levels. The value of this // field must be between 0 and 100, inclusive, and it defaults to 0. // The number of seats that other levels can borrow from this level, known // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. // // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) // // +optional optional int32 lendablePercent = 3; // `borrowingLimitPercent`, if present, configures a limit on how many // seats this priority level can borrow from other priority levels. // The limit is known as this level's BorrowingConcurrencyLimit // (BorrowingCL) and is a limit on the total number of seats that this // level may borrow at any one time. // This field holds the ratio of that limit to the level's nominal // concurrency limit. When this field is non-nil, it must hold a // non-negative integer and the limit is calculated as follows. // // BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) // // The value of this field can be more than 100, implying that this // priority level can borrow a number of seats that is greater than // its own nominal concurrency limit (NominalCL). // When this field is left `nil`, the limit is effectively infinite. // +optional optional int32 borrowingLimitPercent = 4; } // NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the // target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member // of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. message NonResourcePolicyRule { // `verbs` is a list of matching verbs and may not be empty. // "*" matches all verbs. If it is present, it must be the only entry. // +listType=set // Required. repeated string verbs = 1; // `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. // For example: // - "/healthz" is legal // - "/hea*" is illegal // - "/hea" is legal but matches nothing // - "/hea/*" also matches nothing // - "/healthz/*" matches all per-component health checks. // "*" matches all non-resource urls. if it is present, it must be the only entry. // +listType=set // Required. repeated string nonResourceURLs = 6; } // PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject // making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches // a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member // of resourceRules or nonResourceRules matches the request. message PolicyRulesWithSubjects { // subjects is the list of normal user, serviceaccount, or group that this rule cares about. // There must be at least one member in this slice. // A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. // +listType=atomic // Required. repeated Subject subjects = 1; // `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the // target resource. // At least one of `resourceRules` and `nonResourceRules` has to be non-empty. // +listType=atomic // +optional repeated ResourcePolicyRule resourceRules = 2; // `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb // and the target non-resource URL. // +listType=atomic // +optional repeated NonResourcePolicyRule nonResourceRules = 3; } // PriorityLevelConfiguration represents the configuration of a priority level. message PriorityLevelConfiguration { // `metadata` is the 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 specification of the desired behavior of a "request-priority". // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional PriorityLevelConfigurationSpec spec = 2; // `status` is the current status of a "request-priority". // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional PriorityLevelConfigurationStatus status = 3; } // PriorityLevelConfigurationCondition defines the condition of priority level. message PriorityLevelConfigurationCondition { // `type` is the type of the condition. // Required. optional string type = 1; // `status` is the status of the condition. // Can be True, False, Unknown. // Required. optional string status = 2; // `lastTransitionTime` is the last time the condition transitioned from one status to another. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. optional string reason = 4; // `message` is a human-readable message indicating details about last transition. optional string message = 5; } // PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. message PriorityLevelConfigurationList { // `metadata` is the 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 a list of request-priorities. repeated PriorityLevelConfiguration items = 2; } // PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. message PriorityLevelConfigurationReference { // `name` is the name of the priority level configuration being referenced // Required. optional string name = 1; } // PriorityLevelConfigurationSpec specifies the configuration of a priority level. // +union message PriorityLevelConfigurationSpec { // `type` indicates whether this priority level is subject to // limitation on request execution. A value of `"Exempt"` means // that requests of this priority level are not subject to a limit // (and thus are never queued) and do not detract from the // capacity made available to other priority levels. A value of // `"Limited"` means that (a) requests of this priority level // _are_ subject to limits and (b) some of the server's limited // capacity is made available exclusively to this priority level. // Required. // +unionDiscriminator optional string type = 1; // `limited` specifies how requests are handled for a Limited priority level. // This field must be non-empty if and only if `type` is `"Limited"`. // +optional optional LimitedPriorityLevelConfiguration limited = 2; // `exempt` specifies how requests are handled for an exempt priority level. // This field MUST be empty if `type` is `"Limited"`. // This field MAY be non-empty if `type` is `"Exempt"`. // If empty and `type` is `"Exempt"` then the default values // for `ExemptPriorityLevelConfiguration` apply. // +optional optional ExemptPriorityLevelConfiguration exempt = 3; } // PriorityLevelConfigurationStatus represents the current state of a "request-priority". message PriorityLevelConfigurationStatus { // `conditions` is the current state of "request-priority". // +listType=map // +listMapKey=type // +patchMergeKey=type // +patchStrategy=merge // +optional repeated PriorityLevelConfigurationCondition conditions = 1; } // QueuingConfiguration holds the configuration parameters for queuing message QueuingConfiguration { // `queues` is the number of queues for this priority level. The // queues exist independently at each apiserver. The value must be // positive. Setting it to 1 effectively precludes // shufflesharding and thus makes the distinguisher method of // associated flow schemas irrelevant. This field has a default // value of 64. // +optional optional int32 queues = 1; // `handSize` is a small positive number that configures the // shuffle sharding of requests into queues. When enqueuing a request // at this priority level the request's flow identifier (a string // pair) is hashed and the hash value is used to shuffle the list // of queues and deal a hand of the size specified here. The // request is put into one of the shortest queues in that hand. // `handSize` must be no larger than `queues`, and should be // significantly smaller (so that a few heavy flows do not // saturate most of the queues). See the user-facing // documentation for more extensive guidance on setting this // field. This field has a default value of 8. // +optional optional int32 handSize = 2; // `queueLengthLimit` is the maximum number of requests allowed to // be waiting in a given queue of this priority level at a time; // excess requests are rejected. This value must be positive. If // not specified, it will be defaulted to 50. // +optional optional int32 queueLengthLimit = 3; } // ResourcePolicyRule is a predicate that matches some resource // requests, testing the request's verb and the target resource. A // ResourcePolicyRule matches a resource request if and only if: (a) // at least one member of verbs matches the request, (b) at least one // member of apiGroups matches the request, (c) at least one member of // resources matches the request, and (d) either (d1) the request does // not specify a namespace (i.e., `Namespace==""`) and clusterScope is // true or (d2) the request specifies a namespace and least one member // of namespaces matches the request's namespace. message ResourcePolicyRule { // `verbs` is a list of matching verbs and may not be empty. // "*" matches all verbs and, if present, must be the only entry. // +listType=set // Required. repeated string verbs = 1; // `apiGroups` is a list of matching API groups and may not be empty. // "*" matches all API groups and, if present, must be the only entry. // +listType=set // Required. repeated string apiGroups = 2; // `resources` is a list of matching resources (i.e., lowercase // and plural) with, if desired, subresource. For example, [ // "services", "nodes/status" ]. This list may not be empty. // "*" matches all resources and, if present, must be the only entry. // Required. // +listType=set repeated string resources = 3; // `clusterScope` indicates whether to match requests that do not // specify a namespace (which happens either because the resource // is not namespaced or the request targets all namespaces). // If this field is omitted or false then the `namespaces` field // must contain a non-empty list. // +optional optional bool clusterScope = 4; // `namespaces` is a list of target namespaces that restricts // matches. A request that specifies a target namespace matches // only if either (a) this list contains that target namespace or // (b) this list contains "*". Note that "*" matches any // specified namespace but does not match a request that _does // not specify_ a namespace (see the `clusterScope` field for // that). // This list may be empty, but only if `clusterScope` is true. // +optional // +listType=set repeated string namespaces = 5; } // ServiceAccountSubject holds detailed information for service-account-kind subject. message ServiceAccountSubject { // `namespace` is the namespace of matching ServiceAccount objects. // Required. optional string namespace = 1; // `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. // Required. optional string name = 2; } // Subject matches the originator of a request, as identified by the request authentication system. There are three // ways of matching an originator; by user, group, or service account. // +union message Subject { // `kind` indicates which one of the other fields is non-empty. // Required // +unionDiscriminator optional string kind = 1; // `user` matches based on username. // +optional optional UserSubject user = 2; // `group` matches based on user group name. // +optional optional GroupSubject group = 3; // `serviceAccount` matches ServiceAccounts. // +optional optional ServiceAccountSubject serviceAccount = 4; } // UserSubject holds detailed information for user-kind subject. message UserSubject { // `name` is the username that matches, or "*" to match all usernames. // Required. optional string name = 1; } golang-k8s-api-0.29.0/flowcontrol/v1beta3/register.go000066400000000000000000000035161453636404600223330ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package v1beta3 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the name of api group const GroupName = "flowcontrol.apiserver.k8s.io" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta3"} // 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 installs the api group to a scheme SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme adds api 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, &FlowSchema{}, &FlowSchemaList{}, &PriorityLevelConfiguration{}, &PriorityLevelConfigurationList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/flowcontrol/v1beta3/types.go000066400000000000000000000776211453636404600216630ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package v1beta3 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // These are valid wildcards. const ( APIGroupAll = "*" ResourceAll = "*" VerbAll = "*" NonResourceAll = "*" NameAll = "*" NamespaceEvery = "*" // matches every particular namespace ) // System preset priority level names const ( PriorityLevelConfigurationNameExempt = "exempt" PriorityLevelConfigurationNameCatchAll = "catch-all" FlowSchemaNameExempt = "exempt" FlowSchemaNameCatchAll = "catch-all" ) // Conditions const ( FlowSchemaConditionDangling = "Dangling" PriorityLevelConfigurationConditionConcurrencyShared = "ConcurrencyShared" ) // Constants used by api validation. const ( FlowSchemaMaxMatchingPrecedence int32 = 10000 ) // Constants for apiserver response headers. const ( ResponseHeaderMatchedPriorityLevelConfigurationUID = "X-Kubernetes-PF-PriorityLevel-UID" ResponseHeaderMatchedFlowSchemaUID = "X-Kubernetes-PF-FlowSchema-UID" ) const ( // AutoUpdateAnnotationKey is the name of an annotation that enables // automatic update of the spec of the bootstrap configuration // object(s), if set to 'true'. // // On a fresh install, all bootstrap configuration objects will have auto // update enabled with the following annotation key: // apf.kubernetes.io/autoupdate-spec: 'true' // // The kube-apiserver periodically checks the bootstrap configuration // objects on the cluster and applies updates if necessary. // // kube-apiserver enforces an 'always auto-update' policy for the // mandatory configuration object(s). This implies: // - the auto-update annotation key is added with a value of 'true' // if it is missing. // - the auto-update annotation key is set to 'true' if its current value // is a boolean false or has an invalid boolean representation // (if the cluster operator sets it to 'false' it will be stomped) // - any changes to the spec made by the cluster operator will be // stomped, except for changes to the `nominalConcurrencyShares` // and `lendablePercent` fields of the PriorityLevelConfiguration // named "exempt". // // The kube-apiserver will apply updates on the suggested configuration if: // - the cluster operator has enabled auto-update by setting the annotation // (apf.kubernetes.io/autoupdate-spec: 'true') or // - the annotation key is missing but the generation is 1 // // If the suggested configuration object is missing the annotation key, // kube-apiserver will update the annotation appropriately: // - it is set to 'true' if generation of the object is '1' which usually // indicates that the spec of the object has not been changed. // - it is set to 'false' if generation of the object is greater than 1. // // The goal is to enable the kube-apiserver to apply update on suggested // configuration objects installed by previous releases but not overwrite // changes made by the cluster operators. // Note that this distinction is imperfectly detected: in the case where an // operator deletes a suggested configuration object and later creates it // but with a variant spec and then does no updates of the object // (generation is 1), the technique outlined above will incorrectly // determine that the object should be auto-updated. AutoUpdateAnnotationKey = "apf.kubernetes.io/autoupdate-spec" ) const ( // This annotation is only for use in v1beta3. // // The presence of this annotation in a v1beta3 object means that // a zero value in the 'NominalConcurrencyShares' field means zero // rather than the old default of 30. // // To set a zero value for the 'NominalConcurrencyShares' field in v1beta3, // set the annotation to an empty string: // "flowcontrol.k8s.io/v1beta3-preserve-zero-concurrency-shares": "" // PriorityLevelPreserveZeroConcurrencySharesKey = "flowcontrol.k8s.io/v1beta3-preserve-zero-concurrency-shares" ) // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.26 // +k8s:prerelease-lifecycle-gen:replacement=flowcontrol.apiserver.k8s.io,v1,FlowSchema // FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with // similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". type FlowSchema struct { metav1.TypeMeta `json:",inline"` // `metadata` is the 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 specification of the desired behavior of a FlowSchema. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec FlowSchemaSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // `status` is the current status of a FlowSchema. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Status FlowSchemaStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.26 // +k8s:prerelease-lifecycle-gen:replacement=flowcontrol.apiserver.k8s.io,v1,FlowSchemaList // FlowSchemaList is a list of FlowSchema objects. type FlowSchemaList struct { metav1.TypeMeta `json:",inline"` // `metadata` is the 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 FlowSchemas. Items []FlowSchema `json:"items" protobuf:"bytes,2,rep,name=items"` } // FlowSchemaSpec describes how the FlowSchema's specification looks like. type FlowSchemaSpec struct { // `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot // be resolved, the FlowSchema will be ignored and marked as invalid in its status. // Required. PriorityLevelConfiguration PriorityLevelConfigurationReference `json:"priorityLevelConfiguration" protobuf:"bytes,1,opt,name=priorityLevelConfiguration"` // `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen // FlowSchema is among those with the numerically lowest (which we take to be logically highest) // MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. // Note that if the precedence is not specified, it will be set to 1000 as default. // +optional MatchingPrecedence int32 `json:"matchingPrecedence" protobuf:"varint,2,opt,name=matchingPrecedence"` // `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. // `nil` specifies that the distinguisher is disabled and thus will always be the empty string. // +optional DistinguisherMethod *FlowDistinguisherMethod `json:"distinguisherMethod,omitempty" protobuf:"bytes,3,opt,name=distinguisherMethod"` // `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if // at least one member of rules matches the request. // if it is an empty slice, there will be no requests matching the FlowSchema. // +listType=atomic // +optional Rules []PolicyRulesWithSubjects `json:"rules,omitempty" protobuf:"bytes,4,rep,name=rules"` } // FlowDistinguisherMethodType is the type of flow distinguisher method type FlowDistinguisherMethodType string // These are valid flow-distinguisher methods. const ( // FlowDistinguisherMethodByUserType specifies that the flow distinguisher is the username in the request. // This type is used to provide some insulation between users. FlowDistinguisherMethodByUserType FlowDistinguisherMethodType = "ByUser" // FlowDistinguisherMethodByNamespaceType specifies that the flow distinguisher is the namespace of the // object that the request acts upon. If the object is not namespaced, or if the request is a non-resource // request, then the distinguisher will be the empty string. An example usage of this type is to provide // some insulation between tenants in a situation where there are multiple tenants and each namespace // is dedicated to a tenant. FlowDistinguisherMethodByNamespaceType FlowDistinguisherMethodType = "ByNamespace" ) // FlowDistinguisherMethod specifies the method of a flow distinguisher. type FlowDistinguisherMethod struct { // `type` is the type of flow distinguisher method // The supported types are "ByUser" and "ByNamespace". // Required. Type FlowDistinguisherMethodType `json:"type" protobuf:"bytes,1,opt,name=type"` } // PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. type PriorityLevelConfigurationReference struct { // `name` is the name of the priority level configuration being referenced // Required. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` } // PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject // making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches // a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member // of resourceRules or nonResourceRules matches the request. type PolicyRulesWithSubjects struct { // subjects is the list of normal user, serviceaccount, or group that this rule cares about. // There must be at least one member in this slice. // A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. // +listType=atomic // Required. Subjects []Subject `json:"subjects" protobuf:"bytes,1,rep,name=subjects"` // `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the // target resource. // At least one of `resourceRules` and `nonResourceRules` has to be non-empty. // +listType=atomic // +optional ResourceRules []ResourcePolicyRule `json:"resourceRules,omitempty" protobuf:"bytes,2,opt,name=resourceRules"` // `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb // and the target non-resource URL. // +listType=atomic // +optional NonResourceRules []NonResourcePolicyRule `json:"nonResourceRules,omitempty" protobuf:"bytes,3,opt,name=nonResourceRules"` } // Subject matches the originator of a request, as identified by the request authentication system. There are three // ways of matching an originator; by user, group, or service account. // +union type Subject struct { // `kind` indicates which one of the other fields is non-empty. // Required // +unionDiscriminator Kind SubjectKind `json:"kind" protobuf:"bytes,1,opt,name=kind"` // `user` matches based on username. // +optional User *UserSubject `json:"user,omitempty" protobuf:"bytes,2,opt,name=user"` // `group` matches based on user group name. // +optional Group *GroupSubject `json:"group,omitempty" protobuf:"bytes,3,opt,name=group"` // `serviceAccount` matches ServiceAccounts. // +optional ServiceAccount *ServiceAccountSubject `json:"serviceAccount,omitempty" protobuf:"bytes,4,opt,name=serviceAccount"` } // SubjectKind is the kind of subject. type SubjectKind string // Supported subject's kinds. const ( SubjectKindUser SubjectKind = "User" SubjectKindGroup SubjectKind = "Group" SubjectKindServiceAccount SubjectKind = "ServiceAccount" ) // UserSubject holds detailed information for user-kind subject. type UserSubject struct { // `name` is the username that matches, or "*" to match all usernames. // Required. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` } // GroupSubject holds detailed information for group-kind subject. type GroupSubject struct { // name is the user group that matches, or "*" to match all user groups. // See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some // well-known group names. // Required. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` } // ServiceAccountSubject holds detailed information for service-account-kind subject. type ServiceAccountSubject struct { // `namespace` is the namespace of matching ServiceAccount objects. // Required. Namespace string `json:"namespace" protobuf:"bytes,1,opt,name=namespace"` // `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. // Required. Name string `json:"name" protobuf:"bytes,2,opt,name=name"` } // ResourcePolicyRule is a predicate that matches some resource // requests, testing the request's verb and the target resource. A // ResourcePolicyRule matches a resource request if and only if: (a) // at least one member of verbs matches the request, (b) at least one // member of apiGroups matches the request, (c) at least one member of // resources matches the request, and (d) either (d1) the request does // not specify a namespace (i.e., `Namespace==""`) and clusterScope is // true or (d2) the request specifies a namespace and least one member // of namespaces matches the request's namespace. type ResourcePolicyRule struct { // `verbs` is a list of matching verbs and may not be empty. // "*" matches all verbs and, if present, must be the only entry. // +listType=set // Required. Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` // `apiGroups` is a list of matching API groups and may not be empty. // "*" matches all API groups and, if present, must be the only entry. // +listType=set // Required. APIGroups []string `json:"apiGroups" protobuf:"bytes,2,rep,name=apiGroups"` // `resources` is a list of matching resources (i.e., lowercase // and plural) with, if desired, subresource. For example, [ // "services", "nodes/status" ]. This list may not be empty. // "*" matches all resources and, if present, must be the only entry. // Required. // +listType=set Resources []string `json:"resources" protobuf:"bytes,3,rep,name=resources"` // `clusterScope` indicates whether to match requests that do not // specify a namespace (which happens either because the resource // is not namespaced or the request targets all namespaces). // If this field is omitted or false then the `namespaces` field // must contain a non-empty list. // +optional ClusterScope bool `json:"clusterScope,omitempty" protobuf:"varint,4,opt,name=clusterScope"` // `namespaces` is a list of target namespaces that restricts // matches. A request that specifies a target namespace matches // only if either (a) this list contains that target namespace or // (b) this list contains "*". Note that "*" matches any // specified namespace but does not match a request that _does // not specify_ a namespace (see the `clusterScope` field for // that). // This list may be empty, but only if `clusterScope` is true. // +optional // +listType=set Namespaces []string `json:"namespaces" protobuf:"bytes,5,rep,name=namespaces"` } // NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the // target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member // of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. type NonResourcePolicyRule struct { // `verbs` is a list of matching verbs and may not be empty. // "*" matches all verbs. If it is present, it must be the only entry. // +listType=set // Required. Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` // `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. // For example: // - "/healthz" is legal // - "/hea*" is illegal // - "/hea" is legal but matches nothing // - "/hea/*" also matches nothing // - "/healthz/*" matches all per-component health checks. // "*" matches all non-resource urls. if it is present, it must be the only entry. // +listType=set // Required. NonResourceURLs []string `json:"nonResourceURLs" protobuf:"bytes,6,rep,name=nonResourceURLs"` } // FlowSchemaStatus represents the current state of a FlowSchema. type FlowSchemaStatus struct { // `conditions` is a list of the current states of FlowSchema. // +listType=map // +listMapKey=type // +patchMergeKey=type // +patchStrategy=merge // +optional Conditions []FlowSchemaCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` } // FlowSchemaCondition describes conditions for a FlowSchema. type FlowSchemaCondition struct { // `type` is the type of the condition. // Required. Type FlowSchemaConditionType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type"` // `status` is the status of the condition. // Can be True, False, Unknown. // Required. Status ConditionStatus `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"` // `lastTransitionTime` is the last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` // `message` is a human-readable message indicating details about last transition. Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` } // FlowSchemaConditionType is a valid value for FlowSchemaStatusCondition.Type type FlowSchemaConditionType string // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.26 // +k8s:prerelease-lifecycle-gen:replacement=flowcontrol.apiserver.k8s.io,v1,PriorityLevelConfiguration // PriorityLevelConfiguration represents the configuration of a priority level. type PriorityLevelConfiguration struct { metav1.TypeMeta `json:",inline"` // `metadata` is the 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 specification of the desired behavior of a "request-priority". // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec PriorityLevelConfigurationSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // `status` is the current status of a "request-priority". // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Status PriorityLevelConfigurationStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.26 // +k8s:prerelease-lifecycle-gen:replacement=flowcontrol.apiserver.k8s.io,v1,PriorityLevelConfigurationList // PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. type PriorityLevelConfigurationList struct { metav1.TypeMeta `json:",inline"` // `metadata` is the 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 a list of request-priorities. Items []PriorityLevelConfiguration `json:"items" protobuf:"bytes,2,rep,name=items"` } // PriorityLevelConfigurationSpec specifies the configuration of a priority level. // +union type PriorityLevelConfigurationSpec struct { // `type` indicates whether this priority level is subject to // limitation on request execution. A value of `"Exempt"` means // that requests of this priority level are not subject to a limit // (and thus are never queued) and do not detract from the // capacity made available to other priority levels. A value of // `"Limited"` means that (a) requests of this priority level // _are_ subject to limits and (b) some of the server's limited // capacity is made available exclusively to this priority level. // Required. // +unionDiscriminator Type PriorityLevelEnablement `json:"type" protobuf:"bytes,1,opt,name=type"` // `limited` specifies how requests are handled for a Limited priority level. // This field must be non-empty if and only if `type` is `"Limited"`. // +optional Limited *LimitedPriorityLevelConfiguration `json:"limited,omitempty" protobuf:"bytes,2,opt,name=limited"` // `exempt` specifies how requests are handled for an exempt priority level. // This field MUST be empty if `type` is `"Limited"`. // This field MAY be non-empty if `type` is `"Exempt"`. // If empty and `type` is `"Exempt"` then the default values // for `ExemptPriorityLevelConfiguration` apply. // +optional Exempt *ExemptPriorityLevelConfiguration `json:"exempt,omitempty" protobuf:"bytes,3,opt,name=exempt"` } // PriorityLevelEnablement indicates whether limits on execution are enabled for the priority level type PriorityLevelEnablement string // Supported priority level enablement values. const ( // PriorityLevelEnablementExempt means that requests are not subject to limits PriorityLevelEnablementExempt PriorityLevelEnablement = "Exempt" // PriorityLevelEnablementLimited means that requests are subject to limits PriorityLevelEnablementLimited PriorityLevelEnablement = "Limited" ) // LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. // It addresses two issues: // - How are requests for this priority level limited? // - What should be done with requests that exceed the limit? type LimitedPriorityLevelConfiguration struct { // `nominalConcurrencyShares` (NCS) contributes to the computation of the // NominalConcurrencyLimit (NominalCL) of this level. // This is the number of execution seats available at this priority level. // This is used both for requests dispatched from this priority level // as well as requests dispatched from other priority levels // borrowing seats from this level. // The server's concurrency limit (ServerCL) is divided among the // Limited priority levels in proportion to their NCS values: // // NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) // sum_ncs = sum[priority level k] NCS(k) // // Bigger numbers mean a larger nominal concurrency limit, // at the expense of every other priority level. // This field has a default value of 30. // +optional NominalConcurrencyShares int32 `json:"nominalConcurrencyShares" protobuf:"varint,1,opt,name=nominalConcurrencyShares"` // `limitResponse` indicates what to do with requests that can not be executed right now LimitResponse LimitResponse `json:"limitResponse,omitempty" protobuf:"bytes,2,opt,name=limitResponse"` // `lendablePercent` prescribes the fraction of the level's NominalCL that // can be borrowed by other priority levels. The value of this // field must be between 0 and 100, inclusive, and it defaults to 0. // The number of seats that other levels can borrow from this level, known // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. // // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) // // +optional LendablePercent *int32 `json:"lendablePercent,omitempty" protobuf:"varint,3,opt,name=lendablePercent"` // `borrowingLimitPercent`, if present, configures a limit on how many // seats this priority level can borrow from other priority levels. // The limit is known as this level's BorrowingConcurrencyLimit // (BorrowingCL) and is a limit on the total number of seats that this // level may borrow at any one time. // This field holds the ratio of that limit to the level's nominal // concurrency limit. When this field is non-nil, it must hold a // non-negative integer and the limit is calculated as follows. // // BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) // // The value of this field can be more than 100, implying that this // priority level can borrow a number of seats that is greater than // its own nominal concurrency limit (NominalCL). // When this field is left `nil`, the limit is effectively infinite. // +optional BorrowingLimitPercent *int32 `json:"borrowingLimitPercent,omitempty" protobuf:"varint,4,opt,name=borrowingLimitPercent"` } // ExemptPriorityLevelConfiguration describes the configurable aspects // of the handling of exempt requests. // In the mandatory exempt configuration object the values in the fields // here can be modified by authorized users, unlike the rest of the `spec`. type ExemptPriorityLevelConfiguration struct { // `nominalConcurrencyShares` (NCS) contributes to the computation of the // NominalConcurrencyLimit (NominalCL) of this level. // This is the number of execution seats nominally reserved for this priority level. // This DOES NOT limit the dispatching from this priority level // but affects the other priority levels through the borrowing mechanism. // The server's concurrency limit (ServerCL) is divided among all the // priority levels in proportion to their NCS values: // // NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) // sum_ncs = sum[priority level k] NCS(k) // // Bigger numbers mean a larger nominal concurrency limit, // at the expense of every other priority level. // This field has a default value of zero. // +optional NominalConcurrencyShares *int32 `json:"nominalConcurrencyShares,omitempty" protobuf:"varint,1,opt,name=nominalConcurrencyShares"` // `lendablePercent` prescribes the fraction of the level's NominalCL that // can be borrowed by other priority levels. This value of this // field must be between 0 and 100, inclusive, and it defaults to 0. // The number of seats that other levels can borrow from this level, known // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. // // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) // // +optional LendablePercent *int32 `json:"lendablePercent,omitempty" protobuf:"varint,2,opt,name=lendablePercent"` // The `BorrowingCL` of an Exempt priority level is implicitly `ServerCL`. // In other words, an exempt priority level // has no meaningful limit on how much it borrows. // There is no explicit representation of that here. } // LimitResponse defines how to handle requests that can not be executed right now. // +union type LimitResponse struct { // `type` is "Queue" or "Reject". // "Queue" means that requests that can not be executed upon arrival // are held in a queue until they can be executed or a queuing limit // is reached. // "Reject" means that requests that can not be executed upon arrival // are rejected. // Required. // +unionDiscriminator Type LimitResponseType `json:"type" protobuf:"bytes,1,opt,name=type"` // `queuing` holds the configuration parameters for queuing. // This field may be non-empty only if `type` is `"Queue"`. // +optional Queuing *QueuingConfiguration `json:"queuing,omitempty" protobuf:"bytes,2,opt,name=queuing"` } // LimitResponseType identifies how a Limited priority level handles a request that can not be executed right now type LimitResponseType string // Supported limit responses. const ( // LimitResponseTypeQueue means that requests that can not be executed right now are queued until they can be executed or a queuing limit is hit LimitResponseTypeQueue LimitResponseType = "Queue" // LimitResponseTypeReject means that requests that can not be executed right now are rejected LimitResponseTypeReject LimitResponseType = "Reject" ) // QueuingConfiguration holds the configuration parameters for queuing type QueuingConfiguration struct { // `queues` is the number of queues for this priority level. The // queues exist independently at each apiserver. The value must be // positive. Setting it to 1 effectively precludes // shufflesharding and thus makes the distinguisher method of // associated flow schemas irrelevant. This field has a default // value of 64. // +optional Queues int32 `json:"queues" protobuf:"varint,1,opt,name=queues"` // `handSize` is a small positive number that configures the // shuffle sharding of requests into queues. When enqueuing a request // at this priority level the request's flow identifier (a string // pair) is hashed and the hash value is used to shuffle the list // of queues and deal a hand of the size specified here. The // request is put into one of the shortest queues in that hand. // `handSize` must be no larger than `queues`, and should be // significantly smaller (so that a few heavy flows do not // saturate most of the queues). See the user-facing // documentation for more extensive guidance on setting this // field. This field has a default value of 8. // +optional HandSize int32 `json:"handSize" protobuf:"varint,2,opt,name=handSize"` // `queueLengthLimit` is the maximum number of requests allowed to // be waiting in a given queue of this priority level at a time; // excess requests are rejected. This value must be positive. If // not specified, it will be defaulted to 50. // +optional QueueLengthLimit int32 `json:"queueLengthLimit" protobuf:"varint,3,opt,name=queueLengthLimit"` } // PriorityLevelConfigurationConditionType is a valid value for PriorityLevelConfigurationStatusCondition.Type type PriorityLevelConfigurationConditionType string // PriorityLevelConfigurationStatus represents the current state of a "request-priority". type PriorityLevelConfigurationStatus struct { // `conditions` is the current state of "request-priority". // +listType=map // +listMapKey=type // +patchMergeKey=type // +patchStrategy=merge // +optional Conditions []PriorityLevelConfigurationCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` } // PriorityLevelConfigurationCondition defines the condition of priority level. type PriorityLevelConfigurationCondition struct { // `type` is the type of the condition. // Required. Type PriorityLevelConfigurationConditionType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type"` // `status` is the status of the condition. // Can be True, False, Unknown. // Required. Status ConditionStatus `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"` // `lastTransitionTime` is the last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` // `message` is a human-readable message indicating details about last transition. Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` } // ConditionStatus is the status of the condition. 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" ) golang-k8s-api-0.29.0/flowcontrol/v1beta3/types_swagger_doc_generated.go000066400000000000000000000530461453636404600262400ustar00rootroot00000000000000/* 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 v1beta3 // 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_ExemptPriorityLevelConfiguration = map[string]string{ "": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.", "nominalConcurrencyShares": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.", "lendablePercent": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", } func (ExemptPriorityLevelConfiguration) SwaggerDoc() map[string]string { return map_ExemptPriorityLevelConfiguration } var map_FlowDistinguisherMethod = map[string]string{ "": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", "type": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", } func (FlowDistinguisherMethod) SwaggerDoc() map[string]string { return map_FlowDistinguisherMethod } var map_FlowSchema = map[string]string{ "": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", "metadata": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "spec": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", "status": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", } func (FlowSchema) SwaggerDoc() map[string]string { return map_FlowSchema } var map_FlowSchemaCondition = map[string]string{ "": "FlowSchemaCondition describes conditions for a FlowSchema.", "type": "`type` is the type of the condition. Required.", "status": "`status` is the status of the condition. Can be True, False, Unknown. Required.", "lastTransitionTime": "`lastTransitionTime` is the last time the condition transitioned from one status to another.", "reason": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", "message": "`message` is a human-readable message indicating details about last transition.", } func (FlowSchemaCondition) SwaggerDoc() map[string]string { return map_FlowSchemaCondition } var map_FlowSchemaList = map[string]string{ "": "FlowSchemaList is a list of FlowSchema objects.", "metadata": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "items": "`items` is a list of FlowSchemas.", } func (FlowSchemaList) SwaggerDoc() map[string]string { return map_FlowSchemaList } var map_FlowSchemaSpec = map[string]string{ "": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", "priorityLevelConfiguration": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required.", "matchingPrecedence": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.", "distinguisherMethod": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string.", "rules": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", } func (FlowSchemaSpec) SwaggerDoc() map[string]string { return map_FlowSchemaSpec } var map_FlowSchemaStatus = map[string]string{ "": "FlowSchemaStatus represents the current state of a FlowSchema.", "conditions": "`conditions` is a list of the current states of FlowSchema.", } func (FlowSchemaStatus) SwaggerDoc() map[string]string { return map_FlowSchemaStatus } var map_GroupSubject = map[string]string{ "": "GroupSubject holds detailed information for group-kind subject.", "name": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.", } func (GroupSubject) SwaggerDoc() map[string]string { return map_GroupSubject } var map_LimitResponse = map[string]string{ "": "LimitResponse defines how to handle requests that can not be executed right now.", "type": "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.", "queuing": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`.", } func (LimitResponse) SwaggerDoc() map[string]string { return map_LimitResponse } var map_LimitedPriorityLevelConfiguration = map[string]string{ "": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", "nominalConcurrencyShares": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of 30.", "limitResponse": "`limitResponse` indicates what to do with requests that can not be executed right now", "lendablePercent": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", "borrowingLimitPercent": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", } func (LimitedPriorityLevelConfiguration) SwaggerDoc() map[string]string { return map_LimitedPriorityLevelConfiguration } var map_NonResourcePolicyRule = map[string]string{ "": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", "verbs": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", "nonResourceURLs": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", } func (NonResourcePolicyRule) SwaggerDoc() map[string]string { return map_NonResourcePolicyRule } var map_PolicyRulesWithSubjects = map[string]string{ "": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", "subjects": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", "resourceRules": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", "nonResourceRules": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", } func (PolicyRulesWithSubjects) SwaggerDoc() map[string]string { return map_PolicyRulesWithSubjects } var map_PriorityLevelConfiguration = map[string]string{ "": "PriorityLevelConfiguration represents the configuration of a priority level.", "metadata": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "spec": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", "status": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", } func (PriorityLevelConfiguration) SwaggerDoc() map[string]string { return map_PriorityLevelConfiguration } var map_PriorityLevelConfigurationCondition = map[string]string{ "": "PriorityLevelConfigurationCondition defines the condition of priority level.", "type": "`type` is the type of the condition. Required.", "status": "`status` is the status of the condition. Can be True, False, Unknown. Required.", "lastTransitionTime": "`lastTransitionTime` is the last time the condition transitioned from one status to another.", "reason": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", "message": "`message` is a human-readable message indicating details about last transition.", } func (PriorityLevelConfigurationCondition) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationCondition } var map_PriorityLevelConfigurationList = map[string]string{ "": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", "metadata": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "items": "`items` is a list of request-priorities.", } func (PriorityLevelConfigurationList) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationList } var map_PriorityLevelConfigurationReference = map[string]string{ "": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", "name": "`name` is the name of the priority level configuration being referenced Required.", } func (PriorityLevelConfigurationReference) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationReference } var map_PriorityLevelConfigurationSpec = map[string]string{ "": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", "type": "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.", "limited": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`.", "exempt": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply.", } func (PriorityLevelConfigurationSpec) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationSpec } var map_PriorityLevelConfigurationStatus = map[string]string{ "": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", "conditions": "`conditions` is the current state of \"request-priority\".", } func (PriorityLevelConfigurationStatus) SwaggerDoc() map[string]string { return map_PriorityLevelConfigurationStatus } var map_QueuingConfiguration = map[string]string{ "": "QueuingConfiguration holds the configuration parameters for queuing", "queues": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", "handSize": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", "queueLengthLimit": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", } func (QueuingConfiguration) SwaggerDoc() map[string]string { return map_QueuingConfiguration } var map_ResourcePolicyRule = map[string]string{ "": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", "verbs": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.", "apiGroups": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.", "resources": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.", "clusterScope": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.", "namespaces": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", } func (ResourcePolicyRule) SwaggerDoc() map[string]string { return map_ResourcePolicyRule } var map_ServiceAccountSubject = map[string]string{ "": "ServiceAccountSubject holds detailed information for service-account-kind subject.", "namespace": "`namespace` is the namespace of matching ServiceAccount objects. Required.", "name": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", } func (ServiceAccountSubject) SwaggerDoc() map[string]string { return map_ServiceAccountSubject } var map_Subject = map[string]string{ "": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", "kind": "`kind` indicates which one of the other fields is non-empty. Required", "user": "`user` matches based on username.", "group": "`group` matches based on user group name.", "serviceAccount": "`serviceAccount` matches ServiceAccounts.", } func (Subject) SwaggerDoc() map[string]string { return map_Subject } var map_UserSubject = map[string]string{ "": "UserSubject holds detailed information for user-kind subject.", "name": "`name` is the username that matches, or \"*\" to match all usernames. Required.", } func (UserSubject) SwaggerDoc() map[string]string { return map_UserSubject } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/flowcontrol/v1beta3/zz_generated.deepcopy.go000066400000000000000000000422071453636404600247770ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 v1beta3 import ( runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ExemptPriorityLevelConfiguration) DeepCopyInto(out *ExemptPriorityLevelConfiguration) { *out = *in if in.NominalConcurrencyShares != nil { in, out := &in.NominalConcurrencyShares, &out.NominalConcurrencyShares *out = new(int32) **out = **in } if in.LendablePercent != nil { in, out := &in.LendablePercent, &out.LendablePercent *out = new(int32) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExemptPriorityLevelConfiguration. func (in *ExemptPriorityLevelConfiguration) DeepCopy() *ExemptPriorityLevelConfiguration { if in == nil { return nil } out := new(ExemptPriorityLevelConfiguration) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FlowDistinguisherMethod) DeepCopyInto(out *FlowDistinguisherMethod) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowDistinguisherMethod. func (in *FlowDistinguisherMethod) DeepCopy() *FlowDistinguisherMethod { if in == nil { return nil } out := new(FlowDistinguisherMethod) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FlowSchema) DeepCopyInto(out *FlowSchema) { *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 FlowSchema. func (in *FlowSchema) DeepCopy() *FlowSchema { if in == nil { return nil } out := new(FlowSchema) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *FlowSchema) 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 *FlowSchemaCondition) DeepCopyInto(out *FlowSchemaCondition) { *out = *in in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowSchemaCondition. func (in *FlowSchemaCondition) DeepCopy() *FlowSchemaCondition { if in == nil { return nil } out := new(FlowSchemaCondition) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FlowSchemaList) DeepCopyInto(out *FlowSchemaList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]FlowSchema, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowSchemaList. func (in *FlowSchemaList) DeepCopy() *FlowSchemaList { if in == nil { return nil } out := new(FlowSchemaList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *FlowSchemaList) 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 *FlowSchemaSpec) DeepCopyInto(out *FlowSchemaSpec) { *out = *in out.PriorityLevelConfiguration = in.PriorityLevelConfiguration if in.DistinguisherMethod != nil { in, out := &in.DistinguisherMethod, &out.DistinguisherMethod *out = new(FlowDistinguisherMethod) **out = **in } if in.Rules != nil { in, out := &in.Rules, &out.Rules *out = make([]PolicyRulesWithSubjects, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowSchemaSpec. func (in *FlowSchemaSpec) DeepCopy() *FlowSchemaSpec { if in == nil { return nil } out := new(FlowSchemaSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FlowSchemaStatus) DeepCopyInto(out *FlowSchemaStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]FlowSchemaCondition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowSchemaStatus. func (in *FlowSchemaStatus) DeepCopy() *FlowSchemaStatus { if in == nil { return nil } out := new(FlowSchemaStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *GroupSubject) DeepCopyInto(out *GroupSubject) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupSubject. func (in *GroupSubject) DeepCopy() *GroupSubject { if in == nil { return nil } out := new(GroupSubject) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *LimitResponse) DeepCopyInto(out *LimitResponse) { *out = *in if in.Queuing != nil { in, out := &in.Queuing, &out.Queuing *out = new(QueuingConfiguration) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LimitResponse. func (in *LimitResponse) DeepCopy() *LimitResponse { if in == nil { return nil } out := new(LimitResponse) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *LimitedPriorityLevelConfiguration) DeepCopyInto(out *LimitedPriorityLevelConfiguration) { *out = *in in.LimitResponse.DeepCopyInto(&out.LimitResponse) if in.LendablePercent != nil { in, out := &in.LendablePercent, &out.LendablePercent *out = new(int32) **out = **in } if in.BorrowingLimitPercent != nil { in, out := &in.BorrowingLimitPercent, &out.BorrowingLimitPercent *out = new(int32) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LimitedPriorityLevelConfiguration. func (in *LimitedPriorityLevelConfiguration) DeepCopy() *LimitedPriorityLevelConfiguration { if in == nil { return nil } out := new(LimitedPriorityLevelConfiguration) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NonResourcePolicyRule) DeepCopyInto(out *NonResourcePolicyRule) { *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 NonResourcePolicyRule. func (in *NonResourcePolicyRule) DeepCopy() *NonResourcePolicyRule { if in == nil { return nil } out := new(NonResourcePolicyRule) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PolicyRulesWithSubjects) DeepCopyInto(out *PolicyRulesWithSubjects) { *out = *in if in.Subjects != nil { in, out := &in.Subjects, &out.Subjects *out = make([]Subject, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.ResourceRules != nil { in, out := &in.ResourceRules, &out.ResourceRules *out = make([]ResourcePolicyRule, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.NonResourceRules != nil { in, out := &in.NonResourceRules, &out.NonResourceRules *out = make([]NonResourcePolicyRule, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRulesWithSubjects. func (in *PolicyRulesWithSubjects) DeepCopy() *PolicyRulesWithSubjects { if in == nil { return nil } out := new(PolicyRulesWithSubjects) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PriorityLevelConfiguration) DeepCopyInto(out *PriorityLevelConfiguration) { *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 PriorityLevelConfiguration. func (in *PriorityLevelConfiguration) DeepCopy() *PriorityLevelConfiguration { if in == nil { return nil } out := new(PriorityLevelConfiguration) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *PriorityLevelConfiguration) 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 *PriorityLevelConfigurationCondition) DeepCopyInto(out *PriorityLevelConfigurationCondition) { *out = *in in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationCondition. func (in *PriorityLevelConfigurationCondition) DeepCopy() *PriorityLevelConfigurationCondition { if in == nil { return nil } out := new(PriorityLevelConfigurationCondition) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PriorityLevelConfigurationList) DeepCopyInto(out *PriorityLevelConfigurationList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]PriorityLevelConfiguration, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationList. func (in *PriorityLevelConfigurationList) DeepCopy() *PriorityLevelConfigurationList { if in == nil { return nil } out := new(PriorityLevelConfigurationList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *PriorityLevelConfigurationList) 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 *PriorityLevelConfigurationReference) DeepCopyInto(out *PriorityLevelConfigurationReference) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationReference. func (in *PriorityLevelConfigurationReference) DeepCopy() *PriorityLevelConfigurationReference { if in == nil { return nil } out := new(PriorityLevelConfigurationReference) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PriorityLevelConfigurationSpec) DeepCopyInto(out *PriorityLevelConfigurationSpec) { *out = *in if in.Limited != nil { in, out := &in.Limited, &out.Limited *out = new(LimitedPriorityLevelConfiguration) (*in).DeepCopyInto(*out) } if in.Exempt != nil { in, out := &in.Exempt, &out.Exempt *out = new(ExemptPriorityLevelConfiguration) (*in).DeepCopyInto(*out) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationSpec. func (in *PriorityLevelConfigurationSpec) DeepCopy() *PriorityLevelConfigurationSpec { if in == nil { return nil } out := new(PriorityLevelConfigurationSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PriorityLevelConfigurationStatus) DeepCopyInto(out *PriorityLevelConfigurationStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]PriorityLevelConfigurationCondition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityLevelConfigurationStatus. func (in *PriorityLevelConfigurationStatus) DeepCopy() *PriorityLevelConfigurationStatus { if in == nil { return nil } out := new(PriorityLevelConfigurationStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *QueuingConfiguration) DeepCopyInto(out *QueuingConfiguration) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueuingConfiguration. func (in *QueuingConfiguration) DeepCopy() *QueuingConfiguration { if in == nil { return nil } out := new(QueuingConfiguration) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ResourcePolicyRule) DeepCopyInto(out *ResourcePolicyRule) { *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.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 ResourcePolicyRule. func (in *ResourcePolicyRule) DeepCopy() *ResourcePolicyRule { if in == nil { return nil } out := new(ResourcePolicyRule) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServiceAccountSubject) DeepCopyInto(out *ServiceAccountSubject) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountSubject. func (in *ServiceAccountSubject) DeepCopy() *ServiceAccountSubject { if in == nil { return nil } out := new(ServiceAccountSubject) 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 if in.User != nil { in, out := &in.User, &out.User *out = new(UserSubject) **out = **in } if in.Group != nil { in, out := &in.Group, &out.Group *out = new(GroupSubject) **out = **in } if in.ServiceAccount != nil { in, out := &in.ServiceAccount, &out.ServiceAccount *out = new(ServiceAccountSubject) **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 } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *UserSubject) DeepCopyInto(out *UserSubject) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSubject. func (in *UserSubject) DeepCopy() *UserSubject { if in == nil { return nil } out := new(UserSubject) in.DeepCopyInto(out) return out } golang-k8s-api-0.29.0/flowcontrol/v1beta3/zz_generated.prerelease-lifecycle.go000066400000000000000000000161461453636404600272560ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta3 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *FlowSchema) APILifecycleIntroduced() (major, minor int) { return 1, 26 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *FlowSchema) APILifecycleDeprecated() (major, minor int) { return 1, 29 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *FlowSchema) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "flowcontrol.apiserver.k8s.io", Version: "v1", Kind: "FlowSchema"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *FlowSchema) APILifecycleRemoved() (major, minor int) { return 1, 32 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *FlowSchemaList) APILifecycleIntroduced() (major, minor int) { return 1, 26 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *FlowSchemaList) APILifecycleDeprecated() (major, minor int) { return 1, 29 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *FlowSchemaList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "flowcontrol.apiserver.k8s.io", Version: "v1", Kind: "FlowSchemaList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *FlowSchemaList) APILifecycleRemoved() (major, minor int) { return 1, 32 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *PriorityLevelConfiguration) APILifecycleIntroduced() (major, minor int) { return 1, 26 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *PriorityLevelConfiguration) APILifecycleDeprecated() (major, minor int) { return 1, 29 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *PriorityLevelConfiguration) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "flowcontrol.apiserver.k8s.io", Version: "v1", Kind: "PriorityLevelConfiguration"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *PriorityLevelConfiguration) APILifecycleRemoved() (major, minor int) { return 1, 32 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *PriorityLevelConfigurationList) APILifecycleIntroduced() (major, minor int) { return 1, 26 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *PriorityLevelConfigurationList) APILifecycleDeprecated() (major, minor int) { return 1, 29 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *PriorityLevelConfigurationList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "flowcontrol.apiserver.k8s.io", Version: "v1", Kind: "PriorityLevelConfigurationList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *PriorityLevelConfigurationList) APILifecycleRemoved() (major, minor int) { return 1, 32 } golang-k8s-api-0.29.0/go.mod000066400000000000000000000025201453636404600154430ustar00rootroot00000000000000// This is a generated file. Do not edit directly. module k8s.io/api go 1.21 require ( github.com/gogo/protobuf v1.3.2 github.com/stretchr/testify v1.8.4 k8s.io/apimachinery v0.29.0 ) require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/go-logr/logr v1.3.0 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/google/gofuzz v1.2.0 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/kr/text v0.2.0 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/spf13/pflag v1.0.5 // indirect golang.org/x/net v0.17.0 // indirect golang.org/x/text v0.13.0 // indirect google.golang.org/protobuf v1.31.0 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect k8s.io/klog/v2 v2.110.1 // indirect k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect sigs.k8s.io/yaml v1.3.0 // indirect ) replace k8s.io/apimachinery => k8s.io/apimachinery v0.29.0 golang-k8s-api-0.29.0/go.sum000066400000000000000000000217561453636404600155040ustar00rootroot00000000000000github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/go-logr/logr v1.3.0 h1:2y3SDp0ZXuc6/cjLSZ+Q3ir+QB9T/iG5yYRXqsagWSY= github.com/go-logr/logr v1.3.0/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= k8s.io/apimachinery v0.29.0 h1:+ACVktwyicPz0oc6MTMLwa2Pw3ouLAfAon1wPLtG48o= k8s.io/apimachinery v0.29.0/go.mod h1:eVBxQ/cwiJxH58eK/jd/vAk4mrxmVlnpBH5J2GbMeis= k8s.io/klog/v2 v2.110.1 h1:U/Af64HJf7FcwMcXyKm2RPM22WZzyR7OSpYj5tg3cL0= k8s.io/klog/v2 v2.110.1/go.mod h1:YGtd1984u+GgbuZ7e08/yBuAfKLSO0+uR1Fhi6ExXjo= k8s.io/utils v0.0.0-20230726121419-3b25d923346b h1:sgn3ZU783SCgtaSJjpcVVlRqd6GSnlTLKgpAAttJvpI= k8s.io/utils v0.0.0-20230726121419-3b25d923346b/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo= sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0= sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4= sigs.k8s.io/structured-merge-diff/v4 v4.4.1/go.mod h1:N8hJocpFajUSSeSJ9bOZ77VzejKZaXsTtZo4/u7Io08= sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= golang-k8s-api-0.29.0/imagepolicy/000077500000000000000000000000001453636404600166405ustar00rootroot00000000000000golang-k8s-api-0.29.0/imagepolicy/OWNERS000066400000000000000000000003031453636404600175740ustar00rootroot00000000000000# See the OWNERS docs at https://go.k8s.io/owners # approval on api packages bubbles to api-approvers reviewers: - sig-auth-policy-approvers - sig-auth-policy-reviewers labels: - sig/auth golang-k8s-api-0.29.0/imagepolicy/v1alpha1/000077500000000000000000000000001453636404600202555ustar00rootroot00000000000000golang-k8s-api-0.29.0/imagepolicy/v1alpha1/doc.go000066400000000000000000000013561453636404600213560ustar00rootroot00000000000000/* 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 "k8s.io/api/imagepolicy/v1alpha1" golang-k8s-api-0.29.0/imagepolicy/v1alpha1/generated.pb.go000066400000000000000000001100651453636404600231450ustar00rootroot00000000000000/* 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/k8s.io/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.GoGoProtoPackageIsVersion3 // 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/k8s.io/api/imagepolicy/v1alpha1/generated.proto", fileDescriptor_834793af728657a5) } var fileDescriptor_834793af728657a5 = []byte{ // 609 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xcf, 0x6e, 0xd3, 0x4c, 0x14, 0xc5, 0xe3, 0xa4, 0xff, 0x32, 0xf9, 0x3e, 0x9a, 0x0e, 0x20, 0x59, 0x59, 0x38, 0x55, 0x90, 0x50, 0x59, 0x30, 0x43, 0x2b, 0x84, 0x0a, 0x0b, 0x50, 0x5c, 0x55, 0x2a, 0x0b, 0x40, 0x1a, 0x76, 0x5d, 0x31, 0x71, 0x2e, 0x8e, 0x49, 0x3c, 0x63, 0x79, 0xc6, 0x29, 0xd9, 0xf1, 0x04, 0x88, 0x37, 0xe0, 0x45, 0x78, 0x80, 0x2e, 0xbb, 0xec, 0xaa, 0xa2, 0x61, 0xc9, 0x4b, 0x20, 0x8f, 0x9d, 0xd8, 0x24, 0x45, 0x55, 0x76, 0xbe, 0xf7, 0xce, 0xf9, 0xdd, 0xe3, 0xe3, 0x91, 0xd1, 0xc9, 0xf0, 0x50, 0x91, 0x40, 0xd2, 0x61, 0xd2, 0x83, 0x58, 0x80, 0x06, 0x45, 0xc7, 0x20, 0xfa, 0x32, 0xa6, 0xf9, 0x80, 0x47, 0x01, 0x0d, 0x42, 0xee, 0x43, 0x24, 0x47, 0x81, 0x37, 0xa1, 0xe3, 0x7d, 0x3e, 0x8a, 0x06, 0x7c, 0x9f, 0xfa, 0x20, 0x20, 0xe6, 0x1a, 0xfa, 0x24, 0x8a, 0xa5, 0x96, 0xb8, 0x9d, 0x09, 0x08, 0x8f, 0x02, 0x52, 0x12, 0x90, 0x99, 0xa0, 0xf5, 0xd8, 0x0f, 0xf4, 0x20, 0xe9, 0x11, 0x4f, 0x86, 0xd4, 0x97, 0xbe, 0xa4, 0x46, 0xd7, 0x4b, 0x3e, 0x9a, 0xca, 0x14, 0xe6, 0x29, 0xe3, 0xb5, 0x9e, 0x16, 0x06, 0x42, 0xee, 0x0d, 0x02, 0x01, 0xf1, 0x84, 0x46, 0x43, 0x3f, 0x6d, 0x28, 0x1a, 0x82, 0xe6, 0x74, 0xbc, 0xe4, 0xa2, 0x45, 0xff, 0xa5, 0x8a, 0x13, 0xa1, 0x83, 0x10, 0x96, 0x04, 0xcf, 0x6e, 0x13, 0x28, 0x6f, 0x00, 0x21, 0x5f, 0xd4, 0x75, 0xbe, 0x57, 0x51, 0xe3, 0x75, 0xfa, 0x9a, 0x0c, 0xc6, 0x01, 0x9c, 0xe1, 0x0f, 0x68, 0x2b, 0xf5, 0xd4, 0xe7, 0x9a, 0xdb, 0xd6, 0xae, 0xb5, 0xd7, 0x38, 0x78, 0x42, 0x8a, 0x44, 0xe6, 0x68, 0x12, 0x0d, 0xfd, 0xb4, 0xa1, 0x48, 0x7a, 0x9a, 0x8c, 0xf7, 0xc9, 0xbb, 0xde, 0x27, 0xf0, 0xf4, 0x1b, 0xd0, 0xdc, 0xc5, 0xe7, 0x57, 0xed, 0xca, 0xf4, 0xaa, 0x8d, 0x8a, 0x1e, 0x9b, 0x53, 0x31, 0x43, 0x6b, 0x2a, 0x02, 0xcf, 0xae, 0x2e, 0xd1, 0x6f, 0xcc, 0x9b, 0x94, 0xdc, 0xbd, 0x8f, 0xc0, 0x73, 0xff, 0xcb, 0xe9, 0x6b, 0x69, 0xc5, 0x0c, 0x0b, 0x9f, 0xa2, 0x0d, 0xa5, 0xb9, 0x4e, 0x94, 0x5d, 0x33, 0xd4, 0x83, 0x95, 0xa8, 0x46, 0xe9, 0xde, 0xc9, 0xb9, 0x1b, 0x59, 0xcd, 0x72, 0x62, 0xe7, 0x15, 0xb2, 0x4b, 0x87, 0x8f, 0xa4, 0xd0, 0x3c, 0x8d, 0x20, 0xdd, 0x8e, 0x1f, 0xa0, 0x75, 0x43, 0x37, 0x51, 0xd5, 0xdd, 0xff, 0x73, 0xc4, 0x7a, 0x26, 0xc8, 0x66, 0x9d, 0xdf, 0x55, 0xb4, 0xbd, 0xf0, 0x12, 0x38, 0x44, 0xc8, 0x9b, 0x91, 0x94, 0x6d, 0xed, 0xd6, 0xf6, 0x1a, 0x07, 0xcf, 0x57, 0x31, 0xfd, 0x97, 0x8f, 0x22, 0xf1, 0x79, 0x5b, 0xb1, 0xd2, 0x02, 0xfc, 0x19, 0x35, 0xb8, 0x10, 0x52, 0x73, 0x1d, 0x48, 0xa1, 0xec, 0xaa, 0xd9, 0xd7, 0x5d, 0x35, 0x7a, 0xd2, 0x2d, 0x18, 0xc7, 0x42, 0xc7, 0x13, 0xf7, 0x6e, 0xbe, 0xb7, 0x51, 0x9a, 0xb0, 0xf2, 0x2a, 0x4c, 0x51, 0x5d, 0xf0, 0x10, 0x54, 0xc4, 0x3d, 0x30, 0x1f, 0xa7, 0xee, 0xee, 0xe4, 0xa2, 0xfa, 0xdb, 0xd9, 0x80, 0x15, 0x67, 0x5a, 0x2f, 0x51, 0x73, 0x71, 0x0d, 0x6e, 0xa2, 0xda, 0x10, 0x26, 0x59, 0xc8, 0x2c, 0x7d, 0xc4, 0xf7, 0xd0, 0xfa, 0x98, 0x8f, 0x12, 0x30, 0xb7, 0xa8, 0xce, 0xb2, 0xe2, 0x45, 0xf5, 0xd0, 0xea, 0xfc, 0xa8, 0xa2, 0x9d, 0xa5, 0x8f, 0x8b, 0x1f, 0xa1, 0x4d, 0x3e, 0x1a, 0xc9, 0x33, 0xe8, 0x1b, 0xca, 0x96, 0xbb, 0x9d, 0x9b, 0xd8, 0xec, 0x66, 0x6d, 0x36, 0x9b, 0xe3, 0x87, 0x68, 0x23, 0x06, 0xae, 0xa4, 0xc8, 0xd8, 0xc5, 0xbd, 0x60, 0xa6, 0xcb, 0xf2, 0x29, 0xfe, 0x6a, 0xa1, 0x26, 0x4f, 0xfa, 0x81, 0x2e, 0xd9, 0xb5, 0x6b, 0x26, 0xd9, 0x93, 0xd5, 0xaf, 0x1f, 0xe9, 0x2e, 0xa0, 0xb2, 0x80, 0xed, 0x7c, 0x79, 0x73, 0x71, 0xcc, 0x96, 0x76, 0xb7, 0x8e, 0xd0, 0xfd, 0x1b, 0x21, 0xab, 0xc4, 0xe7, 0x1e, 0x9f, 0x5f, 0x3b, 0x95, 0x8b, 0x6b, 0xa7, 0x72, 0x79, 0xed, 0x54, 0xbe, 0x4c, 0x1d, 0xeb, 0x7c, 0xea, 0x58, 0x17, 0x53, 0xc7, 0xba, 0x9c, 0x3a, 0xd6, 0xcf, 0xa9, 0x63, 0x7d, 0xfb, 0xe5, 0x54, 0x4e, 0xdb, 0xb7, 0xfc, 0x55, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x9e, 0x2c, 0xa6, 0xdf, 0x90, 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) || (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) || (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) || (iNdEx+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) || (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) || (iNdEx+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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/imagepolicy/v1alpha1/generated.proto000066400000000000000000000062521453636404600233050ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/imagepolicy/v1alpha1"; // ImageReview checks if the set of images in a pod are allowed. message ImageReview { // 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 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; } golang-k8s-api-0.29.0/imagepolicy/v1alpha1/register.go000066400000000000000000000032631453636404600224340ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &ImageReview{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/imagepolicy/v1alpha1/types.go000066400000000000000000000070171453636404600217550ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +genclient:noVerbs // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // ImageReview checks if the set of images in a pod are allowed. type ImageReview 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 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"` } golang-k8s-api-0.29.0/imagepolicy/v1alpha1/types_swagger_doc_generated.go000066400000000000000000000066761453636404600263510ustar00rootroot00000000000000/* 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-codegen.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.", "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "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 golang-k8s-api-0.29.0/imagepolicy/v1alpha1/zz_generated.deepcopy.go000066400000000000000000000067111453636404600251010ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/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 } golang-k8s-api-0.29.0/networking/000077500000000000000000000000001453636404600165255ustar00rootroot00000000000000golang-k8s-api-0.29.0/networking/OWNERS000066400000000000000000000001541453636404600174650ustar00rootroot00000000000000# See the OWNERS docs at https://go.k8s.io/owners reviewers: - caseydavenport - danwinship - thockin golang-k8s-api-0.29.0/networking/v1/000077500000000000000000000000001453636404600170535ustar00rootroot00000000000000golang-k8s-api-0.29.0/networking/v1/doc.go000066400000000000000000000013371453636404600201530ustar00rootroot00000000000000/* 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 "k8s.io/api/networking/v1" golang-k8s-api-0.29.0/networking/v1/generated.pb.go000066400000000000000000004745711453636404600217620ustar00rootroot00000000000000/* 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/k8s.io/api/networking/v1/generated.proto package v1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" k8s_io_api_core_v1 "k8s.io/api/core/v1" v11 "k8s.io/api/core/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" math "math" math_bits "math/bits" reflect "reflect" strings "strings" intstr "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *HTTPIngressPath) Reset() { *m = HTTPIngressPath{} } func (*HTTPIngressPath) ProtoMessage() {} func (*HTTPIngressPath) Descriptor() ([]byte, []int) { return fileDescriptor_1c72867a70a7cc90, []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_1c72867a70a7cc90, []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 *IPBlock) Reset() { *m = IPBlock{} } func (*IPBlock) ProtoMessage() {} func (*IPBlock) Descriptor() ([]byte, []int) { return fileDescriptor_1c72867a70a7cc90, []int{2} } 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_1c72867a70a7cc90, []int{3} } 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_1c72867a70a7cc90, []int{4} } 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 *IngressClass) Reset() { *m = IngressClass{} } func (*IngressClass) ProtoMessage() {} func (*IngressClass) Descriptor() ([]byte, []int) { return fileDescriptor_1c72867a70a7cc90, []int{5} } func (m *IngressClass) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IngressClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IngressClass) XXX_Merge(src proto.Message) { xxx_messageInfo_IngressClass.Merge(m, src) } func (m *IngressClass) XXX_Size() int { return m.Size() } func (m *IngressClass) XXX_DiscardUnknown() { xxx_messageInfo_IngressClass.DiscardUnknown(m) } var xxx_messageInfo_IngressClass proto.InternalMessageInfo func (m *IngressClassList) Reset() { *m = IngressClassList{} } func (*IngressClassList) ProtoMessage() {} func (*IngressClassList) Descriptor() ([]byte, []int) { return fileDescriptor_1c72867a70a7cc90, []int{6} } func (m *IngressClassList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IngressClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IngressClassList) XXX_Merge(src proto.Message) { xxx_messageInfo_IngressClassList.Merge(m, src) } func (m *IngressClassList) XXX_Size() int { return m.Size() } func (m *IngressClassList) XXX_DiscardUnknown() { xxx_messageInfo_IngressClassList.DiscardUnknown(m) } var xxx_messageInfo_IngressClassList proto.InternalMessageInfo func (m *IngressClassParametersReference) Reset() { *m = IngressClassParametersReference{} } func (*IngressClassParametersReference) ProtoMessage() {} func (*IngressClassParametersReference) Descriptor() ([]byte, []int) { return fileDescriptor_1c72867a70a7cc90, []int{7} } func (m *IngressClassParametersReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IngressClassParametersReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IngressClassParametersReference) XXX_Merge(src proto.Message) { xxx_messageInfo_IngressClassParametersReference.Merge(m, src) } func (m *IngressClassParametersReference) XXX_Size() int { return m.Size() } func (m *IngressClassParametersReference) XXX_DiscardUnknown() { xxx_messageInfo_IngressClassParametersReference.DiscardUnknown(m) } var xxx_messageInfo_IngressClassParametersReference proto.InternalMessageInfo func (m *IngressClassSpec) Reset() { *m = IngressClassSpec{} } func (*IngressClassSpec) ProtoMessage() {} func (*IngressClassSpec) Descriptor() ([]byte, []int) { return fileDescriptor_1c72867a70a7cc90, []int{8} } func (m *IngressClassSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IngressClassSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IngressClassSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_IngressClassSpec.Merge(m, src) } func (m *IngressClassSpec) XXX_Size() int { return m.Size() } func (m *IngressClassSpec) XXX_DiscardUnknown() { xxx_messageInfo_IngressClassSpec.DiscardUnknown(m) } var xxx_messageInfo_IngressClassSpec proto.InternalMessageInfo func (m *IngressList) Reset() { *m = IngressList{} } func (*IngressList) ProtoMessage() {} func (*IngressList) Descriptor() ([]byte, []int) { return fileDescriptor_1c72867a70a7cc90, []int{9} } 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 *IngressLoadBalancerIngress) Reset() { *m = IngressLoadBalancerIngress{} } func (*IngressLoadBalancerIngress) ProtoMessage() {} func (*IngressLoadBalancerIngress) Descriptor() ([]byte, []int) { return fileDescriptor_1c72867a70a7cc90, []int{10} } func (m *IngressLoadBalancerIngress) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IngressLoadBalancerIngress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IngressLoadBalancerIngress) XXX_Merge(src proto.Message) { xxx_messageInfo_IngressLoadBalancerIngress.Merge(m, src) } func (m *IngressLoadBalancerIngress) XXX_Size() int { return m.Size() } func (m *IngressLoadBalancerIngress) XXX_DiscardUnknown() { xxx_messageInfo_IngressLoadBalancerIngress.DiscardUnknown(m) } var xxx_messageInfo_IngressLoadBalancerIngress proto.InternalMessageInfo func (m *IngressLoadBalancerStatus) Reset() { *m = IngressLoadBalancerStatus{} } func (*IngressLoadBalancerStatus) ProtoMessage() {} func (*IngressLoadBalancerStatus) Descriptor() ([]byte, []int) { return fileDescriptor_1c72867a70a7cc90, []int{11} } func (m *IngressLoadBalancerStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IngressLoadBalancerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IngressLoadBalancerStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_IngressLoadBalancerStatus.Merge(m, src) } func (m *IngressLoadBalancerStatus) XXX_Size() int { return m.Size() } func (m *IngressLoadBalancerStatus) XXX_DiscardUnknown() { xxx_messageInfo_IngressLoadBalancerStatus.DiscardUnknown(m) } var xxx_messageInfo_IngressLoadBalancerStatus proto.InternalMessageInfo func (m *IngressPortStatus) Reset() { *m = IngressPortStatus{} } func (*IngressPortStatus) ProtoMessage() {} func (*IngressPortStatus) Descriptor() ([]byte, []int) { return fileDescriptor_1c72867a70a7cc90, []int{12} } func (m *IngressPortStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IngressPortStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IngressPortStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_IngressPortStatus.Merge(m, src) } func (m *IngressPortStatus) XXX_Size() int { return m.Size() } func (m *IngressPortStatus) XXX_DiscardUnknown() { xxx_messageInfo_IngressPortStatus.DiscardUnknown(m) } var xxx_messageInfo_IngressPortStatus proto.InternalMessageInfo func (m *IngressRule) Reset() { *m = IngressRule{} } func (*IngressRule) ProtoMessage() {} func (*IngressRule) Descriptor() ([]byte, []int) { return fileDescriptor_1c72867a70a7cc90, []int{13} } 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_1c72867a70a7cc90, []int{14} } 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 *IngressServiceBackend) Reset() { *m = IngressServiceBackend{} } func (*IngressServiceBackend) ProtoMessage() {} func (*IngressServiceBackend) Descriptor() ([]byte, []int) { return fileDescriptor_1c72867a70a7cc90, []int{15} } func (m *IngressServiceBackend) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IngressServiceBackend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IngressServiceBackend) XXX_Merge(src proto.Message) { xxx_messageInfo_IngressServiceBackend.Merge(m, src) } func (m *IngressServiceBackend) XXX_Size() int { return m.Size() } func (m *IngressServiceBackend) XXX_DiscardUnknown() { xxx_messageInfo_IngressServiceBackend.DiscardUnknown(m) } var xxx_messageInfo_IngressServiceBackend proto.InternalMessageInfo func (m *IngressSpec) Reset() { *m = IngressSpec{} } func (*IngressSpec) ProtoMessage() {} func (*IngressSpec) Descriptor() ([]byte, []int) { return fileDescriptor_1c72867a70a7cc90, []int{16} } 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_1c72867a70a7cc90, []int{17} } 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_1c72867a70a7cc90, []int{18} } 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_1c72867a70a7cc90, []int{19} } 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{20} } 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{21} } 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{22} } 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{23} } 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{24} } 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{25} } 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 *ServiceBackendPort) Reset() { *m = ServiceBackendPort{} } func (*ServiceBackendPort) ProtoMessage() {} func (*ServiceBackendPort) Descriptor() ([]byte, []int) { return fileDescriptor_1c72867a70a7cc90, []int{26} } func (m *ServiceBackendPort) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ServiceBackendPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ServiceBackendPort) XXX_Merge(src proto.Message) { xxx_messageInfo_ServiceBackendPort.Merge(m, src) } func (m *ServiceBackendPort) XXX_Size() int { return m.Size() } func (m *ServiceBackendPort) XXX_DiscardUnknown() { xxx_messageInfo_ServiceBackendPort.DiscardUnknown(m) } var xxx_messageInfo_ServiceBackendPort proto.InternalMessageInfo func init() { proto.RegisterType((*HTTPIngressPath)(nil), "k8s.io.api.networking.v1.HTTPIngressPath") proto.RegisterType((*HTTPIngressRuleValue)(nil), "k8s.io.api.networking.v1.HTTPIngressRuleValue") proto.RegisterType((*IPBlock)(nil), "k8s.io.api.networking.v1.IPBlock") proto.RegisterType((*Ingress)(nil), "k8s.io.api.networking.v1.Ingress") proto.RegisterType((*IngressBackend)(nil), "k8s.io.api.networking.v1.IngressBackend") proto.RegisterType((*IngressClass)(nil), "k8s.io.api.networking.v1.IngressClass") proto.RegisterType((*IngressClassList)(nil), "k8s.io.api.networking.v1.IngressClassList") proto.RegisterType((*IngressClassParametersReference)(nil), "k8s.io.api.networking.v1.IngressClassParametersReference") proto.RegisterType((*IngressClassSpec)(nil), "k8s.io.api.networking.v1.IngressClassSpec") proto.RegisterType((*IngressList)(nil), "k8s.io.api.networking.v1.IngressList") proto.RegisterType((*IngressLoadBalancerIngress)(nil), "k8s.io.api.networking.v1.IngressLoadBalancerIngress") proto.RegisterType((*IngressLoadBalancerStatus)(nil), "k8s.io.api.networking.v1.IngressLoadBalancerStatus") proto.RegisterType((*IngressPortStatus)(nil), "k8s.io.api.networking.v1.IngressPortStatus") proto.RegisterType((*IngressRule)(nil), "k8s.io.api.networking.v1.IngressRule") proto.RegisterType((*IngressRuleValue)(nil), "k8s.io.api.networking.v1.IngressRuleValue") proto.RegisterType((*IngressServiceBackend)(nil), "k8s.io.api.networking.v1.IngressServiceBackend") proto.RegisterType((*IngressSpec)(nil), "k8s.io.api.networking.v1.IngressSpec") proto.RegisterType((*IngressStatus)(nil), "k8s.io.api.networking.v1.IngressStatus") proto.RegisterType((*IngressTLS)(nil), "k8s.io.api.networking.v1.IngressTLS") 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") proto.RegisterType((*ServiceBackendPort)(nil), "k8s.io.api.networking.v1.ServiceBackendPort") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/networking/v1/generated.proto", fileDescriptor_1c72867a70a7cc90) } var fileDescriptor_1c72867a70a7cc90 = []byte{ // 1671 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcb, 0x6f, 0x1b, 0xd5, 0x1a, 0xcf, 0x38, 0x71, 0xec, 0x1c, 0x27, 0x69, 0x72, 0x6e, 0xab, 0xeb, 0x9b, 0xab, 0x6b, 0xe7, 0x8e, 0x68, 0x1b, 0x68, 0x6b, 0xd3, 0xb4, 0x42, 0xb0, 0x01, 0x3a, 0x69, 0x9a, 0x86, 0xa6, 0x8e, 0x75, 0x6c, 0x15, 0x81, 0x78, 0x74, 0x32, 0x3e, 0xb1, 0xa7, 0x1e, 0xcf, 0x19, 0x9d, 0x39, 0x0e, 0xad, 0x84, 0x10, 0x1b, 0x16, 0xec, 0xf8, 0x17, 0x10, 0x7f, 0x01, 0x82, 0x05, 0x12, 0x82, 0xc2, 0x06, 0x75, 0x59, 0x89, 0x4d, 0x37, 0x58, 0xd4, 0xfc, 0x17, 0x59, 0xa1, 0xf3, 0x98, 0x97, 0x1f, 0xb5, 0xa9, 0xaa, 0xac, 0x92, 0xf3, 0x7d, 0xdf, 0xf9, 0x7d, 0x8f, 0xf3, 0xbd, 0xc6, 0xe0, 0x5a, 0xfb, 0x75, 0xbf, 0x64, 0x93, 0x72, 0xbb, 0x7b, 0x80, 0xa9, 0x8b, 0x19, 0xf6, 0xcb, 0x47, 0xd8, 0x6d, 0x10, 0x5a, 0x56, 0x0c, 0xd3, 0xb3, 0xcb, 0x2e, 0x66, 0x9f, 0x10, 0xda, 0xb6, 0xdd, 0x66, 0xf9, 0xe8, 0x72, 0xb9, 0x89, 0x5d, 0x4c, 0x4d, 0x86, 0x1b, 0x25, 0x8f, 0x12, 0x46, 0x60, 0x5e, 0x4a, 0x96, 0x4c, 0xcf, 0x2e, 0x45, 0x92, 0xa5, 0xa3, 0xcb, 0x6b, 0x97, 0x9a, 0x36, 0x6b, 0x75, 0x0f, 0x4a, 0x16, 0xe9, 0x94, 0x9b, 0xa4, 0x49, 0xca, 0xe2, 0xc2, 0x41, 0xf7, 0x50, 0x9c, 0xc4, 0x41, 0xfc, 0x27, 0x81, 0xd6, 0xf4, 0x98, 0x4a, 0x8b, 0x50, 0x3c, 0x42, 0xd9, 0xda, 0xd5, 0x48, 0xa6, 0x63, 0x5a, 0x2d, 0xdb, 0xc5, 0xf4, 0x41, 0xd9, 0x6b, 0x37, 0x39, 0xc1, 0x2f, 0x77, 0x30, 0x33, 0x47, 0xdd, 0x2a, 0x8f, 0xbb, 0x45, 0xbb, 0x2e, 0xb3, 0x3b, 0x78, 0xe8, 0xc2, 0x6b, 0x93, 0x2e, 0xf8, 0x56, 0x0b, 0x77, 0xcc, 0xa1, 0x7b, 0x57, 0xc6, 0xdd, 0xeb, 0x32, 0xdb, 0x29, 0xdb, 0x2e, 0xf3, 0x19, 0x1d, 0xbc, 0xa4, 0xff, 0xac, 0x81, 0x53, 0x37, 0xeb, 0xf5, 0xea, 0xae, 0xdb, 0xa4, 0xd8, 0xf7, 0xab, 0x26, 0x6b, 0xc1, 0x75, 0x30, 0xe7, 0x99, 0xac, 0x95, 0xd7, 0xd6, 0xb5, 0x8d, 0x05, 0x63, 0xf1, 0x51, 0xaf, 0x38, 0xd3, 0xef, 0x15, 0xe7, 0x38, 0x0f, 0x09, 0x0e, 0xbc, 0x0a, 0xb2, 0xfc, 0x6f, 0xfd, 0x81, 0x87, 0xf3, 0xb3, 0x42, 0x2a, 0xdf, 0xef, 0x15, 0xb3, 0x55, 0x45, 0x3b, 0x8e, 0xfd, 0x8f, 0x42, 0x49, 0x58, 0x03, 0x99, 0x03, 0xd3, 0x6a, 0x63, 0xb7, 0x91, 0x4f, 0xad, 0x6b, 0x1b, 0xb9, 0xcd, 0x8d, 0xd2, 0xb8, 0xe7, 0x2b, 0x29, 0x7b, 0x0c, 0x29, 0x6f, 0x9c, 0x52, 0x46, 0x64, 0x14, 0x01, 0x05, 0x48, 0xfa, 0x21, 0x38, 0x1d, 0xb3, 0x1f, 0x75, 0x1d, 0x7c, 0xc7, 0x74, 0xba, 0x18, 0x56, 0x40, 0x9a, 0x2b, 0xf6, 0xf3, 0xda, 0xfa, 0xec, 0x46, 0x6e, 0xf3, 0xe5, 0xf1, 0xaa, 0x06, 0xdc, 0x37, 0x96, 0x94, 0xae, 0x34, 0x3f, 0xf9, 0x48, 0xc2, 0xe8, 0xfb, 0x20, 0xb3, 0x5b, 0x35, 0x1c, 0x62, 0xb5, 0x79, 0x7c, 0x2c, 0xbb, 0x41, 0x07, 0xe3, 0xb3, 0xb5, 0x7b, 0x1d, 0x21, 0xc1, 0x81, 0x3a, 0x98, 0xc7, 0xf7, 0x2d, 0xec, 0xb1, 0x7c, 0x6a, 0x7d, 0x76, 0x63, 0xc1, 0x00, 0xfd, 0x5e, 0x71, 0x7e, 0x5b, 0x50, 0x90, 0xe2, 0xe8, 0x5f, 0xa4, 0x40, 0x46, 0xa9, 0x85, 0x77, 0x41, 0x96, 0xa7, 0x4f, 0xc3, 0x64, 0xa6, 0x40, 0xcd, 0x6d, 0xbe, 0x1a, 0xb3, 0x37, 0x7c, 0xcd, 0x92, 0xd7, 0x6e, 0x72, 0x82, 0x5f, 0xe2, 0xd2, 0xdc, 0xf6, 0xfd, 0x83, 0x7b, 0xd8, 0x62, 0xb7, 0x31, 0x33, 0x0d, 0xa8, 0xec, 0x00, 0x11, 0x0d, 0x85, 0xa8, 0x70, 0x07, 0xcc, 0xf9, 0x1e, 0xb6, 0x54, 0xe0, 0xcf, 0x4e, 0x0c, 0x7c, 0xcd, 0xc3, 0x56, 0xe4, 0x1a, 0x3f, 0x21, 0x01, 0x00, 0xf7, 0xc1, 0xbc, 0xcf, 0x4c, 0xd6, 0xf5, 0xc5, 0xc3, 0xe7, 0x36, 0xcf, 0x4f, 0x86, 0x12, 0xe2, 0xc6, 0xb2, 0x02, 0x9b, 0x97, 0x67, 0xa4, 0x60, 0xf4, 0x5f, 0x35, 0xb0, 0x9c, 0x7c, 0x6d, 0x78, 0x07, 0x64, 0x7c, 0x4c, 0x8f, 0x6c, 0x0b, 0xe7, 0xe7, 0x84, 0x92, 0xf2, 0x64, 0x25, 0x52, 0x3e, 0xc8, 0x97, 0x1c, 0xcf, 0x15, 0x45, 0x43, 0x01, 0x18, 0x7c, 0x17, 0x64, 0x29, 0xf6, 0x49, 0x97, 0x5a, 0x58, 0x59, 0x7f, 0x29, 0x0e, 0xcc, 0xeb, 0x9e, 0x43, 0xf2, 0x64, 0x6d, 0xec, 0x11, 0xcb, 0x74, 0x64, 0x28, 0x11, 0x3e, 0xc4, 0x14, 0xbb, 0x16, 0x36, 0x16, 0x79, 0x96, 0x23, 0x05, 0x81, 0x42, 0x30, 0x5e, 0x45, 0x8b, 0xca, 0x90, 0x2d, 0xc7, 0x3c, 0x91, 0x07, 0xdd, 0x4b, 0x3c, 0xe8, 0x2b, 0x13, 0x03, 0x24, 0xec, 0x1a, 0xf7, 0xaa, 0xfa, 0x4f, 0x1a, 0x58, 0x89, 0x0b, 0xee, 0xd9, 0x3e, 0x83, 0x1f, 0x0c, 0x39, 0x51, 0x9a, 0xce, 0x09, 0x7e, 0x5b, 0xb8, 0xb0, 0xa2, 0x54, 0x65, 0x03, 0x4a, 0xcc, 0x81, 0x5b, 0x20, 0x6d, 0x33, 0xdc, 0xf1, 0x45, 0x89, 0xe4, 0x36, 0xcf, 0x4d, 0xe7, 0x41, 0x54, 0x9d, 0xbb, 0xfc, 0x32, 0x92, 0x18, 0xfa, 0x1f, 0x1a, 0x28, 0xc6, 0xc5, 0xaa, 0x26, 0x35, 0x3b, 0x98, 0x61, 0xea, 0x87, 0x8f, 0x07, 0x37, 0x40, 0xd6, 0xac, 0xee, 0xee, 0x50, 0xd2, 0xf5, 0x82, 0xd2, 0xe5, 0xa6, 0x5d, 0x53, 0x34, 0x14, 0x72, 0x79, 0x81, 0xb7, 0x6d, 0xd5, 0xa5, 0x62, 0x05, 0x7e, 0xcb, 0x76, 0x1b, 0x48, 0x70, 0xb8, 0x84, 0x6b, 0x76, 0x82, 0xe6, 0x17, 0x4a, 0x54, 0xcc, 0x0e, 0x46, 0x82, 0x03, 0x8b, 0x20, 0xed, 0x5b, 0xc4, 0x93, 0x19, 0xbc, 0x60, 0x2c, 0x70, 0x93, 0x6b, 0x9c, 0x80, 0x24, 0x1d, 0x5e, 0x00, 0x0b, 0x5c, 0xd0, 0xf7, 0x4c, 0x0b, 0xe7, 0xd3, 0x42, 0x68, 0xa9, 0xdf, 0x2b, 0x2e, 0x54, 0x02, 0x22, 0x8a, 0xf8, 0xfa, 0xb7, 0x03, 0xef, 0xc3, 0x9f, 0x0e, 0x6e, 0x02, 0x60, 0x11, 0x97, 0x51, 0xe2, 0x38, 0x38, 0xe8, 0x46, 0x61, 0xd2, 0x6c, 0x85, 0x1c, 0x14, 0x93, 0x82, 0x36, 0x00, 0x5e, 0x18, 0x1b, 0x95, 0x3c, 0x6f, 0x4c, 0x17, 0xfa, 0x11, 0x31, 0x35, 0x96, 0xb9, 0xaa, 0x18, 0x23, 0x06, 0xae, 0x7f, 0xa7, 0x81, 0x9c, 0xba, 0x7f, 0x02, 0xe9, 0x74, 0x23, 0x99, 0x4e, 0xff, 0x9f, 0x3c, 0x5a, 0x46, 0x67, 0xd2, 0x0f, 0x1a, 0x58, 0x0b, 0xac, 0x26, 0x66, 0xc3, 0x30, 0x1d, 0xd3, 0xb5, 0x30, 0x0d, 0x3a, 0xf5, 0x1a, 0x48, 0xd9, 0x41, 0xfa, 0x00, 0x05, 0x90, 0xda, 0xad, 0xa2, 0x94, 0xed, 0xc1, 0x8b, 0x20, 0xdb, 0x22, 0x3e, 0x13, 0x89, 0x21, 0x53, 0x27, 0x34, 0xf8, 0xa6, 0xa2, 0xa3, 0x50, 0x02, 0x56, 0x41, 0xda, 0x23, 0x94, 0xf9, 0xf9, 0x39, 0x61, 0xf0, 0x85, 0x89, 0x06, 0x57, 0x09, 0x65, 0xaa, 0x97, 0x46, 0x23, 0x8a, 0x23, 0x20, 0x09, 0xa4, 0x7f, 0x0a, 0xfe, 0x33, 0xc2, 0x72, 0x79, 0x05, 0x7e, 0x0c, 0x32, 0xb6, 0x64, 0xaa, 0x89, 0x78, 0x75, 0xa2, 0xc2, 0x11, 0xfe, 0x47, 0x83, 0x38, 0x18, 0xb8, 0x01, 0xaa, 0xfe, 0x8d, 0x06, 0x56, 0x87, 0x2c, 0x15, 0xbb, 0x04, 0xa1, 0x4c, 0x44, 0x2c, 0x1d, 0xdb, 0x25, 0x08, 0x65, 0x48, 0x70, 0xe0, 0x2d, 0x90, 0x15, 0xab, 0x88, 0x45, 0x1c, 0x15, 0xb5, 0x72, 0x10, 0xb5, 0xaa, 0xa2, 0x1f, 0xf7, 0x8a, 0xff, 0x1d, 0xde, 0xcf, 0x4a, 0x01, 0x1b, 0x85, 0x00, 0xbc, 0xea, 0x30, 0xa5, 0x84, 0xaa, 0xc2, 0x14, 0x55, 0xb7, 0xcd, 0x09, 0x48, 0xd2, 0xf5, 0xaf, 0xa3, 0xa4, 0xe4, 0xbb, 0x02, 0xb7, 0x8f, 0xbf, 0xc8, 0xe0, 0x2c, 0xe7, 0xef, 0x85, 0x04, 0x07, 0x7a, 0x60, 0xc5, 0x1e, 0x58, 0x2e, 0xa6, 0x6e, 0xba, 0xe1, 0x0d, 0x23, 0xaf, 0x90, 0x57, 0x06, 0x39, 0x68, 0x08, 0x5d, 0xbf, 0x0b, 0x86, 0xa4, 0x78, 0xbb, 0x6f, 0x31, 0xe6, 0x8d, 0x28, 0x9c, 0xf1, 0xdb, 0x4c, 0xa4, 0x3d, 0x2b, 0x7c, 0xaa, 0xd7, 0xab, 0x48, 0xa0, 0xe8, 0x5f, 0x6a, 0xe0, 0xcc, 0xc8, 0xc1, 0x19, 0x36, 0x36, 0x6d, 0x6c, 0x63, 0xab, 0xa8, 0x17, 0x95, 0x31, 0xb8, 0x38, 0xde, 0x92, 0x24, 0x32, 0x7f, 0xf1, 0x51, 0xef, 0xaf, 0xff, 0x96, 0x0a, 0x5f, 0x44, 0x74, 0xb5, 0xb7, 0xc3, 0x78, 0x8b, 0xae, 0xc3, 0x35, 0xab, 0x1e, 0x7a, 0x3a, 0x16, 0xbf, 0x90, 0x87, 0x86, 0xa4, 0x61, 0x03, 0x2c, 0x37, 0xf0, 0xa1, 0xd9, 0x75, 0x98, 0xd2, 0xad, 0xa2, 0x36, 0xfd, 0xba, 0x09, 0xfb, 0xbd, 0xe2, 0xf2, 0xf5, 0x04, 0x06, 0x1a, 0xc0, 0x84, 0x5b, 0x60, 0x96, 0x39, 0x41, 0xbb, 0x79, 0x69, 0x22, 0x74, 0x7d, 0xaf, 0x66, 0xe4, 0x94, 0xfb, 0xb3, 0xf5, 0xbd, 0x1a, 0xe2, 0xb7, 0xe1, 0x3b, 0x20, 0x4d, 0xbb, 0x0e, 0xe6, 0xcb, 0xd4, 0xec, 0x54, 0x7b, 0x19, 0x7f, 0xd3, 0xa8, 0xfc, 0xf9, 0xc9, 0x47, 0x12, 0x42, 0xff, 0x0c, 0x2c, 0x25, 0x36, 0x2e, 0xd8, 0x01, 0x8b, 0x4e, 0xac, 0x84, 0x55, 0x14, 0xae, 0xfc, 0xa3, 0xba, 0x57, 0x0d, 0xe7, 0xb4, 0xd2, 0xb8, 0x18, 0xe7, 0xa1, 0x04, 0xbc, 0x6e, 0x02, 0x10, 0xf9, 0xca, 0x2b, 0x91, 0x97, 0x8f, 0xec, 0x36, 0xaa, 0x12, 0x79, 0x55, 0xf9, 0x48, 0xd2, 0xf9, 0xf4, 0xf2, 0xb1, 0x45, 0x31, 0xab, 0x44, 0xfd, 0x32, 0x9c, 0x5e, 0xb5, 0x90, 0x83, 0x62, 0x52, 0xfa, 0x2f, 0x1a, 0x58, 0xaa, 0x48, 0x93, 0xab, 0xc4, 0xb1, 0xad, 0x07, 0x27, 0xb0, 0x68, 0xdd, 0x4e, 0x2c, 0x5a, 0xcf, 0x68, 0xd3, 0x09, 0xc3, 0xc6, 0x6e, 0x5a, 0xdf, 0x6b, 0xe0, 0xdf, 0x09, 0xc9, 0xed, 0xa8, 0x19, 0x85, 0x23, 0x41, 0x9b, 0x34, 0x12, 0x12, 0x08, 0xa2, 0xb4, 0x46, 0x8e, 0x04, 0xb8, 0x03, 0x52, 0x8c, 0xa8, 0x1c, 0x9d, 0x1a, 0x0e, 0x63, 0x1a, 0xcd, 0xb6, 0x3a, 0x41, 0x29, 0x46, 0xf4, 0x1f, 0x35, 0x90, 0x4f, 0x48, 0xc5, 0x9b, 0xe8, 0x8b, 0xb7, 0xfb, 0x36, 0x98, 0x3b, 0xa4, 0xa4, 0xf3, 0x3c, 0x96, 0x87, 0x41, 0xbf, 0x41, 0x49, 0x07, 0x09, 0x18, 0xfd, 0xa1, 0x06, 0x56, 0x13, 0x92, 0x27, 0xb0, 0x90, 0xec, 0x25, 0x17, 0x92, 0xf3, 0x53, 0xfa, 0x30, 0x66, 0x2d, 0x79, 0x98, 0x1a, 0xf0, 0x80, 0xfb, 0x0a, 0x0f, 0x41, 0xce, 0x23, 0x8d, 0x1a, 0x76, 0xb0, 0xc5, 0xc8, 0xa8, 0x02, 0x7f, 0x96, 0x13, 0xe6, 0x01, 0x76, 0x82, 0xab, 0xc6, 0xa9, 0x7e, 0xaf, 0x98, 0xab, 0x46, 0x58, 0x28, 0x0e, 0x0c, 0xef, 0x83, 0xd5, 0x70, 0x17, 0x0d, 0xb5, 0xa5, 0x9e, 0x5f, 0xdb, 0x99, 0x7e, 0xaf, 0xb8, 0x5a, 0x19, 0x44, 0x44, 0xc3, 0x4a, 0xe0, 0x4d, 0x90, 0xb1, 0x3d, 0xf1, 0xd9, 0xad, 0xbe, 0xd8, 0x9e, 0xb5, 0xd8, 0xc9, 0xef, 0x73, 0xf9, 0xf1, 0xa7, 0x0e, 0x28, 0xb8, 0xae, 0xff, 0x3e, 0x98, 0x03, 0x3c, 0xe1, 0xe0, 0x4e, 0x6c, 0xfb, 0x90, 0x33, 0xef, 0xc2, 0xf3, 0x6d, 0x1e, 0xc9, 0xb1, 0x38, 0xbe, 0x09, 0x75, 0x99, 0xed, 0x94, 0xe4, 0x8f, 0x31, 0xa5, 0x5d, 0x97, 0xed, 0xd3, 0x1a, 0xa3, 0xb6, 0xdb, 0x94, 0x23, 0x3a, 0xb6, 0x16, 0x9d, 0x05, 0x19, 0x35, 0x35, 0x85, 0xe3, 0x69, 0xe9, 0xd5, 0xb6, 0x24, 0xa1, 0x80, 0xa7, 0x1f, 0x0f, 0xe6, 0x85, 0x98, 0xa1, 0xf7, 0x5e, 0x58, 0x5e, 0xfc, 0x4b, 0x65, 0xe3, 0xf8, 0xdc, 0xf8, 0x30, 0x5a, 0x2c, 0x65, 0xa6, 0x6f, 0x4e, 0x99, 0xe9, 0xf1, 0x89, 0x36, 0x76, 0xad, 0x84, 0xef, 0x81, 0x79, 0x2c, 0xd1, 0xe5, 0x88, 0xbc, 0x3c, 0x25, 0x7a, 0xd4, 0x56, 0xa3, 0x5f, 0x1e, 0x14, 0x4d, 0x01, 0xc2, 0xb7, 0x78, 0x94, 0xb8, 0x2c, 0xff, 0xe0, 0x97, 0x7b, 0xf8, 0x82, 0xf1, 0x3f, 0xe9, 0x6c, 0x48, 0x3e, 0xe6, 0x1f, 0x38, 0xe1, 0x11, 0xc5, 0x6f, 0xe8, 0x1f, 0x01, 0x38, 0xbc, 0xe4, 0x4c, 0xb1, 0x42, 0x9d, 0x03, 0xf3, 0x6e, 0xb7, 0x73, 0x80, 0x65, 0x0d, 0xa5, 0x23, 0x03, 0x2b, 0x82, 0x8a, 0x14, 0xd7, 0x78, 0xf3, 0xd1, 0xd3, 0xc2, 0xcc, 0xe3, 0xa7, 0x85, 0x99, 0x27, 0x4f, 0x0b, 0x33, 0x9f, 0xf7, 0x0b, 0xda, 0xa3, 0x7e, 0x41, 0x7b, 0xdc, 0x2f, 0x68, 0x4f, 0xfa, 0x05, 0xed, 0xcf, 0x7e, 0x41, 0xfb, 0xea, 0xaf, 0xc2, 0xcc, 0xfb, 0xf9, 0x71, 0xbf, 0x96, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xd4, 0x46, 0x40, 0xf2, 0x61, 0x15, 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 if m.PathType != nil { i -= len(*m.PathType) copy(dAtA[i:], *m.PathType) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PathType))) i-- dAtA[i] = 0x1a } { 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 *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 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] = 0x22 } 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] = 0x1a } return len(dAtA) - i, nil } func (m *IngressClass) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IngressClass) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IngressClass) 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 *IngressClassList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IngressClassList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IngressClassList) 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 *IngressClassParametersReference) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IngressClassParametersReference) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IngressClassParametersReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Namespace != nil { i -= len(*m.Namespace) copy(dAtA[i:], *m.Namespace) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Namespace))) i-- dAtA[i] = 0x2a } 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 } 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 *IngressClassSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IngressClassSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IngressClassSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Parameters != nil { { size, err := m.Parameters.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } i -= len(m.Controller) copy(dAtA[i:], m.Controller) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Controller))) 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 *IngressLoadBalancerIngress) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IngressLoadBalancerIngress) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IngressLoadBalancerIngress) 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] = 0x22 } } 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 *IngressLoadBalancerStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IngressLoadBalancerStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IngressLoadBalancerStatus) 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 *IngressPortStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IngressPortStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IngressPortStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Error != nil { i -= len(*m.Error) copy(dAtA[i:], *m.Error) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Error))) i-- dAtA[i] = 0x1a } i -= len(m.Protocol) copy(dAtA[i:], m.Protocol) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Protocol))) i-- dAtA[i] = 0x12 i = encodeVarintGenerated(dAtA, i, uint64(m.Port)) i-- dAtA[i] = 0x8 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 *IngressServiceBackend) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IngressServiceBackend) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IngressServiceBackend) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { 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.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 *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 m.IngressClassName != nil { i -= len(*m.IngressClassName) copy(dAtA[i:], *m.IngressClassName) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.IngressClassName))) 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 } } 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.DefaultBackend != nil { { size, err := m.DefaultBackend.MarshalToSizedBuffer(dAtA[:i]) if 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.EndPort != nil { i = encodeVarintGenerated(dAtA, i, uint64(*m.EndPort)) i-- dAtA[i] = 0x18 } 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 *ServiceBackendPort) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ServiceBackendPort) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ServiceBackendPort) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i = encodeVarintGenerated(dAtA, i, uint64(m.Number)) 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 *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)) if m.PathType != nil { l = len(*m.PathType) 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 *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 if m.Resource != nil { l = m.Resource.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.Service != nil { l = m.Service.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *IngressClass) 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 *IngressClassList) 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 *IngressClassParametersReference) 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)) if m.Scope != nil { l = len(*m.Scope) n += 1 + l + sovGenerated(uint64(l)) } if m.Namespace != nil { l = len(*m.Namespace) n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *IngressClassSpec) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Controller) n += 1 + l + sovGenerated(uint64(l)) if m.Parameters != nil { l = m.Parameters.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 *IngressLoadBalancerIngress) 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)) if len(m.Ports) > 0 { for _, e := range m.Ports { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *IngressLoadBalancerStatus) 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 *IngressPortStatus) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 1 + sovGenerated(uint64(m.Port)) l = len(m.Protocol) n += 1 + l + sovGenerated(uint64(l)) if m.Error != nil { l = len(*m.Error) 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 *IngressServiceBackend) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Name) n += 1 + l + sovGenerated(uint64(l)) l = m.Port.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.DefaultBackend != nil { l = m.DefaultBackend.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)) } } if m.IngressClassName != nil { l = len(*m.IngressClassName) 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)) } if m.EndPort != nil { n += 1 + sovGenerated(uint64(*m.EndPort)) } 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 *ServiceBackendPort) 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.Number)) 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) + `,`, `PathType:` + valueToStringGenerated(this.PathType) + `,`, `}`, }, "") 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 *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{`, `Resource:` + strings.Replace(fmt.Sprintf("%v", this.Resource), "TypedLocalObjectReference", "v11.TypedLocalObjectReference", 1) + `,`, `Service:` + strings.Replace(this.Service.String(), "IngressServiceBackend", "IngressServiceBackend", 1) + `,`, `}`, }, "") return s } func (this *IngressClass) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&IngressClass{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "IngressClassSpec", "IngressClassSpec", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *IngressClassList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]IngressClass{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "IngressClass", "IngressClass", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&IngressClassList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *IngressClassParametersReference) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&IngressClassParametersReference{`, `APIGroup:` + valueToStringGenerated(this.APIGroup) + `,`, `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Scope:` + valueToStringGenerated(this.Scope) + `,`, `Namespace:` + valueToStringGenerated(this.Namespace) + `,`, `}`, }, "") return s } func (this *IngressClassSpec) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&IngressClassSpec{`, `Controller:` + fmt.Sprintf("%v", this.Controller) + `,`, `Parameters:` + strings.Replace(this.Parameters.String(), "IngressClassParametersReference", "IngressClassParametersReference", 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 *IngressLoadBalancerIngress) String() string { if this == nil { return "nil" } repeatedStringForPorts := "[]IngressPortStatus{" for _, f := range this.Ports { repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "IngressPortStatus", "IngressPortStatus", 1), `&`, ``, 1) + "," } repeatedStringForPorts += "}" s := strings.Join([]string{`&IngressLoadBalancerIngress{`, `IP:` + fmt.Sprintf("%v", this.IP) + `,`, `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, `Ports:` + repeatedStringForPorts + `,`, `}`, }, "") return s } func (this *IngressLoadBalancerStatus) String() string { if this == nil { return "nil" } repeatedStringForIngress := "[]IngressLoadBalancerIngress{" for _, f := range this.Ingress { repeatedStringForIngress += strings.Replace(strings.Replace(f.String(), "IngressLoadBalancerIngress", "IngressLoadBalancerIngress", 1), `&`, ``, 1) + "," } repeatedStringForIngress += "}" s := strings.Join([]string{`&IngressLoadBalancerStatus{`, `Ingress:` + repeatedStringForIngress + `,`, `}`, }, "") return s } func (this *IngressPortStatus) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&IngressPortStatus{`, `Port:` + fmt.Sprintf("%v", this.Port) + `,`, `Protocol:` + fmt.Sprintf("%v", this.Protocol) + `,`, `Error:` + valueToStringGenerated(this.Error) + `,`, `}`, }, "") 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 *IngressServiceBackend) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&IngressServiceBackend{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Port:` + strings.Replace(strings.Replace(this.Port.String(), "ServiceBackendPort", "ServiceBackendPort", 1), `&`, ``, 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{`, `DefaultBackend:` + strings.Replace(this.DefaultBackend.String(), "IngressBackend", "IngressBackend", 1) + `,`, `TLS:` + repeatedStringForTLS + `,`, `Rules:` + repeatedStringForRules + `,`, `IngressClassName:` + valueToStringGenerated(this.IngressClassName) + `,`, `}`, }, "") return s } func (this *IngressStatus) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&IngressStatus{`, `LoadBalancer:` + strings.Replace(strings.Replace(this.LoadBalancer.String(), "IngressLoadBalancerStatus", "IngressLoadBalancerStatus", 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) + `,`, `EndPort:` + valueToStringGenerated(this.EndPort) + `,`, `}`, }, "") 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 *ServiceBackendPort) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ServiceBackendPort{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Number:` + fmt.Sprintf("%v", this.Number) + `,`, `}`, }, "") 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 case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PathType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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 := PathType(dAtA[iNdEx:postIndex]) m.PathType = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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 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 m.Resource == nil { m.Resource = &v11.TypedLocalObjectReference{} } 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 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 = &IngressServiceBackend{} } if err := m.Service.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IngressClass) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IngressClass: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IngressClass: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IngressClassList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IngressClassList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IngressClassList: 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, IngressClass{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IngressClassParametersReference) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IngressClassParametersReference: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IngressClassParametersReference: 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 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 := string(dAtA[iNdEx:postIndex]) m.Scope = &s iNdEx = postIndex case 5: 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 } s := string(dAtA[iNdEx:postIndex]) m.Namespace = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IngressClassSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IngressClassSpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IngressClassSpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Controller = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: 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 = &IngressClassParametersReference{} } if err := m.Parameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IngressLoadBalancerIngress) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IngressLoadBalancerIngress: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IngressLoadBalancerIngress: 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 case 4: 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, IngressPortStatus{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IngressLoadBalancerStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IngressLoadBalancerStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IngressLoadBalancerStatus: 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, IngressLoadBalancerIngress{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IngressPortStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IngressPortStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IngressPortStatus: 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 } } 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 = k8s_io_api_core_v1.Protocol(dAtA[iNdEx:postIndex]) 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 } s := string(dAtA[iNdEx:postIndex]) m.Error = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IngressServiceBackend) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IngressServiceBackend: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IngressServiceBackend: 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 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 DefaultBackend", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.DefaultBackend == nil { m.DefaultBackend = &IngressBackend{} } if err := m.DefaultBackend.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 case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field IngressClassName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.IngressClassName = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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 case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field EndPort", 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.EndPort = &v default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ServiceBackendPort) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ServiceBackendPort: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ServiceBackendPort: 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 Number", wireType) } m.Number = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Number |= int32(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/networking/v1/generated.proto000066400000000000000000000610631453636404600221040ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/networking/v1"; // HTTPIngressPath associates a path with a backend. Incoming urls matching the // path are forwarded to the backend. message HTTPIngressPath { // path is 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 '/' and must be present // when using PathType with value "Exact" or "Prefix". // +optional optional string path = 1; // pathType determines the interpretation of the path matching. PathType can // be one of the following values: // * Exact: Matches the URL path exactly. // * Prefix: Matches based on a URL path prefix split by '/'. Matching is // done on a path element by element basis. A path element refers is the // list of labels in the path split by the '/' separator. A request is a // match for path p if every p is an element-wise prefix of p of the // request path. Note that if the last element of the path is a substring // of the last element in request path, it is not a match (e.g. /foo/bar // matches /foo/bar/baz, but does not match /foo/barbaz). // * ImplementationSpecific: Interpretation of the Path matching is up to // the IngressClass. Implementations can treat this as a separate PathType // or treat it identically to Prefix or Exact path types. // Implementations are required to support all path types. optional string pathType = 3; // 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 { // paths is a collection of paths that map requests to backends. // +listType=atomic repeated HTTPIngressPath paths = 1; } // IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") 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 IPBlock // Valid examples are "192.168.1.0/24" or "2001:db8::/64" optional string cidr = 1; // except is a slice of CIDRs that should not be included within an IPBlock // Valid examples are "192.168.1.0/24" or "2001:db8::/64" // 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. 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 { // service references a service as a backend. // This is a mutually exclusive setting with "Resource". // +optional optional IngressServiceBackend service = 4; // resource is an ObjectRef to another Kubernetes resource in the namespace // of the Ingress object. If resource is specified, a service.Name and // service.Port must not be specified. // This is a mutually exclusive setting with "Service". // +optional optional k8s.io.api.core.v1.TypedLocalObjectReference resource = 3; } // IngressClass represents the class of the Ingress, referenced by the Ingress // Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be // used to indicate that an IngressClass should be considered default. When a // single IngressClass resource has this annotation set to true, new Ingress // resources without a class specified will be assigned this default class. message IngressClass { // 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 IngressClass. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional IngressClassSpec spec = 2; } // IngressClassList is a collection of IngressClasses. message IngressClassList { // Standard list metadata. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; // items is the list of IngressClasses. repeated IngressClass items = 2; } // IngressClassParametersReference identifies an API object. This can be used // to specify a cluster or namespace-scoped resource. message IngressClassParametersReference { // 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; // scope represents if this refers to a cluster or namespace scoped resource. // This may be set to "Cluster" (default) or "Namespace". // +optional optional string scope = 4; // namespace is the namespace of the resource being referenced. This field is // required when scope is set to "Namespace" and must be unset when scope is set to // "Cluster". // +optional optional string namespace = 5; } // IngressClassSpec provides information about the class of an Ingress. message IngressClassSpec { // controller refers to the name of the controller that should handle this // class. This allows for different "flavors" that are controlled by the // same controller. For example, you may have different parameters for the // same implementing controller. This should be specified as a // domain-prefixed path no more than 250 characters in length, e.g. // "acme.io/ingress-controller". This field is immutable. optional string controller = 1; // parameters is a link to a custom resource containing additional // configuration for the controller. This is optional if the controller does // not require extra parameters. // +optional optional IngressClassParametersReference parameters = 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; } // IngressLoadBalancerIngress represents the status of a load-balancer ingress point. message IngressLoadBalancerIngress { // ip is set for load-balancer ingress points that are IP based. // +optional optional string ip = 1; // hostname is set for load-balancer ingress points that are DNS based. // +optional optional string hostname = 2; // ports provides information about the ports exposed by this LoadBalancer. // +listType=atomic // +optional repeated IngressPortStatus ports = 4; } // IngressLoadBalancerStatus represents the status of a load-balancer. message IngressLoadBalancerStatus { // ingress is a list containing ingress points for the load-balancer. // +optional repeated IngressLoadBalancerIngress ingress = 1; } // IngressPortStatus represents the error condition of a service port message IngressPortStatus { // port is the port number of the ingress port. optional int32 port = 1; // protocol is the protocol of the ingress port. // The supported values are: "TCP", "UDP", "SCTP" optional string protocol = 2; // error is to record the problem with the service port // The format of the error shall comply with the following rules: // - built-in error values shall be specified in this file and those shall use // CamelCase names // - cloud provider specific error values must have names that comply with the // format foo.example.com/CamelCase. // --- // The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) // +optional // +kubebuilder:validation:Required // +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` // +kubebuilder:validation:MaxLength=316 optional string error = 3; } // 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 RFC 3986: // 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. // // host can be "precise" which is a domain name without the terminating dot of // a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name // prefixed with a single wildcard label (e.g. "*.foo.com"). // The wildcard character '*' must appear by itself as the first DNS label and // matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). // Requests will be matched against the Host field in the following way: // 1. If host is precise, the request matches this rule if the http host header is equal to Host. // 2. If host is a wildcard, then the request matches this rule if the http host header // is to equal to the suffix (removing the first label) of the wildcard rule. // +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; } // IngressServiceBackend references a Kubernetes Service as a Backend. message IngressServiceBackend { // name is the referenced service. The service must exist in // the same namespace as the Ingress object. optional string name = 1; // port of the referenced service. A port name or port number // is required for a IngressServiceBackend. optional ServiceBackendPort port = 2; } // IngressSpec describes the Ingress the user wishes to exist. message IngressSpec { // ingressClassName is the name of an IngressClass cluster resource. Ingress // controller implementations use this field to know whether they should be // serving this Ingress resource, by a transitive connection // (controller -> IngressClass -> Ingress resource). Although the // `kubernetes.io/ingress.class` annotation (simple constant name) was never // formally defined, it was widely supported by Ingress controllers to create // a direct binding between Ingress controller and Ingress resources. Newly // created Ingress resources should prefer using the field. However, even // though the annotation is officially deprecated, for backwards compatibility // reasons, ingress controllers should still honor that annotation if present. // +optional optional string ingressClassName = 4; // defaultBackend is the backend that should handle requests that don't // match any rule. If Rules are not specified, DefaultBackend must be specified. // If DefaultBackend is not set, the handling of requests that do not match any // of the rules will be up to the Ingress controller. // +optional optional IngressBackend defaultBackend = 1; // tls represents the 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. // +listType=atomic // +optional repeated IngressTLS tls = 2; // rules is a list of host rules used to configure the Ingress. If unspecified, // or no rule matches, all traffic is sent to the default backend. // +listType=atomic // +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 IngressLoadBalancerStatus loadBalancer = 1; } // IngressTLS describes the transport layer security associated with an ingress. message IngressTLS { // hosts is 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. // +listType=atomic // +optional repeated string hosts = 1; // secretName is the name of the secret used to terminate TLS traffic on // port 443. Field is left optional to allow TLS 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; } // 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; // spec represents the 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 { // ports is a 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; // to is a 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 { // ports is a 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; // from is a 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 to/from. Only certain combinations of // fields are allowed message NetworkPolicyPeer { // podSelector 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; // namespaceSelector 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 { // protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. // If not specified, this field defaults to TCP. // +optional optional string protocol = 1; // port represents 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; // endPort indicates that the range of ports from port to endPort if set, inclusive, // should be allowed by the policy. This field cannot be defined if the port field // is not defined or if the port field is defined as a named (string) port. // The endPort must be equal or greater than port. // +optional optional int32 endPort = 3; } // NetworkPolicySpec provides the specification of a NetworkPolicy message 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. optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1; // ingress is a 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; // egress is a 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; // policyTypes is a 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; } // ServiceBackendPort is the service port being referenced. message ServiceBackendPort { // name is the name of the port on the Service. // This is a mutually exclusive setting with "Number". // +optional optional string name = 1; // number is the numerical port number (e.g. 80) on the Service. // This is a mutually exclusive setting with "Name". // +optional optional int32 number = 2; } golang-k8s-api-0.29.0/networking/v1/register.go000066400000000000000000000034211453636404600212260ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Ingress{}, &IngressList{}, &IngressClass{}, &IngressClassList{}, &NetworkPolicy{}, &NetworkPolicyList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/networking/v1/types.go000066400000000000000000000733261453636404600205610ustar00rootroot00000000000000/* 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 ( v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" ) // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/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"` // spec represents the specification of the desired behavior for this NetworkPolicy. // +optional Spec NetworkPolicySpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // Status is tombstoned to show why 3 is a reserved protobuf tag. // This commented field should remain, so in the future if we decide to reimplement // NetworkPolicyStatus a different protobuf name and tag SHOULD be used! // Status NetworkPolicyStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // PolicyType string describes the NetworkPolicy type // This type is beta-level in 1.8 // +enum 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 { // 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. PodSelector metav1.LabelSelector `json:"podSelector" protobuf:"bytes,1,opt,name=podSelector"` // ingress is a 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"` // egress is a 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"` // policyTypes is a 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 { // ports is a 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"` // from is a 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 { // ports is a 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"` // to is a 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 { // protocol represents 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=k8s.io/api/core/v1.Protocol"` // port represents 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"` // endPort indicates that the range of ports from port to endPort if set, inclusive, // should be allowed by the policy. This field cannot be defined if the port field // is not defined or if the port field is defined as a named (string) port. // The endPort must be equal or greater than port. // +optional EndPort *int32 `json:"endPort,omitempty" protobuf:"bytes,3,opt,name=endPort"` } // IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") 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 IPBlock // Valid examples are "192.168.1.0/24" or "2001:db8::/64" CIDR string `json:"cidr" protobuf:"bytes,1,name=cidr"` // except is a slice of CIDRs that should not be included within an IPBlock // Valid examples are "192.168.1.0/24" or "2001:db8::/64" // 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 to/from. Only certain combinations of // fields are allowed type NetworkPolicyPeer struct { // podSelector 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"` // namespaceSelector 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=k8s.io/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"` } // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/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=k8s.io/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 { // ingressClassName is the name of an IngressClass cluster resource. Ingress // controller implementations use this field to know whether they should be // serving this Ingress resource, by a transitive connection // (controller -> IngressClass -> Ingress resource). Although the // `kubernetes.io/ingress.class` annotation (simple constant name) was never // formally defined, it was widely supported by Ingress controllers to create // a direct binding between Ingress controller and Ingress resources. Newly // created Ingress resources should prefer using the field. However, even // though the annotation is officially deprecated, for backwards compatibility // reasons, ingress controllers should still honor that annotation if present. // +optional IngressClassName *string `json:"ingressClassName,omitempty" protobuf:"bytes,4,opt,name=ingressClassName"` // defaultBackend is the backend that should handle requests that don't // match any rule. If Rules are not specified, DefaultBackend must be specified. // If DefaultBackend is not set, the handling of requests that do not match any // of the rules will be up to the Ingress controller. // +optional DefaultBackend *IngressBackend `json:"defaultBackend,omitempty" protobuf:"bytes,1,opt,name=defaultBackend"` // tls represents the 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. // +listType=atomic // +optional TLS []IngressTLS `json:"tls,omitempty" protobuf:"bytes,2,rep,name=tls"` // rules is a list of host rules used to configure the Ingress. If unspecified, // or no rule matches, all traffic is sent to the default backend. // +listType=atomic // +optional Rules []IngressRule `json:"rules,omitempty" protobuf:"bytes,3,rep,name=rules"` } // IngressTLS describes the transport layer security associated with an ingress. type IngressTLS struct { // hosts is 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. // +listType=atomic // +optional Hosts []string `json:"hosts,omitempty" protobuf:"bytes,1,rep,name=hosts"` // secretName is the name of the secret used to terminate TLS traffic on // port 443. Field is left optional to allow TLS 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"` } // IngressStatus describe the current state of the Ingress. type IngressStatus struct { // loadBalancer contains the current status of the load-balancer. // +optional LoadBalancer IngressLoadBalancerStatus `json:"loadBalancer,omitempty" protobuf:"bytes,1,opt,name=loadBalancer"` } // IngressLoadBalancerStatus represents the status of a load-balancer. type IngressLoadBalancerStatus struct { // ingress is a list containing ingress points for the load-balancer. // +optional Ingress []IngressLoadBalancerIngress `json:"ingress,omitempty" protobuf:"bytes,1,rep,name=ingress"` } // IngressLoadBalancerIngress represents the status of a load-balancer ingress point. type IngressLoadBalancerIngress struct { // ip is set for load-balancer ingress points that are IP based. // +optional IP string `json:"ip,omitempty" protobuf:"bytes,1,opt,name=ip"` // hostname is set for load-balancer ingress points that are DNS based. // +optional Hostname string `json:"hostname,omitempty" protobuf:"bytes,2,opt,name=hostname"` // ports provides information about the ports exposed by this LoadBalancer. // +listType=atomic // +optional Ports []IngressPortStatus `json:"ports,omitempty" protobuf:"bytes,4,rep,name=ports"` } // IngressPortStatus represents the error condition of a service port type IngressPortStatus struct { // port is the port number of the ingress port. Port int32 `json:"port" protobuf:"varint,1,opt,name=port"` // protocol is the protocol of the ingress port. // The supported values are: "TCP", "UDP", "SCTP" Protocol v1.Protocol `json:"protocol" protobuf:"bytes,2,opt,name=protocol,casttype=Protocol"` // error is to record the problem with the service port // The format of the error shall comply with the following rules: // - built-in error values shall be specified in this file and those shall use // CamelCase names // - cloud provider specific error values must have names that comply with the // format foo.example.com/CamelCase. // --- // The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) // +optional // +kubebuilder:validation:Required // +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` // +kubebuilder:validation:MaxLength=316 Error *string `json:"error,omitempty" protobuf:"bytes,3,opt,name=error"` } // 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 RFC 3986: // 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. // // host can be "precise" which is a domain name without the terminating dot of // a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name // prefixed with a single wildcard label (e.g. "*.foo.com"). // The wildcard character '*' must appear by itself as the first DNS label and // matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). // Requests will be matched against the Host field in the following way: // 1. If host is precise, the request matches this rule if the http host header is equal to Host. // 2. If host is a wildcard, then the request matches this rule if the http host header // is to equal to the suffix (removing the first label) of the wildcard rule. // +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 { // +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 { // paths is a collection of paths that map requests to backends. // +listType=atomic Paths []HTTPIngressPath `json:"paths" protobuf:"bytes,1,rep,name=paths"` } // PathType represents the type of path referred to by a HTTPIngressPath. // +enum type PathType string const ( // PathTypeExact matches the URL path exactly and with case sensitivity. PathTypeExact = PathType("Exact") // PathTypePrefix matches based on a URL path prefix split by '/'. Matching // is case sensitive and done on a path element by element basis. A path // element refers to the list of labels in the path split by the '/' // separator. A request is a match for path p if every p is an element-wise // prefix of p of the request path. Note that if the last element of the // path is a substring of the last element in request path, it is not a // match (e.g. /foo/bar matches /foo/bar/baz, but does not match // /foo/barbaz). If multiple matching paths exist in an Ingress spec, the // longest matching path is given priority. // Examples: // - /foo/bar does not match requests to /foo/barbaz // - /foo/bar matches request to /foo/bar and /foo/bar/baz // - /foo and /foo/ both match requests to /foo and /foo/. If both paths are // present in an Ingress spec, the longest matching path (/foo/) is given // priority. PathTypePrefix = PathType("Prefix") // PathTypeImplementationSpecific matching is up to the IngressClass. // Implementations can treat this as a separate PathType or treat it // identically to Prefix or Exact path types. PathTypeImplementationSpecific = PathType("ImplementationSpecific") ) // HTTPIngressPath associates a path with a backend. Incoming urls matching the // path are forwarded to the backend. type HTTPIngressPath struct { // path is 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 '/' and must be present // when using PathType with value "Exact" or "Prefix". // +optional Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` // pathType determines the interpretation of the path matching. PathType can // be one of the following values: // * Exact: Matches the URL path exactly. // * Prefix: Matches based on a URL path prefix split by '/'. Matching is // done on a path element by element basis. A path element refers is the // list of labels in the path split by the '/' separator. A request is a // match for path p if every p is an element-wise prefix of p of the // request path. Note that if the last element of the path is a substring // of the last element in request path, it is not a match (e.g. /foo/bar // matches /foo/bar/baz, but does not match /foo/barbaz). // * ImplementationSpecific: Interpretation of the Path matching is up to // the IngressClass. Implementations can treat this as a separate PathType // or treat it identically to Prefix or Exact path types. // Implementations are required to support all path types. PathType *PathType `json:"pathType" protobuf:"bytes,3,opt,name=pathType"` // 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 { // service references a service as a backend. // This is a mutually exclusive setting with "Resource". // +optional Service *IngressServiceBackend `json:"service,omitempty" protobuf:"bytes,4,opt,name=service"` // resource is an ObjectRef to another Kubernetes resource in the namespace // of the Ingress object. If resource is specified, a service.Name and // service.Port must not be specified. // This is a mutually exclusive setting with "Service". // +optional Resource *v1.TypedLocalObjectReference `json:"resource,omitempty" protobuf:"bytes,3,opt,name=resource"` } // IngressServiceBackend references a Kubernetes Service as a Backend. type IngressServiceBackend struct { // name is the referenced service. The service must exist in // the same namespace as the Ingress object. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` // port of the referenced service. A port name or port number // is required for a IngressServiceBackend. Port ServiceBackendPort `json:"port,omitempty" protobuf:"bytes,2,opt,name=port"` } // ServiceBackendPort is the service port being referenced. type ServiceBackendPort struct { // name is the name of the port on the Service. // This is a mutually exclusive setting with "Number". // +optional Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` // number is the numerical port number (e.g. 80) on the Service. // This is a mutually exclusive setting with "Name". // +optional Number int32 `json:"number,omitempty" protobuf:"bytes,2,opt,name=number"` } // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // IngressClass represents the class of the Ingress, referenced by the Ingress // Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be // used to indicate that an IngressClass should be considered default. When a // single IngressClass resource has this annotation set to true, new Ingress // resources without a class specified will be assigned this default class. type IngressClass 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 IngressClass. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec IngressClassSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } // IngressClassSpec provides information about the class of an Ingress. type IngressClassSpec struct { // controller refers to the name of the controller that should handle this // class. This allows for different "flavors" that are controlled by the // same controller. For example, you may have different parameters for the // same implementing controller. This should be specified as a // domain-prefixed path no more than 250 characters in length, e.g. // "acme.io/ingress-controller". This field is immutable. Controller string `json:"controller,omitempty" protobuf:"bytes,1,opt,name=controller"` // parameters is a link to a custom resource containing additional // configuration for the controller. This is optional if the controller does // not require extra parameters. // +optional Parameters *IngressClassParametersReference `json:"parameters,omitempty" protobuf:"bytes,2,opt,name=parameters"` } const ( // IngressClassParametersReferenceScopeNamespace indicates that the // referenced Parameters resource is namespace-scoped. IngressClassParametersReferenceScopeNamespace = "Namespace" // IngressClassParametersReferenceScopeCluster indicates that the // referenced Parameters resource is cluster-scoped. IngressClassParametersReferenceScopeCluster = "Cluster" ) // IngressClassParametersReference identifies an API object. This can be used // to specify a cluster or namespace-scoped resource. type IngressClassParametersReference 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,omitempty" 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"` // scope represents if this refers to a cluster or namespace scoped resource. // This may be set to "Cluster" (default) or "Namespace". // +optional Scope *string `json:"scope" protobuf:"bytes,4,opt,name=scope"` // namespace is the namespace of the resource being referenced. This field is // required when scope is set to "Namespace" and must be unset when scope is set to // "Cluster". // +optional Namespace *string `json:"namespace,omitempty" protobuf:"bytes,5,opt,name=namespace"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // IngressClassList is a collection of IngressClasses. type IngressClassList 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 IngressClasses. Items []IngressClass `json:"items" protobuf:"bytes,2,rep,name=items"` } golang-k8s-api-0.29.0/networking/v1/types_swagger_doc_generated.go000066400000000000000000000573221453636404600251410ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_HTTPIngressPath = map[string]string{ "": "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", "path": "path is 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 '/' and must be present when using PathType with value \"Exact\" or \"Prefix\".", "pathType": "pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types.", "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": "paths is a collection of paths that map requests to backends.", } func (HTTPIngressRuleValue) SwaggerDoc() map[string]string { return map_HTTPIngressRuleValue } var map_IPBlock = map[string]string{ "": "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") 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 IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"", "except": "except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" 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.", "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.", "service": "service references a service as a backend. This is a mutually exclusive setting with \"Resource\".", "resource": "resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with \"Service\".", } func (IngressBackend) SwaggerDoc() map[string]string { return map_IngressBackend } var map_IngressClass = map[string]string{ "": "IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.", "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 IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", } func (IngressClass) SwaggerDoc() map[string]string { return map_IngressClass } var map_IngressClassList = map[string]string{ "": "IngressClassList is a collection of IngressClasses.", "metadata": "Standard list metadata.", "items": "items is the list of IngressClasses.", } func (IngressClassList) SwaggerDoc() map[string]string { return map_IngressClassList } var map_IngressClassParametersReference = map[string]string{ "": "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.", "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.", "scope": "scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\".", "namespace": "namespace is the namespace of the resource being referenced. This field is required when scope is set to \"Namespace\" and must be unset when scope is set to \"Cluster\".", } func (IngressClassParametersReference) SwaggerDoc() map[string]string { return map_IngressClassParametersReference } var map_IngressClassSpec = map[string]string{ "": "IngressClassSpec provides information about the class of an Ingress.", "controller": "controller refers to the name of the controller that should handle this class. This allows for different \"flavors\" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \"acme.io/ingress-controller\". This field is immutable.", "parameters": "parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters.", } func (IngressClassSpec) SwaggerDoc() map[string]string { return map_IngressClassSpec } 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_IngressLoadBalancerIngress = map[string]string{ "": "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", "ip": "ip is set for load-balancer ingress points that are IP based.", "hostname": "hostname is set for load-balancer ingress points that are DNS based.", "ports": "ports provides information about the ports exposed by this LoadBalancer.", } func (IngressLoadBalancerIngress) SwaggerDoc() map[string]string { return map_IngressLoadBalancerIngress } var map_IngressLoadBalancerStatus = map[string]string{ "": "IngressLoadBalancerStatus represents the status of a load-balancer.", "ingress": "ingress is a list containing ingress points for the load-balancer.", } func (IngressLoadBalancerStatus) SwaggerDoc() map[string]string { return map_IngressLoadBalancerStatus } var map_IngressPortStatus = map[string]string{ "": "IngressPortStatus represents the error condition of a service port", "port": "port is the port number of the ingress port.", "protocol": "protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"", "error": "error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", } func (IngressPortStatus) SwaggerDoc() map[string]string { return map_IngressPortStatus } 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 RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to\n the 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.\n\nhost can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.", } 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_IngressServiceBackend = map[string]string{ "": "IngressServiceBackend references a Kubernetes Service as a Backend.", "name": "name is the referenced service. The service must exist in the same namespace as the Ingress object.", "port": "port of the referenced service. A port name or port number is required for a IngressServiceBackend.", } func (IngressServiceBackend) SwaggerDoc() map[string]string { return map_IngressServiceBackend } var map_IngressSpec = map[string]string{ "": "IngressSpec describes the Ingress the user wishes to exist.", "ingressClassName": "ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.", "defaultBackend": "defaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller.", "tls": "tls represents the 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": "rules is 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 is 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 TLS traffic on port 443. Field is left optional to allow TLS 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{ "": "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": "spec represents the 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": "ports is a 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": "to is a 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": "ports is a 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": "from is a 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 to/from. Only certain combinations of fields are allowed", "podSelector": "podSelector 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": "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": "protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.", "port": "port represents 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.", "endPort": "endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.", } func (NetworkPolicyPort) SwaggerDoc() map[string]string { return map_NetworkPolicyPort } var map_NetworkPolicySpec = map[string]string{ "": "NetworkPolicySpec provides the specification of a NetworkPolicy", "podSelector": "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": "ingress is a 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": "egress is a 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": "policyTypes is a 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_ServiceBackendPort = map[string]string{ "": "ServiceBackendPort is the service port being referenced.", "name": "name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".", "number": "number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\".", } func (ServiceBackendPort) SwaggerDoc() map[string]string { return map_ServiceBackendPort } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/networking/v1/types_test.go000066400000000000000000000025021453636404600216040ustar00rootroot00000000000000/* Copyright 2023 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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" "strings" "testing" ) // Test_ServiceSpecRemovedFieldProtobufNumberReservation tests that the reserved protobuf field numbers // for removed fields are not re-used. DO NOT remove this test for any reason, this ensures that tombstoned // protobuf field numbers are not accidentally reused by other fields. func Test_NetworkPolicyRemovedFieldProtobufNumberReservation(t *testing.T) { obj := reflect.ValueOf(NetworkPolicy{}).Type() for i := 0; i < obj.NumField(); i++ { f := obj.Field(i) protobufSpec := f.Tag.Get("protobuf") if protobufSpec == "" { continue } protobufNum := strings.Split(protobufSpec, ",")[1] if protobufNum == "3" { t.Errorf("protobuf 3 in NetworkPolicy is reserved for removed status field") } } } golang-k8s-api-0.29.0/networking/v1/well_known_annotations.go000066400000000000000000000016671453636404600242100ustar00rootroot00000000000000/* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 ( // AnnotationIsDefaultIngressClass can be used to indicate that an // IngressClass should be considered default. When a single IngressClass // resource has this annotation set to true, new Ingress resources without a // class specified will be assigned this default class. AnnotationIsDefaultIngressClass = "ingressclass.kubernetes.io/is-default-class" ) golang-k8s-api-0.29.0/networking/v1/zz_generated.deepcopy.go000066400000000000000000000500351453636404600236750ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" intstr "k8s.io/apimachinery/pkg/util/intstr" ) // 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 if in.PathType != nil { in, out := &in.PathType, &out.PathType *out = new(PathType) **out = **in } in.Backend.DeepCopyInto(&out.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)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } 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 *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 if in.Service != nil { in, out := &in.Service, &out.Service *out = new(IngressServiceBackend) **out = **in } if in.Resource != nil { in, out := &in.Resource, &out.Resource *out = new(corev1.TypedLocalObjectReference) (*in).DeepCopyInto(*out) } 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 *IngressClass) DeepCopyInto(out *IngressClass) { *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 IngressClass. func (in *IngressClass) DeepCopy() *IngressClass { if in == nil { return nil } out := new(IngressClass) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *IngressClass) 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 *IngressClassList) DeepCopyInto(out *IngressClassList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]IngressClass, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassList. func (in *IngressClassList) DeepCopy() *IngressClassList { if in == nil { return nil } out := new(IngressClassList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *IngressClassList) 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 *IngressClassParametersReference) DeepCopyInto(out *IngressClassParametersReference) { *out = *in if in.APIGroup != nil { in, out := &in.APIGroup, &out.APIGroup *out = new(string) **out = **in } if in.Scope != nil { in, out := &in.Scope, &out.Scope *out = new(string) **out = **in } if in.Namespace != nil { in, out := &in.Namespace, &out.Namespace *out = new(string) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassParametersReference. func (in *IngressClassParametersReference) DeepCopy() *IngressClassParametersReference { if in == nil { return nil } out := new(IngressClassParametersReference) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *IngressClassSpec) DeepCopyInto(out *IngressClassSpec) { *out = *in if in.Parameters != nil { in, out := &in.Parameters, &out.Parameters *out = new(IngressClassParametersReference) (*in).DeepCopyInto(*out) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassSpec. func (in *IngressClassSpec) DeepCopy() *IngressClassSpec { if in == nil { return nil } out := new(IngressClassSpec) 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 *IngressLoadBalancerIngress) DeepCopyInto(out *IngressLoadBalancerIngress) { *out = *in if in.Ports != nil { in, out := &in.Ports, &out.Ports *out = make([]IngressPortStatus, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressLoadBalancerIngress. func (in *IngressLoadBalancerIngress) DeepCopy() *IngressLoadBalancerIngress { if in == nil { return nil } out := new(IngressLoadBalancerIngress) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *IngressLoadBalancerStatus) DeepCopyInto(out *IngressLoadBalancerStatus) { *out = *in if in.Ingress != nil { in, out := &in.Ingress, &out.Ingress *out = make([]IngressLoadBalancerIngress, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressLoadBalancerStatus. func (in *IngressLoadBalancerStatus) DeepCopy() *IngressLoadBalancerStatus { if in == nil { return nil } out := new(IngressLoadBalancerStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *IngressPortStatus) DeepCopyInto(out *IngressPortStatus) { *out = *in if in.Error != nil { in, out := &in.Error, &out.Error *out = new(string) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressPortStatus. func (in *IngressPortStatus) DeepCopy() *IngressPortStatus { if in == nil { return nil } out := new(IngressPortStatus) in.DeepCopyInto(out) return out } // 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 *IngressServiceBackend) DeepCopyInto(out *IngressServiceBackend) { *out = *in out.Port = in.Port return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressServiceBackend. func (in *IngressServiceBackend) DeepCopy() *IngressServiceBackend { if in == nil { return nil } out := new(IngressServiceBackend) 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.IngressClassName != nil { in, out := &in.IngressClassName, &out.IngressClassName *out = new(string) **out = **in } if in.DefaultBackend != nil { in, out := &in.DefaultBackend, &out.DefaultBackend *out = new(IngressBackend) (*in).DeepCopyInto(*out) } 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(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 } if in.EndPort != nil { in, out := &in.EndPort, &out.EndPort *out = new(int32) **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 *ServiceBackendPort) DeepCopyInto(out *ServiceBackendPort) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBackendPort. func (in *ServiceBackendPort) DeepCopy() *ServiceBackendPort { if in == nil { return nil } out := new(ServiceBackendPort) in.DeepCopyInto(out) return out } golang-k8s-api-0.29.0/networking/v1alpha1/000077500000000000000000000000001453636404600201425ustar00rootroot00000000000000golang-k8s-api-0.29.0/networking/v1alpha1/doc.go000066400000000000000000000014211453636404600212340ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 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 // +k8s:prerelease-lifecycle-gen=true // +groupName=networking.k8s.io package v1alpha1 // import "k8s.io/api/networking/v1alpha1" golang-k8s-api-0.29.0/networking/v1alpha1/generated.pb.go000066400000000000000000001355151453636404600230410ustar00rootroot00000000000000/* 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/k8s.io/api/networking/v1alpha1/generated.proto package v1alpha1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *IPAddress) Reset() { *m = IPAddress{} } func (*IPAddress) ProtoMessage() {} func (*IPAddress) Descriptor() ([]byte, []int) { return fileDescriptor_c1b7ac8d7d97acec, []int{0} } func (m *IPAddress) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IPAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IPAddress) XXX_Merge(src proto.Message) { xxx_messageInfo_IPAddress.Merge(m, src) } func (m *IPAddress) XXX_Size() int { return m.Size() } func (m *IPAddress) XXX_DiscardUnknown() { xxx_messageInfo_IPAddress.DiscardUnknown(m) } var xxx_messageInfo_IPAddress proto.InternalMessageInfo func (m *IPAddressList) Reset() { *m = IPAddressList{} } func (*IPAddressList) ProtoMessage() {} func (*IPAddressList) Descriptor() ([]byte, []int) { return fileDescriptor_c1b7ac8d7d97acec, []int{1} } func (m *IPAddressList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IPAddressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IPAddressList) XXX_Merge(src proto.Message) { xxx_messageInfo_IPAddressList.Merge(m, src) } func (m *IPAddressList) XXX_Size() int { return m.Size() } func (m *IPAddressList) XXX_DiscardUnknown() { xxx_messageInfo_IPAddressList.DiscardUnknown(m) } var xxx_messageInfo_IPAddressList proto.InternalMessageInfo func (m *IPAddressSpec) Reset() { *m = IPAddressSpec{} } func (*IPAddressSpec) ProtoMessage() {} func (*IPAddressSpec) Descriptor() ([]byte, []int) { return fileDescriptor_c1b7ac8d7d97acec, []int{2} } func (m *IPAddressSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IPAddressSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IPAddressSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_IPAddressSpec.Merge(m, src) } func (m *IPAddressSpec) XXX_Size() int { return m.Size() } func (m *IPAddressSpec) XXX_DiscardUnknown() { xxx_messageInfo_IPAddressSpec.DiscardUnknown(m) } var xxx_messageInfo_IPAddressSpec proto.InternalMessageInfo func (m *ParentReference) Reset() { *m = ParentReference{} } func (*ParentReference) ProtoMessage() {} func (*ParentReference) Descriptor() ([]byte, []int) { return fileDescriptor_c1b7ac8d7d97acec, []int{3} } func (m *ParentReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ParentReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ParentReference) XXX_Merge(src proto.Message) { xxx_messageInfo_ParentReference.Merge(m, src) } func (m *ParentReference) XXX_Size() int { return m.Size() } func (m *ParentReference) XXX_DiscardUnknown() { xxx_messageInfo_ParentReference.DiscardUnknown(m) } var xxx_messageInfo_ParentReference proto.InternalMessageInfo func (m *ServiceCIDR) Reset() { *m = ServiceCIDR{} } func (*ServiceCIDR) ProtoMessage() {} func (*ServiceCIDR) Descriptor() ([]byte, []int) { return fileDescriptor_c1b7ac8d7d97acec, []int{4} } func (m *ServiceCIDR) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ServiceCIDR) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ServiceCIDR) XXX_Merge(src proto.Message) { xxx_messageInfo_ServiceCIDR.Merge(m, src) } func (m *ServiceCIDR) XXX_Size() int { return m.Size() } func (m *ServiceCIDR) XXX_DiscardUnknown() { xxx_messageInfo_ServiceCIDR.DiscardUnknown(m) } var xxx_messageInfo_ServiceCIDR proto.InternalMessageInfo func (m *ServiceCIDRList) Reset() { *m = ServiceCIDRList{} } func (*ServiceCIDRList) ProtoMessage() {} func (*ServiceCIDRList) Descriptor() ([]byte, []int) { return fileDescriptor_c1b7ac8d7d97acec, []int{5} } func (m *ServiceCIDRList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ServiceCIDRList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ServiceCIDRList) XXX_Merge(src proto.Message) { xxx_messageInfo_ServiceCIDRList.Merge(m, src) } func (m *ServiceCIDRList) XXX_Size() int { return m.Size() } func (m *ServiceCIDRList) XXX_DiscardUnknown() { xxx_messageInfo_ServiceCIDRList.DiscardUnknown(m) } var xxx_messageInfo_ServiceCIDRList proto.InternalMessageInfo func (m *ServiceCIDRSpec) Reset() { *m = ServiceCIDRSpec{} } func (*ServiceCIDRSpec) ProtoMessage() {} func (*ServiceCIDRSpec) Descriptor() ([]byte, []int) { return fileDescriptor_c1b7ac8d7d97acec, []int{6} } func (m *ServiceCIDRSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ServiceCIDRSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ServiceCIDRSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_ServiceCIDRSpec.Merge(m, src) } func (m *ServiceCIDRSpec) XXX_Size() int { return m.Size() } func (m *ServiceCIDRSpec) XXX_DiscardUnknown() { xxx_messageInfo_ServiceCIDRSpec.DiscardUnknown(m) } var xxx_messageInfo_ServiceCIDRSpec proto.InternalMessageInfo func (m *ServiceCIDRStatus) Reset() { *m = ServiceCIDRStatus{} } func (*ServiceCIDRStatus) ProtoMessage() {} func (*ServiceCIDRStatus) Descriptor() ([]byte, []int) { return fileDescriptor_c1b7ac8d7d97acec, []int{7} } func (m *ServiceCIDRStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ServiceCIDRStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ServiceCIDRStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_ServiceCIDRStatus.Merge(m, src) } func (m *ServiceCIDRStatus) XXX_Size() int { return m.Size() } func (m *ServiceCIDRStatus) XXX_DiscardUnknown() { xxx_messageInfo_ServiceCIDRStatus.DiscardUnknown(m) } var xxx_messageInfo_ServiceCIDRStatus proto.InternalMessageInfo func init() { proto.RegisterType((*IPAddress)(nil), "k8s.io.api.networking.v1alpha1.IPAddress") proto.RegisterType((*IPAddressList)(nil), "k8s.io.api.networking.v1alpha1.IPAddressList") proto.RegisterType((*IPAddressSpec)(nil), "k8s.io.api.networking.v1alpha1.IPAddressSpec") proto.RegisterType((*ParentReference)(nil), "k8s.io.api.networking.v1alpha1.ParentReference") proto.RegisterType((*ServiceCIDR)(nil), "k8s.io.api.networking.v1alpha1.ServiceCIDR") proto.RegisterType((*ServiceCIDRList)(nil), "k8s.io.api.networking.v1alpha1.ServiceCIDRList") proto.RegisterType((*ServiceCIDRSpec)(nil), "k8s.io.api.networking.v1alpha1.ServiceCIDRSpec") proto.RegisterType((*ServiceCIDRStatus)(nil), "k8s.io.api.networking.v1alpha1.ServiceCIDRStatus") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/networking/v1alpha1/generated.proto", fileDescriptor_c1b7ac8d7d97acec) } var fileDescriptor_c1b7ac8d7d97acec = []byte{ // 648 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcd, 0x6e, 0xd3, 0x4c, 0x14, 0x8d, 0xdb, 0xa4, 0xaa, 0x27, 0x5f, 0xbf, 0x52, 0xaf, 0xa2, 0x2e, 0x9c, 0x28, 0x6c, 0x8a, 0xa0, 0x33, 0x24, 0x42, 0x88, 0x2d, 0x6e, 0xa5, 0xaa, 0x12, 0xb4, 0x65, 0xba, 0x02, 0x75, 0xc1, 0xc4, 0xbe, 0x75, 0x4c, 0xf0, 0x8f, 0x66, 0xc6, 0x01, 0x76, 0x3c, 0x02, 0x2f, 0xc0, 0x73, 0xb0, 0x02, 0x89, 0x5d, 0x97, 0x5d, 0x76, 0x55, 0x51, 0xf3, 0x22, 0x68, 0xc6, 0x8e, 0x9d, 0x34, 0xea, 0xdf, 0xa6, 0x3b, 0xcf, 0xb9, 0xe7, 0x9c, 0xb9, 0xe7, 0xce, 0x8c, 0x8c, 0x76, 0x46, 0x2f, 0x04, 0x0e, 0x62, 0x32, 0x4a, 0x07, 0xc0, 0x23, 0x90, 0x20, 0xc8, 0x18, 0x22, 0x2f, 0xe6, 0xa4, 0x28, 0xb0, 0x24, 0x20, 0x11, 0xc8, 0x4f, 0x31, 0x1f, 0x05, 0x91, 0x4f, 0xc6, 0x3d, 0xf6, 0x31, 0x19, 0xb2, 0x1e, 0xf1, 0x21, 0x02, 0xce, 0x24, 0x78, 0x38, 0xe1, 0xb1, 0x8c, 0x2d, 0x3b, 0xe7, 0x63, 0x96, 0x04, 0xb8, 0xe2, 0xe3, 0x09, 0x7f, 0x7d, 0xd3, 0x0f, 0xe4, 0x30, 0x1d, 0x60, 0x37, 0x0e, 0x89, 0x1f, 0xfb, 0x31, 0xd1, 0xb2, 0x41, 0x7a, 0xac, 0x57, 0x7a, 0xa1, 0xbf, 0x72, 0xbb, 0xf5, 0x67, 0xd5, 0xf6, 0x21, 0x73, 0x87, 0x41, 0x04, 0xfc, 0x0b, 0x49, 0x46, 0xbe, 0x02, 0x04, 0x09, 0x41, 0x32, 0x32, 0x9e, 0x6b, 0x62, 0x9d, 0x5c, 0xa5, 0xe2, 0x69, 0x24, 0x83, 0x10, 0xe6, 0x04, 0xcf, 0x6f, 0x12, 0x08, 0x77, 0x08, 0x21, 0xbb, 0xac, 0xeb, 0xfe, 0x32, 0x90, 0xb9, 0x7b, 0xf0, 0xd2, 0xf3, 0x38, 0x08, 0x61, 0xbd, 0x47, 0xcb, 0xaa, 0x23, 0x8f, 0x49, 0xd6, 0x32, 0x3a, 0xc6, 0x46, 0xb3, 0xff, 0x14, 0x57, 0xe3, 0x28, 0x8d, 0x71, 0x32, 0xf2, 0x15, 0x20, 0xb0, 0x62, 0xe3, 0x71, 0x0f, 0xef, 0x0f, 0x3e, 0x80, 0x2b, 0x5f, 0x83, 0x64, 0x8e, 0x75, 0x72, 0xde, 0xae, 0x65, 0xe7, 0x6d, 0x54, 0x61, 0xb4, 0x74, 0xb5, 0xf6, 0x51, 0x5d, 0x24, 0xe0, 0xb6, 0x16, 0xb4, 0xfb, 0x26, 0xbe, 0x7e, 0xd8, 0xb8, 0x6c, 0xed, 0x30, 0x01, 0xd7, 0xf9, 0xaf, 0xb0, 0xae, 0xab, 0x15, 0xd5, 0x46, 0xdd, 0x9f, 0x06, 0x5a, 0x29, 0x59, 0xaf, 0x02, 0x21, 0xad, 0xa3, 0xb9, 0x10, 0xf8, 0x76, 0x21, 0x94, 0x5a, 0x47, 0x78, 0x50, 0xec, 0xb3, 0x3c, 0x41, 0xa6, 0x02, 0xec, 0xa1, 0x46, 0x20, 0x21, 0x14, 0xad, 0x85, 0xce, 0xe2, 0x46, 0xb3, 0xff, 0xe8, 0xd6, 0x09, 0x9c, 0x95, 0xc2, 0xb5, 0xb1, 0xab, 0xf4, 0x34, 0xb7, 0xe9, 0x86, 0x53, 0xed, 0xab, 0x58, 0xd6, 0x11, 0x32, 0x13, 0xc6, 0x21, 0x92, 0x14, 0x8e, 0x8b, 0xfe, 0xc9, 0x4d, 0x9b, 0x1c, 0x4c, 0x04, 0xc0, 0x21, 0x72, 0xc1, 0x59, 0xc9, 0xce, 0xdb, 0x66, 0x09, 0xd2, 0xca, 0xb0, 0xfb, 0xc3, 0x40, 0xab, 0x97, 0xd8, 0xd6, 0x43, 0xd4, 0xf0, 0x79, 0x9c, 0x26, 0x7a, 0x37, 0xb3, 0xea, 0x73, 0x47, 0x81, 0x34, 0xaf, 0x59, 0x4f, 0xd0, 0x32, 0x07, 0x11, 0xa7, 0xdc, 0x05, 0x7d, 0x78, 0x66, 0x35, 0x25, 0x5a, 0xe0, 0xb4, 0x64, 0x58, 0x04, 0x99, 0x11, 0x0b, 0x41, 0x24, 0xcc, 0x85, 0xd6, 0xa2, 0xa6, 0xaf, 0x15, 0x74, 0x73, 0x6f, 0x52, 0xa0, 0x15, 0xc7, 0xea, 0xa0, 0xba, 0x5a, 0xb4, 0xea, 0x9a, 0x5b, 0x1e, 0xb4, 0xe2, 0x52, 0x5d, 0xe9, 0x7e, 0x5f, 0x40, 0xcd, 0x43, 0xe0, 0xe3, 0xc0, 0x85, 0xad, 0xdd, 0x6d, 0x7a, 0x0f, 0x77, 0xf5, 0xcd, 0xcc, 0x5d, 0xbd, 0xf1, 0x10, 0xa6, 0x9a, 0xbb, 0xea, 0xb6, 0x5a, 0x6f, 0xd1, 0x92, 0x90, 0x4c, 0xa6, 0x42, 0x0f, 0xa5, 0xd9, 0xef, 0xdd, 0xc5, 0x54, 0x0b, 0x9d, 0xff, 0x0b, 0xdb, 0xa5, 0x7c, 0x4d, 0x0b, 0xc3, 0xee, 0x6f, 0x03, 0xad, 0x4e, 0xb1, 0xef, 0xe1, 0x29, 0x1c, 0xcc, 0x3e, 0x85, 0xc7, 0x77, 0xc8, 0x72, 0xc5, 0x63, 0xe8, 0xcf, 0x44, 0xd0, 0xcf, 0xa1, 0x8d, 0x1a, 0x6e, 0xe0, 0x71, 0xd1, 0x32, 0x3a, 0x8b, 0x1b, 0xa6, 0x63, 0x2a, 0x8d, 0x2a, 0x0a, 0x9a, 0xe3, 0xdd, 0xcf, 0x68, 0x6d, 0x6e, 0x48, 0x96, 0x8b, 0x90, 0x1b, 0x47, 0x5e, 0x20, 0x83, 0x38, 0xca, 0xa5, 0xb3, 0x07, 0x78, 0x4d, 0xf4, 0xad, 0x89, 0xae, 0xba, 0x1d, 0x25, 0x24, 0xe8, 0x94, 0xad, 0xb3, 0x7d, 0x72, 0x61, 0xd7, 0x4e, 0x2f, 0xec, 0xda, 0xd9, 0x85, 0x5d, 0xfb, 0x9a, 0xd9, 0xc6, 0x49, 0x66, 0x1b, 0xa7, 0x99, 0x6d, 0x9c, 0x65, 0xb6, 0xf1, 0x27, 0xb3, 0x8d, 0x6f, 0x7f, 0xed, 0xda, 0x3b, 0xfb, 0xfa, 0xff, 0xcf, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x29, 0x82, 0x11, 0x57, 0xb9, 0x06, 0x00, 0x00, } func (m *IPAddress) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IPAddress) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IPAddress) 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 *IPAddressList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IPAddressList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IPAddressList) 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 *IPAddressSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IPAddressSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IPAddressSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.ParentRef != nil { { size, err := m.ParentRef.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *ParentReference) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ParentReference) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ParentReference) 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] = 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.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 *ServiceCIDR) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ServiceCIDR) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ServiceCIDR) 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 *ServiceCIDRList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ServiceCIDRList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ServiceCIDRList) 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 *ServiceCIDRSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ServiceCIDRSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ServiceCIDRSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.CIDRs) > 0 { for iNdEx := len(m.CIDRs) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.CIDRs[iNdEx]) copy(dAtA[i:], m.CIDRs[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(m.CIDRs[iNdEx]))) i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *ServiceCIDRStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ServiceCIDRStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ServiceCIDRStatus) 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] = 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 *IPAddress) 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 *IPAddressList) 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 *IPAddressSpec) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.ParentRef != nil { l = m.ParentRef.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *ParentReference) 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)) l = len(m.Namespace) n += 1 + l + sovGenerated(uint64(l)) l = len(m.Name) n += 1 + l + sovGenerated(uint64(l)) return n } func (m *ServiceCIDR) 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 *ServiceCIDRList) 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 *ServiceCIDRSpec) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.CIDRs) > 0 { for _, s := range m.CIDRs { l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *ServiceCIDRStatus) 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)) } } 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 *IPAddress) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&IPAddress{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "IPAddressSpec", "IPAddressSpec", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *IPAddressList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]IPAddress{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "IPAddress", "IPAddress", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&IPAddressList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *IPAddressSpec) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&IPAddressSpec{`, `ParentRef:` + strings.Replace(this.ParentRef.String(), "ParentReference", "ParentReference", 1) + `,`, `}`, }, "") return s } func (this *ParentReference) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ParentReference{`, `Group:` + fmt.Sprintf("%v", this.Group) + `,`, `Resource:` + fmt.Sprintf("%v", this.Resource) + `,`, `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `}`, }, "") return s } func (this *ServiceCIDR) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ServiceCIDR{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ServiceCIDRSpec", "ServiceCIDRSpec", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ServiceCIDRStatus", "ServiceCIDRStatus", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *ServiceCIDRList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]ServiceCIDR{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ServiceCIDR", "ServiceCIDR", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&ServiceCIDRList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *ServiceCIDRSpec) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ServiceCIDRSpec{`, `CIDRs:` + fmt.Sprintf("%v", this.CIDRs) + `,`, `}`, }, "") return s } func (this *ServiceCIDRStatus) String() string { if this == nil { return "nil" } repeatedStringForConditions := "[]Condition{" for _, f := range this.Conditions { repeatedStringForConditions += fmt.Sprintf("%v", f) + "," } repeatedStringForConditions += "}" s := strings.Join([]string{`&ServiceCIDRStatus{`, `Conditions:` + repeatedStringForConditions + `,`, `}`, }, "") 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 *IPAddress) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IPAddress: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IPAddress: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IPAddressList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IPAddressList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IPAddressList: 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, IPAddress{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IPAddressSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IPAddressSpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IPAddressSpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ParentRef", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ParentRef == nil { m.ParentRef = &ParentReference{} } if err := m.ParentRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ParentReference) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ParentReference: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ParentReference: 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 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 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ServiceCIDR) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ServiceCIDR: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ServiceCIDR: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ServiceCIDRList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ServiceCIDRList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ServiceCIDRList: 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, ServiceCIDR{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ServiceCIDRSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ServiceCIDRSpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ServiceCIDRSpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CIDRs", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.CIDRs = append(m.CIDRs, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ServiceCIDRStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ServiceCIDRStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ServiceCIDRStatus: 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, v1.Condition{}) 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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/networking/v1alpha1/generated.proto000066400000000000000000000122711453636404600231700ustar00rootroot00000000000000/* 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.v1alpha1; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/networking/v1alpha1"; // IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs // that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. // An IP address can be represented in different formats, to guarantee the uniqueness of the IP, // the name of the object is the IP address in canonical format, four decimal digits separated // by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. // Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 // Invalid: 10.01.2.3 or 2001:db8:0:0:0::1 message IPAddress { // 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 IPAddress. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional IPAddressSpec spec = 2; } // IPAddressList contains a list of IPAddress. message IPAddressList { // 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 IPAddresses. repeated IPAddress items = 2; } // IPAddressSpec describe the attributes in an IP Address. message IPAddressSpec { // ParentRef references the resource that an IPAddress is attached to. // An IPAddress must reference a parent object. // +required optional ParentReference parentRef = 1; } // ParentReference describes a reference to a parent object. message ParentReference { // Group is the group of the object being referenced. // +optional optional string group = 1; // Resource is the resource of the object being referenced. // +required optional string resource = 2; // Namespace is the namespace of the object being referenced. // +optional optional string namespace = 3; // Name is the name of the object being referenced. // +required optional string name = 4; } // ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). // This range is used to allocate ClusterIPs to Service objects. message ServiceCIDR { // 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 ServiceCIDR. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional ServiceCIDRSpec spec = 2; // status represents the current state of the ServiceCIDR. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional ServiceCIDRStatus status = 3; } // ServiceCIDRList contains a list of ServiceCIDR objects. message ServiceCIDRList { // 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 ServiceCIDRs. repeated ServiceCIDR items = 2; } // ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. message ServiceCIDRSpec { // CIDRs defines the IP blocks in CIDR notation (e.g. "192.168.0.0/24" or "2001:db8::/64") // from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. // This field is immutable. // +optional repeated string cidrs = 1; } // ServiceCIDRStatus describes the current state of the ServiceCIDR. message ServiceCIDRStatus { // conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. // Current service state // +optional // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type repeated k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; } golang-k8s-api-0.29.0/networking/v1alpha1/register.go000066400000000000000000000040531453636404600223170ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name used in this package. const GroupName = "networking.k8s.io" // SchemeGroupVersion is group version used to register objects in this package. 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 holds functions that add things to a scheme. // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder // AddToScheme 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, &IPAddress{}, &IPAddressList{}, &ServiceCIDR{}, &ServiceCIDRList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/networking/v1alpha1/types.go000066400000000000000000000147061453636404600216450ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.27 // IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs // that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. // An IP address can be represented in different formats, to guarantee the uniqueness of the IP, // the name of the object is the IP address in canonical format, four decimal digits separated // by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. // Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 // Invalid: 10.01.2.3 or 2001:db8:0:0:0::1 type IPAddress 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 IPAddress. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec IPAddressSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } // IPAddressSpec describe the attributes in an IP Address. type IPAddressSpec struct { // ParentRef references the resource that an IPAddress is attached to. // An IPAddress must reference a parent object. // +required ParentRef *ParentReference `json:"parentRef,omitempty" protobuf:"bytes,1,opt,name=parentRef"` } // ParentReference describes a reference to a parent object. type ParentReference struct { // Group is the group of the object being referenced. // +optional Group string `json:"group,omitempty" protobuf:"bytes,1,opt,name=group"` // Resource is the resource of the object being referenced. // +required Resource string `json:"resource,omitempty" protobuf:"bytes,2,opt,name=resource"` // Namespace is the namespace of the object being referenced. // +optional Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"` // Name is the name of the object being referenced. // +required Name string `json:"name,omitempty" protobuf:"bytes,4,opt,name=name"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.27 // IPAddressList contains a list of IPAddress. type IPAddressList 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 IPAddresses. Items []IPAddress `json:"items" protobuf:"bytes,2,rep,name=items"` } // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.27 // ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). // This range is used to allocate ClusterIPs to Service objects. type ServiceCIDR 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 ServiceCIDR. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec ServiceCIDRSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // status represents the current state of the ServiceCIDR. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Status ServiceCIDRStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. type ServiceCIDRSpec struct { // CIDRs defines the IP blocks in CIDR notation (e.g. "192.168.0.0/24" or "2001:db8::/64") // from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. // This field is immutable. // +optional CIDRs []string `json:"cidrs,omitempty" protobuf:"bytes,1,opt,name=cidrs"` } const ( // ServiceCIDRConditionReady represents status of a ServiceCIDR that is ready to be used by the // apiserver to allocate ClusterIPs for Services. ServiceCIDRConditionReady = "Ready" // ServiceCIDRReasonTerminating represents a reason where a ServiceCIDR is not ready because it is // being deleted. ServiceCIDRReasonTerminating = "Terminating" ) // ServiceCIDRStatus describes the current state of the ServiceCIDR. type ServiceCIDRStatus struct { // conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. // Current service state // +optional // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.27 // ServiceCIDRList contains a list of ServiceCIDR objects. type ServiceCIDRList 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 ServiceCIDRs. Items []ServiceCIDR `json:"items" protobuf:"bytes,2,rep,name=items"` } golang-k8s-api-0.29.0/networking/v1alpha1/types_swagger_doc_generated.go000066400000000000000000000126071453636404600262250ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_IPAddress = map[string]string{ "": "IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1", "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 IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", } func (IPAddress) SwaggerDoc() map[string]string { return map_IPAddress } var map_IPAddressList = map[string]string{ "": "IPAddressList contains a list of IPAddress.", "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 IPAddresses.", } func (IPAddressList) SwaggerDoc() map[string]string { return map_IPAddressList } var map_IPAddressSpec = map[string]string{ "": "IPAddressSpec describe the attributes in an IP Address.", "parentRef": "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object.", } func (IPAddressSpec) SwaggerDoc() map[string]string { return map_IPAddressSpec } var map_ParentReference = map[string]string{ "": "ParentReference describes a reference to a parent object.", "group": "Group is the group of the object being referenced.", "resource": "Resource is the resource of the object being referenced.", "namespace": "Namespace is the namespace of the object being referenced.", "name": "Name is the name of the object being referenced.", } func (ParentReference) SwaggerDoc() map[string]string { return map_ParentReference } var map_ServiceCIDR = map[string]string{ "": "ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.", "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 ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", "status": "status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", } func (ServiceCIDR) SwaggerDoc() map[string]string { return map_ServiceCIDR } var map_ServiceCIDRList = map[string]string{ "": "ServiceCIDRList contains a list of ServiceCIDR objects.", "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 ServiceCIDRs.", } func (ServiceCIDRList) SwaggerDoc() map[string]string { return map_ServiceCIDRList } var map_ServiceCIDRSpec = map[string]string{ "": "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", "cidrs": "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", } func (ServiceCIDRSpec) SwaggerDoc() map[string]string { return map_ServiceCIDRSpec } var map_ServiceCIDRStatus = map[string]string{ "": "ServiceCIDRStatus describes the current state of the ServiceCIDR.", "conditions": "conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state", } func (ServiceCIDRStatus) SwaggerDoc() map[string]string { return map_ServiceCIDRStatus } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/networking/v1alpha1/well_known_labels.go000066400000000000000000000025221453636404600241730ustar00rootroot00000000000000/* Copyright 2023 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 ( // TODO: Use IPFamily as field with a field selector,And the value is set based on // the name at create time and immutable. // LabelIPAddressFamily is used to indicate the IP family of a Kubernetes IPAddress. // This label simplify dual-stack client operations allowing to obtain the list of // IP addresses filtered by family. LabelIPAddressFamily = "ipaddress.kubernetes.io/ip-family" // LabelManagedBy is used to indicate the controller or entity that manages // an IPAddress. This label aims to enable different IPAddress // objects to be managed by different controllers or entities within the // same cluster. It is highly recommended to configure this label for all // IPAddress objects. LabelManagedBy = "ipaddress.kubernetes.io/managed-by" ) golang-k8s-api-0.29.0/networking/v1alpha1/zz_generated.deepcopy.go000066400000000000000000000145031453636404600247640ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *IPAddress) DeepCopyInto(out *IPAddress) { *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 IPAddress. func (in *IPAddress) DeepCopy() *IPAddress { if in == nil { return nil } out := new(IPAddress) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *IPAddress) 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 *IPAddressList) DeepCopyInto(out *IPAddressList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]IPAddress, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddressList. func (in *IPAddressList) DeepCopy() *IPAddressList { if in == nil { return nil } out := new(IPAddressList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *IPAddressList) 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 *IPAddressSpec) DeepCopyInto(out *IPAddressSpec) { *out = *in if in.ParentRef != nil { in, out := &in.ParentRef, &out.ParentRef *out = new(ParentReference) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddressSpec. func (in *IPAddressSpec) DeepCopy() *IPAddressSpec { if in == nil { return nil } out := new(IPAddressSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ParentReference) DeepCopyInto(out *ParentReference) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParentReference. func (in *ParentReference) DeepCopy() *ParentReference { if in == nil { return nil } out := new(ParentReference) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServiceCIDR) DeepCopyInto(out *ServiceCIDR) { *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 ServiceCIDR. func (in *ServiceCIDR) DeepCopy() *ServiceCIDR { if in == nil { return nil } out := new(ServiceCIDR) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *ServiceCIDR) 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 *ServiceCIDRList) DeepCopyInto(out *ServiceCIDRList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ServiceCIDR, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceCIDRList. func (in *ServiceCIDRList) DeepCopy() *ServiceCIDRList { if in == nil { return nil } out := new(ServiceCIDRList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *ServiceCIDRList) 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 *ServiceCIDRSpec) DeepCopyInto(out *ServiceCIDRSpec) { *out = *in if in.CIDRs != nil { in, out := &in.CIDRs, &out.CIDRs *out = make([]string, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceCIDRSpec. func (in *ServiceCIDRSpec) DeepCopy() *ServiceCIDRSpec { if in == nil { return nil } out := new(ServiceCIDRSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServiceCIDRStatus) DeepCopyInto(out *ServiceCIDRStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]v1.Condition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceCIDRStatus. func (in *ServiceCIDRStatus) DeepCopy() *ServiceCIDRStatus { if in == nil { return nil } out := new(ServiceCIDRStatus) in.DeepCopyInto(out) return out } golang-k8s-api-0.29.0/networking/v1alpha1/zz_generated.prerelease-lifecycle.go000066400000000000000000000122261453636404600272400ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1alpha1 // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *IPAddress) APILifecycleIntroduced() (major, minor int) { return 1, 27 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *IPAddress) APILifecycleDeprecated() (major, minor int) { return 1, 30 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *IPAddress) APILifecycleRemoved() (major, minor int) { return 1, 33 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *IPAddressList) APILifecycleIntroduced() (major, minor int) { return 1, 27 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *IPAddressList) APILifecycleDeprecated() (major, minor int) { return 1, 30 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *IPAddressList) APILifecycleRemoved() (major, minor int) { return 1, 33 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ServiceCIDR) APILifecycleIntroduced() (major, minor int) { return 1, 27 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ServiceCIDR) APILifecycleDeprecated() (major, minor int) { return 1, 30 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ServiceCIDR) APILifecycleRemoved() (major, minor int) { return 1, 33 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ServiceCIDRList) APILifecycleIntroduced() (major, minor int) { return 1, 27 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ServiceCIDRList) APILifecycleDeprecated() (major, minor int) { return 1, 30 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ServiceCIDRList) APILifecycleRemoved() (major, minor int) { return 1, 33 } golang-k8s-api-0.29.0/networking/v1beta1/000077500000000000000000000000001453636404600177705ustar00rootroot00000000000000golang-k8s-api-0.29.0/networking/v1beta1/doc.go000066400000000000000000000014171453636404600210670ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true // +groupName=networking.k8s.io package v1beta1 // import "k8s.io/api/networking/v1beta1" golang-k8s-api-0.29.0/networking/v1beta1/generated.pb.go000066400000000000000000003131141453636404600226600ustar00rootroot00000000000000/* 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/k8s.io/api/networking/v1beta1/generated.proto package v1beta1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" k8s_io_api_core_v1 "k8s.io/api/core/v1" v11 "k8s.io/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.GoGoProtoPackageIsVersion3 // 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 *IngressClass) Reset() { *m = IngressClass{} } func (*IngressClass) ProtoMessage() {} func (*IngressClass) Descriptor() ([]byte, []int) { return fileDescriptor_5bea11de0ceb8f53, []int{4} } func (m *IngressClass) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IngressClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IngressClass) XXX_Merge(src proto.Message) { xxx_messageInfo_IngressClass.Merge(m, src) } func (m *IngressClass) XXX_Size() int { return m.Size() } func (m *IngressClass) XXX_DiscardUnknown() { xxx_messageInfo_IngressClass.DiscardUnknown(m) } var xxx_messageInfo_IngressClass proto.InternalMessageInfo func (m *IngressClassList) Reset() { *m = IngressClassList{} } func (*IngressClassList) ProtoMessage() {} func (*IngressClassList) Descriptor() ([]byte, []int) { return fileDescriptor_5bea11de0ceb8f53, []int{5} } func (m *IngressClassList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IngressClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IngressClassList) XXX_Merge(src proto.Message) { xxx_messageInfo_IngressClassList.Merge(m, src) } func (m *IngressClassList) XXX_Size() int { return m.Size() } func (m *IngressClassList) XXX_DiscardUnknown() { xxx_messageInfo_IngressClassList.DiscardUnknown(m) } var xxx_messageInfo_IngressClassList proto.InternalMessageInfo func (m *IngressClassParametersReference) Reset() { *m = IngressClassParametersReference{} } func (*IngressClassParametersReference) ProtoMessage() {} func (*IngressClassParametersReference) Descriptor() ([]byte, []int) { return fileDescriptor_5bea11de0ceb8f53, []int{6} } func (m *IngressClassParametersReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IngressClassParametersReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IngressClassParametersReference) XXX_Merge(src proto.Message) { xxx_messageInfo_IngressClassParametersReference.Merge(m, src) } func (m *IngressClassParametersReference) XXX_Size() int { return m.Size() } func (m *IngressClassParametersReference) XXX_DiscardUnknown() { xxx_messageInfo_IngressClassParametersReference.DiscardUnknown(m) } var xxx_messageInfo_IngressClassParametersReference proto.InternalMessageInfo func (m *IngressClassSpec) Reset() { *m = IngressClassSpec{} } func (*IngressClassSpec) ProtoMessage() {} func (*IngressClassSpec) Descriptor() ([]byte, []int) { return fileDescriptor_5bea11de0ceb8f53, []int{7} } func (m *IngressClassSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IngressClassSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IngressClassSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_IngressClassSpec.Merge(m, src) } func (m *IngressClassSpec) XXX_Size() int { return m.Size() } func (m *IngressClassSpec) XXX_DiscardUnknown() { xxx_messageInfo_IngressClassSpec.DiscardUnknown(m) } var xxx_messageInfo_IngressClassSpec proto.InternalMessageInfo func (m *IngressList) Reset() { *m = IngressList{} } func (*IngressList) ProtoMessage() {} func (*IngressList) Descriptor() ([]byte, []int) { return fileDescriptor_5bea11de0ceb8f53, []int{8} } 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 *IngressLoadBalancerIngress) Reset() { *m = IngressLoadBalancerIngress{} } func (*IngressLoadBalancerIngress) ProtoMessage() {} func (*IngressLoadBalancerIngress) Descriptor() ([]byte, []int) { return fileDescriptor_5bea11de0ceb8f53, []int{9} } func (m *IngressLoadBalancerIngress) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IngressLoadBalancerIngress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IngressLoadBalancerIngress) XXX_Merge(src proto.Message) { xxx_messageInfo_IngressLoadBalancerIngress.Merge(m, src) } func (m *IngressLoadBalancerIngress) XXX_Size() int { return m.Size() } func (m *IngressLoadBalancerIngress) XXX_DiscardUnknown() { xxx_messageInfo_IngressLoadBalancerIngress.DiscardUnknown(m) } var xxx_messageInfo_IngressLoadBalancerIngress proto.InternalMessageInfo func (m *IngressLoadBalancerStatus) Reset() { *m = IngressLoadBalancerStatus{} } func (*IngressLoadBalancerStatus) ProtoMessage() {} func (*IngressLoadBalancerStatus) Descriptor() ([]byte, []int) { return fileDescriptor_5bea11de0ceb8f53, []int{10} } func (m *IngressLoadBalancerStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IngressLoadBalancerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IngressLoadBalancerStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_IngressLoadBalancerStatus.Merge(m, src) } func (m *IngressLoadBalancerStatus) XXX_Size() int { return m.Size() } func (m *IngressLoadBalancerStatus) XXX_DiscardUnknown() { xxx_messageInfo_IngressLoadBalancerStatus.DiscardUnknown(m) } var xxx_messageInfo_IngressLoadBalancerStatus proto.InternalMessageInfo func (m *IngressPortStatus) Reset() { *m = IngressPortStatus{} } func (*IngressPortStatus) ProtoMessage() {} func (*IngressPortStatus) Descriptor() ([]byte, []int) { return fileDescriptor_5bea11de0ceb8f53, []int{11} } func (m *IngressPortStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IngressPortStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *IngressPortStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_IngressPortStatus.Merge(m, src) } func (m *IngressPortStatus) XXX_Size() int { return m.Size() } func (m *IngressPortStatus) XXX_DiscardUnknown() { xxx_messageInfo_IngressPortStatus.DiscardUnknown(m) } var xxx_messageInfo_IngressPortStatus proto.InternalMessageInfo func (m *IngressRule) Reset() { *m = IngressRule{} } func (*IngressRule) ProtoMessage() {} func (*IngressRule) Descriptor() ([]byte, []int) { return fileDescriptor_5bea11de0ceb8f53, []int{12} } 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{13} } 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{14} } 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{15} } 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{16} } 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((*IngressClass)(nil), "k8s.io.api.networking.v1beta1.IngressClass") proto.RegisterType((*IngressClassList)(nil), "k8s.io.api.networking.v1beta1.IngressClassList") proto.RegisterType((*IngressClassParametersReference)(nil), "k8s.io.api.networking.v1beta1.IngressClassParametersReference") proto.RegisterType((*IngressClassSpec)(nil), "k8s.io.api.networking.v1beta1.IngressClassSpec") proto.RegisterType((*IngressList)(nil), "k8s.io.api.networking.v1beta1.IngressList") proto.RegisterType((*IngressLoadBalancerIngress)(nil), "k8s.io.api.networking.v1beta1.IngressLoadBalancerIngress") proto.RegisterType((*IngressLoadBalancerStatus)(nil), "k8s.io.api.networking.v1beta1.IngressLoadBalancerStatus") proto.RegisterType((*IngressPortStatus)(nil), "k8s.io.api.networking.v1beta1.IngressPortStatus") 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/k8s.io/api/networking/v1beta1/generated.proto", fileDescriptor_5bea11de0ceb8f53) } var fileDescriptor_5bea11de0ceb8f53 = []byte{ // 1247 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcb, 0x6f, 0x1b, 0x45, 0x18, 0xcf, 0xda, 0x71, 0xe3, 0x8c, 0xd3, 0x36, 0x0c, 0x3d, 0x98, 0xa0, 0xda, 0xd1, 0x1e, 0x50, 0xa0, 0xed, 0x6e, 0x93, 0x16, 0x54, 0x2e, 0x08, 0x36, 0x02, 0x12, 0x25, 0x24, 0x66, 0x6c, 0x1e, 0x42, 0x1c, 0x18, 0xaf, 0xa7, 0xf6, 0xe2, 0xf5, 0xee, 0x6a, 0x66, 0x36, 0xa8, 0x37, 0x10, 0x27, 0x4e, 0xf0, 0x3f, 0x20, 0xf1, 0x27, 0x20, 0x2e, 0x48, 0x08, 0x2e, 0x39, 0xf6, 0xd8, 0x0b, 0x11, 0x31, 0xff, 0x45, 0x4f, 0xe8, 0x9b, 0x9d, 0x7d, 0xf8, 0x91, 0xd6, 0xe1, 0xd0, 0x53, 0xbc, 0xdf, 0xe3, 0xf7, 0xbd, 0xbf, 0xf9, 0x82, 0x3e, 0x18, 0x3e, 0x10, 0x96, 0x17, 0xda, 0xc3, 0xb8, 0xcb, 0x78, 0xc0, 0x24, 0x13, 0xf6, 0x09, 0x0b, 0x7a, 0x21, 0xb7, 0x35, 0x83, 0x46, 0x9e, 0x1d, 0x30, 0xf9, 0x4d, 0xc8, 0x87, 0x5e, 0xd0, 0xb7, 0x4f, 0xb6, 0xbb, 0x4c, 0xd2, 0x6d, 0xbb, 0xcf, 0x02, 0xc6, 0xa9, 0x64, 0x3d, 0x2b, 0xe2, 0xa1, 0x0c, 0xf1, 0xcd, 0x44, 0xdc, 0xa2, 0x91, 0x67, 0xe5, 0xe2, 0x96, 0x16, 0xdf, 0xb8, 0xd3, 0xf7, 0xe4, 0x20, 0xee, 0x5a, 0x6e, 0x38, 0xb2, 0xfb, 0x61, 0x3f, 0xb4, 0x95, 0x56, 0x37, 0x7e, 0xa8, 0xbe, 0xd4, 0x87, 0xfa, 0x95, 0xa0, 0x6d, 0x98, 0x05, 0xe3, 0x6e, 0xc8, 0x99, 0x7d, 0x32, 0x63, 0x71, 0xe3, 0x7e, 0x2e, 0x33, 0xa2, 0xee, 0xc0, 0x0b, 0x18, 0x7f, 0x64, 0x47, 0xc3, 0x3e, 0x10, 0x84, 0x3d, 0x62, 0x92, 0xce, 0xd3, 0xb2, 0x2f, 0xd2, 0xe2, 0x71, 0x20, 0xbd, 0x11, 0x9b, 0x51, 0x78, 0xeb, 0x79, 0x0a, 0xc2, 0x1d, 0xb0, 0x11, 0x9d, 0xd1, 0xbb, 0x77, 0x91, 0x5e, 0x2c, 0x3d, 0xdf, 0xf6, 0x02, 0x29, 0x24, 0x9f, 0x56, 0x32, 0xff, 0x32, 0xd0, 0xf5, 0xbd, 0x4e, 0xa7, 0xb5, 0x1f, 0xf4, 0x39, 0x13, 0xa2, 0x45, 0xe5, 0x00, 0x6f, 0xa2, 0xe5, 0x88, 0xca, 0x41, 0xdd, 0xd8, 0x34, 0xb6, 0x56, 0x9d, 0xb5, 0xd3, 0xb3, 0xe6, 0xd2, 0xf8, 0xac, 0xb9, 0x0c, 0x3c, 0xa2, 0x38, 0xf8, 0x3e, 0xaa, 0xc2, 0xdf, 0xce, 0xa3, 0x88, 0xd5, 0xcb, 0x4a, 0xaa, 0x3e, 0x3e, 0x6b, 0x56, 0x5b, 0x9a, 0xf6, 0xb4, 0xf0, 0x9b, 0x64, 0x92, 0xf8, 0x73, 0xb4, 0xd2, 0xa5, 0xee, 0x90, 0x05, 0xbd, 0x7a, 0x69, 0xd3, 0xd8, 0xaa, 0xed, 0xdc, 0xb1, 0x9e, 0x59, 0x43, 0x4b, 0x3b, 0xe5, 0x24, 0x4a, 0xce, 0x75, 0xed, 0xc9, 0x8a, 0x26, 0x90, 0x14, 0xce, 0x1c, 0xa2, 0x1b, 0x85, 0x20, 0x48, 0xec, 0xb3, 0x4f, 0xa9, 0x1f, 0x33, 0xdc, 0x46, 0x15, 0xb0, 0x2e, 0xea, 0xc6, 0x66, 0x79, 0xab, 0xb6, 0x63, 0x3d, 0xc7, 0xde, 0x54, 0x22, 0x9c, 0xab, 0xda, 0x60, 0x05, 0xbe, 0x04, 0x49, 0xb0, 0xcc, 0x1f, 0x4b, 0x68, 0x45, 0x4b, 0xe1, 0xaf, 0x50, 0x15, 0xea, 0xde, 0xa3, 0x92, 0xaa, 0x74, 0xd5, 0x76, 0xee, 0x16, 0x6c, 0x64, 0x65, 0xb0, 0xa2, 0x61, 0x1f, 0x08, 0xc2, 0x02, 0x69, 0xeb, 0x64, 0xdb, 0x3a, 0xee, 0x7e, 0xcd, 0x5c, 0xf9, 0x11, 0x93, 0xd4, 0xc1, 0xda, 0x0a, 0xca, 0x69, 0x24, 0x43, 0xc5, 0x87, 0x68, 0x59, 0x44, 0xcc, 0xd5, 0x19, 0x7b, 0x63, 0xb1, 0x8c, 0xb5, 0x23, 0xe6, 0xe6, 0x85, 0x83, 0x2f, 0xa2, 0x50, 0x70, 0x07, 0x5d, 0x11, 0x92, 0xca, 0x58, 0xa8, 0xb2, 0xd5, 0x76, 0x6e, 0x2f, 0x88, 0xa7, 0x74, 0x9c, 0x6b, 0x1a, 0xf1, 0x4a, 0xf2, 0x4d, 0x34, 0x96, 0xf9, 0x43, 0x09, 0x5d, 0x9b, 0xac, 0x15, 0x7e, 0x13, 0xd5, 0x04, 0xe3, 0x27, 0x9e, 0xcb, 0x8e, 0xe8, 0x88, 0xe9, 0x56, 0x7a, 0x59, 0xeb, 0xd7, 0xda, 0x39, 0x8b, 0x14, 0xe5, 0x70, 0x3f, 0x53, 0x6b, 0x85, 0x5c, 0xea, 0xa0, 0x2f, 0x4e, 0x29, 0x74, 0xb6, 0x95, 0x74, 0xb6, 0xb5, 0x1f, 0xc8, 0x63, 0xde, 0x96, 0xdc, 0x0b, 0xfa, 0x33, 0x86, 0x00, 0x8c, 0x14, 0x91, 0xf1, 0x67, 0xa8, 0xca, 0x99, 0x08, 0x63, 0xee, 0x32, 0x9d, 0x8a, 0x89, 0x66, 0x84, 0x15, 0x00, 0x65, 0x82, 0xbe, 0xed, 0x1d, 0x86, 0x2e, 0xf5, 0x93, 0xe2, 0x10, 0xf6, 0x90, 0x71, 0x16, 0xb8, 0xcc, 0x59, 0x83, 0x86, 0x27, 0x1a, 0x82, 0x64, 0x60, 0x30, 0x50, 0x6b, 0x3a, 0x17, 0xbb, 0x3e, 0x7d, 0x21, 0x2d, 0xf2, 0xf1, 0x44, 0x8b, 0xd8, 0x8b, 0x95, 0x54, 0x39, 0x77, 0x51, 0x9f, 0x98, 0x7f, 0x1a, 0x68, 0xbd, 0x28, 0x78, 0xe8, 0x09, 0x89, 0xbf, 0x9c, 0x89, 0xc4, 0x5a, 0x2c, 0x12, 0xd0, 0x56, 0x71, 0xac, 0x6b, 0x53, 0xd5, 0x94, 0x52, 0x88, 0xa2, 0x85, 0x2a, 0x9e, 0x64, 0x23, 0x51, 0x2f, 0xa9, 0x59, 0xbd, 0x75, 0x89, 0x30, 0xf2, 0x41, 0xdd, 0x07, 0x04, 0x92, 0x00, 0x99, 0x7f, 0x1b, 0xa8, 0x59, 0x14, 0x6b, 0x51, 0x4e, 0x47, 0x4c, 0x32, 0x2e, 0xb2, 0x32, 0xe2, 0x2d, 0x54, 0xa5, 0xad, 0xfd, 0x0f, 0x79, 0x18, 0x47, 0xe9, 0xbe, 0x03, 0xff, 0xde, 0xd3, 0x34, 0x92, 0x71, 0x61, 0x2b, 0x0e, 0x3d, 0xbd, 0xba, 0x0a, 0x5b, 0xf1, 0xc0, 0x0b, 0x7a, 0x44, 0x71, 0x40, 0x22, 0x80, 0x66, 0x2f, 0x4f, 0x4a, 0xa8, 0x2e, 0x57, 0x1c, 0xdc, 0x44, 0x15, 0xe1, 0x86, 0x11, 0xab, 0x2f, 0x2b, 0x91, 0x55, 0x70, 0xb9, 0x0d, 0x04, 0x92, 0xd0, 0xf1, 0x2d, 0xb4, 0x0a, 0x82, 0x22, 0xa2, 0x2e, 0xab, 0x57, 0x94, 0xd0, 0xd5, 0xf1, 0x59, 0x73, 0xf5, 0x28, 0x25, 0x92, 0x9c, 0x6f, 0xfe, 0x3a, 0x55, 0x24, 0xa8, 0x1f, 0xde, 0x41, 0xc8, 0x0d, 0x03, 0xc9, 0x43, 0xdf, 0x67, 0x5c, 0x87, 0x94, 0xb5, 0xcf, 0x6e, 0xc6, 0x21, 0x05, 0x29, 0x1c, 0x20, 0x14, 0x65, 0xb9, 0xd1, 0x6d, 0xf4, 0xce, 0x25, 0xf2, 0x3f, 0x27, 0xb1, 0xce, 0x35, 0xb0, 0x57, 0x60, 0x14, 0x2c, 0x98, 0xbf, 0x19, 0xa8, 0xa6, 0xf5, 0x5f, 0x40, 0x63, 0x1d, 0x4c, 0x36, 0xd6, 0x6b, 0x0b, 0x3e, 0x3a, 0xf3, 0x7b, 0xea, 0x77, 0x03, 0x6d, 0xa4, 0xae, 0x87, 0xb4, 0xe7, 0x50, 0x9f, 0x06, 0x2e, 0xe3, 0xe9, 0x7b, 0xb0, 0x81, 0x4a, 0x5e, 0xda, 0x48, 0x48, 0x03, 0x94, 0xf6, 0x5b, 0xa4, 0xe4, 0x45, 0xf8, 0x36, 0xaa, 0x0e, 0x42, 0x21, 0x55, 0x8b, 0x24, 0x4d, 0x94, 0x79, 0xbd, 0xa7, 0xe9, 0x24, 0x93, 0xc0, 0x9f, 0xa0, 0x4a, 0x14, 0x72, 0x29, 0xea, 0xcb, 0xca, 0xeb, 0xbb, 0x8b, 0x79, 0x0d, 0xbb, 0x4d, 0x2f, 0xeb, 0xfc, 0xf1, 0x02, 0x18, 0x92, 0xa0, 0x99, 0xdf, 0x19, 0xe8, 0x95, 0x39, 0xfe, 0x27, 0x3a, 0xb8, 0x87, 0x56, 0xbc, 0x84, 0xa9, 0x5f, 0xcc, 0xb7, 0x17, 0x33, 0x3b, 0x27, 0x15, 0xf9, 0x6b, 0x9d, 0xbe, 0xca, 0x29, 0xb4, 0xf9, 0xb3, 0x81, 0x5e, 0x9a, 0xf1, 0x57, 0x5d, 0x1d, 0xb0, 0xf3, 0x21, 0x79, 0x95, 0xc2, 0xd5, 0x01, 0xab, 0x5b, 0x71, 0xf0, 0x01, 0xaa, 0xaa, 0xa3, 0xc5, 0x0d, 0x7d, 0x9d, 0x40, 0x3b, 0x4d, 0x60, 0x4b, 0xd3, 0x9f, 0x9e, 0x35, 0x5f, 0x9d, 0xbd, 0xe4, 0xac, 0x94, 0x4d, 0x32, 0x00, 0x18, 0x45, 0xc6, 0x79, 0xc8, 0xf5, 0xb4, 0xaa, 0x51, 0x7c, 0x1f, 0x08, 0x24, 0xa1, 0x9b, 0xbf, 0xe4, 0x4d, 0x0a, 0x07, 0x05, 0xf8, 0x07, 0xc5, 0x99, 0xbe, 0x8a, 0xa0, 0x74, 0x44, 0x71, 0x70, 0x8c, 0xd6, 0xbd, 0xa9, 0x0b, 0xe4, 0x72, 0x3b, 0x39, 0x53, 0x73, 0xea, 0x1a, 0x7e, 0x7d, 0x9a, 0x43, 0x66, 0x4c, 0x98, 0x0c, 0xcd, 0x48, 0xc1, 0x93, 0x30, 0x90, 0x32, 0xd2, 0xd3, 0x74, 0x6f, 0xf1, 0xbb, 0x27, 0x77, 0xa1, 0xaa, 0xa2, 0xeb, 0x74, 0x5a, 0x44, 0x41, 0x99, 0x7f, 0x94, 0xb2, 0x7c, 0xa8, 0x45, 0xf3, 0x6e, 0x16, 0xad, 0xda, 0x01, 0xea, 0x99, 0x4f, 0xd6, 0xda, 0x8d, 0x82, 0xe3, 0x19, 0x8f, 0xcc, 0x48, 0xe3, 0x4e, 0x7e, 0x0f, 0x1a, 0xff, 0xe7, 0x1e, 0xac, 0xcd, 0xbb, 0x05, 0xf1, 0x1e, 0x2a, 0x4b, 0x3f, 0x1d, 0xf6, 0xd7, 0x17, 0x43, 0xec, 0x1c, 0xb6, 0x9d, 0x9a, 0x4e, 0x79, 0xb9, 0x73, 0xd8, 0x26, 0x00, 0x81, 0x8f, 0x51, 0x85, 0xc7, 0x3e, 0x83, 0x5b, 0xa9, 0xbc, 0xf8, 0xed, 0x05, 0x19, 0xcc, 0x87, 0x0f, 0xbe, 0x04, 0x49, 0x70, 0xcc, 0xef, 0x0d, 0x74, 0x75, 0xe2, 0xa2, 0xc2, 0x1c, 0xad, 0xf9, 0x85, 0xd9, 0xd1, 0x79, 0x78, 0x70, 0xf9, 0xa9, 0xd3, 0x43, 0x7f, 0x43, 0xdb, 0x5d, 0x2b, 0xf2, 0xc8, 0x84, 0x0d, 0x93, 0x22, 0x94, 0x87, 0x0d, 0x73, 0x00, 0xcd, 0x9b, 0x0c, 0xbc, 0x9e, 0x03, 0xe8, 0x69, 0x41, 0x12, 0x3a, 0x3c, 0x28, 0x82, 0xb9, 0x9c, 0xc9, 0xa3, 0x7c, 0x71, 0x65, 0x0f, 0x4a, 0x3b, 0xe3, 0x90, 0x82, 0x94, 0xb3, 0x7b, 0x7a, 0xde, 0x58, 0x7a, 0x7c, 0xde, 0x58, 0x7a, 0x72, 0xde, 0x58, 0xfa, 0x76, 0xdc, 0x30, 0x4e, 0xc7, 0x0d, 0xe3, 0xf1, 0xb8, 0x61, 0x3c, 0x19, 0x37, 0x8c, 0x7f, 0xc6, 0x0d, 0xe3, 0xa7, 0x7f, 0x1b, 0x4b, 0x5f, 0xdc, 0x7c, 0xe6, 0x3f, 0x7c, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x08, 0x04, 0x22, 0x31, 0x29, 0x0e, 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 if m.PathType != nil { i -= len(*m.PathType) copy(dAtA[i:], *m.PathType) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PathType))) i-- dAtA[i] = 0x1a } { 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 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] = 0x1a } { 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 *IngressClass) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IngressClass) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IngressClass) 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 *IngressClassList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IngressClassList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IngressClassList) 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 *IngressClassParametersReference) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IngressClassParametersReference) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IngressClassParametersReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Namespace != nil { i -= len(*m.Namespace) copy(dAtA[i:], *m.Namespace) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Namespace))) i-- dAtA[i] = 0x2a } 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 } 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 *IngressClassSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IngressClassSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IngressClassSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Parameters != nil { { size, err := m.Parameters.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } i -= len(m.Controller) copy(dAtA[i:], m.Controller) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Controller))) 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 *IngressLoadBalancerIngress) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IngressLoadBalancerIngress) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IngressLoadBalancerIngress) 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] = 0x22 } } 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 *IngressLoadBalancerStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IngressLoadBalancerStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IngressLoadBalancerStatus) 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 *IngressPortStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IngressPortStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IngressPortStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Error != nil { i -= len(*m.Error) copy(dAtA[i:], *m.Error) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Error))) i-- dAtA[i] = 0x1a } i -= len(m.Protocol) copy(dAtA[i:], m.Protocol) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Protocol))) i-- dAtA[i] = 0x12 i = encodeVarintGenerated(dAtA, i, uint64(m.Port)) i-- dAtA[i] = 0x8 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 m.IngressClassName != nil { i -= len(*m.IngressClassName) copy(dAtA[i:], *m.IngressClassName) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.IngressClassName))) 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 } } 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)) if m.PathType != nil { l = len(*m.PathType) 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)) if m.Resource != nil { l = m.Resource.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *IngressClass) 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 *IngressClassList) 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 *IngressClassParametersReference) 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)) if m.Scope != nil { l = len(*m.Scope) n += 1 + l + sovGenerated(uint64(l)) } if m.Namespace != nil { l = len(*m.Namespace) n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *IngressClassSpec) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Controller) n += 1 + l + sovGenerated(uint64(l)) if m.Parameters != nil { l = m.Parameters.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 *IngressLoadBalancerIngress) 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)) if len(m.Ports) > 0 { for _, e := range m.Ports { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *IngressLoadBalancerStatus) 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 *IngressPortStatus) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 1 + sovGenerated(uint64(m.Port)) l = len(m.Protocol) n += 1 + l + sovGenerated(uint64(l)) if m.Error != nil { l = len(*m.Error) 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)) } } if m.IngressClassName != nil { l = len(*m.IngressClassName) 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) + `,`, `PathType:` + valueToStringGenerated(this.PathType) + `,`, `}`, }, "") 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) + `,`, `Resource:` + strings.Replace(fmt.Sprintf("%v", this.Resource), "TypedLocalObjectReference", "v11.TypedLocalObjectReference", 1) + `,`, `}`, }, "") return s } func (this *IngressClass) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&IngressClass{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "IngressClassSpec", "IngressClassSpec", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *IngressClassList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]IngressClass{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "IngressClass", "IngressClass", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&IngressClassList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *IngressClassParametersReference) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&IngressClassParametersReference{`, `APIGroup:` + valueToStringGenerated(this.APIGroup) + `,`, `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Scope:` + valueToStringGenerated(this.Scope) + `,`, `Namespace:` + valueToStringGenerated(this.Namespace) + `,`, `}`, }, "") return s } func (this *IngressClassSpec) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&IngressClassSpec{`, `Controller:` + fmt.Sprintf("%v", this.Controller) + `,`, `Parameters:` + strings.Replace(this.Parameters.String(), "IngressClassParametersReference", "IngressClassParametersReference", 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 *IngressLoadBalancerIngress) String() string { if this == nil { return "nil" } repeatedStringForPorts := "[]IngressPortStatus{" for _, f := range this.Ports { repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "IngressPortStatus", "IngressPortStatus", 1), `&`, ``, 1) + "," } repeatedStringForPorts += "}" s := strings.Join([]string{`&IngressLoadBalancerIngress{`, `IP:` + fmt.Sprintf("%v", this.IP) + `,`, `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, `Ports:` + repeatedStringForPorts + `,`, `}`, }, "") return s } func (this *IngressLoadBalancerStatus) String() string { if this == nil { return "nil" } repeatedStringForIngress := "[]IngressLoadBalancerIngress{" for _, f := range this.Ingress { repeatedStringForIngress += strings.Replace(strings.Replace(f.String(), "IngressLoadBalancerIngress", "IngressLoadBalancerIngress", 1), `&`, ``, 1) + "," } repeatedStringForIngress += "}" s := strings.Join([]string{`&IngressLoadBalancerStatus{`, `Ingress:` + repeatedStringForIngress + `,`, `}`, }, "") return s } func (this *IngressPortStatus) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&IngressPortStatus{`, `Port:` + fmt.Sprintf("%v", this.Port) + `,`, `Protocol:` + fmt.Sprintf("%v", this.Protocol) + `,`, `Error:` + valueToStringGenerated(this.Error) + `,`, `}`, }, "") 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 + `,`, `IngressClassName:` + valueToStringGenerated(this.IngressClassName) + `,`, `}`, }, "") return s } func (this *IngressStatus) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&IngressStatus{`, `LoadBalancer:` + strings.Replace(strings.Replace(this.LoadBalancer.String(), "IngressLoadBalancerStatus", "IngressLoadBalancerStatus", 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 case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PathType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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 := PathType(dAtA[iNdEx:postIndex]) m.PathType = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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 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 m.Resource == nil { m.Resource = &v11.TypedLocalObjectReference{} } if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IngressClass) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IngressClass: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IngressClass: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IngressClassList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IngressClassList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IngressClassList: 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, IngressClass{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IngressClassParametersReference) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IngressClassParametersReference: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IngressClassParametersReference: 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 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 := string(dAtA[iNdEx:postIndex]) m.Scope = &s iNdEx = postIndex case 5: 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 } s := string(dAtA[iNdEx:postIndex]) m.Namespace = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IngressClassSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IngressClassSpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IngressClassSpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Controller = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: 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 = &IngressClassParametersReference{} } if err := m.Parameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IngressLoadBalancerIngress) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IngressLoadBalancerIngress: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IngressLoadBalancerIngress: 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 case 4: 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, IngressPortStatus{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IngressLoadBalancerStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IngressLoadBalancerStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IngressLoadBalancerStatus: 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, IngressLoadBalancerIngress{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IngressPortStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IngressPortStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IngressPortStatus: 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 } } 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 = k8s_io_api_core_v1.Protocol(dAtA[iNdEx:postIndex]) 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 } s := string(dAtA[iNdEx:postIndex]) m.Error = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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 case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field IngressClassName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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.IngressClassName = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/networking/v1beta1/generated.proto000066400000000000000000000357031453636404600230230ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/networking/v1beta1"; // HTTPIngressPath associates a path with a backend. Incoming urls matching the // path are forwarded to the backend. message HTTPIngressPath { // path is 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 '/' and must be present // when using PathType with value "Exact" or "Prefix". // +optional optional string path = 1; // pathType determines the interpretation of the path matching. PathType can // be one of the following values: // * Exact: Matches the URL path exactly. // * Prefix: Matches based on a URL path prefix split by '/'. Matching is // done on a path element by element basis. A path element refers is the // list of labels in the path split by the '/' separator. A request is a // match for path p if every p is an element-wise prefix of p of the // request path. Note that if the last element of the path is a substring // of the last element in request path, it is not a match (e.g. /foo/bar // matches /foo/bar/baz, but does not match /foo/barbaz). // * ImplementationSpecific: Interpretation of the Path matching is up to // the IngressClass. Implementations can treat this as a separate PathType // or treat it identically to Prefix or Exact path types. // Implementations are required to support all path types. // Defaults to ImplementationSpecific. optional string pathType = 3; // 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 { // paths is 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 { // serviceName specifies the name of the referenced service. // +optional optional string serviceName = 1; // servicePort Specifies the port of the referenced service. // +optional optional k8s.io.apimachinery.pkg.util.intstr.IntOrString servicePort = 2; // resource is an ObjectRef to another Kubernetes resource in the namespace // of the Ingress object. If resource is specified, serviceName and servicePort // must not be specified. // +optional optional k8s.io.api.core.v1.TypedLocalObjectReference resource = 3; } // IngressClass represents the class of the Ingress, referenced by the Ingress // Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be // used to indicate that an IngressClass should be considered default. When a // single IngressClass resource has this annotation set to true, new Ingress // resources without a class specified will be assigned this default class. message IngressClass { // 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 IngressClass. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional optional IngressClassSpec spec = 2; } // IngressClassList is a collection of IngressClasses. message IngressClassList { // Standard list metadata. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; // items is the list of IngressClasses. repeated IngressClass items = 2; } // IngressClassParametersReference identifies an API object. This can be used // to specify a cluster or namespace-scoped resource. message IngressClassParametersReference { // 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; // scope represents if this refers to a cluster or namespace scoped resource. // This may be set to "Cluster" (default) or "Namespace". optional string scope = 4; // namespace is the namespace of the resource being referenced. This field is // required when scope is set to "Namespace" and must be unset when scope is set to // "Cluster". // +optional optional string namespace = 5; } // IngressClassSpec provides information about the class of an Ingress. message IngressClassSpec { // controller refers to the name of the controller that should handle this // class. This allows for different "flavors" that are controlled by the // same controller. For example, you may have different parameters for the // same implementing controller. This should be specified as a // domain-prefixed path no more than 250 characters in length, e.g. // "acme.io/ingress-controller". This field is immutable. optional string controller = 1; // parameters is a link to a custom resource containing additional // configuration for the controller. This is optional if the controller does // not require extra parameters. // +optional optional IngressClassParametersReference parameters = 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; } // IngressLoadBalancerIngress represents the status of a load-balancer ingress point. message IngressLoadBalancerIngress { // ip is set for load-balancer ingress points that are IP based. // +optional optional string ip = 1; // hostname is set for load-balancer ingress points that are DNS based. // +optional optional string hostname = 2; // ports provides information about the ports exposed by this LoadBalancer. // +listType=atomic // +optional repeated IngressPortStatus ports = 4; } // LoadBalancerStatus represents the status of a load-balancer. message IngressLoadBalancerStatus { // ingress is a list containing ingress points for the load-balancer. // +optional repeated IngressLoadBalancerIngress ingress = 1; } // IngressPortStatus represents the error condition of a service port message IngressPortStatus { // port is the port number of the ingress port. optional int32 port = 1; // protocol is the protocol of the ingress port. // The supported values are: "TCP", "UDP", "SCTP" optional string protocol = 2; // error is to record the problem with the service port // The format of the error shall comply with the following rules: // - built-in error values shall be specified in this file and those shall use // CamelCase names // - cloud provider specific error values must have names that comply with the // format foo.example.com/CamelCase. // --- // The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) // +optional // +kubebuilder:validation:Required // +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` // +kubebuilder:validation:MaxLength=316 optional string error = 3; } // 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 RFC 3986: // 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. // // host can be "precise" which is a domain name without the terminating dot of // a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name // prefixed with a single wildcard label (e.g. "*.foo.com"). // The wildcard character '*' must appear by itself as the first DNS label and // matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). // Requests will be matched against the Host field in the following way: // 1. If Host is precise, the request matches this rule if the http host header is equal to Host. // 2. If Host is a wildcard, then the request matches this rule if the http host header // is to equal to the suffix (removing the first label) of the wildcard rule. // +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 { // ingressClassName is the name of the IngressClass cluster resource. The // associated IngressClass defines which controller will implement the // resource. This replaces the deprecated `kubernetes.io/ingress.class` // annotation. For backwards compatibility, when that annotation is set, it // must be given precedence over this field. The controller may emit a // warning if the field and annotation have different values. // Implementations of this API should ignore Ingresses without a class // specified. An IngressClass resource may be marked as default, which can // be used to set a default value for this field. For more information, // refer to the IngressClass documentation. // +optional optional string ingressClassName = 4; // backend is the 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 represents the 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; // rules is 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 describes the current state of the Ingress. message IngressStatus { // loadBalancer contains the current status of the load-balancer. // +optional optional IngressLoadBalancerStatus loadBalancer = 1; } // IngressTLS describes the transport layer security associated with an Ingress. message IngressTLS { // hosts is 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 TLS traffic on // port 443. Field is left optional to allow TLS 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; } golang-k8s-api-0.29.0/networking/v1beta1/register.go000066400000000000000000000036211453636404600221450ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/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{}, &IngressClass{}, &IngressClassList{}, ) // Add the watch version that applies metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/networking/v1beta1/types.go000066400000000000000000000470701453636404600214730ustar00rootroot00000000000000/* 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 ( v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" ) // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.14 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:replacement=networking.k8s.io,v1,Ingress // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.14 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:replacement=networking.k8s.io,v1,IngressList // 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 { // ingressClassName is the name of the IngressClass cluster resource. The // associated IngressClass defines which controller will implement the // resource. This replaces the deprecated `kubernetes.io/ingress.class` // annotation. For backwards compatibility, when that annotation is set, it // must be given precedence over this field. The controller may emit a // warning if the field and annotation have different values. // Implementations of this API should ignore Ingresses without a class // specified. An IngressClass resource may be marked as default, which can // be used to set a default value for this field. For more information, // refer to the IngressClass documentation. // +optional IngressClassName *string `json:"ingressClassName,omitempty" protobuf:"bytes,4,opt,name=ingressClassName"` // backend is the 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 represents the 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"` // rules is 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 is 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 TLS traffic on // port 443. Field is left optional to allow TLS 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 describes the current state of the Ingress. type IngressStatus struct { // loadBalancer contains the current status of the load-balancer. // +optional LoadBalancer IngressLoadBalancerStatus `json:"loadBalancer,omitempty" protobuf:"bytes,1,opt,name=loadBalancer"` } // LoadBalancerStatus represents the status of a load-balancer. type IngressLoadBalancerStatus struct { // ingress is a list containing ingress points for the load-balancer. // +optional Ingress []IngressLoadBalancerIngress `json:"ingress,omitempty" protobuf:"bytes,1,rep,name=ingress"` } // IngressLoadBalancerIngress represents the status of a load-balancer ingress point. type IngressLoadBalancerIngress struct { // ip is set for load-balancer ingress points that are IP based. // +optional IP string `json:"ip,omitempty" protobuf:"bytes,1,opt,name=ip"` // hostname is set for load-balancer ingress points that are DNS based. // +optional Hostname string `json:"hostname,omitempty" protobuf:"bytes,2,opt,name=hostname"` // ports provides information about the ports exposed by this LoadBalancer. // +listType=atomic // +optional Ports []IngressPortStatus `json:"ports,omitempty" protobuf:"bytes,4,rep,name=ports"` } // IngressPortStatus represents the error condition of a service port type IngressPortStatus struct { // port is the port number of the ingress port. Port int32 `json:"port" protobuf:"varint,1,opt,name=port"` // protocol is the protocol of the ingress port. // The supported values are: "TCP", "UDP", "SCTP" Protocol v1.Protocol `json:"protocol" protobuf:"bytes,2,opt,name=protocol,casttype=Protocol"` // error is to record the problem with the service port // The format of the error shall comply with the following rules: // - built-in error values shall be specified in this file and those shall use // CamelCase names // - cloud provider specific error values must have names that comply with the // format foo.example.com/CamelCase. // --- // The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) // +optional // +kubebuilder:validation:Required // +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` // +kubebuilder:validation:MaxLength=316 Error *string `json:"error,omitempty" protobuf:"bytes,3,opt,name=error"` } // 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 RFC 3986: // 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. // // host can be "precise" which is a domain name without the terminating dot of // a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name // prefixed with a single wildcard label (e.g. "*.foo.com"). // The wildcard character '*' must appear by itself as the first DNS label and // matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). // Requests will be matched against the Host field in the following way: // 1. If Host is precise, the request matches this rule if the http host header is equal to Host. // 2. If Host is a wildcard, then the request matches this rule if the http host header // is to equal to the suffix (removing the first label) of the wildcard rule. // +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 { // paths is 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. } // PathType represents the type of path referred to by a HTTPIngressPath. type PathType string const ( // PathTypeExact matches the URL path exactly and with case sensitivity. PathTypeExact = PathType("Exact") // PathTypePrefix matches based on a URL path prefix split by '/'. Matching // is case sensitive and done on a path element by element basis. A path // element refers to the list of labels in the path split by the '/' // separator. A request is a match for path p if every p is an element-wise // prefix of p of the request path. Note that if the last element of the // path is a substring of the last element in request path, it is not a // match (e.g. /foo/bar matches /foo/bar/baz, but does not match // /foo/barbaz). If multiple matching paths exist in an Ingress spec, the // longest matching path is given priority. // Examples: // - /foo/bar does not match requests to /foo/barbaz // - /foo/bar matches request to /foo/bar and /foo/bar/baz // - /foo and /foo/ both match requests to /foo and /foo/. If both paths are // present in an Ingress spec, the longest matching path (/foo/) is given // priority. PathTypePrefix = PathType("Prefix") // PathTypeImplementationSpecific matching is up to the IngressClass. // Implementations can treat this as a separate PathType or treat it // identically to Prefix or Exact path types. PathTypeImplementationSpecific = PathType("ImplementationSpecific") ) // HTTPIngressPath associates a path with a backend. Incoming urls matching the // path are forwarded to the backend. type HTTPIngressPath struct { // path is 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 '/' and must be present // when using PathType with value "Exact" or "Prefix". // +optional Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` // pathType determines the interpretation of the path matching. PathType can // be one of the following values: // * Exact: Matches the URL path exactly. // * Prefix: Matches based on a URL path prefix split by '/'. Matching is // done on a path element by element basis. A path element refers is the // list of labels in the path split by the '/' separator. A request is a // match for path p if every p is an element-wise prefix of p of the // request path. Note that if the last element of the path is a substring // of the last element in request path, it is not a match (e.g. /foo/bar // matches /foo/bar/baz, but does not match /foo/barbaz). // * ImplementationSpecific: Interpretation of the Path matching is up to // the IngressClass. Implementations can treat this as a separate PathType // or treat it identically to Prefix or Exact path types. // Implementations are required to support all path types. // Defaults to ImplementationSpecific. PathType *PathType `json:"pathType,omitempty" protobuf:"bytes,3,opt,name=pathType"` // 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 { // serviceName specifies the name of the referenced service. // +optional ServiceName string `json:"serviceName,omitempty" protobuf:"bytes,1,opt,name=serviceName"` // servicePort Specifies the port of the referenced service. // +optional ServicePort intstr.IntOrString `json:"servicePort,omitempty" protobuf:"bytes,2,opt,name=servicePort"` // resource is an ObjectRef to another Kubernetes resource in the namespace // of the Ingress object. If resource is specified, serviceName and servicePort // must not be specified. // +optional Resource *v1.TypedLocalObjectReference `json:"resource,omitempty" protobuf:"bytes,3,opt,name=resource"` } // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.18 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:replacement=networking.k8s.io,v1,IngressClassList // IngressClass represents the class of the Ingress, referenced by the Ingress // Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be // used to indicate that an IngressClass should be considered default. When a // single IngressClass resource has this annotation set to true, new Ingress // resources without a class specified will be assigned this default class. type IngressClass 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 IngressClass. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec IngressClassSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } // IngressClassSpec provides information about the class of an Ingress. type IngressClassSpec struct { // controller refers to the name of the controller that should handle this // class. This allows for different "flavors" that are controlled by the // same controller. For example, you may have different parameters for the // same implementing controller. This should be specified as a // domain-prefixed path no more than 250 characters in length, e.g. // "acme.io/ingress-controller". This field is immutable. Controller string `json:"controller,omitempty" protobuf:"bytes,1,opt,name=controller"` // parameters is a link to a custom resource containing additional // configuration for the controller. This is optional if the controller does // not require extra parameters. // +optional Parameters *IngressClassParametersReference `json:"parameters,omitempty" protobuf:"bytes,2,opt,name=parameters"` } const ( // IngressClassParametersReferenceScopeNamespace indicates that the // referenced Parameters resource is namespace-scoped. IngressClassParametersReferenceScopeNamespace = "Namespace" // IngressClassParametersReferenceScopeCluster indicates that the // referenced Parameters resource is cluster-scoped. IngressClassParametersReferenceScopeCluster = "Cluster" ) // IngressClassParametersReference identifies an API object. This can be used // to specify a cluster or namespace-scoped resource. type IngressClassParametersReference 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,omitempty" 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"` // scope represents if this refers to a cluster or namespace scoped resource. // This may be set to "Cluster" (default) or "Namespace". Scope *string `json:"scope" protobuf:"bytes,4,opt,name=scope"` // namespace is the namespace of the resource being referenced. This field is // required when scope is set to "Namespace" and must be unset when scope is set to // "Cluster". // +optional Namespace *string `json:"namespace,omitempty" protobuf:"bytes,5,opt,name=namespace"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.18 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:replacement=networking.k8s.io,v1,IngressClassList // IngressClassList is a collection of IngressClasses. type IngressClassList 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 IngressClasses. Items []IngressClass `json:"items" protobuf:"bytes,2,rep,name=items"` } golang-k8s-api-0.29.0/networking/v1beta1/types_swagger_doc_generated.go000066400000000000000000000345421453636404600260550ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_HTTPIngressPath = map[string]string{ "": "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", "path": "path is 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 '/' and must be present when using PathType with value \"Exact\" or \"Prefix\".", "pathType": "pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types. Defaults to ImplementationSpecific.", "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": "paths is 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": "serviceName specifies the name of the referenced service.", "servicePort": "servicePort Specifies the port of the referenced service.", "resource": "resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified.", } func (IngressBackend) SwaggerDoc() map[string]string { return map_IngressBackend } var map_IngressClass = map[string]string{ "": "IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.", "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 IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", } func (IngressClass) SwaggerDoc() map[string]string { return map_IngressClass } var map_IngressClassList = map[string]string{ "": "IngressClassList is a collection of IngressClasses.", "metadata": "Standard list metadata.", "items": "items is the list of IngressClasses.", } func (IngressClassList) SwaggerDoc() map[string]string { return map_IngressClassList } var map_IngressClassParametersReference = map[string]string{ "": "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.", "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.", "scope": "scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\".", "namespace": "namespace is the namespace of the resource being referenced. This field is required when scope is set to \"Namespace\" and must be unset when scope is set to \"Cluster\".", } func (IngressClassParametersReference) SwaggerDoc() map[string]string { return map_IngressClassParametersReference } var map_IngressClassSpec = map[string]string{ "": "IngressClassSpec provides information about the class of an Ingress.", "controller": "controller refers to the name of the controller that should handle this class. This allows for different \"flavors\" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \"acme.io/ingress-controller\". This field is immutable.", "parameters": "parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters.", } func (IngressClassSpec) SwaggerDoc() map[string]string { return map_IngressClassSpec } 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_IngressLoadBalancerIngress = map[string]string{ "": "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", "ip": "ip is set for load-balancer ingress points that are IP based.", "hostname": "hostname is set for load-balancer ingress points that are DNS based.", "ports": "ports provides information about the ports exposed by this LoadBalancer.", } func (IngressLoadBalancerIngress) SwaggerDoc() map[string]string { return map_IngressLoadBalancerIngress } var map_IngressLoadBalancerStatus = map[string]string{ "": "LoadBalancerStatus represents the status of a load-balancer.", "ingress": "ingress is a list containing ingress points for the load-balancer.", } func (IngressLoadBalancerStatus) SwaggerDoc() map[string]string { return map_IngressLoadBalancerStatus } var map_IngressPortStatus = map[string]string{ "": "IngressPortStatus represents the error condition of a service port", "port": "port is the port number of the ingress port.", "protocol": "protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"", "error": "error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", } func (IngressPortStatus) SwaggerDoc() map[string]string { return map_IngressPortStatus } 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 RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to\n the 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.\n\nhost can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.", } 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.", "ingressClassName": "ingressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation.", "backend": "backend is the 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 represents the 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": "rules is 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 describes 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 is 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 TLS traffic on port 443. Field is left optional to allow TLS 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 golang-k8s-api-0.29.0/networking/v1beta1/well_known_annotations.go000066400000000000000000000024021453636404600251110ustar00rootroot00000000000000/* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 const ( // AnnotationIsDefaultIngressClass can be used to indicate that an // IngressClass should be considered default. When a single IngressClass // resource has this annotation set to true, new Ingress resources without a // class specified will be assigned this default class. AnnotationIsDefaultIngressClass = "ingressclass.kubernetes.io/is-default-class" // AnnotationIngressClass indicates the class of an Ingress to be used when // determining which controller should implement the Ingress. Use of this // annotation is deprecated. The Ingress class field should be used instead // of this annotation. // +deprecated AnnotationIngressClass = "kubernetes.io/ingress.class" ) golang-k8s-api-0.29.0/networking/v1beta1/zz_generated.deepcopy.go000066400000000000000000000305661453636404600246210ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *HTTPIngressPath) DeepCopyInto(out *HTTPIngressPath) { *out = *in if in.PathType != nil { in, out := &in.PathType, &out.PathType *out = new(PathType) **out = **in } in.Backend.DeepCopyInto(&out.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)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } 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 if in.Resource != nil { in, out := &in.Resource, &out.Resource *out = new(v1.TypedLocalObjectReference) (*in).DeepCopyInto(*out) } 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 *IngressClass) DeepCopyInto(out *IngressClass) { *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 IngressClass. func (in *IngressClass) DeepCopy() *IngressClass { if in == nil { return nil } out := new(IngressClass) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *IngressClass) 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 *IngressClassList) DeepCopyInto(out *IngressClassList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]IngressClass, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassList. func (in *IngressClassList) DeepCopy() *IngressClassList { if in == nil { return nil } out := new(IngressClassList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *IngressClassList) 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 *IngressClassParametersReference) DeepCopyInto(out *IngressClassParametersReference) { *out = *in if in.APIGroup != nil { in, out := &in.APIGroup, &out.APIGroup *out = new(string) **out = **in } if in.Scope != nil { in, out := &in.Scope, &out.Scope *out = new(string) **out = **in } if in.Namespace != nil { in, out := &in.Namespace, &out.Namespace *out = new(string) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassParametersReference. func (in *IngressClassParametersReference) DeepCopy() *IngressClassParametersReference { if in == nil { return nil } out := new(IngressClassParametersReference) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *IngressClassSpec) DeepCopyInto(out *IngressClassSpec) { *out = *in if in.Parameters != nil { in, out := &in.Parameters, &out.Parameters *out = new(IngressClassParametersReference) (*in).DeepCopyInto(*out) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassSpec. func (in *IngressClassSpec) DeepCopy() *IngressClassSpec { if in == nil { return nil } out := new(IngressClassSpec) 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 *IngressLoadBalancerIngress) DeepCopyInto(out *IngressLoadBalancerIngress) { *out = *in if in.Ports != nil { in, out := &in.Ports, &out.Ports *out = make([]IngressPortStatus, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressLoadBalancerIngress. func (in *IngressLoadBalancerIngress) DeepCopy() *IngressLoadBalancerIngress { if in == nil { return nil } out := new(IngressLoadBalancerIngress) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *IngressLoadBalancerStatus) DeepCopyInto(out *IngressLoadBalancerStatus) { *out = *in if in.Ingress != nil { in, out := &in.Ingress, &out.Ingress *out = make([]IngressLoadBalancerIngress, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressLoadBalancerStatus. func (in *IngressLoadBalancerStatus) DeepCopy() *IngressLoadBalancerStatus { if in == nil { return nil } out := new(IngressLoadBalancerStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *IngressPortStatus) DeepCopyInto(out *IngressPortStatus) { *out = *in if in.Error != nil { in, out := &in.Error, &out.Error *out = new(string) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressPortStatus. func (in *IngressPortStatus) DeepCopy() *IngressPortStatus { if in == nil { return nil } out := new(IngressPortStatus) in.DeepCopyInto(out) return out } // 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.IngressClassName != nil { in, out := &in.IngressClassName, &out.IngressClassName *out = new(string) **out = **in } if in.Backend != nil { in, out := &in.Backend, &out.Backend *out = new(IngressBackend) (*in).DeepCopyInto(*out) } 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 } golang-k8s-api-0.29.0/networking/v1beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000156241453636404600270730ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta1 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *Ingress) APILifecycleIntroduced() (major, minor int) { return 1, 14 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *Ingress) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *Ingress) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "networking.k8s.io", Version: "v1", Kind: "Ingress"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *Ingress) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *IngressClass) APILifecycleIntroduced() (major, minor int) { return 1, 18 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *IngressClass) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *IngressClass) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "networking.k8s.io", Version: "v1", Kind: "IngressClassList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *IngressClass) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *IngressClassList) APILifecycleIntroduced() (major, minor int) { return 1, 18 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *IngressClassList) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *IngressClassList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "networking.k8s.io", Version: "v1", Kind: "IngressClassList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *IngressClassList) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *IngressList) APILifecycleIntroduced() (major, minor int) { return 1, 14 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *IngressList) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *IngressList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "networking.k8s.io", Version: "v1", Kind: "IngressList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *IngressList) APILifecycleRemoved() (major, minor int) { return 1, 22 } golang-k8s-api-0.29.0/node/000077500000000000000000000000001453636404600152635ustar00rootroot00000000000000golang-k8s-api-0.29.0/node/OWNERS000066400000000000000000000002661453636404600162270ustar00rootroot00000000000000# See the OWNERS docs at https://go.k8s.io/owners # approval on api packages bubbles to api-approvers reviewers: - tallclair - dchen1107 - derekwaynecarr labels: - sig/node golang-k8s-api-0.29.0/node/v1/000077500000000000000000000000001453636404600156115ustar00rootroot00000000000000golang-k8s-api-0.29.0/node/v1/doc.go000066400000000000000000000013241453636404600167050ustar00rootroot00000000000000/* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 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 v1 // import "k8s.io/api/node/v1" golang-k8s-api-0.29.0/node/v1/generated.pb.go000066400000000000000000001103451453636404600205020ustar00rootroot00000000000000/* 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/k8s.io/api/node/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 "k8s.io/api/core/v1" v11 "k8s.io/api/core/v1" k8s_io_apimachinery_pkg_api_resource "k8s.io/apimachinery/pkg/api/resource" resource "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *Overhead) Reset() { *m = Overhead{} } func (*Overhead) ProtoMessage() {} func (*Overhead) Descriptor() ([]byte, []int) { return fileDescriptor_6ac9be560e26ae98, []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_6ac9be560e26ae98, []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_6ac9be560e26ae98, []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_6ac9be560e26ae98, []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.v1.Overhead") proto.RegisterMapType((k8s_io_api_core_v1.ResourceList)(nil), "k8s.io.api.node.v1.Overhead.PodFixedEntry") proto.RegisterType((*RuntimeClass)(nil), "k8s.io.api.node.v1.RuntimeClass") proto.RegisterType((*RuntimeClassList)(nil), "k8s.io.api.node.v1.RuntimeClassList") proto.RegisterType((*Scheduling)(nil), "k8s.io.api.node.v1.Scheduling") proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.node.v1.Scheduling.NodeSelectorEntry") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/node/v1/generated.proto", fileDescriptor_6ac9be560e26ae98) } var fileDescriptor_6ac9be560e26ae98 = []byte{ // 660 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x41, 0x6f, 0xd3, 0x4a, 0x10, 0xce, 0xa6, 0xaf, 0x6a, 0xba, 0x49, 0xdf, 0xeb, 0x5b, 0x7a, 0x88, 0x22, 0xe4, 0x44, 0x39, 0x15, 0xa4, 0xae, 0xdb, 0x0a, 0xa1, 0x0a, 0x0e, 0x48, 0x86, 0x56, 0x20, 0x41, 0x01, 0x17, 0x2e, 0x88, 0x03, 0x1b, 0x7b, 0x70, 0xdc, 0xc4, 0xde, 0x68, 0xbd, 0x8e, 0xc8, 0x0d, 0x71, 0x41, 0xe2, 0xd4, 0xff, 0xc2, 0x81, 0xbf, 0x50, 0x71, 0xea, 0xb1, 0xa7, 0x96, 0x86, 0x7f, 0xc1, 0x09, 0xed, 0xda, 0x4e, 0x5c, 0x1c, 0x42, 0xb9, 0x79, 0x67, 0xbf, 0xef, 0x9b, 0x99, 0x6f, 0x76, 0x8c, 0xef, 0xf6, 0x76, 0x22, 0xea, 0x73, 0xb3, 0x17, 0x77, 0x40, 0x84, 0x20, 0x21, 0x32, 0x87, 0x10, 0xba, 0x5c, 0x98, 0xe9, 0x05, 0x1b, 0xf8, 0x66, 0xc8, 0x5d, 0x30, 0x87, 0x5b, 0xa6, 0x07, 0x21, 0x08, 0x26, 0xc1, 0xa5, 0x03, 0xc1, 0x25, 0x27, 0x24, 0xc1, 0x50, 0x36, 0xf0, 0xa9, 0xc2, 0xd0, 0xe1, 0x56, 0x63, 0xc3, 0xf3, 0x65, 0x37, 0xee, 0x50, 0x87, 0x07, 0xa6, 0xc7, 0x3d, 0x6e, 0x6a, 0x68, 0x27, 0x7e, 0xab, 0x4f, 0xfa, 0xa0, 0xbf, 0x12, 0x89, 0x46, 0x3b, 0x97, 0xc6, 0xe1, 0x62, 0x56, 0x9a, 0xc6, 0xad, 0x29, 0x26, 0x60, 0x4e, 0xd7, 0x0f, 0x41, 0x8c, 0xcc, 0x41, 0xcf, 0xd3, 0x24, 0x01, 0x11, 0x8f, 0x85, 0x03, 0x7f, 0xc5, 0x8a, 0xcc, 0x00, 0x24, 0x9b, 0x95, 0xcb, 0xfc, 0x1d, 0x4b, 0xc4, 0xa1, 0xf4, 0x83, 0x62, 0x9a, 0xdb, 0x7f, 0x22, 0x44, 0x4e, 0x17, 0x02, 0xf6, 0x2b, 0xaf, 0xfd, 0xb5, 0x8c, 0x2b, 0x4f, 0x87, 0x20, 0xba, 0xc0, 0x5c, 0x72, 0x82, 0x70, 0x65, 0xc0, 0xdd, 0x3d, 0xff, 0x1d, 0xb8, 0x75, 0xd4, 0x5a, 0x58, 0xaf, 0x6e, 0xdf, 0xa4, 0x45, 0x73, 0x69, 0x46, 0xa0, 0xcf, 0x52, 0xf0, 0x6e, 0x28, 0xc5, 0xc8, 0xfa, 0x88, 0x8e, 0xcf, 0x9a, 0xa5, 0xf1, 0x59, 0xb3, 0x92, 0xc5, 0x7f, 0x9c, 0x35, 0x9b, 0x45, 0x67, 0xa9, 0x9d, 0x9a, 0xf5, 0xd8, 0x8f, 0xe4, 0x87, 0xf3, 0xb9, 0x90, 0x7d, 0x16, 0xc0, 0xa7, 0xf3, 0xe6, 0xc6, 0x55, 0xbc, 0xa7, 0xcf, 0x63, 0x16, 0x4a, 0x5f, 0x8e, 0xec, 0x49, 0x17, 0x8d, 0x1e, 0x5e, 0xb9, 0x54, 0x24, 0x59, 0xc5, 0x0b, 0x3d, 0x18, 0xd5, 0x51, 0x0b, 0xad, 0x2f, 0xdb, 0xea, 0x93, 0x3c, 0xc0, 0x8b, 0x43, 0xd6, 0x8f, 0xa1, 0x5e, 0x6e, 0xa1, 0xf5, 0xea, 0x36, 0xcd, 0x75, 0x3c, 0xc9, 0x45, 0x07, 0x3d, 0x4f, 0x5b, 0x50, 0xcc, 0x95, 0x90, 0xef, 0x94, 0x77, 0x50, 0xfb, 0x73, 0x19, 0xd7, 0xec, 0xc4, 0xef, 0xfb, 0x7d, 0x16, 0x45, 0xe4, 0x0d, 0xae, 0xa8, 0x09, 0xbb, 0x4c, 0x32, 0x9d, 0xb1, 0xba, 0xbd, 0x39, 0x4f, 0x3d, 0xa2, 0x0a, 0xad, 0x1d, 0xee, 0x1c, 0x82, 0x23, 0x9f, 0x80, 0x64, 0x16, 0x49, 0x4d, 0xc5, 0xd3, 0x98, 0x3d, 0x51, 0x25, 0x37, 0xf0, 0x52, 0x97, 0x85, 0x6e, 0x1f, 0x84, 0x2e, 0x7f, 0xd9, 0xfa, 0x2f, 0x85, 0x2f, 0x3d, 0x4c, 0xc2, 0x76, 0x76, 0x4f, 0xf6, 0x70, 0x85, 0xa7, 0x83, 0xab, 0x2f, 0xe8, 0x62, 0xae, 0xcf, 0x1b, 0xae, 0x55, 0x53, 0x93, 0xcc, 0x4e, 0xf6, 0x84, 0x4b, 0xf6, 0x31, 0x56, 0x8f, 0xc9, 0x8d, 0xfb, 0x7e, 0xe8, 0xd5, 0xff, 0xd1, 0x4a, 0xc6, 0x2c, 0xa5, 0x83, 0x09, 0xca, 0xfa, 0x57, 0x35, 0x30, 0x3d, 0xdb, 0x39, 0x85, 0xf6, 0x17, 0x84, 0x57, 0xf3, 0xae, 0xa9, 0x57, 0x41, 0x5e, 0x17, 0x9c, 0xa3, 0x57, 0x73, 0x4e, 0xb1, 0xb5, 0x6f, 0xab, 0xd9, 0x63, 0xcc, 0x22, 0x39, 0xd7, 0x76, 0xf1, 0xa2, 0x2f, 0x21, 0x88, 0xea, 0x65, 0xfd, 0xc8, 0x5b, 0xb3, 0xaa, 0xcf, 0x97, 0x64, 0xad, 0xa4, 0x62, 0x8b, 0x8f, 0x14, 0xcd, 0x4e, 0xd8, 0xed, 0xa3, 0x32, 0xce, 0x35, 0x45, 0x0e, 0x71, 0x4d, 0x91, 0x0f, 0xa0, 0x0f, 0x8e, 0xe4, 0x22, 0xdd, 0xa0, 0xcd, 0xf9, 0xd6, 0xd0, 0xfd, 0x1c, 0x25, 0xd9, 0xa3, 0xb5, 0x34, 0x59, 0x2d, 0x7f, 0x65, 0x5f, 0xd2, 0x26, 0x2f, 0x71, 0x55, 0xf2, 0xbe, 0x5a, 0x65, 0x9f, 0x87, 0x59, 0x1f, 0x97, 0xa6, 0xa0, 0x36, 0x49, 0xa5, 0x7a, 0x31, 0x81, 0x59, 0xd7, 0x52, 0xe1, 0xea, 0x34, 0x16, 0xd9, 0x79, 0x9d, 0xc6, 0x3d, 0xfc, 0x7f, 0xa1, 0x9e, 0x19, 0x2b, 0xb3, 0x96, 0x5f, 0x99, 0xe5, 0xdc, 0x0a, 0x58, 0x3b, 0xc7, 0x17, 0x46, 0xe9, 0xe4, 0xc2, 0x28, 0x9d, 0x5e, 0x18, 0xa5, 0xf7, 0x63, 0x03, 0x1d, 0x8f, 0x0d, 0x74, 0x32, 0x36, 0xd0, 0xe9, 0xd8, 0x40, 0xdf, 0xc6, 0x06, 0x3a, 0xfa, 0x6e, 0x94, 0x5e, 0x91, 0xe2, 0x5f, 0xfd, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0x46, 0x77, 0x65, 0x3b, 0x03, 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) || (iNdEx+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) || (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) || (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) || (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) || (iNdEx+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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/node/v1/generated.proto000066400000000000000000000105741453636404600206430ustar00rootroot00000000000000/* 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.v1; import "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/api/resource/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/node/v1"; // 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 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://kubernetes.io/docs/concepts/containers/runtime-class/ 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 be lowercase, 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://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/ // +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 // +mapType=atomic 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; } golang-k8s-api-0.29.0/node/v1/register.go000066400000000000000000000033161453636404600177670ustar00rootroot00000000000000/* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "node.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 ( // 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 } golang-k8s-api-0.29.0/node/v1/types.go000066400000000000000000000112351453636404600173060ustar00rootroot00000000000000/* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/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 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://kubernetes.io/docs/concepts/containers/runtime-class/ 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 be lowercase, 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://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/ // +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=k8s.io/api/core/v1.ResourceList,castkey=k8s.io/api/core/v1.ResourceName,castvalue=k8s.io/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 // +mapType=atomic 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=k8s.io/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"` } golang-k8s-api-0.29.0/node/v1/types_swagger_doc_generated.go000066400000000000000000000105251453636404600236710ustar00rootroot00000000000000/* 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-codegen.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 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://kubernetes.io/docs/concepts/containers/runtime-class/", "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 be lowercase, 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\n https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/", "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 golang-k8s-api-0.29.0/node/v1/zz_generated.deepcopy.go000066400000000000000000000100121453636404600224220ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Overhead) DeepCopyInto(out *Overhead) { *out = *in if in.PodFixed != nil { in, out := &in.PodFixed, &out.PodFixed *out = make(corev1.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([]corev1.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 } golang-k8s-api-0.29.0/node/v1alpha1/000077500000000000000000000000001453636404600167005ustar00rootroot00000000000000golang-k8s-api-0.29.0/node/v1alpha1/doc.go000066400000000000000000000013401453636404600177720ustar00rootroot00000000000000/* 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 "k8s.io/api/node/v1alpha1" golang-k8s-api-0.29.0/node/v1alpha1/generated.pb.go000066400000000000000000001205011453636404600215640ustar00rootroot00000000000000/* 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/k8s.io/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 "k8s.io/api/core/v1" v11 "k8s.io/api/core/v1" k8s_io_apimachinery_pkg_api_resource "k8s.io/apimachinery/pkg/api/resource" resource "k8s.io/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.GoGoProtoPackageIsVersion3 // 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/k8s.io/api/node/v1alpha1/generated.proto", fileDescriptor_82a78945ab308218) } var fileDescriptor_82a78945ab308218 = []byte{ // 699 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x3d, 0x6f, 0xd3, 0x4c, 0x1c, 0xcf, 0xa5, 0xad, 0x94, 0x5e, 0xd2, 0xaa, 0x8f, 0x9f, 0xea, 0x51, 0x94, 0xc1, 0xa9, 0xac, 0x47, 0xa8, 0x42, 0xea, 0x99, 0x56, 0xa8, 0xaa, 0x18, 0x8a, 0x30, 0x2f, 0x02, 0x51, 0x5a, 0x70, 0xcb, 0x82, 0x18, 0xb8, 0xd8, 0x7f, 0x1c, 0x13, 0xdb, 0x67, 0xd9, 0xe7, 0x88, 0x6c, 0x88, 0x05, 0x89, 0x89, 0x89, 0x6f, 0x03, 0x73, 0xc7, 0x4e, 0xa8, 0x53, 0x4b, 0xc3, 0x77, 0x60, 0x60, 0x42, 0x67, 0x9f, 0x13, 0x27, 0x69, 0x68, 0xd8, 0x7c, 0x77, 0xbf, 0x97, 0xff, 0x6b, 0x82, 0xef, 0x74, 0x76, 0x62, 0xe2, 0x32, 0xbd, 0x93, 0xb4, 0x20, 0x0a, 0x80, 0x43, 0xac, 0x77, 0x21, 0xb0, 0x59, 0xa4, 0xcb, 0x07, 0x1a, 0xba, 0x7a, 0xc0, 0x6c, 0xd0, 0xbb, 0x9b, 0xd4, 0x0b, 0xdb, 0x74, 0x53, 0x77, 0x20, 0x80, 0x88, 0x72, 0xb0, 0x49, 0x18, 0x31, 0xce, 0x94, 0x7a, 0x86, 0x24, 0x34, 0x74, 0x89, 0x40, 0x92, 0x1c, 0xd9, 0xd8, 0x70, 0x5c, 0xde, 0x4e, 0x5a, 0xc4, 0x62, 0xbe, 0xee, 0x30, 0x87, 0xe9, 0x29, 0xa1, 0x95, 0xbc, 0x4e, 0x4f, 0xe9, 0x21, 0xfd, 0xca, 0x84, 0x1a, 0x5a, 0xc1, 0xd2, 0x62, 0x91, 0xb0, 0x1c, 0x37, 0x6b, 0xdc, 0x1c, 0x62, 0x7c, 0x6a, 0xb5, 0xdd, 0x00, 0xa2, 0x9e, 0x1e, 0x76, 0x9c, 0x94, 0x14, 0x41, 0xcc, 0x92, 0xc8, 0x82, 0xbf, 0x62, 0xc5, 0xba, 0x0f, 0x9c, 0x5e, 0xe6, 0xa5, 0x4f, 0x63, 0x45, 0x49, 0xc0, 0x5d, 0x7f, 0xd2, 0x66, 0xfb, 0x2a, 0x42, 0x6c, 0xb5, 0xc1, 0xa7, 0xe3, 0x3c, 0xed, 0xa4, 0x8c, 0x2b, 0x07, 0x5d, 0x88, 0xda, 0x40, 0x6d, 0xe5, 0x1b, 0xc2, 0x95, 0x90, 0xd9, 0x0f, 0xdc, 0xb7, 0x60, 0xd7, 0xd1, 0xda, 0xdc, 0x7a, 0x75, 0xeb, 0x06, 0x99, 0x56, 0x62, 0x92, 0xd3, 0xc8, 0x53, 0x49, 0xb9, 0x1f, 0xf0, 0xa8, 0x67, 0x7c, 0x40, 0xc7, 0x67, 0xcd, 0x52, 0xff, 0xac, 0x59, 0xc9, 0xef, 0x7f, 0x9d, 0x35, 0x9b, 0x93, 0xf5, 0x25, 0xa6, 0x2c, 0xd9, 0x9e, 0x1b, 0xf3, 0xf7, 0xe7, 0x7f, 0x84, 0xec, 0x53, 0x1f, 0x3e, 0x9e, 0x37, 0x37, 0x66, 0xe9, 0x00, 0x79, 0x96, 0xd0, 0x80, 0xbb, 0xbc, 0x67, 0x0e, 0x72, 0x69, 0x74, 0xf0, 0xd2, 0x48, 0x90, 0xca, 0x0a, 0x9e, 0xeb, 0x40, 0xaf, 0x8e, 0xd6, 0xd0, 0xfa, 0xa2, 0x29, 0x3e, 0x95, 0x7b, 0x78, 0xa1, 0x4b, 0xbd, 0x04, 0xea, 0xe5, 0x35, 0xb4, 0x5e, 0xdd, 0x22, 0x85, 0xbc, 0x07, 0x5e, 0x24, 0xec, 0x38, 0x69, 0x21, 0x26, 0xbd, 0x32, 0xf2, 0xad, 0xf2, 0x0e, 0xd2, 0xbe, 0x22, 0x5c, 0x33, 0xb3, 0xaa, 0xdf, 0xf5, 0x68, 0x1c, 0x2b, 0xaf, 0x70, 0x45, 0xf4, 0xd9, 0xa6, 0x9c, 0xa6, 0x8e, 0xa3, 0x55, 0x9d, 0x50, 0x8f, 0x89, 0x40, 0x93, 0xee, 0x26, 0x39, 0x68, 0xbd, 0x01, 0x8b, 0x3f, 0x01, 0x4e, 0x0d, 0x45, 0x16, 0x15, 0x0f, 0xef, 0xcc, 0x81, 0xaa, 0xb2, 0x87, 0xe7, 0xe3, 0x10, 0x2c, 0x19, 0xfb, 0xf5, 0xe9, 0x3d, 0x2b, 0xc6, 0x75, 0x18, 0x82, 0x65, 0xd4, 0xa4, 0xee, 0xbc, 0x38, 0x99, 0xa9, 0x8a, 0xf6, 0x05, 0xe1, 0x95, 0x22, 0x50, 0x34, 0x48, 0x79, 0x39, 0x91, 0x04, 0x99, 0x2d, 0x09, 0xc1, 0x4e, 0x53, 0x58, 0xc9, 0xe7, 0x22, 0xbf, 0x29, 0x24, 0xf0, 0x18, 0x2f, 0xb8, 0x1c, 0xfc, 0xb8, 0x5e, 0x4e, 0xa7, 0xee, 0xda, 0x6c, 0x19, 0x18, 0x4b, 0x52, 0x72, 0xe1, 0x91, 0x20, 0x9b, 0x99, 0x86, 0xf6, 0x73, 0x2c, 0x7e, 0x91, 0x9a, 0xb2, 0x8b, 0x97, 0xe5, 0x2a, 0x3c, 0xa4, 0x81, 0xed, 0x41, 0x94, 0x35, 0xdf, 0xf8, 0x4f, 0x4a, 0x2c, 0x9b, 0x23, 0xaf, 0xe6, 0x18, 0x5a, 0xd9, 0xc3, 0x15, 0x26, 0x07, 0x5e, 0x96, 0x59, 0xbb, 0x7a, 0x35, 0x8c, 0x9a, 0xc8, 0x37, 0x3f, 0x99, 0x03, 0x05, 0xe5, 0x08, 0x63, 0xb1, 0x90, 0x76, 0xe2, 0xb9, 0x81, 0x53, 0x9f, 0x4b, 0xf5, 0xfe, 0x9f, 0xae, 0x77, 0x38, 0xc0, 0x1a, 0xcb, 0x62, 0x08, 0x86, 0x67, 0xb3, 0xa0, 0xa3, 0x7d, 0x2e, 0xe3, 0xc2, 0x93, 0x12, 0xe2, 0x9a, 0x90, 0x39, 0x04, 0x0f, 0x2c, 0xce, 0x22, 0xb9, 0xd1, 0xdb, 0xb3, 0xd8, 0x90, 0xfd, 0x02, 0x31, 0xdb, 0xeb, 0x55, 0x59, 0xa8, 0x5a, 0xf1, 0xc9, 0x1c, 0x71, 0x50, 0x9e, 0xe3, 0x2a, 0x67, 0x9e, 0xf8, 0x81, 0x71, 0x59, 0x90, 0x37, 0x53, 0x2d, 0x1a, 0x8a, 0xcd, 0x16, 0x53, 0x71, 0x34, 0x80, 0x19, 0xff, 0x4a, 0xe1, 0xea, 0xf0, 0x2e, 0x36, 0x8b, 0x3a, 0x8d, 0xdb, 0xf8, 0x9f, 0x89, 0x78, 0x2e, 0x59, 0xe1, 0xd5, 0xe2, 0x0a, 0x2f, 0x16, 0x56, 0xd2, 0xd8, 0x3d, 0xbe, 0x50, 0x4b, 0x27, 0x17, 0x6a, 0xe9, 0xf4, 0x42, 0x2d, 0xbd, 0xeb, 0xab, 0xe8, 0xb8, 0xaf, 0xa2, 0x93, 0xbe, 0x8a, 0x4e, 0xfb, 0x2a, 0xfa, 0xde, 0x57, 0xd1, 0xa7, 0x1f, 0x6a, 0xe9, 0x45, 0x7d, 0xda, 0xff, 0xce, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x92, 0x0d, 0xef, 0xbe, 0xab, 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) || (iNdEx+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) || (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) || (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) || (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) || (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) || (iNdEx+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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/node/v1alpha1/generated.proto000066400000000000000000000117221453636404600217260ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/api/resource/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/node/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/585-runtime-class 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; // spec represents 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 be lowercase, 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/688-pod-overhead/README.md // +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 // +mapType=atomic 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; } golang-k8s-api-0.29.0/node/v1alpha1/register.go000066400000000000000000000033321453636404600210540ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 } golang-k8s-api-0.29.0/node/v1alpha1/types.go000066400000000000000000000124311453636404600203740ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/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/585-runtime-class 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"` // spec represents 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 be lowercase, 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/688-pod-overhead/README.md // +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=k8s.io/api/core/v1.ResourceList,castkey=k8s.io/api/core/v1.ResourceName,castvalue=k8s.io/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 // +mapType=atomic 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=k8s.io/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"` } golang-k8s-api-0.29.0/node/v1alpha1/types_swagger_doc_generated.go000066400000000000000000000117731453636404600247660ustar00rootroot00000000000000/* 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-codegen.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/585-runtime-class", "metadata": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "spec": "spec represents 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 be lowercase, 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/688-pod-overhead/README.md", "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 golang-k8s-api-0.29.0/node/v1alpha1/zz_generated.deepcopy.go000066400000000000000000000107711453636404600235250ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *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 } golang-k8s-api-0.29.0/node/v1beta1/000077500000000000000000000000001453636404600165265ustar00rootroot00000000000000golang-k8s-api-0.29.0/node/v1beta1/doc.go000066400000000000000000000014041453636404600176210ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true // +groupName=node.k8s.io package v1beta1 // import "k8s.io/api/node/v1beta1" golang-k8s-api-0.29.0/node/v1beta1/generated.pb.go000066400000000000000000001105021453636404600214120ustar00rootroot00000000000000/* 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/k8s.io/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 "k8s.io/api/core/v1" v11 "k8s.io/api/core/v1" k8s_io_apimachinery_pkg_api_resource "k8s.io/apimachinery/pkg/api/resource" resource "k8s.io/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.GoGoProtoPackageIsVersion3 // 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/k8s.io/api/node/v1beta1/generated.proto", fileDescriptor_f977b0dddc93b4ec) } var fileDescriptor_f977b0dddc93b4ec = []byte{ // 668 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xbb, 0x6f, 0xd3, 0x40, 0x18, 0xcf, 0xa5, 0x54, 0x4d, 0x2f, 0x29, 0x14, 0x53, 0xa9, 0x51, 0x06, 0xa7, 0x04, 0x21, 0x95, 0xa1, 0x67, 0x5a, 0x01, 0xaa, 0x90, 0x10, 0xc8, 0x3c, 0xc4, 0xb3, 0x05, 0x17, 0x16, 0xc4, 0xc0, 0xc5, 0xfe, 0x70, 0x4c, 0x62, 0x5f, 0x74, 0x3e, 0x47, 0x64, 0x43, 0x2c, 0x48, 0x4c, 0x2c, 0xfc, 0x37, 0xb0, 0x77, 0xa3, 0x0b, 0x52, 0xa7, 0x96, 0x86, 0xff, 0x82, 0x09, 0x9d, 0x5f, 0xb9, 0x36, 0x4d, 0x1b, 0x36, 0xdf, 0xdd, 0xef, 0x71, 0xdf, 0xef, 0xbb, 0xcf, 0xf8, 0x4e, 0x7b, 0x3d, 0x24, 0x1e, 0x33, 0xda, 0x51, 0x13, 0x78, 0x00, 0x02, 0x42, 0xa3, 0x07, 0x81, 0xc3, 0xb8, 0x91, 0x1e, 0xd0, 0xae, 0x67, 0x04, 0xcc, 0x01, 0xa3, 0xb7, 0xda, 0x04, 0x41, 0x57, 0x0d, 0x17, 0x02, 0xe0, 0x54, 0x80, 0x43, 0xba, 0x9c, 0x09, 0xa6, 0x2d, 0x26, 0x40, 0x42, 0xbb, 0x1e, 0x91, 0x40, 0x92, 0x02, 0x6b, 0x2b, 0xae, 0x27, 0x5a, 0x51, 0x93, 0xd8, 0xcc, 0x37, 0x5c, 0xe6, 0x32, 0x23, 0xc6, 0x37, 0xa3, 0x77, 0xf1, 0x2a, 0x5e, 0xc4, 0x5f, 0x89, 0x4e, 0xad, 0xa1, 0x18, 0xda, 0x8c, 0x4b, 0xc3, 0xa3, 0x5e, 0xb5, 0x6b, 0x43, 0x8c, 0x4f, 0xed, 0x96, 0x17, 0x00, 0xef, 0x1b, 0xdd, 0xb6, 0x1b, 0x93, 0x38, 0x84, 0x2c, 0xe2, 0x36, 0xfc, 0x17, 0x2b, 0x34, 0x7c, 0x10, 0xf4, 0x38, 0x2f, 0x63, 0x1c, 0x8b, 0x47, 0x81, 0xf0, 0xfc, 0x51, 0x9b, 0x1b, 0xa7, 0x11, 0x42, 0xbb, 0x05, 0x3e, 0x3d, 0xca, 0x6b, 0xfc, 0x2c, 0xe2, 0xd2, 0x66, 0x0f, 0x78, 0x0b, 0xa8, 0xa3, 0xfd, 0x42, 0xb8, 0xd4, 0x65, 0xce, 0x03, 0xef, 0x03, 0x38, 0x55, 0xb4, 0x34, 0xb5, 0x5c, 0x5e, 0x33, 0xc8, 0x98, 0x84, 0x49, 0xc6, 0x22, 0xcf, 0x53, 0xc6, 0xfd, 0x40, 0xf0, 0xbe, 0xf9, 0x19, 0x6d, 0xef, 0xd5, 0x0b, 0x83, 0xbd, 0x7a, 0x29, 0xdb, 0xff, 0xbb, 0x57, 0xaf, 0x8f, 0xc6, 0x4b, 0xac, 0x34, 0xb1, 0xa7, 0x5e, 0x28, 0x3e, 0xed, 0x9f, 0x08, 0xd9, 0xa0, 0x3e, 0x7c, 0xd9, 0xaf, 0xaf, 0x4c, 0xd2, 0x00, 0xf2, 0x22, 0xa2, 0x81, 0xf0, 0x44, 0xdf, 0xca, 0x4b, 0xa9, 0xb5, 0xf1, 0xdc, 0xa1, 0x4b, 0x6a, 0xf3, 0x78, 0xaa, 0x0d, 0xfd, 0x2a, 0x5a, 0x42, 0xcb, 0xb3, 0x96, 0xfc, 0xd4, 0xee, 0xe1, 0xe9, 0x1e, 0xed, 0x44, 0x50, 0x2d, 0x2e, 0xa1, 0xe5, 0xf2, 0x1a, 0x51, 0xca, 0xce, 0xbd, 0x48, 0xb7, 0xed, 0xc6, 0x39, 0x8c, 0x7a, 0x25, 0xe4, 0x9b, 0xc5, 0x75, 0xd4, 0xf8, 0x51, 0xc4, 0x15, 0x2b, 0x09, 0xfd, 0x6e, 0x87, 0x86, 0xa1, 0xf6, 0x16, 0x97, 0x64, 0x9b, 0x1d, 0x2a, 0x68, 0xec, 0x58, 0x5e, 0xbb, 0x7a, 0x92, 0x7a, 0x48, 0x24, 0x9a, 0xf4, 0x56, 0xc9, 0x66, 0xf3, 0x3d, 0xd8, 0xe2, 0x19, 0x08, 0x6a, 0x6a, 0x69, 0xa8, 0x78, 0xb8, 0x67, 0xe5, 0xaa, 0xda, 0x15, 0x3c, 0xd3, 0xa2, 0x81, 0xd3, 0x01, 0x1e, 0x5f, 0x7f, 0xd6, 0x3c, 0x97, 0xc2, 0x67, 0x1e, 0x26, 0xdb, 0x56, 0x76, 0xae, 0x3d, 0xc1, 0x25, 0x96, 0x36, 0xae, 0x3a, 0x15, 0x5f, 0xe6, 0xe2, 0xa9, 0x1d, 0x36, 0x2b, 0xb2, 0x9d, 0xd9, 0xca, 0xca, 0x05, 0xb4, 0x2d, 0x8c, 0xe5, 0xb3, 0x72, 0xa2, 0x8e, 0x17, 0xb8, 0xd5, 0x33, 0xb1, 0xdc, 0xa5, 0xb1, 0x72, 0x5b, 0x39, 0xd4, 0x3c, 0x2b, 0x4b, 0x19, 0xae, 0x2d, 0x45, 0xa6, 0xf1, 0x1d, 0xe1, 0x79, 0x35, 0x3f, 0xf9, 0x3e, 0xb4, 0x37, 0x23, 0x19, 0x92, 0xc9, 0x32, 0x94, 0xec, 0x38, 0xc1, 0xf9, 0xec, 0x59, 0x66, 0x3b, 0x4a, 0x7e, 0x8f, 0xf1, 0xb4, 0x27, 0xc0, 0x0f, 0xab, 0xc5, 0xf8, 0xcd, 0x5f, 0x1e, 0x5b, 0x82, 0x7a, 0x2f, 0x73, 0x2e, 0x55, 0x9c, 0x7e, 0x24, 0xb9, 0x56, 0x22, 0xd1, 0xf8, 0x56, 0xc4, 0x4a, 0x65, 0x1a, 0xc3, 0x15, 0xa9, 0xb0, 0x05, 0x1d, 0xb0, 0x05, 0xe3, 0xe9, 0x54, 0x5d, 0x9f, 0x20, 0x24, 0xb2, 0xa1, 0xf0, 0x92, 0xd9, 0x5a, 0x48, 0x1d, 0x2b, 0xea, 0x91, 0x75, 0xc8, 0x40, 0x7b, 0x85, 0xcb, 0x82, 0x75, 0xe4, 0x8c, 0x7b, 0x2c, 0xc8, 0x2a, 0xd2, 0x55, 0x3f, 0x39, 0x5d, 0x32, 0x9a, 0x97, 0x39, 0xcc, 0xbc, 0x90, 0x0a, 0x97, 0x87, 0x7b, 0xa1, 0xa5, 0xea, 0xd4, 0x6e, 0xe3, 0xf3, 0x23, 0xf7, 0x39, 0x66, 0x8c, 0x16, 0xd4, 0x31, 0x9a, 0x55, 0xc6, 0xc2, 0xbc, 0xb5, 0x7d, 0xa0, 0x17, 0x76, 0x0e, 0xf4, 0xc2, 0xee, 0x81, 0x5e, 0xf8, 0x38, 0xd0, 0xd1, 0xf6, 0x40, 0x47, 0x3b, 0x03, 0x1d, 0xed, 0x0e, 0x74, 0xf4, 0x7b, 0xa0, 0xa3, 0xaf, 0x7f, 0xf4, 0xc2, 0xeb, 0xc5, 0x31, 0x3f, 0xfe, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x7a, 0xca, 0xe1, 0x7d, 0x2b, 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) || (iNdEx+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) || (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) || (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) || (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) || (iNdEx+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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/node/v1beta1/generated.proto000066400000000000000000000106261453636404600215560ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/api/resource/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/node/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/585-runtime-class 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 be lowercase, 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/688-pod-overhead/README.md // +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 // +mapType=atomic 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; } golang-k8s-api-0.29.0/node/v1beta1/register.go000066400000000000000000000033301453636404600207000ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 } golang-k8s-api-0.29.0/node/v1beta1/types.go000066400000000000000000000115661453636404600202320ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.13 // +k8s:prerelease-lifecycle-gen:deprecated=1.22 // 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/585-runtime-class 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 be lowercase, 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/688-pod-overhead/README.md // +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=k8s.io/api/core/v1.ResourceList,castkey=k8s.io/api/core/v1.ResourceName,castvalue=k8s.io/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 // +mapType=atomic 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.13 // +k8s:prerelease-lifecycle-gen:deprecated=1.22 // 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"` } golang-k8s-api-0.29.0/node/v1beta1/types_swagger_doc_generated.go000066400000000000000000000105511453636404600246050ustar00rootroot00000000000000/* 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-codegen.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/585-runtime-class", "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 be lowercase, 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/688-pod-overhead/README.md", "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 golang-k8s-api-0.29.0/node/v1beta1/zz_generated.deepcopy.go000066400000000000000000000100031453636404600233370ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *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 } golang-k8s-api-0.29.0/node/v1beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000056711453636404600256320ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta1 // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *RuntimeClass) APILifecycleIntroduced() (major, minor int) { return 1, 13 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *RuntimeClass) APILifecycleDeprecated() (major, minor int) { return 1, 22 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *RuntimeClass) APILifecycleRemoved() (major, minor int) { return 1, 25 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *RuntimeClassList) APILifecycleIntroduced() (major, minor int) { return 1, 13 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *RuntimeClassList) APILifecycleDeprecated() (major, minor int) { return 1, 22 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *RuntimeClassList) APILifecycleRemoved() (major, minor int) { return 1, 25 } golang-k8s-api-0.29.0/policy/000077500000000000000000000000001453636404600156355ustar00rootroot00000000000000golang-k8s-api-0.29.0/policy/OWNERS000066400000000000000000000003471453636404600166010ustar00rootroot00000000000000# See the OWNERS docs at https://go.k8s.io/owners # approval on api packages bubbles to api-approvers reviewers: - sig-apps-reviewers - sig-auth-policy-approvers - sig-auth-policy-reviewers labels: - sig/auth - sig/apps golang-k8s-api-0.29.0/policy/v1/000077500000000000000000000000001453636404600161635ustar00rootroot00000000000000golang-k8s-api-0.29.0/policy/v1/doc.go000066400000000000000000000015241453636404600172610ustar00rootroot00000000000000/* Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 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, // NetworkPolicy, etc. package v1 // import "k8s.io/api/policy/v1" golang-k8s-api-0.29.0/policy/v1/generated.pb.go000066400000000000000000001323621453636404600210570ustar00rootroot00000000000000/* 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/k8s.io/api/policy/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 "k8s.io/apimachinery/pkg/apis/meta/v1" math "math" math_bits "math/bits" reflect "reflect" strings "strings" intstr "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *Eviction) Reset() { *m = Eviction{} } func (*Eviction) ProtoMessage() {} func (*Eviction) Descriptor() ([]byte, []int) { return fileDescriptor_2d50488813b2d18e, []int{0} } 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 *PodDisruptionBudget) Reset() { *m = PodDisruptionBudget{} } func (*PodDisruptionBudget) ProtoMessage() {} func (*PodDisruptionBudget) Descriptor() ([]byte, []int) { return fileDescriptor_2d50488813b2d18e, []int{1} } 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_2d50488813b2d18e, []int{2} } 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_2d50488813b2d18e, []int{3} } 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_2d50488813b2d18e, []int{4} } 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 init() { proto.RegisterType((*Eviction)(nil), "k8s.io.api.policy.v1.Eviction") proto.RegisterType((*PodDisruptionBudget)(nil), "k8s.io.api.policy.v1.PodDisruptionBudget") proto.RegisterType((*PodDisruptionBudgetList)(nil), "k8s.io.api.policy.v1.PodDisruptionBudgetList") proto.RegisterType((*PodDisruptionBudgetSpec)(nil), "k8s.io.api.policy.v1.PodDisruptionBudgetSpec") proto.RegisterType((*PodDisruptionBudgetStatus)(nil), "k8s.io.api.policy.v1.PodDisruptionBudgetStatus") proto.RegisterMapType((map[string]v1.Time)(nil), "k8s.io.api.policy.v1.PodDisruptionBudgetStatus.DisruptedPodsEntry") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/policy/v1/generated.proto", fileDescriptor_2d50488813b2d18e) } var fileDescriptor_2d50488813b2d18e = []byte{ // 854 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x96, 0xcf, 0x8f, 0xdb, 0x44, 0x14, 0xc7, 0xe3, 0xcd, 0x66, 0xd9, 0x4e, 0x93, 0x68, 0x19, 0x16, 0x58, 0x72, 0x70, 0xaa, 0x9c, 0x16, 0xa4, 0x8e, 0xd9, 0x16, 0xa1, 0x55, 0x25, 0x50, 0xeb, 0x66, 0x05, 0x45, 0x5d, 0xb2, 0x9a, 0x6d, 0x85, 0x84, 0x40, 0x62, 0x62, 0xbf, 0x26, 0x43, 0x6c, 0x8f, 0xe5, 0x19, 0x87, 0xe6, 0x44, 0xff, 0x04, 0xfe, 0x05, 0xfe, 0x14, 0x4e, 0xec, 0xb1, 0xdc, 0x2a, 0x0e, 0x11, 0x6b, 0xfe, 0x0b, 0x4e, 0xc8, 0x63, 0xe7, 0x87, 0x37, 0x0e, 0xcd, 0x72, 0xe8, 0xcd, 0xf3, 0xde, 0xfb, 0x7e, 0x9e, 0xdf, 0x8f, 0x71, 0x82, 0x3e, 0x1b, 0x1d, 0x4b, 0xc2, 0x85, 0x35, 0x8a, 0xfb, 0x10, 0x05, 0xa0, 0x40, 0x5a, 0x63, 0x08, 0x5c, 0x11, 0x59, 0xb9, 0x83, 0x85, 0xdc, 0x0a, 0x85, 0xc7, 0x9d, 0x89, 0x35, 0x3e, 0xb2, 0x06, 0x10, 0x40, 0xc4, 0x14, 0xb8, 0x24, 0x8c, 0x84, 0x12, 0x78, 0x3f, 0x8b, 0x22, 0x2c, 0xe4, 0x24, 0x8b, 0x22, 0xe3, 0xa3, 0xd6, 0xed, 0x01, 0x57, 0xc3, 0xb8, 0x4f, 0x1c, 0xe1, 0x5b, 0x03, 0x31, 0x10, 0x96, 0x0e, 0xee, 0xc7, 0xcf, 0xf4, 0x49, 0x1f, 0xf4, 0x53, 0x06, 0x69, 0x7d, 0xb2, 0x48, 0xe5, 0x33, 0x67, 0xc8, 0x03, 0x88, 0x26, 0x56, 0x38, 0x1a, 0xa4, 0x06, 0x69, 0xf9, 0xa0, 0x58, 0x49, 0xea, 0x96, 0xb5, 0x4e, 0x15, 0xc5, 0x81, 0xe2, 0x3e, 0xac, 0x08, 0x3e, 0x7d, 0x9d, 0x40, 0x3a, 0x43, 0xf0, 0xd9, 0x8a, 0xee, 0xee, 0x3a, 0x5d, 0xac, 0xb8, 0x67, 0xf1, 0x40, 0x49, 0x15, 0x5d, 0x15, 0x75, 0xfe, 0x34, 0xd0, 0xee, 0xc9, 0x98, 0x3b, 0x8a, 0x8b, 0x00, 0xff, 0x80, 0x76, 0xd3, 0x2a, 0x5c, 0xa6, 0xd8, 0x81, 0x71, 0xcb, 0x38, 0xbc, 0x79, 0xe7, 0x63, 0xb2, 0x68, 0xdc, 0x1c, 0x4a, 0xc2, 0xd1, 0x20, 0x35, 0x48, 0x92, 0x46, 0x93, 0xf1, 0x11, 0xe9, 0xf5, 0x7f, 0x04, 0x47, 0x9d, 0x82, 0x62, 0x36, 0xbe, 0x98, 0xb6, 0x2b, 0xc9, 0xb4, 0x8d, 0x16, 0x36, 0x3a, 0xa7, 0x62, 0x0f, 0x35, 0x5c, 0xf0, 0x40, 0x41, 0x2f, 0x4c, 0x33, 0xca, 0x83, 0x2d, 0x9d, 0xe6, 0xee, 0x66, 0x69, 0xba, 0xcb, 0x52, 0xfb, 0xed, 0x64, 0xda, 0x6e, 0x14, 0x4c, 0xb4, 0x08, 0xef, 0xfc, 0xba, 0x85, 0xde, 0x39, 0x13, 0x6e, 0x97, 0xcb, 0x28, 0xd6, 0x26, 0x3b, 0x76, 0x07, 0xa0, 0xde, 0x40, 0x9d, 0x3d, 0xb4, 0x2d, 0x43, 0x70, 0xf2, 0xf2, 0x6e, 0x93, 0xb2, 0xf5, 0x23, 0x25, 0xaf, 0x76, 0x1e, 0x82, 0x63, 0xd7, 0x73, 0xf4, 0x76, 0x7a, 0xa2, 0x1a, 0x84, 0xbf, 0x41, 0x3b, 0x52, 0x31, 0x15, 0xcb, 0x83, 0xaa, 0x46, 0x5a, 0x9b, 0x23, 0xb5, 0xcc, 0x6e, 0xe6, 0xd0, 0x9d, 0xec, 0x4c, 0x73, 0x5c, 0xe7, 0x77, 0x03, 0xbd, 0x5f, 0xa2, 0x7a, 0xcc, 0xa5, 0xc2, 0xdf, 0xad, 0xf4, 0x89, 0x6c, 0xd6, 0xa7, 0x54, 0xad, 0xbb, 0xb4, 0x97, 0x67, 0xdd, 0x9d, 0x59, 0x96, 0x7a, 0xf4, 0x35, 0xaa, 0x71, 0x05, 0x7e, 0xba, 0x03, 0xd5, 0xc3, 0x9b, 0x77, 0x3e, 0xdc, 0xb8, 0x22, 0xbb, 0x91, 0x53, 0x6b, 0x8f, 0x52, 0x3d, 0xcd, 0x30, 0x9d, 0x3f, 0xaa, 0xa5, 0x95, 0xa4, 0x4d, 0xc4, 0xcf, 0x50, 0xdd, 0xe7, 0xc1, 0x83, 0x31, 0xe3, 0x1e, 0xeb, 0x7b, 0xf0, 0xda, 0xa9, 0xa7, 0x57, 0x86, 0x64, 0x57, 0x86, 0x3c, 0x0a, 0x54, 0x2f, 0x3a, 0x57, 0x11, 0x0f, 0x06, 0xf6, 0x5e, 0x32, 0x6d, 0xd7, 0x4f, 0x97, 0x48, 0xb4, 0xc0, 0xc5, 0xdf, 0xa3, 0x5d, 0x09, 0x1e, 0x38, 0x4a, 0x44, 0xd7, 0x5b, 0xed, 0xc7, 0xac, 0x0f, 0xde, 0x79, 0x2e, 0xb5, 0xeb, 0x69, 0xcb, 0x66, 0x27, 0x3a, 0x47, 0x62, 0x0f, 0x35, 0x7d, 0xf6, 0xfc, 0x69, 0xc0, 0xe6, 0x85, 0x54, 0xff, 0x67, 0x21, 0x38, 0x99, 0xb6, 0x9b, 0xa7, 0x05, 0x16, 0xbd, 0xc2, 0xc6, 0x2f, 0x0c, 0xd4, 0x8a, 0x83, 0x21, 0x30, 0x4f, 0x0d, 0x27, 0x67, 0xc2, 0x9d, 0x7d, 0x27, 0xce, 0xf4, 0x70, 0x0e, 0xb6, 0x6f, 0x19, 0x87, 0x37, 0xec, 0xfb, 0xc9, 0xb4, 0xdd, 0x7a, 0xba, 0x36, 0xea, 0x9f, 0x69, 0xdb, 0x5c, 0xef, 0x7d, 0x32, 0x09, 0x81, 0xfe, 0x47, 0x8e, 0xce, 0x6f, 0x35, 0xf4, 0xc1, 0xda, 0x9d, 0xc6, 0x5f, 0x21, 0x2c, 0xfa, 0x12, 0xa2, 0x31, 0xb8, 0x5f, 0x64, 0xdf, 0x35, 0x2e, 0x02, 0x3d, 0xdb, 0xaa, 0xdd, 0xca, 0x77, 0x04, 0xf7, 0x56, 0x22, 0x68, 0x89, 0x0a, 0xff, 0x8c, 0x1a, 0x6e, 0x96, 0x05, 0xdc, 0x33, 0xe1, 0xce, 0xb6, 0xd2, 0xbe, 0xe6, 0x3d, 0x23, 0xdd, 0x65, 0xc8, 0x49, 0xa0, 0xa2, 0x89, 0xfd, 0x6e, 0xfe, 0x2a, 0x8d, 0x82, 0x8f, 0x16, 0xf3, 0xa5, 0xc5, 0xb8, 0x73, 0xa4, 0x7c, 0xe0, 0x79, 0xe2, 0x27, 0x70, 0xf5, 0x7c, 0x6b, 0x8b, 0x62, 0xba, 0x2b, 0x11, 0xb4, 0x44, 0x85, 0x3f, 0x47, 0x4d, 0x27, 0x8e, 0x22, 0x08, 0xd4, 0x97, 0x59, 0x67, 0xf5, 0xb0, 0x6a, 0xf6, 0x7b, 0x39, 0xa7, 0xf9, 0xb0, 0xe0, 0xa5, 0x57, 0xa2, 0x53, 0xbd, 0x0b, 0x92, 0x47, 0xe0, 0xce, 0xf4, 0xb5, 0xa2, 0xbe, 0x5b, 0xf0, 0xd2, 0x2b, 0xd1, 0xf8, 0x18, 0xd5, 0xe1, 0x79, 0x08, 0xce, 0xac, 0x97, 0x3b, 0x5a, 0xbd, 0x9f, 0xab, 0xeb, 0x27, 0x4b, 0x3e, 0x5a, 0x88, 0xc4, 0x0e, 0x42, 0x8e, 0x08, 0x5c, 0x9e, 0xfd, 0x3a, 0xbc, 0xa5, 0x67, 0x60, 0x6d, 0x76, 0x85, 0x1e, 0xce, 0x74, 0x8b, 0x6f, 0xf3, 0xdc, 0x24, 0xe9, 0x12, 0xb6, 0xe5, 0x21, 0xbc, 0x3a, 0x26, 0xbc, 0x87, 0xaa, 0x23, 0x98, 0xe8, 0xf5, 0xb9, 0x41, 0xd3, 0x47, 0x7c, 0x1f, 0xd5, 0xc6, 0xcc, 0x8b, 0x21, 0xbf, 0xca, 0x1f, 0x6d, 0xf6, 0x1e, 0x4f, 0xb8, 0x0f, 0x34, 0x13, 0xde, 0xdb, 0x3a, 0x36, 0xec, 0x7b, 0x17, 0x97, 0x66, 0xe5, 0xe5, 0xa5, 0x59, 0x79, 0x75, 0x69, 0x56, 0x5e, 0x24, 0xa6, 0x71, 0x91, 0x98, 0xc6, 0xcb, 0xc4, 0x34, 0x5e, 0x25, 0xa6, 0xf1, 0x57, 0x62, 0x1a, 0xbf, 0xfc, 0x6d, 0x56, 0xbe, 0xdd, 0x2f, 0xfb, 0x1f, 0xf3, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x79, 0xd7, 0x99, 0xdb, 0xf7, 0x08, 0x00, 0x00, } 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 *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.UnhealthyPodEvictionPolicy != nil { i -= len(*m.UnhealthyPodEvictionPolicy) copy(dAtA[i:], *m.UnhealthyPodEvictionPolicy) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.UnhealthyPodEvictionPolicy))) i-- dAtA[i] = 0x22 } 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 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] = 0x3a } } 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.DisruptionsAllowed)) 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 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 *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 *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)) } if m.UnhealthyPodEvictionPolicy != nil { l = len(*m.UnhealthyPodEvictionPolicy) 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.DisruptionsAllowed)) n += 1 + sovGenerated(uint64(m.CurrentHealthy)) n += 1 + sovGenerated(uint64(m.DesiredHealthy)) n += 1 + sovGenerated(uint64(m.ExpectedPods)) if len(m.Conditions) > 0 { for _, e := range m.Conditions { 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 *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 *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) + `,`, `UnhealthyPodEvictionPolicy:` + valueToStringGenerated(this.UnhealthyPodEvictionPolicy) + `,`, `}`, }, "") return s } func (this *PodDisruptionBudgetStatus) String() string { if this == nil { return "nil" } repeatedStringForConditions := "[]Condition{" for _, f := range this.Conditions { repeatedStringForConditions += fmt.Sprintf("%v", f) + "," } repeatedStringForConditions += "}" 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 + `,`, `DisruptionsAllowed:` + fmt.Sprintf("%v", this.DisruptionsAllowed) + `,`, `CurrentHealthy:` + fmt.Sprintf("%v", this.CurrentHealthy) + `,`, `DesiredHealthy:` + fmt.Sprintf("%v", this.DesiredHealthy) + `,`, `ExpectedPods:` + fmt.Sprintf("%v", this.ExpectedPods) + `,`, `Conditions:` + repeatedStringForConditions + `,`, `}`, }, "") 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 *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) || (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) || (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) || (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 case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field UnhealthyPodEvictionPolicy", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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 := UnhealthyPodEvictionPolicyType(dAtA[iNdEx:postIndex]) m.UnhealthyPodEvictionPolicy = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (iNdEx+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 DisruptionsAllowed", wireType) } m.DisruptionsAllowed = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.DisruptionsAllowed |= 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 } } case 7: 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, v1.Condition{}) 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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/policy/v1/generated.proto000066400000000000000000000200261453636404600212060ustar00rootroot00000000000000/* 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.v1; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/policy/v1"; // 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; } // PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods message PodDisruptionBudget { // 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 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 { // 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 a list of PodDisruptionBudgets 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. // A null selector will match no pods, while an empty ({}) selector will select // all pods within the namespace. // +patchStrategy=replace // +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; // UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods // should be considered for eviction. Current implementation considers healthy pods, // as pods that have status.conditions item with type="Ready",status="True". // // Valid policies are IfHealthyBudget and AlwaysAllow. // If no policy is specified, the default behavior will be used, // which corresponds to the IfHealthyBudget policy. // // IfHealthyBudget policy means that running pods (status.phase="Running"), // but not yet healthy can be evicted only if the guarded application is not // disrupted (status.currentHealthy is at least equal to status.desiredHealthy). // Healthy pods will be subject to the PDB for eviction. // // AlwaysAllow policy means that all running pods (status.phase="Running"), // but not yet healthy are considered disrupted and can be evicted regardless // of whether the criteria in a PDB is met. This means perspective running // pods of a disrupted application might not get a chance to become healthy. // Healthy pods will be subject to the PDB for eviction. // // Additional policies may be added in the future. // Clients making eviction decisions should disallow eviction of unhealthy pods // if they encounter an unrecognized policy in this field. // // This field is beta-level. The eviction API uses this field when // the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default). // +optional optional string unhealthyPodEvictionPolicy = 4; } // 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. DisruptionsAllowed and other // status information 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; // Conditions contain conditions for PDB. The disruption controller sets the // DisruptionAllowed condition. The following are known values for the reason field // (additional reasons could be added in the future): // - SyncFailed: The controller encountered an error and wasn't able to compute // the number of allowed disruptions. Therefore no disruptions are // allowed and the status of the condition will be False. // - InsufficientPods: The number of pods are either at or below the number // required by the PodDisruptionBudget. No disruptions are // allowed and the status of the condition will be False. // - SufficientPods: There are more pods than required by the PodDisruptionBudget. // The condition will be True, and the number of allowed // disruptions are provided by the disruptionsAllowed property. // // +optional // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type repeated k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; } golang-k8s-api-0.29.0/policy/v1/register.go000066400000000000000000000031541453636404600203410ustar00rootroot00000000000000/* Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "policy" // 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 ( 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{}, &Eviction{}, ) // Add the watch version that applies metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/policy/v1/types.go000066400000000000000000000252161453636404600176640ustar00rootroot00000000000000/* Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" ) // DisruptionBudgetCause is the status cause returned for eviction failures caused by PodDisruptionBudget violations. const DisruptionBudgetCause metav1.CauseType = "DisruptionBudget" // 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. // A null selector will match no pods, while an empty ({}) selector will select // all pods within the namespace. // +patchStrategy=replace // +optional Selector *metav1.LabelSelector `json:"selector,omitempty" patchStrategy:"replace" 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"` // UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods // should be considered for eviction. Current implementation considers healthy pods, // as pods that have status.conditions item with type="Ready",status="True". // // Valid policies are IfHealthyBudget and AlwaysAllow. // If no policy is specified, the default behavior will be used, // which corresponds to the IfHealthyBudget policy. // // IfHealthyBudget policy means that running pods (status.phase="Running"), // but not yet healthy can be evicted only if the guarded application is not // disrupted (status.currentHealthy is at least equal to status.desiredHealthy). // Healthy pods will be subject to the PDB for eviction. // // AlwaysAllow policy means that all running pods (status.phase="Running"), // but not yet healthy are considered disrupted and can be evicted regardless // of whether the criteria in a PDB is met. This means perspective running // pods of a disrupted application might not get a chance to become healthy. // Healthy pods will be subject to the PDB for eviction. // // Additional policies may be added in the future. // Clients making eviction decisions should disallow eviction of unhealthy pods // if they encounter an unrecognized policy in this field. // // This field is beta-level. The eviction API uses this field when // the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default). // +optional UnhealthyPodEvictionPolicy *UnhealthyPodEvictionPolicyType `json:"unhealthyPodEvictionPolicy,omitempty" protobuf:"bytes,4,opt,name=unhealthyPodEvictionPolicy"` } // UnhealthyPodEvictionPolicyType defines the criteria for when unhealthy pods // should be considered for eviction. // +enum type UnhealthyPodEvictionPolicyType string const ( // IfHealthyBudget policy means that running pods (status.phase="Running"), // but not yet healthy can be evicted only if the guarded application is not // disrupted (status.currentHealthy is at least equal to status.desiredHealthy). // Healthy pods will be subject to the PDB for eviction. IfHealthyBudget UnhealthyPodEvictionPolicyType = "IfHealthyBudget" // AlwaysAllow policy means that all running pods (status.phase="Running"), // but not yet healthy are considered disrupted and can be evicted regardless // of whether the criteria in a PDB is met. This means perspective running // pods of a disrupted application might not get a chance to become healthy. // Healthy pods will be subject to the PDB for eviction. AlwaysAllow UnhealthyPodEvictionPolicyType = "AlwaysAllow" ) // 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. DisruptionsAllowed and other // status information 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. DisruptionsAllowed 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"` // Conditions contain conditions for PDB. The disruption controller sets the // DisruptionAllowed condition. The following are known values for the reason field // (additional reasons could be added in the future): // - SyncFailed: The controller encountered an error and wasn't able to compute // the number of allowed disruptions. Therefore no disruptions are // allowed and the status of the condition will be False. // - InsufficientPods: The number of pods are either at or below the number // required by the PodDisruptionBudget. No disruptions are // allowed and the status of the condition will be False. // - SufficientPods: There are more pods than required by the PodDisruptionBudget. // The condition will be True, and the number of allowed // disruptions are provided by the disruptionsAllowed property. // // +optional // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,7,rep,name=conditions"` } const ( // DisruptionAllowedCondition is a condition set by the disruption controller // that signal whether any of the pods covered by the PDB can be disrupted. DisruptionAllowedCondition = "DisruptionAllowed" // SyncFailedReason is set on the DisruptionAllowed condition if reconcile // of the PDB failed and therefore disruption of pods are not allowed. SyncFailedReason = "SyncFailed" // SufficientPodsReason is set on the DisruptionAllowed condition if there are // more pods covered by the PDB than required and at least one can be disrupted. SufficientPodsReason = "SufficientPods" // InsufficientPodsReason is set on the DisruptionAllowed condition if the number // of pods are equal to or fewer than required by the PDB. InsufficientPodsReason = "InsufficientPods" ) // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/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"` // 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 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=k8s.io/apimachinery/pkg/runtime.Object // PodDisruptionBudgetList is a collection of PodDisruptionBudgets. type PodDisruptionBudgetList 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 a list of PodDisruptionBudgets Items []PodDisruptionBudget `json:"items" protobuf:"bytes,2,rep,name=items"` } // +genclient // +genclient:noVerbs // +k8s:deepcopy-gen:interfaces=k8s.io/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"` } golang-k8s-api-0.29.0/policy/v1/types_swagger_doc_generated.go000066400000000000000000000171221453636404600242430ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. 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_PodDisruptionBudget = map[string]string{ "": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection 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 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.", "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "items": "Items is a list 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. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", "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\".", "unhealthyPodEvictionPolicy": "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.\n\nThis field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default).", } 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. DisruptionsAllowed and other status information 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", "conditions": "Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute\n the number of allowed disruptions. Therefore no disruptions are\n allowed and the status of the condition will be False.\n- InsufficientPods: The number of pods are either at or below the number\n required by the PodDisruptionBudget. No disruptions are\n allowed and the status of the condition will be False.\n- SufficientPods: There are more pods than required by the PodDisruptionBudget.\n The condition will be True, and the number of allowed\n disruptions are provided by the disruptionsAllowed property.", } func (PodDisruptionBudgetStatus) SwaggerDoc() map[string]string { return map_PodDisruptionBudgetStatus } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/policy/v1/zz_generated.deepcopy.go000066400000000000000000000126701453636404600230100ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" intstr "k8s.io/apimachinery/pkg/util/intstr" ) // 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(metav1.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 *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(metav1.LabelSelector) (*in).DeepCopyInto(*out) } if in.MaxUnavailable != nil { in, out := &in.MaxUnavailable, &out.MaxUnavailable *out = new(intstr.IntOrString) **out = **in } if in.UnhealthyPodEvictionPolicy != nil { in, out := &in.UnhealthyPodEvictionPolicy, &out.UnhealthyPodEvictionPolicy *out = new(UnhealthyPodEvictionPolicyType) **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]metav1.Time, len(*in)) for key, val := range *in { (*out)[key] = *val.DeepCopy() } } if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]metav1.Condition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } 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 } golang-k8s-api-0.29.0/policy/v1beta1/000077500000000000000000000000001453636404600171005ustar00rootroot00000000000000golang-k8s-api-0.29.0/policy/v1beta1/doc.go000066400000000000000000000016041453636404600201750ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true // Package policy is for any kind of policy object. Suitable examples, even if // they aren't all here, are PodDisruptionBudget, // NetworkPolicy, etc. package v1beta1 // import "k8s.io/api/policy/v1beta1" golang-k8s-api-0.29.0/policy/v1beta1/generated.pb.go000066400000000000000000001324611453636404600217740ustar00rootroot00000000000000/* 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/k8s.io/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" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" math "math" math_bits "math/bits" reflect "reflect" strings "strings" intstr "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *Eviction) Reset() { *m = Eviction{} } func (*Eviction) ProtoMessage() {} func (*Eviction) Descriptor() ([]byte, []int) { return fileDescriptor_014060e454a820dc, []int{0} } 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 *PodDisruptionBudget) Reset() { *m = PodDisruptionBudget{} } func (*PodDisruptionBudget) ProtoMessage() {} func (*PodDisruptionBudget) Descriptor() ([]byte, []int) { return fileDescriptor_014060e454a820dc, []int{1} } 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{2} } 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{3} } 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{4} } 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 init() { proto.RegisterType((*Eviction)(nil), "k8s.io.api.policy.v1beta1.Eviction") 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") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/policy/v1beta1/generated.proto", fileDescriptor_014060e454a820dc) } var fileDescriptor_014060e454a820dc = []byte{ // 857 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x96, 0xcd, 0x6e, 0xdb, 0x46, 0x10, 0xc7, 0x45, 0xcb, 0x72, 0x9d, 0xad, 0x24, 0xb8, 0xdb, 0x2f, 0x5b, 0x07, 0x2a, 0xd0, 0x29, 0x28, 0xd0, 0x65, 0x9d, 0x04, 0x85, 0xd1, 0x43, 0x9b, 0x30, 0x32, 0xd2, 0x14, 0x31, 0x6c, 0xac, 0x9c, 0x4b, 0x91, 0x02, 0x5d, 0x91, 0x13, 0x69, 0x2b, 0x92, 0x4b, 0x70, 0x97, 0x6c, 0x74, 0xcb, 0xa1, 0x0f, 0xd0, 0xf7, 0xe8, 0x83, 0xd4, 0x87, 0x1e, 0xd2, 0x5b, 0xd0, 0x83, 0x50, 0xb3, 0x6f, 0xd1, 0x53, 0xc1, 0x25, 0xf5, 0x41, 0x7d, 0x34, 0x4a, 0x0e, 0xb9, 0x71, 0x67, 0xe6, 0xff, 0x1b, 0xce, 0xc7, 0x52, 0x42, 0xf6, 0xe8, 0x44, 0x12, 0x2e, 0xac, 0x51, 0xdc, 0x87, 0x28, 0x00, 0x05, 0xd2, 0x4a, 0x20, 0x70, 0x45, 0x64, 0x15, 0x0e, 0x16, 0x72, 0x2b, 0x14, 0x1e, 0x77, 0xc6, 0x56, 0x72, 0xdc, 0x07, 0xc5, 0x8e, 0xad, 0x01, 0x04, 0x10, 0x31, 0x05, 0x2e, 0x09, 0x23, 0xa1, 0x04, 0x3e, 0xca, 0x43, 0x09, 0x0b, 0x39, 0xc9, 0x43, 0x49, 0x11, 0xda, 0xfa, 0x7c, 0xc0, 0xd5, 0x30, 0xee, 0x13, 0x47, 0xf8, 0xd6, 0x40, 0x0c, 0x84, 0xa5, 0x15, 0xfd, 0xf8, 0x99, 0x3e, 0xe9, 0x83, 0x7e, 0xca, 0x49, 0xad, 0xbb, 0xf3, 0xa4, 0x3e, 0x73, 0x86, 0x3c, 0x80, 0x68, 0x6c, 0x85, 0xa3, 0x41, 0x66, 0x90, 0x96, 0x0f, 0x8a, 0x59, 0xc9, 0x4a, 0xfe, 0x96, 0xb5, 0x49, 0x15, 0xc5, 0x81, 0xe2, 0x3e, 0xac, 0x08, 0xbe, 0x7c, 0x9d, 0x40, 0x3a, 0x43, 0xf0, 0xd9, 0x8a, 0xee, 0xce, 0x26, 0x5d, 0xac, 0xb8, 0x67, 0xf1, 0x40, 0x49, 0x15, 0x2d, 0x8b, 0x3a, 0x7f, 0x19, 0x68, 0xff, 0x34, 0xe1, 0x8e, 0xe2, 0x22, 0xc0, 0x3f, 0xa2, 0xfd, 0xac, 0x0a, 0x97, 0x29, 0x76, 0x68, 0xdc, 0x34, 0x6e, 0xbd, 0x7f, 0xfb, 0x0b, 0x32, 0xef, 0xde, 0x0c, 0x4a, 0xc2, 0xd1, 0x20, 0x33, 0x48, 0x92, 0x45, 0x93, 0xe4, 0x98, 0x9c, 0xf7, 0x7f, 0x02, 0x47, 0x9d, 0x81, 0x62, 0x36, 0xbe, 0x9a, 0xb4, 0x2b, 0xe9, 0xa4, 0x8d, 0xe6, 0x36, 0x3a, 0xa3, 0x62, 0x0f, 0x35, 0x5c, 0xf0, 0x40, 0xc1, 0x79, 0x98, 0x65, 0x94, 0x87, 0x3b, 0x3a, 0xcd, 0x9d, 0xed, 0xd2, 0x74, 0x17, 0xa5, 0xf6, 0x07, 0xe9, 0xa4, 0xdd, 0x28, 0x99, 0x68, 0x19, 0xde, 0xf9, 0x6d, 0x07, 0x7d, 0x78, 0x21, 0xdc, 0x2e, 0x97, 0x51, 0xac, 0x4d, 0x76, 0xec, 0x0e, 0x40, 0xbd, 0x83, 0x3a, 0x2f, 0xd1, 0xae, 0x0c, 0xc1, 0x29, 0xca, 0xbb, 0x4d, 0x36, 0xee, 0x20, 0x59, 0xf3, 0x7e, 0xbd, 0x10, 0x1c, 0xbb, 0x5e, 0xf0, 0x77, 0xb3, 0x13, 0xd5, 0x34, 0xfc, 0x14, 0xed, 0x49, 0xc5, 0x54, 0x2c, 0x0f, 0xab, 0x9a, 0x7b, 0xf7, 0x0d, 0xb9, 0x5a, 0x6b, 0x37, 0x0b, 0xf2, 0x5e, 0x7e, 0xa6, 0x05, 0xb3, 0xf3, 0x87, 0x81, 0x3e, 0x5d, 0xa3, 0x7a, 0xcc, 0xa5, 0xc2, 0x4f, 0x57, 0x3a, 0x46, 0xb6, 0xeb, 0x58, 0xa6, 0xd6, 0xfd, 0x3a, 0x28, 0xb2, 0xee, 0x4f, 0x2d, 0x0b, 0xdd, 0xea, 0xa1, 0x1a, 0x57, 0xe0, 0x67, 0xdb, 0x50, 0x5d, 0x42, 0x6f, 0x51, 0x96, 0xdd, 0x28, 0xd0, 0xb5, 0x47, 0x19, 0x84, 0xe6, 0xac, 0xce, 0x9f, 0xd5, 0xb5, 0xe5, 0x64, 0xed, 0xc4, 0xcf, 0x50, 0xdd, 0xe7, 0xc1, 0xfd, 0x84, 0x71, 0x8f, 0xf5, 0x3d, 0x78, 0xed, 0x12, 0x64, 0x37, 0x88, 0xe4, 0x37, 0x88, 0x3c, 0x0a, 0xd4, 0x79, 0xd4, 0x53, 0x11, 0x0f, 0x06, 0xf6, 0x41, 0x3a, 0x69, 0xd7, 0xcf, 0x16, 0x48, 0xb4, 0xc4, 0xc5, 0x3f, 0xa0, 0x7d, 0x09, 0x1e, 0x38, 0x4a, 0x44, 0x6f, 0xb6, 0xe9, 0x8f, 0x59, 0x1f, 0xbc, 0x5e, 0x21, 0xb5, 0xeb, 0x59, 0xdf, 0xa6, 0x27, 0x3a, 0x43, 0x62, 0x0f, 0x35, 0x7d, 0xf6, 0xfc, 0x49, 0xc0, 0x66, 0x85, 0x54, 0xdf, 0xb2, 0x10, 0x9c, 0x4e, 0xda, 0xcd, 0xb3, 0x12, 0x8b, 0x2e, 0xb1, 0xf1, 0x0b, 0x03, 0xb5, 0xe2, 0x60, 0x08, 0xcc, 0x53, 0xc3, 0xf1, 0x85, 0x70, 0xa7, 0x9f, 0x8d, 0x0b, 0x3d, 0xa1, 0xc3, 0xdd, 0x9b, 0xc6, 0xad, 0x1b, 0xf6, 0xbd, 0x74, 0xd2, 0x6e, 0x3d, 0xd9, 0x18, 0xf5, 0xef, 0xa4, 0x6d, 0x6e, 0xf6, 0x5e, 0x8e, 0x43, 0xa0, 0xff, 0x93, 0xa3, 0xf3, 0x7b, 0x0d, 0x1d, 0x6d, 0x5c, 0x6c, 0xfc, 0x1d, 0xc2, 0xa2, 0x2f, 0x21, 0x4a, 0xc0, 0x7d, 0x98, 0x7f, 0xe6, 0xb8, 0x08, 0xf4, 0x6c, 0xab, 0x76, 0xab, 0xd8, 0x11, 0x7c, 0xbe, 0x12, 0x41, 0xd7, 0xa8, 0xf0, 0x2f, 0x06, 0x6a, 0xb8, 0x79, 0x1a, 0x70, 0x2f, 0x84, 0x3b, 0xdd, 0xcd, 0x87, 0x6f, 0x73, 0xe5, 0x48, 0x77, 0x91, 0x74, 0x1a, 0xa8, 0x68, 0x6c, 0x7f, 0x5c, 0xbc, 0x50, 0xa3, 0xe4, 0xa3, 0xe5, 0xa4, 0x59, 0x49, 0xee, 0x0c, 0x29, 0xef, 0x7b, 0x9e, 0xf8, 0x19, 0x5c, 0x3d, 0xe5, 0xda, 0xbc, 0xa4, 0xee, 0x4a, 0x04, 0x5d, 0xa3, 0xc2, 0x5f, 0xa3, 0xa6, 0x13, 0x47, 0x11, 0x04, 0xea, 0xdb, 0xbc, 0xbf, 0x7a, 0x64, 0x35, 0xfb, 0x93, 0x82, 0xd3, 0x7c, 0x50, 0xf2, 0xd2, 0xa5, 0xe8, 0x4c, 0xef, 0x82, 0xe4, 0x11, 0xb8, 0x53, 0x7d, 0xad, 0xac, 0xef, 0x96, 0xbc, 0x74, 0x29, 0x1a, 0x9f, 0xa0, 0x3a, 0x3c, 0x0f, 0xc1, 0x99, 0x36, 0x74, 0x4f, 0xab, 0x3f, 0x2a, 0xd4, 0xf5, 0xd3, 0x05, 0x1f, 0x2d, 0x45, 0x62, 0x07, 0x21, 0x47, 0x04, 0x2e, 0xcf, 0x7f, 0x32, 0xde, 0xd3, 0x83, 0xb0, 0xb6, 0xbb, 0x48, 0x0f, 0xa6, 0xba, 0xf9, 0x07, 0x7b, 0x66, 0x92, 0x74, 0x01, 0xdb, 0xf2, 0x10, 0x5e, 0x1d, 0x13, 0x3e, 0x40, 0xd5, 0x11, 0x8c, 0xf5, 0x12, 0xdd, 0xa0, 0xd9, 0x23, 0xbe, 0x87, 0x6a, 0x09, 0xf3, 0x62, 0x28, 0x2e, 0xf4, 0x67, 0xdb, 0xbd, 0xc7, 0x25, 0xf7, 0x81, 0xe6, 0xc2, 0xaf, 0x76, 0x4e, 0x0c, 0xfb, 0x9b, 0xab, 0x6b, 0xb3, 0xf2, 0xf2, 0xda, 0xac, 0xbc, 0xba, 0x36, 0x2b, 0x2f, 0x52, 0xd3, 0xb8, 0x4a, 0x4d, 0xe3, 0x65, 0x6a, 0x1a, 0xaf, 0x52, 0xd3, 0xf8, 0x3b, 0x35, 0x8d, 0x5f, 0xff, 0x31, 0x2b, 0xdf, 0x1f, 0x6d, 0xfc, 0x9b, 0xf3, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x96, 0x9a, 0x3a, 0xb5, 0x1b, 0x09, 0x00, 0x00, } 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 *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.UnhealthyPodEvictionPolicy != nil { i -= len(*m.UnhealthyPodEvictionPolicy) copy(dAtA[i:], *m.UnhealthyPodEvictionPolicy) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.UnhealthyPodEvictionPolicy))) i-- dAtA[i] = 0x22 } 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 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] = 0x3a } } 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.DisruptionsAllowed)) 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 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 *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 *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)) } if m.UnhealthyPodEvictionPolicy != nil { l = len(*m.UnhealthyPodEvictionPolicy) 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.DisruptionsAllowed)) n += 1 + sovGenerated(uint64(m.CurrentHealthy)) n += 1 + sovGenerated(uint64(m.DesiredHealthy)) n += 1 + sovGenerated(uint64(m.ExpectedPods)) if len(m.Conditions) > 0 { for _, e := range m.Conditions { 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 *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 *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) + `,`, `UnhealthyPodEvictionPolicy:` + valueToStringGenerated(this.UnhealthyPodEvictionPolicy) + `,`, `}`, }, "") return s } func (this *PodDisruptionBudgetStatus) String() string { if this == nil { return "nil" } repeatedStringForConditions := "[]Condition{" for _, f := range this.Conditions { repeatedStringForConditions += fmt.Sprintf("%v", f) + "," } repeatedStringForConditions += "}" 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 + `,`, `DisruptionsAllowed:` + fmt.Sprintf("%v", this.DisruptionsAllowed) + `,`, `CurrentHealthy:` + fmt.Sprintf("%v", this.CurrentHealthy) + `,`, `DesiredHealthy:` + fmt.Sprintf("%v", this.DesiredHealthy) + `,`, `ExpectedPods:` + fmt.Sprintf("%v", this.ExpectedPods) + `,`, `Conditions:` + repeatedStringForConditions + `,`, `}`, }, "") 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 *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) || (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) || (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) || (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 case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field UnhealthyPodEvictionPolicy", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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 := UnhealthyPodEvictionPolicyType(dAtA[iNdEx:postIndex]) m.UnhealthyPodEvictionPolicy = &s iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (iNdEx+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 DisruptionsAllowed", wireType) } m.DisruptionsAllowed = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.DisruptionsAllowed |= 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 } } case 7: 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, v1.Condition{}) 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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/policy/v1beta1/generated.proto000066400000000000000000000201701453636404600221230ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/policy/v1beta1"; // 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; } // PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods message PodDisruptionBudget { // 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 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 { // 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 list individual PodDisruptionBudget objects 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. // A null selector selects no pods. // An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods. // In policy/v1, an empty selector will select all pods in the namespace. // +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; // UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods // should be considered for eviction. Current implementation considers healthy pods, // as pods that have status.conditions item with type="Ready",status="True". // // Valid policies are IfHealthyBudget and AlwaysAllow. // If no policy is specified, the default behavior will be used, // which corresponds to the IfHealthyBudget policy. // // IfHealthyBudget policy means that running pods (status.phase="Running"), // but not yet healthy can be evicted only if the guarded application is not // disrupted (status.currentHealthy is at least equal to status.desiredHealthy). // Healthy pods will be subject to the PDB for eviction. // // AlwaysAllow policy means that all running pods (status.phase="Running"), // but not yet healthy are considered disrupted and can be evicted regardless // of whether the criteria in a PDB is met. This means perspective running // pods of a disrupted application might not get a chance to become healthy. // Healthy pods will be subject to the PDB for eviction. // // Additional policies may be added in the future. // Clients making eviction decisions should disallow eviction of unhealthy pods // if they encounter an unrecognized policy in this field. // // This field is beta-level. The eviction API uses this field when // the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default). // +optional optional string unhealthyPodEvictionPolicy = 4; } // 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. DisruptionsAllowed and other // status information 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; // Conditions contain conditions for PDB. The disruption controller sets the // DisruptionAllowed condition. The following are known values for the reason field // (additional reasons could be added in the future): // - SyncFailed: The controller encountered an error and wasn't able to compute // the number of allowed disruptions. Therefore no disruptions are // allowed and the status of the condition will be False. // - InsufficientPods: The number of pods are either at or below the number // required by the PodDisruptionBudget. No disruptions are // allowed and the status of the condition will be False. // - SufficientPods: There are more pods than required by the PodDisruptionBudget. // The condition will be True, and the number of allowed // disruptions are provided by the disruptionsAllowed property. // // +optional // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type repeated k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; } golang-k8s-api-0.29.0/policy/v1beta1/register.go000066400000000000000000000034071453636404600212570ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &PodDisruptionBudget{}, &PodDisruptionBudgetList{}, &Eviction{}, ) // Add the watch version that applies metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/policy/v1beta1/types.go000066400000000000000000000260651453636404600206040ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/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. // A null selector selects no pods. // An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods. // In policy/v1, an empty selector will select all pods in the namespace. // +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"` // UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods // should be considered for eviction. Current implementation considers healthy pods, // as pods that have status.conditions item with type="Ready",status="True". // // Valid policies are IfHealthyBudget and AlwaysAllow. // If no policy is specified, the default behavior will be used, // which corresponds to the IfHealthyBudget policy. // // IfHealthyBudget policy means that running pods (status.phase="Running"), // but not yet healthy can be evicted only if the guarded application is not // disrupted (status.currentHealthy is at least equal to status.desiredHealthy). // Healthy pods will be subject to the PDB for eviction. // // AlwaysAllow policy means that all running pods (status.phase="Running"), // but not yet healthy are considered disrupted and can be evicted regardless // of whether the criteria in a PDB is met. This means perspective running // pods of a disrupted application might not get a chance to become healthy. // Healthy pods will be subject to the PDB for eviction. // // Additional policies may be added in the future. // Clients making eviction decisions should disallow eviction of unhealthy pods // if they encounter an unrecognized policy in this field. // // This field is beta-level. The eviction API uses this field when // the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default). // +optional UnhealthyPodEvictionPolicy *UnhealthyPodEvictionPolicyType `json:"unhealthyPodEvictionPolicy,omitempty" protobuf:"bytes,4,opt,name=unhealthyPodEvictionPolicy"` } // UnhealthyPodEvictionPolicyType defines the criteria for when unhealthy pods // should be considered for eviction. // +enum type UnhealthyPodEvictionPolicyType string const ( // IfHealthyBudget policy means that running pods (status.phase="Running"), // but not yet healthy can be evicted only if the guarded application is not // disrupted (status.currentHealthy is at least equal to status.desiredHealthy). // Healthy pods will be subject to the PDB for eviction. IfHealthyBudget UnhealthyPodEvictionPolicyType = "IfHealthyBudget" // AlwaysAllow policy means that all running pods (status.phase="Running"), // but not yet healthy are considered disrupted and can be evicted regardless // of whether the criteria in a PDB is met. This means perspective running // pods of a disrupted application might not get a chance to become healthy. // Healthy pods will be subject to the PDB for eviction. AlwaysAllow UnhealthyPodEvictionPolicyType = "AlwaysAllow" ) // 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. DisruptionsAllowed and other // status information 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. DisruptionsAllowed 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"` // Conditions contain conditions for PDB. The disruption controller sets the // DisruptionAllowed condition. The following are known values for the reason field // (additional reasons could be added in the future): // - SyncFailed: The controller encountered an error and wasn't able to compute // the number of allowed disruptions. Therefore no disruptions are // allowed and the status of the condition will be False. // - InsufficientPods: The number of pods are either at or below the number // required by the PodDisruptionBudget. No disruptions are // allowed and the status of the condition will be False. // - SufficientPods: There are more pods than required by the PodDisruptionBudget. // The condition will be True, and the number of allowed // disruptions are provided by the disruptionsAllowed property. // // +optional // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,7,rep,name=conditions"` } const ( // DisruptionAllowedCondition is a condition set by the disruption controller // that signal whether any of the pods covered by the PDB can be disrupted. DisruptionAllowedCondition = "DisruptionAllowed" // SyncFailedReason is set on the DisruptionAllowed condition if reconcile // of the PDB failed and therefore disruption of pods are not allowed. SyncFailedReason = "SyncFailed" // SufficientPodsReason is set on the DisruptionAllowed condition if there are // more pods covered by the PDB than required and at least one can be disrupted. SufficientPodsReason = "SufficientPods" // InsufficientPodsReason is set on the DisruptionAllowed condition if the number // of pods are equal to or fewer than required by the PDB. InsufficientPodsReason = "InsufficientPods" ) // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.5 // +k8s:prerelease-lifecycle-gen:deprecated=1.21 // +k8s:prerelease-lifecycle-gen:removed=1.25 // +k8s:prerelease-lifecycle-gen:replacement=policy,v1,PodDisruptionBudget // 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"` // 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 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.5 // +k8s:prerelease-lifecycle-gen:deprecated=1.21 // +k8s:prerelease-lifecycle-gen:removed=1.25 // +k8s:prerelease-lifecycle-gen:replacement=policy,v1,PodDisruptionBudgetList // PodDisruptionBudgetList is a collection of PodDisruptionBudgets. type PodDisruptionBudgetList 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 list individual PodDisruptionBudget objects Items []PodDisruptionBudget `json:"items" protobuf:"bytes,2,rep,name=items"` } // +genclient // +genclient:noVerbs // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.5 // +k8s:prerelease-lifecycle-gen:deprecated=1.22 // 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"` } golang-k8s-api-0.29.0/policy/v1beta1/types_swagger_doc_generated.go000066400000000000000000000173061453636404600251640ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. 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_PodDisruptionBudget = map[string]string{ "": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection 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 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.", "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "items": "items list individual PodDisruptionBudget objects", } 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. A null selector selects no pods. An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods. In policy/v1, an empty selector will select all pods in the namespace.", "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\".", "unhealthyPodEvictionPolicy": "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.\n\nThis field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default).", } 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. DisruptionsAllowed and other status information 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", "conditions": "Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute\n the number of allowed disruptions. Therefore no disruptions are\n allowed and the status of the condition will be False.\n- InsufficientPods: The number of pods are either at or below the number\n required by the PodDisruptionBudget. No disruptions are\n allowed and the status of the condition will be False.\n- SufficientPods: There are more pods than required by the PodDisruptionBudget.\n The condition will be True, and the number of allowed\n disruptions are provided by the disruptionsAllowed property.", } func (PodDisruptionBudgetStatus) SwaggerDoc() map[string]string { return map_PodDisruptionBudgetStatus } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/policy/v1beta1/zz_generated.deepcopy.go000066400000000000000000000126511453636404600237240ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" intstr "k8s.io/apimachinery/pkg/util/intstr" ) // 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 *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 } if in.UnhealthyPodEvictionPolicy != nil { in, out := &in.UnhealthyPodEvictionPolicy, &out.UnhealthyPodEvictionPolicy *out = new(UnhealthyPodEvictionPolicyType) **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() } } if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]v1.Condition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } 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 } golang-k8s-api-0.29.0/policy/v1beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000117671453636404600262070ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta1 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *Eviction) APILifecycleIntroduced() (major, minor int) { return 1, 5 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *Eviction) APILifecycleDeprecated() (major, minor int) { return 1, 22 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *Eviction) APILifecycleRemoved() (major, minor int) { return 1, 25 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *PodDisruptionBudget) APILifecycleIntroduced() (major, minor int) { return 1, 5 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *PodDisruptionBudget) APILifecycleDeprecated() (major, minor int) { return 1, 21 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *PodDisruptionBudget) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "policy", Version: "v1", Kind: "PodDisruptionBudget"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *PodDisruptionBudget) APILifecycleRemoved() (major, minor int) { return 1, 25 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *PodDisruptionBudgetList) APILifecycleIntroduced() (major, minor int) { return 1, 5 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *PodDisruptionBudgetList) APILifecycleDeprecated() (major, minor int) { return 1, 21 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *PodDisruptionBudgetList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "policy", Version: "v1", Kind: "PodDisruptionBudgetList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *PodDisruptionBudgetList) APILifecycleRemoved() (major, minor int) { return 1, 25 } golang-k8s-api-0.29.0/rbac/000077500000000000000000000000001453636404600152455ustar00rootroot00000000000000golang-k8s-api-0.29.0/rbac/OWNERS000066400000000000000000000003151453636404600162040ustar00rootroot00000000000000# See the OWNERS docs at https://go.k8s.io/owners # approval on api packages bubbles to api-approvers reviewers: - sig-auth-authorizers-approvers - sig-auth-authorizers-reviewers labels: - sig/auth golang-k8s-api-0.29.0/rbac/v1/000077500000000000000000000000001453636404600155735ustar00rootroot00000000000000golang-k8s-api-0.29.0/rbac/v1/doc.go000066400000000000000000000013421453636404600166670ustar00rootroot00000000000000/* 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 "k8s.io/api/rbac/v1" golang-k8s-api-0.29.0/rbac/v1/generated.pb.go000066400000000000000000002331621453636404600204670ustar00rootroot00000000000000/* 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/k8s.io/api/rbac/v1/generated.proto package v1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // 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/k8s.io/api/rbac/v1/generated.proto", fileDescriptor_979ffd7b30c07419) } var fileDescriptor_979ffd7b30c07419 = []byte{ // 809 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x56, 0xcf, 0x6b, 0xe3, 0x46, 0x14, 0xf6, 0x38, 0x36, 0xb1, 0xc6, 0x35, 0x6e, 0xa6, 0xa1, 0x88, 0xb4, 0xc8, 0x41, 0x85, 0x12, 0x68, 0x2b, 0x35, 0x69, 0x69, 0x03, 0x25, 0x87, 0x28, 0xa5, 0x25, 0x24, 0x4d, 0xc3, 0x84, 0xf6, 0x50, 0x7a, 0xe8, 0x48, 0x9e, 0x28, 0x53, 0xeb, 0x17, 0x33, 0x92, 0x21, 0xf4, 0x52, 0x0a, 0x3d, 0xec, 0x6d, 0x8f, 0xbb, 0x7f, 0xc1, 0x5e, 0x76, 0x8f, 0xfb, 0x17, 0xec, 0x25, 0xc7, 0x1c, 0x73, 0x32, 0x1b, 0xed, 0x1f, 0xb2, 0x8b, 0x7e, 0x59, 0xfe, 0xa1, 0x6c, 0x7c, 0x32, 0x2c, 0x7b, 0xb2, 0xe7, 0xbd, 0xef, 0x7d, 0xef, 0x9b, 0x4f, 0x7a, 0xcf, 0x86, 0x3f, 0x0c, 0x76, 0x85, 0xc6, 0x7c, 0x7d, 0x10, 0x99, 0x94, 0x7b, 0x34, 0xa4, 0x42, 0x1f, 0x52, 0xaf, 0xef, 0x73, 0x3d, 0x4f, 0x90, 0x80, 0xe9, 0xdc, 0x24, 0x96, 0x3e, 0xdc, 0xd6, 0x6d, 0xea, 0x51, 0x4e, 0x42, 0xda, 0xd7, 0x02, 0xee, 0x87, 0x3e, 0x42, 0x19, 0x46, 0x23, 0x01, 0xd3, 0x12, 0x8c, 0x36, 0xdc, 0xde, 0xf8, 0xca, 0x66, 0xe1, 0x45, 0x64, 0x6a, 0x96, 0xef, 0xea, 0xb6, 0x6f, 0xfb, 0x7a, 0x0a, 0x35, 0xa3, 0xf3, 0xf4, 0x94, 0x1e, 0xd2, 0x6f, 0x19, 0xc5, 0xc6, 0xb7, 0x65, 0x1b, 0x97, 0x58, 0x17, 0xcc, 0xa3, 0xfc, 0x52, 0x0f, 0x06, 0x76, 0x12, 0x10, 0xba, 0x4b, 0x43, 0x52, 0xd1, 0x78, 0x43, 0xbf, 0xab, 0x8a, 0x47, 0x5e, 0xc8, 0x5c, 0x3a, 0x57, 0xf0, 0xdd, 0x7d, 0x05, 0xc2, 0xba, 0xa0, 0x2e, 0x99, 0xad, 0x53, 0x1f, 0x03, 0xd8, 0xdd, 0xb7, 0x6d, 0x4e, 0x6d, 0x12, 0x32, 0xdf, 0xc3, 0x91, 0x43, 0xd1, 0xff, 0x00, 0xae, 0x5b, 0x4e, 0x24, 0x42, 0xca, 0xb1, 0xef, 0xd0, 0x33, 0xea, 0x50, 0x2b, 0xf4, 0xb9, 0x90, 0xc1, 0xe6, 0xca, 0x56, 0x7b, 0xe7, 0x1b, 0xad, 0x74, 0x65, 0xdc, 0x4b, 0x0b, 0x06, 0x76, 0x12, 0x10, 0x5a, 0x72, 0x25, 0x6d, 0xb8, 0xad, 0x1d, 0x13, 0x93, 0x3a, 0x45, 0xad, 0xf1, 0xe9, 0xd5, 0xa8, 0x57, 0x8b, 0x47, 0xbd, 0xf5, 0x83, 0x0a, 0x62, 0x5c, 0xd9, 0x4e, 0x7d, 0x54, 0x87, 0xed, 0x09, 0x38, 0xfa, 0x0b, 0xb6, 0x12, 0xf2, 0x3e, 0x09, 0x89, 0x0c, 0x36, 0xc1, 0x56, 0x7b, 0xe7, 0xeb, 0xc5, 0xa4, 0xfc, 0x6a, 0xfe, 0x4d, 0xad, 0xf0, 0x17, 0x1a, 0x12, 0x03, 0xe5, 0x3a, 0x60, 0x19, 0xc3, 0x63, 0x56, 0x74, 0x00, 0x9b, 0x3c, 0x72, 0xa8, 0x90, 0xeb, 0xe9, 0x4d, 0x15, 0x6d, 0xfe, 0xf9, 0x6b, 0xa7, 0xbe, 0xc3, 0xac, 0xcb, 0xc4, 0x28, 0xa3, 0x93, 0x93, 0x35, 0x93, 0x93, 0xc0, 0x59, 0x2d, 0x32, 0x61, 0x97, 0x4c, 0x3b, 0x2a, 0xaf, 0xa4, 0x6a, 0x3f, 0xab, 0xa2, 0x9b, 0x31, 0xdf, 0xf8, 0x28, 0x1e, 0xf5, 0x66, 0x9f, 0x08, 0x9e, 0x25, 0x54, 0x1f, 0xd4, 0x21, 0x9a, 0xb0, 0xc6, 0x60, 0x5e, 0x9f, 0x79, 0xf6, 0x12, 0x1c, 0x3a, 0x84, 0x2d, 0x11, 0xa5, 0x89, 0xc2, 0xa4, 0x4f, 0xaa, 0x6e, 0x75, 0x96, 0x61, 0x8c, 0x0f, 0x73, 0xb2, 0x56, 0x1e, 0x10, 0x78, 0x5c, 0x8e, 0x7e, 0x82, 0xab, 0xdc, 0x77, 0x28, 0xa6, 0xe7, 0xb9, 0x3f, 0x95, 0x4c, 0x38, 0x83, 0x18, 0xdd, 0x9c, 0x69, 0x35, 0x0f, 0xe0, 0xa2, 0x58, 0x7d, 0x01, 0xe0, 0xc7, 0xf3, 0x5e, 0x1c, 0x33, 0x11, 0xa2, 0x3f, 0xe7, 0xfc, 0xd0, 0x16, 0x7c, 0x79, 0x99, 0xc8, 0xdc, 0x18, 0x5f, 0xa0, 0x88, 0x4c, 0x78, 0x71, 0x04, 0x9b, 0x2c, 0xa4, 0x6e, 0x61, 0xc4, 0xe7, 0x55, 0xf2, 0xe7, 0x85, 0x95, 0x6f, 0xcd, 0x61, 0x52, 0x8c, 0x33, 0x0e, 0xf5, 0x39, 0x80, 0xdd, 0x09, 0xf0, 0x12, 0xe4, 0xff, 0x38, 0x2d, 0xbf, 0x77, 0x9f, 0xfc, 0x6a, 0xdd, 0xaf, 0x01, 0x84, 0xe5, 0x48, 0xa0, 0x1e, 0x6c, 0x0e, 0x29, 0x37, 0xb3, 0x5d, 0x21, 0x19, 0x52, 0x82, 0xff, 0x3d, 0x09, 0xe0, 0x2c, 0x8e, 0xbe, 0x80, 0x12, 0x09, 0xd8, 0xcf, 0xdc, 0x8f, 0x82, 0xac, 0xb3, 0x64, 0x74, 0xe2, 0x51, 0x4f, 0xda, 0x3f, 0x3d, 0xcc, 0x82, 0xb8, 0xcc, 0x27, 0x60, 0x4e, 0x85, 0x1f, 0x71, 0x8b, 0x0a, 0x79, 0xa5, 0x04, 0xe3, 0x22, 0x88, 0xcb, 0x3c, 0xfa, 0x1e, 0x76, 0x8a, 0xc3, 0x09, 0x71, 0xa9, 0x90, 0x1b, 0x69, 0xc1, 0x5a, 0x3c, 0xea, 0x75, 0xf0, 0x64, 0x02, 0x4f, 0xe3, 0xd0, 0x1e, 0xec, 0x7a, 0xbe, 0x57, 0x40, 0x7e, 0xc3, 0xc7, 0x42, 0x6e, 0xa6, 0xa5, 0xe9, 0x2c, 0x9e, 0x4c, 0xa7, 0xf0, 0x2c, 0x56, 0x7d, 0x06, 0x60, 0xe3, 0x1d, 0xda, 0x4f, 0xea, 0x7f, 0x75, 0xd8, 0x7e, 0xef, 0x97, 0x46, 0x32, 0x6e, 0xcb, 0xdd, 0x16, 0x8b, 0x8c, 0xdb, 0xfd, 0x6b, 0xe2, 0x09, 0x80, 0xad, 0x25, 0xed, 0x87, 0xbd, 0x69, 0xc1, 0xf2, 0x9d, 0x82, 0xab, 0x95, 0xfe, 0x03, 0x0b, 0xd7, 0xd1, 0x97, 0xb0, 0x55, 0xcc, 0x74, 0xaa, 0x53, 0x2a, 0xfb, 0x16, 0x63, 0x8f, 0xc7, 0x08, 0xb4, 0x09, 0x1b, 0x03, 0xe6, 0xf5, 0xe5, 0x7a, 0x8a, 0xfc, 0x20, 0x47, 0x36, 0x8e, 0x98, 0xd7, 0xc7, 0x69, 0x26, 0x41, 0x78, 0xc4, 0xcd, 0x7e, 0x56, 0x27, 0x10, 0xc9, 0x34, 0xe3, 0x34, 0xa3, 0x3e, 0x05, 0x70, 0x35, 0x7f, 0x7b, 0xc6, 0x7c, 0xe0, 0x4e, 0xbe, 0x49, 0x7d, 0xf5, 0x45, 0xf4, 0xbd, 0xbd, 0x3b, 0xd2, 0xa1, 0x94, 0x7c, 0x8a, 0x80, 0x58, 0x54, 0x6e, 0xa4, 0xb0, 0xb5, 0x1c, 0x26, 0x9d, 0x14, 0x09, 0x5c, 0x62, 0x8c, 0xdd, 0xab, 0x5b, 0xa5, 0x76, 0x7d, 0xab, 0xd4, 0x6e, 0x6e, 0x95, 0xda, 0xbf, 0xb1, 0x02, 0xae, 0x62, 0x05, 0x5c, 0xc7, 0x0a, 0xb8, 0x89, 0x15, 0xf0, 0x32, 0x56, 0xc0, 0xc3, 0x57, 0x4a, 0xed, 0x0f, 0x34, 0xff, 0x8f, 0xf5, 0x4d, 0x00, 0x00, 0x00, 0xff, 0xff, 0xec, 0x4f, 0xa6, 0x29, 0xdf, 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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/rbac/v1/generated.proto000066400000000000000000000172231453636404600206230ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/rbac/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. // This field is immutable. 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 contained in this rule. '*' represents all verbs. 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. "" represents the core API group and "*" represents all API groups. // +optional repeated string apiGroups = 2; // Resources is a list of resources this rule applies to. '*' 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. // This field is immutable. 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 // +structType=atomic 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. // +structType=atomic 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; } golang-k8s-api-0.29.0/rbac/v1/register.go000066400000000000000000000034201453636404600177450ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to 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 } golang-k8s-api-0.29.0/rbac/v1/types.go000066400000000000000000000241751453636404600172770ustar00rootroot00000000000000/* 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 "k8s.io/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 contained in this rule. '*' represents all verbs. 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. "" represents the core API group and "*" represents all API groups. // +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. // +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. // +structType=atomic 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 // +structType=atomic 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=k8s.io/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=k8s.io/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. // This field is immutable. RoleRef RoleRef `json:"roleRef" protobuf:"bytes,3,opt,name=roleRef"` } // +k8s:deepcopy-gen:interfaces=k8s.io/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=k8s.io/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=k8s.io/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=k8s.io/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. // This field is immutable. RoleRef RoleRef `json:"roleRef" protobuf:"bytes,3,opt,name=roleRef"` } // +k8s:deepcopy-gen:interfaces=k8s.io/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=k8s.io/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"` } golang-k8s-api-0.29.0/rbac/v1/types_swagger_doc_generated.go000066400000000000000000000175161453636404600236620ustar00rootroot00000000000000/* 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-codegen.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. This field is immutable.", } 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 contained in this rule. '*' represents all verbs.", "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. \"\" represents the core API group and \"*\" represents all API groups.", "resources": "Resources is a list of resources this rule applies to. '*' 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. This field is immutable.", } 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 golang-k8s-api-0.29.0/rbac/v1/zz_generated.deepcopy.go000066400000000000000000000251061453636404600224160ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *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 } golang-k8s-api-0.29.0/rbac/v1alpha1/000077500000000000000000000000001453636404600166625ustar00rootroot00000000000000golang-k8s-api-0.29.0/rbac/v1alpha1/doc.go000066400000000000000000000013561453636404600177630ustar00rootroot00000000000000/* 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 "k8s.io/api/rbac/v1alpha1" golang-k8s-api-0.29.0/rbac/v1alpha1/generated.pb.go000066400000000000000000002335561453636404600215650ustar00rootroot00000000000000/* 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/k8s.io/api/rbac/v1alpha1/generated.proto package v1alpha1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // 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/k8s.io/api/rbac/v1alpha1/generated.proto", fileDescriptor_b59b0bd5e7cb9590) } var fileDescriptor_b59b0bd5e7cb9590 = []byte{ // 833 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 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, 0x20, 0xc5, 0x57, 0xa0, 0x40, 0xd8, 0x5b, 0xe6, 0xc4, 0x15, 0x88, 0x82, 0x89, 0x33, 0xe7, 0x0c, 0xb1, 0x3d, 0xd6, 0x8c, 0x1d, 0xe9, 0x44, 0x43, 0x43, 0x8b, 0x68, 0x28, 0xe8, 0x69, 0x69, 0xa0, 0xe4, 0x1f, 0x58, 0xba, 0x2b, 0xb7, 0x8a, 0x58, 0xf3, 0x87, 0x80, 0x3c, 0xb6, 0x63, 0xe7, 0x17, 0x49, 0x15, 0x09, 0x89, 0x2a, 0x99, 0xf7, 0xbe, 0xf7, 0xbd, 0xf7, 0xbe, 0x99, 0xf7, 0x12, 0xd8, 0x9f, 0xbe, 0x2f, 0x4d, 0xc6, 0xad, 0x69, 0x3c, 0xa2, 0x22, 0xa0, 0x11, 0x95, 0xd6, 0x8c, 0x06, 0x63, 0x2e, 0xac, 0xdc, 0x41, 0x42, 0x66, 0x89, 0x11, 0x71, 0xac, 0xd9, 0x39, 0xf1, 0xc2, 0x09, 0x39, 0xb7, 0x5c, 0x1a, 0x50, 0x41, 0x22, 0x3a, 0x36, 0x43, 0xc1, 0x23, 0x8e, 0xb4, 0x0c, 0x69, 0x92, 0x90, 0x99, 0x29, 0xd2, 0x2c, 0x90, 0xa7, 0x6f, 0xba, 0x2c, 0x9a, 0xc4, 0x23, 0xd3, 0xe1, 0xbe, 0xe5, 0x72, 0x97, 0x5b, 0x2a, 0x60, 0x14, 0x3f, 0x51, 0x27, 0x75, 0x50, 0xdf, 0x32, 0xa2, 0xd3, 0x77, 0xca, 0x94, 0x3e, 0x71, 0x26, 0x2c, 0xa0, 0xe2, 0xa9, 0x15, 0x4e, 0xdd, 0xd4, 0x20, 0x2d, 0x9f, 0x46, 0xc4, 0x9a, 0xad, 0xa5, 0x3f, 0xb5, 0xb6, 0x45, 0x89, 0x38, 0x88, 0x98, 0x4f, 0xd7, 0x02, 0xde, 0xdd, 0x15, 0x20, 0x9d, 0x09, 0xf5, 0xc9, 0x6a, 0x9c, 0xf1, 0x13, 0x80, 0xdd, 0xbe, 0xeb, 0x0a, 0xea, 0x92, 0x88, 0xf1, 0x00, 0xc7, 0x1e, 0x45, 0xdf, 0x01, 0x78, 0xd7, 0xf1, 0x62, 0x19, 0x51, 0x81, 0xb9, 0x47, 0x1f, 0x51, 0x8f, 0x3a, 0x11, 0x17, 0x52, 0x03, 0x67, 0x47, 0xf7, 0x4e, 0x2e, 0xde, 0x36, 0x4b, 0x6d, 0x16, 0xb9, 0xcc, 0x70, 0xea, 0xa6, 0x06, 0x69, 0xa6, 0x2d, 0x99, 0xb3, 0x73, 0x73, 0x48, 0x46, 0xd4, 0x2b, 0x62, 0xed, 0x97, 0xaf, 0xe7, 0xbd, 0x5a, 0x32, 0xef, 0xdd, 0x7d, 0xb0, 0x81, 0x18, 0x6f, 0x4c, 0x67, 0xfc, 0x5c, 0x87, 0x27, 0x15, 0x38, 0xfa, 0x0a, 0xb6, 0x52, 0xf2, 0x31, 0x89, 0x88, 0x06, 0xce, 0xc0, 0xbd, 0x93, 0x8b, 0xb7, 0xf6, 0x2b, 0xe5, 0xe1, 0xe8, 0x6b, 0xea, 0x44, 0x9f, 0xd2, 0x88, 0xd8, 0x28, 0xaf, 0x03, 0x96, 0x36, 0xbc, 0x60, 0x45, 0x03, 0xd8, 0x14, 0xb1, 0x47, 0xa5, 0x56, 0x57, 0x9d, 0xbe, 0x6a, 0x6e, 0x7b, 0x05, 0xe6, 0x15, 0xf7, 0x98, 0xf3, 0x34, 0x95, 0xcb, 0xee, 0xe4, 0x94, 0xcd, 0xf4, 0x24, 0x71, 0xc6, 0x80, 0x26, 0xb0, 0x4b, 0x96, 0x75, 0xd5, 0x8e, 0x54, 0xcd, 0xaf, 0x6f, 0x27, 0x5d, 0xb9, 0x08, 0xfb, 0xc5, 0x64, 0xde, 0x5b, 0xbd, 0x1d, 0xbc, 0x4a, 0x6b, 0xfc, 0x58, 0x87, 0xa8, 0x22, 0x93, 0xcd, 0x82, 0x31, 0x0b, 0xdc, 0x03, 0xa8, 0xf5, 0x10, 0xb6, 0x64, 0xac, 0x1c, 0x85, 0x60, 0xaf, 0x6c, 0xef, 0xed, 0x51, 0x86, 0xb4, 0x5f, 0xc8, 0x29, 0x5b, 0xb9, 0x41, 0xe2, 0x05, 0x09, 0x1a, 0xc2, 0x63, 0xc1, 0x3d, 0x8a, 0xe9, 0x93, 0x5c, 0xab, 0x7f, 0xe1, 0xc3, 0x19, 0xd0, 0xee, 0xe6, 0x7c, 0xc7, 0xb9, 0x01, 0x17, 0x14, 0xc6, 0x1f, 0x00, 0xbe, 0xb4, 0xae, 0xcb, 0x90, 0xc9, 0x08, 0x7d, 0xb9, 0xa6, 0x8d, 0xb9, 0xe7, 0xa3, 0x66, 0x32, 0x53, 0x66, 0xd1, 0x46, 0x61, 0xa9, 0xe8, 0xf2, 0x19, 0x6c, 0xb2, 0x88, 0xfa, 0x85, 0x28, 0xf7, 0xb7, 0x37, 0xb1, 0x5e, 0x5e, 0xf9, 0x9a, 0x06, 0x29, 0x05, 0xce, 0x98, 0x8c, 0xdf, 0x01, 0xec, 0x56, 0xc0, 0x07, 0x68, 0xe2, 0xe3, 0xe5, 0x26, 0x5e, 0xdb, 0xaf, 0x89, 0xcd, 0xd5, 0xff, 0x0d, 0x20, 0x2c, 0x07, 0x06, 0xf5, 0x60, 0x73, 0x46, 0xc5, 0x28, 0xdb, 0x27, 0x6d, 0xbb, 0x9d, 0xe2, 0x1f, 0xa7, 0x06, 0x9c, 0xd9, 0xd1, 0x1b, 0xb0, 0x4d, 0x42, 0xf6, 0x91, 0xe0, 0x71, 0x28, 0xb5, 0x23, 0x05, 0xea, 0x24, 0xf3, 0x5e, 0xbb, 0x7f, 0x35, 0xc8, 0x8c, 0xb8, 0xf4, 0xa7, 0x60, 0x41, 0x25, 0x8f, 0x85, 0x43, 0xa5, 0xd6, 0x28, 0xc1, 0xb8, 0x30, 0xe2, 0xd2, 0x8f, 0xde, 0x83, 0x9d, 0xe2, 0x70, 0x49, 0x7c, 0x2a, 0xb5, 0xa6, 0x0a, 0xb8, 0x93, 0xcc, 0x7b, 0x1d, 0x5c, 0x75, 0xe0, 0x65, 0x1c, 0xfa, 0x00, 0x76, 0x03, 0x1e, 0x14, 0x90, 0xcf, 0xf1, 0x50, 0x6a, 0xcf, 0xa9, 0x50, 0x35, 0xa3, 0x97, 0xcb, 0x2e, 0xbc, 0x8a, 0x35, 0x7e, 0x03, 0xb0, 0xf1, 0x9f, 0xdb, 0x61, 0xc6, 0xf7, 0x75, 0x78, 0xf2, 0xff, 0x4a, 0xa9, 0xac, 0x94, 0x74, 0x0c, 0x0f, 0xbb, 0x4b, 0xf6, 0x1f, 0xc3, 0xdd, 0x4b, 0xe4, 0x17, 0x00, 0x5b, 0x07, 0xda, 0x1e, 0x0f, 0x96, 0xcb, 0xd6, 0x77, 0x94, 0xbd, 0xb9, 0xde, 0x6f, 0x60, 0x71, 0x03, 0xe8, 0x3e, 0x6c, 0x15, 0x13, 0xaf, 0xaa, 0x6d, 0x97, 0xd9, 0x8b, 0xa5, 0x80, 0x17, 0x08, 0x74, 0x06, 0x1b, 0x53, 0x16, 0x8c, 0xb5, 0xba, 0x42, 0x3e, 0x9f, 0x23, 0x1b, 0x9f, 0xb0, 0x60, 0x8c, 0x95, 0x27, 0x45, 0x04, 0xc4, 0xcf, 0x7e, 0x92, 0x2b, 0x88, 0x74, 0xd6, 0xb1, 0xf2, 0x18, 0xbf, 0x02, 0x78, 0x9c, 0xbf, 0xa7, 0x05, 0x1f, 0xd8, 0xca, 0x77, 0x01, 0x21, 0x09, 0xd9, 0x63, 0x2a, 0x24, 0xe3, 0x41, 0x9e, 0x77, 0xf1, 0xd2, 0xfb, 0x57, 0x83, 0xdc, 0x83, 0x2b, 0xa8, 0xdd, 0x35, 0x20, 0x0b, 0xb6, 0xd3, 0x4f, 0x19, 0x12, 0x87, 0x6a, 0x0d, 0x05, 0xbb, 0x93, 0xc3, 0xda, 0x97, 0x85, 0x03, 0x97, 0x18, 0xfb, 0xc3, 0xeb, 0x5b, 0xbd, 0xf6, 0xec, 0x56, 0xaf, 0xdd, 0xdc, 0xea, 0xb5, 0x6f, 0x13, 0x1d, 0x5c, 0x27, 0x3a, 0x78, 0x96, 0xe8, 0xe0, 0x26, 0xd1, 0xc1, 0x9f, 0x89, 0x0e, 0x7e, 0xf8, 0x4b, 0xaf, 0x7d, 0xa1, 0x6d, 0xfb, 0x17, 0xfc, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1b, 0x0e, 0xba, 0xc2, 0x39, 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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/rbac/v1alpha1/generated.proto000066400000000000000000000210361453636404600217070ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/rbac/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. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.22. 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. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.22. 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. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.22. 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. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.22. 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 contained in this rule. '*' represents all verbs. 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. "" represents the core API group and "*" represents all API groups. // +optional repeated string apiGroups = 3; // Resources is a list of resources this rule applies to. '*' 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 // 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. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.22. 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. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.22. 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 // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.22. 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. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.22. 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; } golang-k8s-api-0.29.0/rbac/v1alpha1/register.go000066400000000000000000000034341453636404600210410ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to 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 } golang-k8s-api-0.29.0/rbac/v1alpha1/types.go000066400000000000000000000260071453636404600203620ustar00rootroot00000000000000/* 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 "k8s.io/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 contained in this rule. '*' represents all verbs. 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. "" represents the core API group and "*" represents all API groups. // +optional APIGroups []string `json:"apiGroups,omitempty" protobuf:"bytes,3,rep,name=apiGroups"` // Resources is a list of resources this rule applies to. '*' 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 // 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=k8s.io/apimachinery/pkg/runtime.Object // Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.22. 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=k8s.io/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. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.22. 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=k8s.io/apimachinery/pkg/runtime.Object // RoleBindingList is a collection of RoleBindings // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.22. 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=k8s.io/apimachinery/pkg/runtime.Object // RoleList is a collection of Roles. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.22. 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=k8s.io/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. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.22. 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=k8s.io/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. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.22. 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=k8s.io/apimachinery/pkg/runtime.Object // ClusterRoleBindingList is a collection of ClusterRoleBindings. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.22. 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=k8s.io/apimachinery/pkg/runtime.Object // ClusterRoleList is a collection of ClusterRoles. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.22. 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"` } golang-k8s-api-0.29.0/rbac/v1alpha1/types_swagger_doc_generated.go000066400000000000000000000213251453636404600247420ustar00rootroot00000000000000/* 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-codegen.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. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.22.", "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. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.22.", "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. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.22.", "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. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.22.", "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 contained in this rule. '*' represents all verbs.", "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. \"\" represents the core API group and \"*\" represents all API groups.", "resources": "Resources is a list of resources this rule applies to. '*' 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. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.22.", "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. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.22.", "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 Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.22.", "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. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.22.", "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 golang-k8s-api-0.29.0/rbac/v1alpha1/zz_generated.deepcopy.go000066400000000000000000000251041453636404600235030ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *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 } golang-k8s-api-0.29.0/rbac/v1beta1/000077500000000000000000000000001453636404600165105ustar00rootroot00000000000000golang-k8s-api-0.29.0/rbac/v1beta1/doc.go000066400000000000000000000014221453636404600176030ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true // +groupName=rbac.authorization.k8s.io package v1beta1 // import "k8s.io/api/rbac/v1beta1" golang-k8s-api-0.29.0/rbac/v1beta1/generated.pb.go000066400000000000000000002333171453636404600214060ustar00rootroot00000000000000/* 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/k8s.io/api/rbac/v1beta1/generated.proto package v1beta1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // 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/k8s.io/api/rbac/v1beta1/generated.proto", fileDescriptor_99f6bec96facc83d) } var fileDescriptor_99f6bec96facc83d = []byte{ // 812 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xbd, 0x6f, 0x2b, 0x45, 0x10, 0xf7, 0x3a, 0xb6, 0xe2, 0x5b, 0x63, 0x99, 0xb7, 0x3c, 0xf1, 0x4e, 0x11, 0x9c, 0x2d, 0x43, 0x11, 0xe9, 0xc1, 0x1d, 0x79, 0x20, 0xa0, 0x89, 0x44, 0x8e, 0x02, 0xa2, 0x04, 0x13, 0x6d, 0x04, 0x05, 0xa2, 0x60, 0xef, 0xbc, 0xb9, 0x2c, 0xbe, 0x2f, 0xed, 0xde, 0x59, 0x8a, 0x68, 0x68, 0xe8, 0x28, 0x90, 0xa8, 0x68, 0xa9, 0xa9, 0x28, 0xf9, 0x0b, 0x5c, 0xa6, 0x4c, 0x65, 0x91, 0xe3, 0x0f, 0x01, 0xed, 0x7d, 0xf8, 0xfc, 0x75, 0x89, 0x2b, 0x4b, 0x48, 0xaf, 0xb2, 0x77, 0xe6, 0x37, 0xbf, 0x99, 0xf9, 0xed, 0xce, 0xd8, 0xf0, 0x93, 0xf1, 0xc7, 0x42, 0x67, 0x81, 0x31, 0x8e, 0x2d, 0xca, 0x7d, 0x1a, 0x51, 0x61, 0x4c, 0xa8, 0x3f, 0x0a, 0xb8, 0x91, 0x3b, 0x48, 0xc8, 0x0c, 0x6e, 0x11, 0xdb, 0x98, 0x1c, 0x59, 0x34, 0x22, 0x47, 0x86, 0x43, 0x7d, 0xca, 0x49, 0x44, 0x47, 0x7a, 0xc8, 0x83, 0x28, 0x40, 0xcf, 0x32, 0xa0, 0x4e, 0x42, 0xa6, 0x4b, 0xa0, 0x9e, 0x03, 0x0f, 0xde, 0x75, 0x58, 0x74, 0x1d, 0x5b, 0xba, 0x1d, 0x78, 0x86, 0x13, 0x38, 0x81, 0x91, 0xe2, 0xad, 0xf8, 0x2a, 0x3d, 0xa5, 0x87, 0xf4, 0x5b, 0xc6, 0x73, 0xf0, 0x41, 0x99, 0xd0, 0x23, 0xf6, 0x35, 0xf3, 0x29, 0xbf, 0x31, 0xc2, 0xb1, 0x23, 0x0d, 0xc2, 0xf0, 0x68, 0x44, 0x8c, 0xc9, 0x5a, 0xf6, 0x03, 0xa3, 0x2a, 0x8a, 0xc7, 0x7e, 0xc4, 0x3c, 0xba, 0x16, 0xf0, 0xe1, 0x63, 0x01, 0xc2, 0xbe, 0xa6, 0x1e, 0x59, 0x8d, 0x1b, 0xfc, 0x06, 0x60, 0xf7, 0xc4, 0x71, 0x38, 0x75, 0x48, 0xc4, 0x02, 0x1f, 0xc7, 0x2e, 0x45, 0x3f, 0x01, 0xf8, 0xd4, 0x76, 0x63, 0x11, 0x51, 0x8e, 0x03, 0x97, 0x5e, 0x52, 0x97, 0xda, 0x51, 0xc0, 0x85, 0x0a, 0xfa, 0x7b, 0x87, 0xed, 0x17, 0xef, 0xeb, 0xa5, 0x34, 0xf3, 0x5c, 0x7a, 0x38, 0x76, 0xa4, 0x41, 0xe8, 0xb2, 0x25, 0x7d, 0x72, 0xa4, 0x9f, 0x13, 0x8b, 0xba, 0x45, 0xac, 0xf9, 0xc6, 0x74, 0xd6, 0xab, 0x25, 0xb3, 0xde, 0xd3, 0x4f, 0x37, 0x10, 0xe3, 0x8d, 0xe9, 0x06, 0xbf, 0xd7, 0x61, 0x7b, 0x01, 0x8e, 0xbe, 0x83, 0x2d, 0x49, 0x3e, 0x22, 0x11, 0x51, 0x41, 0x1f, 0x1c, 0xb6, 0x5f, 0xbc, 0xb7, 0x5d, 0x29, 0x5f, 0x5a, 0xdf, 0x53, 0x3b, 0xfa, 0x82, 0x46, 0xc4, 0x44, 0x79, 0x1d, 0xb0, 0xb4, 0xe1, 0x39, 0x2b, 0xfa, 0x1c, 0x36, 0x79, 0xec, 0x52, 0xa1, 0xd6, 0xd3, 0x4e, 0xdf, 0xd2, 0x2b, 0x1e, 0x81, 0x7e, 0x11, 0xb8, 0xcc, 0xbe, 0x91, 0x6a, 0x99, 0x9d, 0x9c, 0xb1, 0x29, 0x4f, 0x02, 0x67, 0x04, 0xc8, 0x81, 0x5d, 0xb2, 0x2c, 0xab, 0xba, 0x97, 0x96, 0x7c, 0x58, 0xc9, 0xb9, 0x72, 0x0d, 0xe6, 0x6b, 0xc9, 0xac, 0xb7, 0x7a, 0x37, 0x78, 0x95, 0x75, 0xf0, 0x6b, 0x1d, 0xa2, 0x05, 0x91, 0x4c, 0xe6, 0x8f, 0x98, 0xef, 0xec, 0x40, 0xab, 0x21, 0x6c, 0x89, 0x38, 0x75, 0x14, 0x72, 0xf5, 0x2b, 0x5b, 0xbb, 0xcc, 0x80, 0xe6, 0xab, 0x39, 0x63, 0x2b, 0x37, 0x08, 0x3c, 0xe7, 0x40, 0x67, 0x70, 0x9f, 0x07, 0x2e, 0xc5, 0xf4, 0x2a, 0x57, 0xaa, 0x9a, 0x0e, 0x67, 0x38, 0xb3, 0x9b, 0xd3, 0xed, 0xe7, 0x06, 0x5c, 0x30, 0x0c, 0xa6, 0x00, 0xbe, 0xbe, 0xae, 0xca, 0x39, 0x13, 0x11, 0xfa, 0x76, 0x4d, 0x19, 0x7d, 0xcb, 0x07, 0xcd, 0x44, 0xa6, 0xcb, 0xbc, 0x8b, 0xc2, 0xb2, 0xa0, 0xca, 0x05, 0x6c, 0xb2, 0x88, 0x7a, 0x85, 0x24, 0xcf, 0x2b, 0x7b, 0x58, 0xaf, 0xae, 0x7c, 0x49, 0xa7, 0x92, 0x01, 0x67, 0x44, 0x83, 0xbf, 0x00, 0xec, 0x2e, 0x80, 0x77, 0xd0, 0xc3, 0xe9, 0x72, 0x0f, 0x6f, 0x6f, 0xd5, 0xc3, 0xe6, 0xe2, 0xff, 0x05, 0x10, 0x96, 0xb3, 0x82, 0x7a, 0xb0, 0x39, 0xa1, 0xdc, 0xca, 0x36, 0x89, 0x62, 0x2a, 0x12, 0xff, 0xb5, 0x34, 0xe0, 0xcc, 0x8e, 0x9e, 0x43, 0x85, 0x84, 0xec, 0x33, 0x1e, 0xc4, 0x61, 0x96, 0x5e, 0x31, 0x3b, 0xc9, 0xac, 0xa7, 0x9c, 0x5c, 0x9c, 0x66, 0x46, 0x5c, 0xfa, 0x25, 0x98, 0x53, 0x11, 0xc4, 0xdc, 0xa6, 0x42, 0xdd, 0x2b, 0xc1, 0xb8, 0x30, 0xe2, 0xd2, 0x8f, 0x3e, 0x82, 0x9d, 0xe2, 0x30, 0x24, 0x1e, 0x15, 0x6a, 0x23, 0x0d, 0x78, 0x92, 0xcc, 0x7a, 0x1d, 0xbc, 0xe8, 0xc0, 0xcb, 0x38, 0x74, 0x0c, 0xbb, 0x7e, 0xe0, 0x17, 0x90, 0xaf, 0xf0, 0xb9, 0x50, 0x9b, 0x69, 0x68, 0x3a, 0x9f, 0xc3, 0x65, 0x17, 0x5e, 0xc5, 0x0e, 0xfe, 0x04, 0xb0, 0xf1, 0x7f, 0xdb, 0x5e, 0x83, 0x9f, 0xeb, 0xb0, 0xfd, 0x72, 0x9b, 0xcc, 0xb7, 0x89, 0x1c, 0xc1, 0xdd, 0xae, 0x91, 0xad, 0x47, 0xf0, 0xf1, 0xfd, 0xf1, 0x07, 0x80, 0xad, 0x1d, 0x2d, 0x0e, 0x73, 0xb9, 0xea, 0x37, 0x1f, 0xae, 0x7a, 0x73, 0xb9, 0x3f, 0xc0, 0x42, 0x7f, 0xf4, 0x0e, 0x6c, 0x15, 0xc3, 0x9e, 0x16, 0xab, 0x94, 0xc9, 0x8b, 0x7d, 0x80, 0xe7, 0x08, 0xd4, 0x87, 0x8d, 0x31, 0xf3, 0x47, 0x6a, 0x3d, 0x45, 0xbe, 0x92, 0x23, 0x1b, 0x67, 0xcc, 0x1f, 0xe1, 0xd4, 0x23, 0x11, 0x3e, 0xf1, 0xb2, 0x1f, 0xe2, 0x05, 0x84, 0x1c, 0x73, 0x9c, 0x7a, 0xa4, 0x56, 0xfb, 0xf9, 0x63, 0x9a, 0xf3, 0x81, 0x4a, 0xbe, 0xc5, 0xfa, 0xea, 0xdb, 0xd4, 0xf7, 0x70, 0x76, 0x64, 0x40, 0x45, 0x7e, 0x8a, 0x90, 0xd8, 0x54, 0x6d, 0xa4, 0xb0, 0x27, 0x39, 0x4c, 0x19, 0x16, 0x0e, 0x5c, 0x62, 0xcc, 0xe3, 0xe9, 0xbd, 0x56, 0xbb, 0xbd, 0xd7, 0x6a, 0x77, 0xf7, 0x5a, 0xed, 0xc7, 0x44, 0x03, 0xd3, 0x44, 0x03, 0xb7, 0x89, 0x06, 0xee, 0x12, 0x0d, 0xfc, 0x9d, 0x68, 0xe0, 0x97, 0x7f, 0xb4, 0xda, 0x37, 0xcf, 0x2a, 0xfe, 0xf2, 0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, 0xf7, 0xdd, 0xcc, 0x2b, 0x25, 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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/rbac/v1beta1/generated.proto000066400000000000000000000211341453636404600215340ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/rbac/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. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.22. 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. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.22. 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. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindingList, and will no longer be served in v1.22. 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. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.22. 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 contained in this rule. '*' represents all verbs. 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. "" represents the core API group and "*" represents all API groups. // +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. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.22. 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. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.22. 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 // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.22. 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 // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.22. 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; } golang-k8s-api-0.29.0/rbac/v1beta1/register.go000066400000000000000000000034321453636404600206650ustar00rootroot00000000000000/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package v1beta1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) 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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to 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 } golang-k8s-api-0.29.0/rbac/v1beta1/types.go000066400000000000000000000315711453636404600202120ustar00rootroot00000000000000/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package v1beta1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // 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 contained in this rule. '*' represents all verbs. 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. "" represents the core API group and "*" represents all API groups. // +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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.6 // +k8s:prerelease-lifecycle-gen:deprecated=1.17 // +k8s:prerelease-lifecycle-gen:removed=1.22 // +k8s:prerelease-lifecycle-gen:replacement=rbac.authorization.k8s.io,v1,Role // Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.22. 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.6 // +k8s:prerelease-lifecycle-gen:deprecated=1.17 // +k8s:prerelease-lifecycle-gen:removed=1.22 // +k8s:prerelease-lifecycle-gen:replacement=rbac.authorization.k8s.io,v1,RoleBinding // 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. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.22. 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.6 // +k8s:prerelease-lifecycle-gen:deprecated=1.17 // +k8s:prerelease-lifecycle-gen:removed=1.22 // +k8s:prerelease-lifecycle-gen:replacement=rbac.authorization.k8s.io,v1,RoleBindingList // RoleBindingList is a collection of RoleBindings // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.22. 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.6 // +k8s:prerelease-lifecycle-gen:deprecated=1.17 // +k8s:prerelease-lifecycle-gen:removed=1.22 // +k8s:prerelease-lifecycle-gen:replacement=rbac.authorization.k8s.io,v1,RoleList // RoleList is a collection of Roles // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.22. 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.6 // +k8s:prerelease-lifecycle-gen:deprecated=1.17 // +k8s:prerelease-lifecycle-gen:removed=1.22 // +k8s:prerelease-lifecycle-gen:replacement=rbac.authorization.k8s.io,v1,ClusterRole // ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.22. 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.6 // +k8s:prerelease-lifecycle-gen:deprecated=1.17 // +k8s:prerelease-lifecycle-gen:removed=1.22 // +k8s:prerelease-lifecycle-gen:replacement=rbac.authorization.k8s.io,v1,ClusterRoleBinding // ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, // and adds who information via Subject. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.22. 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.6 // +k8s:prerelease-lifecycle-gen:deprecated=1.17 // +k8s:prerelease-lifecycle-gen:removed=1.22 // +k8s:prerelease-lifecycle-gen:replacement=rbac.authorization.k8s.io,v1,ClusterRoleBindingList // ClusterRoleBindingList is a collection of ClusterRoleBindings. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindingList, and will no longer be served in v1.22. 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.6 // +k8s:prerelease-lifecycle-gen:deprecated=1.17 // +k8s:prerelease-lifecycle-gen:removed=1.22 // +k8s:prerelease-lifecycle-gen:replacement=rbac.authorization.k8s.io,v1,ClusterRoleList // ClusterRoleList is a collection of ClusterRoles. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.22. 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"` } golang-k8s-api-0.29.0/rbac/v1beta1/types_swagger_doc_generated.go000066400000000000000000000214531453636404600245720ustar00rootroot00000000000000/* 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-codegen.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. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.22.", "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. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.22.", "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. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindingList, and will no longer be served in v1.22.", "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. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.22.", "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 contained in this rule. '*' represents all verbs.", "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. \"\" represents the core API group and \"*\" represents all API groups.", "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. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.22.", "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. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.22.", "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 Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.22.", "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 Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.22.", "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 golang-k8s-api-0.29.0/rbac/v1beta1/zz_generated.deepcopy.go000066400000000000000000000251031453636404600233300ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *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 } golang-k8s-api-0.29.0/rbac/v1beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000322221453636404600256040ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta1 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ClusterRole) APILifecycleIntroduced() (major, minor int) { return 1, 6 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ClusterRole) APILifecycleDeprecated() (major, minor int) { return 1, 17 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *ClusterRole) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "rbac.authorization.k8s.io", Version: "v1", Kind: "ClusterRole"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ClusterRole) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ClusterRoleBinding) APILifecycleIntroduced() (major, minor int) { return 1, 6 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ClusterRoleBinding) APILifecycleDeprecated() (major, minor int) { return 1, 17 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *ClusterRoleBinding) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "rbac.authorization.k8s.io", Version: "v1", Kind: "ClusterRoleBinding"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ClusterRoleBinding) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ClusterRoleBindingList) APILifecycleIntroduced() (major, minor int) { return 1, 6 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ClusterRoleBindingList) APILifecycleDeprecated() (major, minor int) { return 1, 17 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *ClusterRoleBindingList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "rbac.authorization.k8s.io", Version: "v1", Kind: "ClusterRoleBindingList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ClusterRoleBindingList) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *ClusterRoleList) APILifecycleIntroduced() (major, minor int) { return 1, 6 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *ClusterRoleList) APILifecycleDeprecated() (major, minor int) { return 1, 17 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *ClusterRoleList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "rbac.authorization.k8s.io", Version: "v1", Kind: "ClusterRoleList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *ClusterRoleList) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *Role) APILifecycleIntroduced() (major, minor int) { return 1, 6 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *Role) APILifecycleDeprecated() (major, minor int) { return 1, 17 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *Role) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "rbac.authorization.k8s.io", Version: "v1", Kind: "Role"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *Role) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *RoleBinding) APILifecycleIntroduced() (major, minor int) { return 1, 6 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *RoleBinding) APILifecycleDeprecated() (major, minor int) { return 1, 17 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *RoleBinding) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "rbac.authorization.k8s.io", Version: "v1", Kind: "RoleBinding"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *RoleBinding) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *RoleBindingList) APILifecycleIntroduced() (major, minor int) { return 1, 6 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *RoleBindingList) APILifecycleDeprecated() (major, minor int) { return 1, 17 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *RoleBindingList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "rbac.authorization.k8s.io", Version: "v1", Kind: "RoleBindingList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *RoleBindingList) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *RoleList) APILifecycleIntroduced() (major, minor int) { return 1, 6 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *RoleList) APILifecycleDeprecated() (major, minor int) { return 1, 17 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *RoleList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "rbac.authorization.k8s.io", Version: "v1", Kind: "RoleList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *RoleList) APILifecycleRemoved() (major, minor int) { return 1, 22 } golang-k8s-api-0.29.0/resource/000077500000000000000000000000001453636404600161655ustar00rootroot00000000000000golang-k8s-api-0.29.0/resource/OWNERS000066400000000000000000000001401453636404600171200ustar00rootroot00000000000000# See the OWNERS docs at https://go.k8s.io/owners reviewers: - bart0sh - klueska - pohly golang-k8s-api-0.29.0/resource/v1alpha2/000077500000000000000000000000001453636404600176035ustar00rootroot00000000000000golang-k8s-api-0.29.0/resource/v1alpha2/doc.go000066400000000000000000000014511453636404600207000ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 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 // +groupName=resource.k8s.io // Package v1alpha2 is the v1alpha2 version of the resource API. package v1alpha2 // import "k8s.io/api/resource/v1alpha2" golang-k8s-api-0.29.0/resource/v1alpha2/generated.pb.go000066400000000000000000003602621453636404600225010ustar00rootroot00000000000000/* 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/k8s.io/api/resource/v1alpha2/generated.proto package v1alpha2 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" v1 "k8s.io/api/core/v1" math "math" math_bits "math/bits" reflect "reflect" strings "strings" k8s_io_apimachinery_pkg_types "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *AllocationResult) Reset() { *m = AllocationResult{} } func (*AllocationResult) ProtoMessage() {} func (*AllocationResult) Descriptor() ([]byte, []int) { return fileDescriptor_3add37bbd52889e0, []int{0} } func (m *AllocationResult) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *AllocationResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *AllocationResult) XXX_Merge(src proto.Message) { xxx_messageInfo_AllocationResult.Merge(m, src) } func (m *AllocationResult) XXX_Size() int { return m.Size() } func (m *AllocationResult) XXX_DiscardUnknown() { xxx_messageInfo_AllocationResult.DiscardUnknown(m) } var xxx_messageInfo_AllocationResult proto.InternalMessageInfo func (m *PodSchedulingContext) Reset() { *m = PodSchedulingContext{} } func (*PodSchedulingContext) ProtoMessage() {} func (*PodSchedulingContext) Descriptor() ([]byte, []int) { return fileDescriptor_3add37bbd52889e0, []int{1} } func (m *PodSchedulingContext) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PodSchedulingContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PodSchedulingContext) XXX_Merge(src proto.Message) { xxx_messageInfo_PodSchedulingContext.Merge(m, src) } func (m *PodSchedulingContext) XXX_Size() int { return m.Size() } func (m *PodSchedulingContext) XXX_DiscardUnknown() { xxx_messageInfo_PodSchedulingContext.DiscardUnknown(m) } var xxx_messageInfo_PodSchedulingContext proto.InternalMessageInfo func (m *PodSchedulingContextList) Reset() { *m = PodSchedulingContextList{} } func (*PodSchedulingContextList) ProtoMessage() {} func (*PodSchedulingContextList) Descriptor() ([]byte, []int) { return fileDescriptor_3add37bbd52889e0, []int{2} } func (m *PodSchedulingContextList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PodSchedulingContextList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PodSchedulingContextList) XXX_Merge(src proto.Message) { xxx_messageInfo_PodSchedulingContextList.Merge(m, src) } func (m *PodSchedulingContextList) XXX_Size() int { return m.Size() } func (m *PodSchedulingContextList) XXX_DiscardUnknown() { xxx_messageInfo_PodSchedulingContextList.DiscardUnknown(m) } var xxx_messageInfo_PodSchedulingContextList proto.InternalMessageInfo func (m *PodSchedulingContextSpec) Reset() { *m = PodSchedulingContextSpec{} } func (*PodSchedulingContextSpec) ProtoMessage() {} func (*PodSchedulingContextSpec) Descriptor() ([]byte, []int) { return fileDescriptor_3add37bbd52889e0, []int{3} } func (m *PodSchedulingContextSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PodSchedulingContextSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PodSchedulingContextSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_PodSchedulingContextSpec.Merge(m, src) } func (m *PodSchedulingContextSpec) XXX_Size() int { return m.Size() } func (m *PodSchedulingContextSpec) XXX_DiscardUnknown() { xxx_messageInfo_PodSchedulingContextSpec.DiscardUnknown(m) } var xxx_messageInfo_PodSchedulingContextSpec proto.InternalMessageInfo func (m *PodSchedulingContextStatus) Reset() { *m = PodSchedulingContextStatus{} } func (*PodSchedulingContextStatus) ProtoMessage() {} func (*PodSchedulingContextStatus) Descriptor() ([]byte, []int) { return fileDescriptor_3add37bbd52889e0, []int{4} } func (m *PodSchedulingContextStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PodSchedulingContextStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *PodSchedulingContextStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_PodSchedulingContextStatus.Merge(m, src) } func (m *PodSchedulingContextStatus) XXX_Size() int { return m.Size() } func (m *PodSchedulingContextStatus) XXX_DiscardUnknown() { xxx_messageInfo_PodSchedulingContextStatus.DiscardUnknown(m) } var xxx_messageInfo_PodSchedulingContextStatus proto.InternalMessageInfo func (m *ResourceClaim) Reset() { *m = ResourceClaim{} } func (*ResourceClaim) ProtoMessage() {} func (*ResourceClaim) Descriptor() ([]byte, []int) { return fileDescriptor_3add37bbd52889e0, []int{5} } func (m *ResourceClaim) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ResourceClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ResourceClaim) XXX_Merge(src proto.Message) { xxx_messageInfo_ResourceClaim.Merge(m, src) } func (m *ResourceClaim) XXX_Size() int { return m.Size() } func (m *ResourceClaim) XXX_DiscardUnknown() { xxx_messageInfo_ResourceClaim.DiscardUnknown(m) } var xxx_messageInfo_ResourceClaim proto.InternalMessageInfo func (m *ResourceClaimConsumerReference) Reset() { *m = ResourceClaimConsumerReference{} } func (*ResourceClaimConsumerReference) ProtoMessage() {} func (*ResourceClaimConsumerReference) Descriptor() ([]byte, []int) { return fileDescriptor_3add37bbd52889e0, []int{6} } func (m *ResourceClaimConsumerReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ResourceClaimConsumerReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ResourceClaimConsumerReference) XXX_Merge(src proto.Message) { xxx_messageInfo_ResourceClaimConsumerReference.Merge(m, src) } func (m *ResourceClaimConsumerReference) XXX_Size() int { return m.Size() } func (m *ResourceClaimConsumerReference) XXX_DiscardUnknown() { xxx_messageInfo_ResourceClaimConsumerReference.DiscardUnknown(m) } var xxx_messageInfo_ResourceClaimConsumerReference proto.InternalMessageInfo func (m *ResourceClaimList) Reset() { *m = ResourceClaimList{} } func (*ResourceClaimList) ProtoMessage() {} func (*ResourceClaimList) Descriptor() ([]byte, []int) { return fileDescriptor_3add37bbd52889e0, []int{7} } func (m *ResourceClaimList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ResourceClaimList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ResourceClaimList) XXX_Merge(src proto.Message) { xxx_messageInfo_ResourceClaimList.Merge(m, src) } func (m *ResourceClaimList) XXX_Size() int { return m.Size() } func (m *ResourceClaimList) XXX_DiscardUnknown() { xxx_messageInfo_ResourceClaimList.DiscardUnknown(m) } var xxx_messageInfo_ResourceClaimList proto.InternalMessageInfo func (m *ResourceClaimParametersReference) Reset() { *m = ResourceClaimParametersReference{} } func (*ResourceClaimParametersReference) ProtoMessage() {} func (*ResourceClaimParametersReference) Descriptor() ([]byte, []int) { return fileDescriptor_3add37bbd52889e0, []int{8} } func (m *ResourceClaimParametersReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ResourceClaimParametersReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ResourceClaimParametersReference) XXX_Merge(src proto.Message) { xxx_messageInfo_ResourceClaimParametersReference.Merge(m, src) } func (m *ResourceClaimParametersReference) XXX_Size() int { return m.Size() } func (m *ResourceClaimParametersReference) XXX_DiscardUnknown() { xxx_messageInfo_ResourceClaimParametersReference.DiscardUnknown(m) } var xxx_messageInfo_ResourceClaimParametersReference proto.InternalMessageInfo func (m *ResourceClaimSchedulingStatus) Reset() { *m = ResourceClaimSchedulingStatus{} } func (*ResourceClaimSchedulingStatus) ProtoMessage() {} func (*ResourceClaimSchedulingStatus) Descriptor() ([]byte, []int) { return fileDescriptor_3add37bbd52889e0, []int{9} } func (m *ResourceClaimSchedulingStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ResourceClaimSchedulingStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ResourceClaimSchedulingStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_ResourceClaimSchedulingStatus.Merge(m, src) } func (m *ResourceClaimSchedulingStatus) XXX_Size() int { return m.Size() } func (m *ResourceClaimSchedulingStatus) XXX_DiscardUnknown() { xxx_messageInfo_ResourceClaimSchedulingStatus.DiscardUnknown(m) } var xxx_messageInfo_ResourceClaimSchedulingStatus proto.InternalMessageInfo func (m *ResourceClaimSpec) Reset() { *m = ResourceClaimSpec{} } func (*ResourceClaimSpec) ProtoMessage() {} func (*ResourceClaimSpec) Descriptor() ([]byte, []int) { return fileDescriptor_3add37bbd52889e0, []int{10} } func (m *ResourceClaimSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ResourceClaimSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ResourceClaimSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_ResourceClaimSpec.Merge(m, src) } func (m *ResourceClaimSpec) XXX_Size() int { return m.Size() } func (m *ResourceClaimSpec) XXX_DiscardUnknown() { xxx_messageInfo_ResourceClaimSpec.DiscardUnknown(m) } var xxx_messageInfo_ResourceClaimSpec proto.InternalMessageInfo func (m *ResourceClaimStatus) Reset() { *m = ResourceClaimStatus{} } func (*ResourceClaimStatus) ProtoMessage() {} func (*ResourceClaimStatus) Descriptor() ([]byte, []int) { return fileDescriptor_3add37bbd52889e0, []int{11} } func (m *ResourceClaimStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ResourceClaimStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ResourceClaimStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_ResourceClaimStatus.Merge(m, src) } func (m *ResourceClaimStatus) XXX_Size() int { return m.Size() } func (m *ResourceClaimStatus) XXX_DiscardUnknown() { xxx_messageInfo_ResourceClaimStatus.DiscardUnknown(m) } var xxx_messageInfo_ResourceClaimStatus proto.InternalMessageInfo func (m *ResourceClaimTemplate) Reset() { *m = ResourceClaimTemplate{} } func (*ResourceClaimTemplate) ProtoMessage() {} func (*ResourceClaimTemplate) Descriptor() ([]byte, []int) { return fileDescriptor_3add37bbd52889e0, []int{12} } func (m *ResourceClaimTemplate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ResourceClaimTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ResourceClaimTemplate) XXX_Merge(src proto.Message) { xxx_messageInfo_ResourceClaimTemplate.Merge(m, src) } func (m *ResourceClaimTemplate) XXX_Size() int { return m.Size() } func (m *ResourceClaimTemplate) XXX_DiscardUnknown() { xxx_messageInfo_ResourceClaimTemplate.DiscardUnknown(m) } var xxx_messageInfo_ResourceClaimTemplate proto.InternalMessageInfo func (m *ResourceClaimTemplateList) Reset() { *m = ResourceClaimTemplateList{} } func (*ResourceClaimTemplateList) ProtoMessage() {} func (*ResourceClaimTemplateList) Descriptor() ([]byte, []int) { return fileDescriptor_3add37bbd52889e0, []int{13} } func (m *ResourceClaimTemplateList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ResourceClaimTemplateList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ResourceClaimTemplateList) XXX_Merge(src proto.Message) { xxx_messageInfo_ResourceClaimTemplateList.Merge(m, src) } func (m *ResourceClaimTemplateList) XXX_Size() int { return m.Size() } func (m *ResourceClaimTemplateList) XXX_DiscardUnknown() { xxx_messageInfo_ResourceClaimTemplateList.DiscardUnknown(m) } var xxx_messageInfo_ResourceClaimTemplateList proto.InternalMessageInfo func (m *ResourceClaimTemplateSpec) Reset() { *m = ResourceClaimTemplateSpec{} } func (*ResourceClaimTemplateSpec) ProtoMessage() {} func (*ResourceClaimTemplateSpec) Descriptor() ([]byte, []int) { return fileDescriptor_3add37bbd52889e0, []int{14} } func (m *ResourceClaimTemplateSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ResourceClaimTemplateSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ResourceClaimTemplateSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_ResourceClaimTemplateSpec.Merge(m, src) } func (m *ResourceClaimTemplateSpec) XXX_Size() int { return m.Size() } func (m *ResourceClaimTemplateSpec) XXX_DiscardUnknown() { xxx_messageInfo_ResourceClaimTemplateSpec.DiscardUnknown(m) } var xxx_messageInfo_ResourceClaimTemplateSpec proto.InternalMessageInfo func (m *ResourceClass) Reset() { *m = ResourceClass{} } func (*ResourceClass) ProtoMessage() {} func (*ResourceClass) Descriptor() ([]byte, []int) { return fileDescriptor_3add37bbd52889e0, []int{15} } func (m *ResourceClass) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ResourceClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ResourceClass) XXX_Merge(src proto.Message) { xxx_messageInfo_ResourceClass.Merge(m, src) } func (m *ResourceClass) XXX_Size() int { return m.Size() } func (m *ResourceClass) XXX_DiscardUnknown() { xxx_messageInfo_ResourceClass.DiscardUnknown(m) } var xxx_messageInfo_ResourceClass proto.InternalMessageInfo func (m *ResourceClassList) Reset() { *m = ResourceClassList{} } func (*ResourceClassList) ProtoMessage() {} func (*ResourceClassList) Descriptor() ([]byte, []int) { return fileDescriptor_3add37bbd52889e0, []int{16} } func (m *ResourceClassList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ResourceClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ResourceClassList) XXX_Merge(src proto.Message) { xxx_messageInfo_ResourceClassList.Merge(m, src) } func (m *ResourceClassList) XXX_Size() int { return m.Size() } func (m *ResourceClassList) XXX_DiscardUnknown() { xxx_messageInfo_ResourceClassList.DiscardUnknown(m) } var xxx_messageInfo_ResourceClassList proto.InternalMessageInfo func (m *ResourceClassParametersReference) Reset() { *m = ResourceClassParametersReference{} } func (*ResourceClassParametersReference) ProtoMessage() {} func (*ResourceClassParametersReference) Descriptor() ([]byte, []int) { return fileDescriptor_3add37bbd52889e0, []int{17} } func (m *ResourceClassParametersReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ResourceClassParametersReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ResourceClassParametersReference) XXX_Merge(src proto.Message) { xxx_messageInfo_ResourceClassParametersReference.Merge(m, src) } func (m *ResourceClassParametersReference) XXX_Size() int { return m.Size() } func (m *ResourceClassParametersReference) XXX_DiscardUnknown() { xxx_messageInfo_ResourceClassParametersReference.DiscardUnknown(m) } var xxx_messageInfo_ResourceClassParametersReference proto.InternalMessageInfo func (m *ResourceHandle) Reset() { *m = ResourceHandle{} } func (*ResourceHandle) ProtoMessage() {} func (*ResourceHandle) Descriptor() ([]byte, []int) { return fileDescriptor_3add37bbd52889e0, []int{18} } func (m *ResourceHandle) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ResourceHandle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *ResourceHandle) XXX_Merge(src proto.Message) { xxx_messageInfo_ResourceHandle.Merge(m, src) } func (m *ResourceHandle) XXX_Size() int { return m.Size() } func (m *ResourceHandle) XXX_DiscardUnknown() { xxx_messageInfo_ResourceHandle.DiscardUnknown(m) } var xxx_messageInfo_ResourceHandle proto.InternalMessageInfo func init() { proto.RegisterType((*AllocationResult)(nil), "k8s.io.api.resource.v1alpha2.AllocationResult") proto.RegisterType((*PodSchedulingContext)(nil), "k8s.io.api.resource.v1alpha2.PodSchedulingContext") proto.RegisterType((*PodSchedulingContextList)(nil), "k8s.io.api.resource.v1alpha2.PodSchedulingContextList") proto.RegisterType((*PodSchedulingContextSpec)(nil), "k8s.io.api.resource.v1alpha2.PodSchedulingContextSpec") proto.RegisterType((*PodSchedulingContextStatus)(nil), "k8s.io.api.resource.v1alpha2.PodSchedulingContextStatus") proto.RegisterType((*ResourceClaim)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaim") proto.RegisterType((*ResourceClaimConsumerReference)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimConsumerReference") proto.RegisterType((*ResourceClaimList)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimList") proto.RegisterType((*ResourceClaimParametersReference)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimParametersReference") proto.RegisterType((*ResourceClaimSchedulingStatus)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimSchedulingStatus") proto.RegisterType((*ResourceClaimSpec)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimSpec") proto.RegisterType((*ResourceClaimStatus)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimStatus") proto.RegisterType((*ResourceClaimTemplate)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimTemplate") proto.RegisterType((*ResourceClaimTemplateList)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimTemplateList") proto.RegisterType((*ResourceClaimTemplateSpec)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimTemplateSpec") proto.RegisterType((*ResourceClass)(nil), "k8s.io.api.resource.v1alpha2.ResourceClass") proto.RegisterType((*ResourceClassList)(nil), "k8s.io.api.resource.v1alpha2.ResourceClassList") proto.RegisterType((*ResourceClassParametersReference)(nil), "k8s.io.api.resource.v1alpha2.ResourceClassParametersReference") proto.RegisterType((*ResourceHandle)(nil), "k8s.io.api.resource.v1alpha2.ResourceHandle") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/resource/v1alpha2/generated.proto", fileDescriptor_3add37bbd52889e0) } var fileDescriptor_3add37bbd52889e0 = []byte{ // 1233 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0x4f, 0x6f, 0x1b, 0x45, 0x14, 0xcf, 0xda, 0x6e, 0x95, 0x4c, 0x1a, 0x37, 0xd9, 0xb6, 0xe0, 0x46, 0xad, 0x63, 0xf6, 0x14, 0x89, 0xb2, 0xdb, 0x06, 0x54, 0x2a, 0xfe, 0x49, 0xd9, 0x06, 0x4a, 0x04, 0x4d, 0xc3, 0x98, 0x8a, 0x16, 0x21, 0xd4, 0xc9, 0xee, 0xab, 0xbd, 0x64, 0xff, 0xb1, 0x33, 0x6b, 0xa8, 0xb8, 0xf4, 0x23, 0xf4, 0xc0, 0x01, 0x4e, 0x1c, 0xf9, 0x02, 0x7c, 0x03, 0x84, 0xd4, 0x63, 0x11, 0x1c, 0x7a, 0xb2, 0xa8, 0xf9, 0x08, 0x9c, 0xe8, 0x09, 0xcd, 0x78, 0x77, 0xbd, 0xb3, 0xf6, 0x9a, 0x38, 0x07, 0x0b, 0x4e, 0xc9, 0xcc, 0xfb, 0xbd, 0xdf, 0xfb, 0x37, 0xef, 0xcd, 0xac, 0xd1, 0xbb, 0x87, 0xd7, 0xa8, 0xee, 0x04, 0xc6, 0x61, 0x7c, 0x00, 0x91, 0x0f, 0x0c, 0xa8, 0xd1, 0x03, 0xdf, 0x0e, 0x22, 0x23, 0x11, 0x90, 0xd0, 0x31, 0x22, 0xa0, 0x41, 0x1c, 0x59, 0x60, 0xf4, 0xae, 0x10, 0x37, 0xec, 0x92, 0x2d, 0xa3, 0x03, 0x3e, 0x44, 0x84, 0x81, 0xad, 0x87, 0x51, 0xc0, 0x02, 0xf5, 0xc2, 0x10, 0xad, 0x93, 0xd0, 0xd1, 0x53, 0xb4, 0x9e, 0xa2, 0xd7, 0x5f, 0xe9, 0x38, 0xac, 0x1b, 0x1f, 0xe8, 0x56, 0xe0, 0x19, 0x9d, 0xa0, 0x13, 0x18, 0x42, 0xe9, 0x20, 0xbe, 0x2f, 0x56, 0x62, 0x21, 0xfe, 0x1b, 0x92, 0xad, 0x6b, 0x39, 0xd3, 0x56, 0x10, 0x71, 0xb3, 0x45, 0x83, 0xeb, 0xaf, 0x8d, 0x30, 0x1e, 0xb1, 0xba, 0x8e, 0x0f, 0xd1, 0x03, 0x23, 0x3c, 0xec, 0xf0, 0x0d, 0x6a, 0x78, 0xc0, 0xc8, 0x24, 0x2d, 0xa3, 0x4c, 0x2b, 0x8a, 0x7d, 0xe6, 0x78, 0x30, 0xa6, 0x70, 0xf5, 0xdf, 0x14, 0xa8, 0xd5, 0x05, 0x8f, 0x14, 0xf5, 0xb4, 0xef, 0x2a, 0x68, 0x75, 0xdb, 0x75, 0x03, 0x8b, 0x30, 0x27, 0xf0, 0x31, 0xd0, 0xd8, 0x65, 0x6a, 0x80, 0x4e, 0xa7, 0xb9, 0x79, 0x9f, 0xf8, 0xb6, 0x0b, 0xb4, 0xa1, 0xb4, 0xaa, 0x9b, 0xcb, 0x5b, 0x97, 0xf4, 0x69, 0xe9, 0xd3, 0xb1, 0xa4, 0x64, 0xbe, 0xf8, 0xb8, 0xbf, 0xb1, 0x30, 0xe8, 0x6f, 0x9c, 0x96, 0xf7, 0x29, 0x2e, 0xb2, 0xab, 0x07, 0x68, 0x95, 0xf4, 0x88, 0xe3, 0x92, 0x03, 0x17, 0x6e, 0xf9, 0x7b, 0x81, 0x0d, 0xb4, 0x51, 0x69, 0x29, 0x9b, 0xcb, 0x5b, 0xad, 0xbc, 0x45, 0x9e, 0x63, 0xbd, 0x77, 0x45, 0xe7, 0x80, 0x36, 0xb8, 0x60, 0xb1, 0x20, 0x32, 0xcf, 0x0e, 0xfa, 0x1b, 0xab, 0xdb, 0x05, 0x6d, 0x3c, 0xc6, 0xa7, 0x1a, 0x68, 0x89, 0x76, 0x49, 0x04, 0x7c, 0xaf, 0x51, 0x6d, 0x29, 0x9b, 0x8b, 0xe6, 0x5a, 0xe2, 0xe0, 0x52, 0x3b, 0x15, 0xe0, 0x11, 0x46, 0xfb, 0xa9, 0x82, 0xce, 0xee, 0x07, 0x76, 0xdb, 0xea, 0x82, 0x1d, 0xbb, 0x8e, 0xdf, 0xb9, 0x1e, 0xf8, 0x0c, 0xbe, 0x66, 0xea, 0x3d, 0xb4, 0xc8, 0xeb, 0x66, 0x13, 0x46, 0x1a, 0x8a, 0xf0, 0xf2, 0x72, 0xce, 0xcb, 0x2c, 0xfd, 0x7a, 0x78, 0xd8, 0xe1, 0x1b, 0x54, 0xe7, 0x68, 0xee, 0xf7, 0xad, 0x83, 0x2f, 0xc0, 0x62, 0x37, 0x81, 0x11, 0x53, 0x4d, 0x4c, 0xa3, 0xd1, 0x1e, 0xce, 0x58, 0xd5, 0x3b, 0xa8, 0x46, 0x43, 0xb0, 0x92, 0x1c, 0x5c, 0x9d, 0x9e, 0xf5, 0x49, 0x3e, 0xb6, 0x43, 0xb0, 0xcc, 0x53, 0x89, 0x8d, 0x1a, 0x5f, 0x61, 0xc1, 0xa8, 0xde, 0x43, 0x27, 0x29, 0x23, 0x2c, 0xa6, 0x22, 0x05, 0xcb, 0x5b, 0xd7, 0x8e, 0xc1, 0x2d, 0xf4, 0xcd, 0x7a, 0xc2, 0x7e, 0x72, 0xb8, 0xc6, 0x09, 0xaf, 0xf6, 0xab, 0x82, 0x1a, 0x93, 0xd4, 0x3e, 0x74, 0x28, 0x53, 0x3f, 0x1b, 0x4b, 0x9d, 0x7e, 0xb4, 0xd4, 0x71, 0x6d, 0x91, 0xb8, 0xd5, 0xc4, 0xec, 0x62, 0xba, 0x93, 0x4b, 0xdb, 0x27, 0xe8, 0x84, 0xc3, 0xc0, 0xe3, 0x67, 0x87, 0x9f, 0xd6, 0xad, 0xd9, 0x63, 0x33, 0x57, 0x12, 0xfa, 0x13, 0xbb, 0x9c, 0x08, 0x0f, 0xf9, 0xb4, 0x47, 0x25, 0x31, 0xf1, 0xc4, 0xaa, 0xd7, 0xd0, 0x29, 0x2a, 0x0e, 0x23, 0xd8, 0xfc, 0xa4, 0x89, 0xb8, 0x96, 0xcc, 0xb3, 0x09, 0xd1, 0xa9, 0x76, 0x4e, 0x86, 0x25, 0xa4, 0xfa, 0x06, 0xaa, 0x87, 0x01, 0x03, 0x9f, 0x39, 0xc4, 0x4d, 0x0f, 0x7d, 0x75, 0x73, 0xc9, 0x54, 0x07, 0xfd, 0x8d, 0xfa, 0xbe, 0x24, 0xc1, 0x05, 0xa4, 0xf6, 0xbd, 0x82, 0xd6, 0xcb, 0xab, 0xa3, 0x7e, 0x83, 0xea, 0x69, 0xc4, 0xd7, 0x5d, 0xe2, 0x78, 0x69, 0x07, 0xbf, 0x79, 0xb4, 0x0e, 0x16, 0x3a, 0x23, 0xee, 0xa4, 0xe4, 0x2f, 0x24, 0x31, 0xd5, 0x25, 0x18, 0xc5, 0x05, 0x53, 0xda, 0x0f, 0x15, 0xb4, 0x22, 0x41, 0xe6, 0xd0, 0x32, 0x1f, 0x49, 0x2d, 0x63, 0xcc, 0x12, 0x66, 0x59, 0xaf, 0xdc, 0x2d, 0xf4, 0xca, 0x95, 0x59, 0x48, 0xa7, 0x37, 0xc9, 0x40, 0x41, 0x4d, 0x09, 0x7f, 0x3d, 0xf0, 0x69, 0xec, 0x41, 0x84, 0xe1, 0x3e, 0x44, 0xe0, 0x5b, 0xa0, 0x5e, 0x42, 0x8b, 0x24, 0x74, 0x6e, 0x44, 0x41, 0x1c, 0x26, 0x47, 0x2a, 0x3b, 0xfa, 0xdb, 0xfb, 0xbb, 0x62, 0x1f, 0x67, 0x08, 0x8e, 0x4e, 0x3d, 0x12, 0xde, 0xe6, 0xd0, 0xa9, 0x1d, 0x9c, 0x21, 0xd4, 0x16, 0xaa, 0xf9, 0xc4, 0x83, 0x46, 0x4d, 0x20, 0xb3, 0xd8, 0xf7, 0x88, 0x07, 0x58, 0x48, 0x54, 0x13, 0x55, 0x63, 0xc7, 0x6e, 0x9c, 0x10, 0x80, 0xcb, 0x09, 0xa0, 0x7a, 0x7b, 0x77, 0xe7, 0x79, 0x7f, 0xe3, 0xa5, 0xb2, 0xbb, 0x86, 0x3d, 0x08, 0x81, 0xea, 0xb7, 0x77, 0x77, 0x30, 0x57, 0xd6, 0x7e, 0x56, 0xd0, 0x9a, 0x14, 0xe4, 0x1c, 0x46, 0xc0, 0xbe, 0x3c, 0x02, 0x5e, 0x9e, 0xa1, 0x64, 0x25, 0xbd, 0xff, 0xad, 0x82, 0x5a, 0x12, 0x6e, 0x9f, 0x44, 0xc4, 0x03, 0x06, 0x11, 0x3d, 0x6e, 0xb1, 0x5a, 0xa8, 0x76, 0xe8, 0xf8, 0xb6, 0x38, 0xab, 0xb9, 0xf4, 0x7f, 0xe0, 0xf8, 0x36, 0x16, 0x92, 0xac, 0x40, 0xd5, 0xb2, 0x02, 0x69, 0x0f, 0x15, 0x74, 0x71, 0x6a, 0xb7, 0x66, 0x1c, 0x4a, 0x69, 0x91, 0xdf, 0x46, 0xa7, 0x63, 0x9f, 0xc6, 0x0e, 0xe3, 0xf7, 0x5d, 0x7e, 0x00, 0x9d, 0xe1, 0xb7, 0xf6, 0x6d, 0x59, 0x84, 0x8b, 0x58, 0xed, 0xc7, 0x4a, 0xa1, 0xbe, 0x62, 0x1c, 0xde, 0x40, 0x6b, 0xb9, 0x71, 0x40, 0xe9, 0xde, 0xc8, 0x87, 0xf3, 0x89, 0x0f, 0x79, 0xad, 0x21, 0x00, 0x8f, 0xeb, 0xa8, 0x5f, 0xa1, 0x95, 0x30, 0x9f, 0xea, 0xa4, 0xb5, 0xdf, 0x99, 0xa1, 0xa4, 0x13, 0x4a, 0x65, 0xae, 0x0d, 0xfa, 0x1b, 0x2b, 0x92, 0x00, 0xcb, 0x76, 0xd4, 0x7d, 0x54, 0x27, 0xd9, 0x93, 0xe8, 0x26, 0x1f, 0xe9, 0xc3, 0x32, 0x6c, 0xa6, 0xe3, 0x6f, 0x5b, 0x92, 0x3e, 0x1f, 0xdb, 0xc1, 0x05, 0x7d, 0xed, 0xaf, 0x0a, 0x3a, 0x33, 0x61, 0x3c, 0xa8, 0x5b, 0x08, 0xd9, 0x91, 0xd3, 0x83, 0x28, 0x97, 0xa4, 0x6c, 0xcc, 0xed, 0x64, 0x12, 0x9c, 0x43, 0xa9, 0x9f, 0x23, 0x34, 0x62, 0x4f, 0x72, 0xa2, 0x4f, 0xcf, 0x49, 0xf1, 0x81, 0x67, 0xd6, 0x39, 0x7f, 0x6e, 0x37, 0xc7, 0xa8, 0x52, 0xb4, 0x1c, 0x01, 0x85, 0xa8, 0x07, 0xf6, 0x7b, 0x41, 0xd4, 0xa8, 0x8a, 0x3e, 0x7a, 0x6b, 0x86, 0xa4, 0x8f, 0x8d, 0x32, 0xf3, 0x4c, 0x12, 0xd2, 0x32, 0x1e, 0x11, 0xe3, 0xbc, 0x15, 0xb5, 0x8d, 0xce, 0xd9, 0x40, 0x72, 0x6e, 0x7e, 0x19, 0x03, 0x65, 0x60, 0x8b, 0x09, 0xb5, 0x68, 0x5e, 0x4c, 0x08, 0xce, 0xed, 0x4c, 0x02, 0xe1, 0xc9, 0xba, 0xda, 0xef, 0x0a, 0x3a, 0x27, 0x79, 0xf6, 0x31, 0x78, 0xa1, 0x4b, 0x18, 0xcc, 0xe1, 0x3a, 0xba, 0x2b, 0x5d, 0x47, 0xaf, 0xcf, 0x90, 0xbe, 0xd4, 0xc9, 0xb2, 0x6b, 0x49, 0xfb, 0x4d, 0x41, 0xe7, 0x27, 0x6a, 0xcc, 0x61, 0xbc, 0xde, 0x91, 0xc7, 0xeb, 0xab, 0xc7, 0x88, 0xab, 0x64, 0xcc, 0x3e, 0x29, 0x8b, 0xaa, 0x3d, 0x7c, 0xb6, 0xfe, 0xff, 0xde, 0x0f, 0xda, 0xdf, 0xf2, 0x33, 0x88, 0xd2, 0x39, 0x84, 0x21, 0x4f, 0x94, 0xca, 0x91, 0x26, 0xca, 0xd8, 0xa0, 0xad, 0xce, 0x38, 0x68, 0x29, 0x3d, 0xde, 0xa0, 0xbd, 0x8b, 0x56, 0xe4, 0xdb, 0xa7, 0x76, 0xc4, 0x6f, 0x3e, 0x41, 0xdd, 0x96, 0x6e, 0x27, 0x99, 0xa9, 0xf8, 0xf6, 0xa0, 0xf4, 0xbf, 0xfc, 0xf6, 0xa0, 0xb4, 0xa4, 0x29, 0x7e, 0x91, 0xdf, 0x1e, 0x13, 0xf3, 0x3c, 0xff, 0xb7, 0x07, 0xff, 0x94, 0xe6, 0x7f, 0x69, 0x48, 0xac, 0xf4, 0x0d, 0x99, 0x7d, 0x4a, 0xef, 0xa5, 0x02, 0x3c, 0xc2, 0x68, 0xf7, 0x51, 0x5d, 0xfe, 0x0d, 0xe0, 0x58, 0x37, 0x5f, 0x0b, 0xd5, 0x44, 0xe5, 0x0a, 0xae, 0xef, 0x10, 0x46, 0xb0, 0x90, 0x98, 0xe6, 0xe3, 0x67, 0xcd, 0x85, 0x27, 0xcf, 0x9a, 0x0b, 0x4f, 0x9f, 0x35, 0x17, 0x1e, 0x0e, 0x9a, 0xca, 0xe3, 0x41, 0x53, 0x79, 0x32, 0x68, 0x2a, 0x4f, 0x07, 0x4d, 0xe5, 0x8f, 0x41, 0x53, 0x79, 0xf4, 0x67, 0x73, 0xe1, 0xd3, 0x0b, 0xd3, 0x7e, 0x31, 0xfa, 0x27, 0x00, 0x00, 0xff, 0xff, 0x67, 0xe4, 0xf6, 0x18, 0x69, 0x12, 0x00, 0x00, } func (m *AllocationResult) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *AllocationResult) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *AllocationResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i-- if m.Shareable { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x18 if m.AvailableOnNodes != nil { { size, err := m.AvailableOnNodes.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } if len(m.ResourceHandles) > 0 { for iNdEx := len(m.ResourceHandles) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.ResourceHandles[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 *PodSchedulingContext) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PodSchedulingContext) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PodSchedulingContext) 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 *PodSchedulingContextList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PodSchedulingContextList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PodSchedulingContextList) 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 *PodSchedulingContextSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PodSchedulingContextSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PodSchedulingContextSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.PotentialNodes) > 0 { for iNdEx := len(m.PotentialNodes) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.PotentialNodes[iNdEx]) copy(dAtA[i:], m.PotentialNodes[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(m.PotentialNodes[iNdEx]))) i-- dAtA[i] = 0x12 } } i -= len(m.SelectedNode) copy(dAtA[i:], m.SelectedNode) i = encodeVarintGenerated(dAtA, i, uint64(len(m.SelectedNode))) i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *PodSchedulingContextStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PodSchedulingContextStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PodSchedulingContextStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.ResourceClaims) > 0 { for iNdEx := len(m.ResourceClaims) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.ResourceClaims[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 *ResourceClaim) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ResourceClaim) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ResourceClaim) 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 *ResourceClaimConsumerReference) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ResourceClaimConsumerReference) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ResourceClaimConsumerReference) 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] = 0x2a i -= len(m.Name) copy(dAtA[i:], m.Name) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0x22 i -= len(m.Resource) copy(dAtA[i:], m.Resource) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resource))) i-- dAtA[i] = 0x1a 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 *ResourceClaimList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ResourceClaimList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ResourceClaimList) 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 *ResourceClaimParametersReference) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ResourceClaimParametersReference) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ResourceClaimParametersReference) 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 *ResourceClaimSchedulingStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ResourceClaimSchedulingStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ResourceClaimSchedulingStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.UnsuitableNodes) > 0 { for iNdEx := len(m.UnsuitableNodes) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.UnsuitableNodes[iNdEx]) copy(dAtA[i:], m.UnsuitableNodes[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(m.UnsuitableNodes[iNdEx]))) 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 *ResourceClaimSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ResourceClaimSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ResourceClaimSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.AllocationMode) copy(dAtA[i:], m.AllocationMode) i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllocationMode))) i-- dAtA[i] = 0x1a if m.ParametersRef != nil { { size, err := m.ParametersRef.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } i -= len(m.ResourceClassName) copy(dAtA[i:], m.ResourceClassName) i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceClassName))) i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *ResourceClaimStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ResourceClaimStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ResourceClaimStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i-- if m.DeallocationRequested { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x20 if len(m.ReservedFor) > 0 { for iNdEx := len(m.ReservedFor) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.ReservedFor[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } } if m.Allocation != nil { { size, err := m.Allocation.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } i -= len(m.DriverName) copy(dAtA[i:], m.DriverName) i = encodeVarintGenerated(dAtA, i, uint64(len(m.DriverName))) i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *ResourceClaimTemplate) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ResourceClaimTemplate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ResourceClaimTemplate) 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 *ResourceClaimTemplateList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ResourceClaimTemplateList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ResourceClaimTemplateList) 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 *ResourceClaimTemplateSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ResourceClaimTemplateSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ResourceClaimTemplateSpec) 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 *ResourceClass) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ResourceClass) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ResourceClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.SuitableNodes != nil { { size, err := m.SuitableNodes.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } if m.ParametersRef != nil { { size, err := m.ParametersRef.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } i -= len(m.DriverName) copy(dAtA[i:], m.DriverName) i = encodeVarintGenerated(dAtA, i, uint64(len(m.DriverName))) 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 *ResourceClassList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ResourceClassList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ResourceClassList) 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 *ResourceClassParametersReference) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ResourceClassParametersReference) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ResourceClassParametersReference) 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.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 *ResourceHandle) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ResourceHandle) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ResourceHandle) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.Data) copy(dAtA[i:], m.Data) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Data))) i-- dAtA[i] = 0x12 i -= len(m.DriverName) copy(dAtA[i:], m.DriverName) i = encodeVarintGenerated(dAtA, i, uint64(len(m.DriverName))) 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 *AllocationResult) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.ResourceHandles) > 0 { for _, e := range m.ResourceHandles { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } if m.AvailableOnNodes != nil { l = m.AvailableOnNodes.Size() n += 1 + l + sovGenerated(uint64(l)) } n += 2 return n } func (m *PodSchedulingContext) 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 *PodSchedulingContextList) 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 *PodSchedulingContextSpec) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.SelectedNode) n += 1 + l + sovGenerated(uint64(l)) if len(m.PotentialNodes) > 0 { for _, s := range m.PotentialNodes { l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *PodSchedulingContextStatus) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.ResourceClaims) > 0 { for _, e := range m.ResourceClaims { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *ResourceClaim) 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 *ResourceClaimConsumerReference) 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.Resource) 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 *ResourceClaimList) 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 *ResourceClaimParametersReference) 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 *ResourceClaimSchedulingStatus) 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.UnsuitableNodes) > 0 { for _, s := range m.UnsuitableNodes { l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } return n } func (m *ResourceClaimSpec) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ResourceClassName) n += 1 + l + sovGenerated(uint64(l)) if m.ParametersRef != nil { l = m.ParametersRef.Size() n += 1 + l + sovGenerated(uint64(l)) } l = len(m.AllocationMode) n += 1 + l + sovGenerated(uint64(l)) return n } func (m *ResourceClaimStatus) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.DriverName) n += 1 + l + sovGenerated(uint64(l)) if m.Allocation != nil { l = m.Allocation.Size() n += 1 + l + sovGenerated(uint64(l)) } if len(m.ReservedFor) > 0 { for _, e := range m.ReservedFor { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } n += 2 return n } func (m *ResourceClaimTemplate) 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 *ResourceClaimTemplateList) 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 *ResourceClaimTemplateSpec) 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 *ResourceClass) 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.DriverName) n += 1 + l + sovGenerated(uint64(l)) if m.ParametersRef != nil { l = m.ParametersRef.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.SuitableNodes != nil { l = m.SuitableNodes.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *ResourceClassList) 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 *ResourceClassParametersReference) 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)) l = len(m.Namespace) n += 1 + l + sovGenerated(uint64(l)) return n } func (m *ResourceHandle) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.DriverName) n += 1 + l + sovGenerated(uint64(l)) l = len(m.Data) 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 *AllocationResult) String() string { if this == nil { return "nil" } repeatedStringForResourceHandles := "[]ResourceHandle{" for _, f := range this.ResourceHandles { repeatedStringForResourceHandles += strings.Replace(strings.Replace(f.String(), "ResourceHandle", "ResourceHandle", 1), `&`, ``, 1) + "," } repeatedStringForResourceHandles += "}" s := strings.Join([]string{`&AllocationResult{`, `ResourceHandles:` + repeatedStringForResourceHandles + `,`, `AvailableOnNodes:` + strings.Replace(fmt.Sprintf("%v", this.AvailableOnNodes), "NodeSelector", "v1.NodeSelector", 1) + `,`, `Shareable:` + fmt.Sprintf("%v", this.Shareable) + `,`, `}`, }, "") return s } func (this *PodSchedulingContext) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PodSchedulingContext{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodSchedulingContextSpec", "PodSchedulingContextSpec", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PodSchedulingContextStatus", "PodSchedulingContextStatus", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *PodSchedulingContextList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]PodSchedulingContext{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PodSchedulingContext", "PodSchedulingContext", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&PodSchedulingContextList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *PodSchedulingContextSpec) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PodSchedulingContextSpec{`, `SelectedNode:` + fmt.Sprintf("%v", this.SelectedNode) + `,`, `PotentialNodes:` + fmt.Sprintf("%v", this.PotentialNodes) + `,`, `}`, }, "") return s } func (this *PodSchedulingContextStatus) String() string { if this == nil { return "nil" } repeatedStringForResourceClaims := "[]ResourceClaimSchedulingStatus{" for _, f := range this.ResourceClaims { repeatedStringForResourceClaims += strings.Replace(strings.Replace(f.String(), "ResourceClaimSchedulingStatus", "ResourceClaimSchedulingStatus", 1), `&`, ``, 1) + "," } repeatedStringForResourceClaims += "}" s := strings.Join([]string{`&PodSchedulingContextStatus{`, `ResourceClaims:` + repeatedStringForResourceClaims + `,`, `}`, }, "") return s } func (this *ResourceClaim) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ResourceClaim{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ResourceClaimSpec", "ResourceClaimSpec", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ResourceClaimStatus", "ResourceClaimStatus", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *ResourceClaimConsumerReference) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ResourceClaimConsumerReference{`, `APIGroup:` + fmt.Sprintf("%v", this.APIGroup) + `,`, `Resource:` + fmt.Sprintf("%v", this.Resource) + `,`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `UID:` + fmt.Sprintf("%v", this.UID) + `,`, `}`, }, "") return s } func (this *ResourceClaimList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]ResourceClaim{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ResourceClaim", "ResourceClaim", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&ResourceClaimList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *ResourceClaimParametersReference) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ResourceClaimParametersReference{`, `APIGroup:` + fmt.Sprintf("%v", this.APIGroup) + `,`, `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `}`, }, "") return s } func (this *ResourceClaimSchedulingStatus) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ResourceClaimSchedulingStatus{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `UnsuitableNodes:` + fmt.Sprintf("%v", this.UnsuitableNodes) + `,`, `}`, }, "") return s } func (this *ResourceClaimSpec) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ResourceClaimSpec{`, `ResourceClassName:` + fmt.Sprintf("%v", this.ResourceClassName) + `,`, `ParametersRef:` + strings.Replace(this.ParametersRef.String(), "ResourceClaimParametersReference", "ResourceClaimParametersReference", 1) + `,`, `AllocationMode:` + fmt.Sprintf("%v", this.AllocationMode) + `,`, `}`, }, "") return s } func (this *ResourceClaimStatus) String() string { if this == nil { return "nil" } repeatedStringForReservedFor := "[]ResourceClaimConsumerReference{" for _, f := range this.ReservedFor { repeatedStringForReservedFor += strings.Replace(strings.Replace(f.String(), "ResourceClaimConsumerReference", "ResourceClaimConsumerReference", 1), `&`, ``, 1) + "," } repeatedStringForReservedFor += "}" s := strings.Join([]string{`&ResourceClaimStatus{`, `DriverName:` + fmt.Sprintf("%v", this.DriverName) + `,`, `Allocation:` + strings.Replace(this.Allocation.String(), "AllocationResult", "AllocationResult", 1) + `,`, `ReservedFor:` + repeatedStringForReservedFor + `,`, `DeallocationRequested:` + fmt.Sprintf("%v", this.DeallocationRequested) + `,`, `}`, }, "") return s } func (this *ResourceClaimTemplate) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ResourceClaimTemplate{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ResourceClaimTemplateSpec", "ResourceClaimTemplateSpec", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *ResourceClaimTemplateList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]ResourceClaimTemplate{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ResourceClaimTemplate", "ResourceClaimTemplate", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&ResourceClaimTemplateList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *ResourceClaimTemplateSpec) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ResourceClaimTemplateSpec{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ResourceClaimSpec", "ResourceClaimSpec", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *ResourceClass) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ResourceClass{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`, `DriverName:` + fmt.Sprintf("%v", this.DriverName) + `,`, `ParametersRef:` + strings.Replace(this.ParametersRef.String(), "ResourceClassParametersReference", "ResourceClassParametersReference", 1) + `,`, `SuitableNodes:` + strings.Replace(fmt.Sprintf("%v", this.SuitableNodes), "NodeSelector", "v1.NodeSelector", 1) + `,`, `}`, }, "") return s } func (this *ResourceClassList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]ResourceClass{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ResourceClass", "ResourceClass", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&ResourceClassList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } func (this *ResourceClassParametersReference) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ResourceClassParametersReference{`, `APIGroup:` + fmt.Sprintf("%v", this.APIGroup) + `,`, `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, `}`, }, "") return s } func (this *ResourceHandle) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ResourceHandle{`, `DriverName:` + fmt.Sprintf("%v", this.DriverName) + `,`, `Data:` + fmt.Sprintf("%v", this.Data) + `,`, `}`, }, "") 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 *AllocationResult) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: AllocationResult: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: AllocationResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResourceHandles", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ResourceHandles = append(m.ResourceHandles, ResourceHandle{}) if err := m.ResourceHandles[len(m.ResourceHandles)-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 AvailableOnNodes", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.AvailableOnNodes == nil { m.AvailableOnNodes = &v1.NodeSelector{} } if err := m.AvailableOnNodes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Shareable", 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.Shareable = bool(v != 0) default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PodSchedulingContext) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PodSchedulingContext: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PodSchedulingContext: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PodSchedulingContextList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PodSchedulingContextList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PodSchedulingContextList: 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, PodSchedulingContext{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PodSchedulingContextSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PodSchedulingContextSpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PodSchedulingContextSpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SelectedNode", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.SelectedNode = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PotentialNodes", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.PotentialNodes = append(m.PotentialNodes, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PodSchedulingContextStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PodSchedulingContextStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PodSchedulingContextStatus: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResourceClaims", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ResourceClaims = append(m.ResourceClaims, ResourceClaimSchedulingStatus{}) if err := m.ResourceClaims[len(m.ResourceClaims)-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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ResourceClaim) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ResourceClaim: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ResourceClaim: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ResourceClaimConsumerReference) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ResourceClaimConsumerReference: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ResourceClaimConsumerReference: 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 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 case 4: 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 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ResourceClaimList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ResourceClaimList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ResourceClaimList: 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, ResourceClaim{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ResourceClaimParametersReference) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ResourceClaimParametersReference: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ResourceClaimParametersReference: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ResourceClaimSchedulingStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ResourceClaimSchedulingStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ResourceClaimSchedulingStatus: 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 UnsuitableNodes", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.UnsuitableNodes = append(m.UnsuitableNodes, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ResourceClaimSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ResourceClaimSpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ResourceClaimSpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResourceClassName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ResourceClassName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ParametersRef", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ParametersRef == nil { m.ParametersRef = &ResourceClaimParametersReference{} } if err := m.ParametersRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AllocationMode", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.AllocationMode = AllocationMode(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ResourceClaimStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ResourceClaimStatus: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ResourceClaimStatus: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DriverName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.DriverName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Allocation", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.Allocation == nil { m.Allocation = &AllocationResult{} } if err := m.Allocation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ReservedFor", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.ReservedFor = append(m.ReservedFor, ResourceClaimConsumerReference{}) if err := m.ReservedFor[len(m.ReservedFor)-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 DeallocationRequested", 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.DeallocationRequested = bool(v != 0) default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ResourceClaimTemplate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ResourceClaimTemplate: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ResourceClaimTemplate: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ResourceClaimTemplateList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ResourceClaimTemplateList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ResourceClaimTemplateList: 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, ResourceClaimTemplate{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ResourceClaimTemplateSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ResourceClaimTemplateSpec: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ResourceClaimTemplateSpec: 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ResourceClass) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ResourceClass: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ResourceClass: 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 DriverName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.DriverName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ParametersRef", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.ParametersRef == nil { m.ParametersRef = &ResourceClassParametersReference{} } if err := m.ParametersRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SuitableNodes", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.SuitableNodes == nil { m.SuitableNodes = &v1.NodeSelector{} } if err := m.SuitableNodes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ResourceClassList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ResourceClassList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ResourceClassList: 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, ResourceClass{}) 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ResourceClassParametersReference) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ResourceClassParametersReference: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ResourceClassParametersReference: 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 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ResourceHandle) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ResourceHandle: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ResourceHandle: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DriverName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.DriverName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.Data = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/resource/v1alpha2/generated.proto000066400000000000000000000346501453636404600226360ustar00rootroot00000000000000/* 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.resource.v1alpha2; import "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/resource/v1alpha2"; // AllocationResult contains attributes of an allocated resource. message AllocationResult { // ResourceHandles contain the state associated with an allocation that // should be maintained throughout the lifetime of a claim. Each // ResourceHandle contains data that should be passed to a specific kubelet // plugin once it lands on a node. This data is returned by the driver // after a successful allocation and is opaque to Kubernetes. Driver // documentation may explain to users how to interpret this data if needed. // // Setting this field is optional. It has a maximum size of 32 entries. // If null (or empty), it is assumed this allocation will be processed by a // single kubelet plugin with no ResourceHandle data attached. The name of // the kubelet plugin invoked will match the DriverName set in the // ResourceClaimStatus this AllocationResult is embedded in. // // +listType=atomic // +optional repeated ResourceHandle resourceHandles = 1; // This field will get set by the resource driver after it has allocated // the resource to inform the scheduler where it can schedule Pods using // the ResourceClaim. // // Setting this field is optional. If null, the resource is available // everywhere. // +optional optional k8s.io.api.core.v1.NodeSelector availableOnNodes = 2; // Shareable determines whether the resource supports more // than one consumer at a time. // +optional optional bool shareable = 3; } // PodSchedulingContext objects hold information that is needed to schedule // a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation // mode. // // This is an alpha type and requires enabling the DynamicResourceAllocation // feature gate. message PodSchedulingContext { // Standard object metadata // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; // Spec describes where resources for the Pod are needed. optional PodSchedulingContextSpec spec = 2; // Status describes where resources for the Pod can be allocated. // +optional optional PodSchedulingContextStatus status = 3; } // PodSchedulingContextList is a collection of Pod scheduling objects. message PodSchedulingContextList { // Standard list metadata // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; // Items is the list of PodSchedulingContext objects. repeated PodSchedulingContext items = 2; } // PodSchedulingContextSpec describes where resources for the Pod are needed. message PodSchedulingContextSpec { // SelectedNode is the node for which allocation of ResourceClaims that // are referenced by the Pod and that use "WaitForFirstConsumer" // allocation is to be attempted. // +optional optional string selectedNode = 1; // PotentialNodes lists nodes where the Pod might be able to run. // // The size of this field is limited to 128. This is large enough for // many clusters. Larger clusters may need more attempts to find a node // that suits all pending resources. This may get increased in the // future, but not reduced. // // +listType=atomic // +optional repeated string potentialNodes = 2; } // PodSchedulingContextStatus describes where resources for the Pod can be allocated. message PodSchedulingContextStatus { // ResourceClaims describes resource availability for each // pod.spec.resourceClaim entry where the corresponding ResourceClaim // uses "WaitForFirstConsumer" allocation mode. // // +listType=map // +listMapKey=name // +optional repeated ResourceClaimSchedulingStatus resourceClaims = 1; } // ResourceClaim describes which resources are needed by a resource consumer. // Its status tracks whether the resource has been allocated and what the // resulting attributes are. // // This is an alpha type and requires enabling the DynamicResourceAllocation // feature gate. message ResourceClaim { // Standard object metadata // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; // Spec describes the desired attributes of a resource that then needs // to be allocated. It can only be set once when creating the // ResourceClaim. optional ResourceClaimSpec spec = 2; // Status describes whether the resource is available and with which // attributes. // +optional optional ResourceClaimStatus status = 3; } // ResourceClaimConsumerReference contains enough information to let you // locate the consumer of a ResourceClaim. The user must be a resource in the same // namespace as the ResourceClaim. message ResourceClaimConsumerReference { // APIGroup is the group for the resource being referenced. It is // empty for the core API. This matches the group in the APIVersion // that is used when creating the resources. // +optional optional string apiGroup = 1; // Resource is the type of resource being referenced, for example "pods". optional string resource = 3; // Name is the name of resource being referenced. optional string name = 4; // UID identifies exactly one incarnation of the resource. optional string uid = 5; } // ResourceClaimList is a collection of claims. message ResourceClaimList { // Standard list metadata // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; // Items is the list of resource claims. repeated ResourceClaim items = 2; } // ResourceClaimParametersReference contains enough information to let you // locate the parameters for a ResourceClaim. The object must be in the same // namespace as the ResourceClaim. message ResourceClaimParametersReference { // APIGroup is the group for the resource being referenced. It is // empty for the core API. This matches the group in the APIVersion // that is used when creating the resources. // +optional optional string apiGroup = 1; // Kind is the type of resource being referenced. This is the same // value as in the parameter object's metadata, for example "ConfigMap". optional string kind = 2; // Name is the name of resource being referenced. optional string name = 3; } // ResourceClaimSchedulingStatus contains information about one particular // ResourceClaim with "WaitForFirstConsumer" allocation mode. message ResourceClaimSchedulingStatus { // Name matches the pod.spec.resourceClaims[*].Name field. // +optional optional string name = 1; // UnsuitableNodes lists nodes that the ResourceClaim cannot be // allocated for. // // The size of this field is limited to 128, the same as for // PodSchedulingSpec.PotentialNodes. This may get increased in the // future, but not reduced. // // +listType=atomic // +optional repeated string unsuitableNodes = 2; } // ResourceClaimSpec defines how a resource is to be allocated. message ResourceClaimSpec { // ResourceClassName references the driver and additional parameters // via the name of a ResourceClass that was created as part of the // driver deployment. optional string resourceClassName = 1; // ParametersRef references a separate object with arbitrary parameters // that will be used by the driver when allocating a resource for the // claim. // // The object must be in the same namespace as the ResourceClaim. // +optional optional ResourceClaimParametersReference parametersRef = 2; // Allocation can start immediately or when a Pod wants to use the // resource. "WaitForFirstConsumer" is the default. // +optional optional string allocationMode = 3; } // ResourceClaimStatus tracks whether the resource has been allocated and what // the resulting attributes are. message ResourceClaimStatus { // DriverName is a copy of the driver name from the ResourceClass at // the time when allocation started. // +optional optional string driverName = 1; // Allocation is set by the resource driver once a resource or set of // resources has been allocated successfully. If this is not specified, the // resources have not been allocated yet. // +optional optional AllocationResult allocation = 2; // ReservedFor indicates which entities are currently allowed to use // the claim. A Pod which references a ResourceClaim which is not // reserved for that Pod will not be started. // // There can be at most 32 such reservations. This may get increased in // the future, but not reduced. // // +listType=map // +listMapKey=uid // +optional repeated ResourceClaimConsumerReference reservedFor = 3; // DeallocationRequested indicates that a ResourceClaim is to be // deallocated. // // The driver then must deallocate this claim and reset the field // together with clearing the Allocation field. // // While DeallocationRequested is set, no new consumers may be added to // ReservedFor. // +optional optional bool deallocationRequested = 4; } // ResourceClaimTemplate is used to produce ResourceClaim objects. message ResourceClaimTemplate { // Standard object metadata // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; // Describes the ResourceClaim that is to be generated. // // This field is immutable. A ResourceClaim will get created by the // control plane for a Pod when needed and then not get updated // anymore. optional ResourceClaimTemplateSpec spec = 2; } // ResourceClaimTemplateList is a collection of claim templates. message ResourceClaimTemplateList { // Standard list metadata // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; // Items is the list of resource claim templates. repeated ResourceClaimTemplate items = 2; } // ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. message ResourceClaimTemplateSpec { // ObjectMeta may contain labels and annotations that will be copied into the PVC // when creating it. No other fields are allowed and will be rejected during // validation. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; // Spec for the ResourceClaim. The entire content is copied unchanged // into the ResourceClaim that gets created from this template. The // same fields as in a ResourceClaim are also valid here. optional ResourceClaimSpec spec = 2; } // ResourceClass is used by administrators to influence how resources // are allocated. // // This is an alpha type and requires enabling the DynamicResourceAllocation // feature gate. message ResourceClass { // Standard object metadata // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; // DriverName defines the name of the dynamic resource driver that is // used for allocation of a ResourceClaim that uses this class. // // Resource drivers have a unique name in forward domain order // (acme.example.com). optional string driverName = 2; // ParametersRef references an arbitrary separate object that may hold // parameters that will be used by the driver when allocating a // resource that uses this class. A dynamic resource driver can // distinguish between parameters stored here and and those stored in // ResourceClaimSpec. // +optional optional ResourceClassParametersReference parametersRef = 3; // Only nodes matching the selector will be considered by the scheduler // when trying to find a Node that fits a Pod when that Pod uses // a ResourceClaim that has not been allocated yet. // // Setting this field is optional. If null, all nodes are candidates. // +optional optional k8s.io.api.core.v1.NodeSelector suitableNodes = 4; } // ResourceClassList is a collection of classes. message ResourceClassList { // Standard list metadata // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; // Items is the list of resource classes. repeated ResourceClass items = 2; } // ResourceClassParametersReference contains enough information to let you // locate the parameters for a ResourceClass. message ResourceClassParametersReference { // APIGroup is the group for the resource being referenced. It is // empty for the core API. This matches the group in the APIVersion // that is used when creating the resources. // +optional optional string apiGroup = 1; // Kind is the type of resource being referenced. This is the same // value as in the parameter object's metadata. optional string kind = 2; // Name is the name of resource being referenced. optional string name = 3; // Namespace that contains the referenced resource. Must be empty // for cluster-scoped resources and non-empty for namespaced // resources. // +optional optional string namespace = 4; } // ResourceHandle holds opaque resource data for processing by a specific kubelet plugin. message ResourceHandle { // DriverName specifies the name of the resource driver whose kubelet // plugin should be invoked to process this ResourceHandle's data once it // lands on a node. This may differ from the DriverName set in // ResourceClaimStatus this ResourceHandle is embedded in. optional string driverName = 1; // Data contains the opaque data associated with this ResourceHandle. It is // set by the controller component of the resource driver whose name // matches the DriverName set in the ResourceClaimStatus this // ResourceHandle is embedded in. It is set at allocation time and is // intended for processing by the kubelet plugin whose name matches // the DriverName set in this ResourceHandle. // // The maximum size of this field is 16KiB. This may get increased in the // future, but not reduced. // +optional optional string data = 2; } golang-k8s-api-0.29.0/resource/v1alpha2/register.go000066400000000000000000000040061453636404600217560ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package v1alpha2 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "resource.k8s.io" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha2"} // 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, &ResourceClass{}, &ResourceClassList{}, &ResourceClaim{}, &ResourceClaimList{}, &ResourceClaimTemplate{}, &ResourceClaimTemplateList{}, &PodSchedulingContext{}, &PodSchedulingContextList{}, ) // Add common types scheme.AddKnownTypes(SchemeGroupVersion, &metav1.Status{}) // Add the watch version that applies metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/resource/v1alpha2/types.go000066400000000000000000000456721453636404600213140ustar00rootroot00000000000000/* Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package v1alpha2 import ( v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" ) // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.26 // ResourceClaim describes which resources are needed by a resource consumer. // Its status tracks whether the resource has been allocated and what the // resulting attributes are. // // This is an alpha type and requires enabling the DynamicResourceAllocation // feature gate. type ResourceClaim struct { metav1.TypeMeta `json:",inline"` // Standard object metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec describes the desired attributes of a resource that then needs // to be allocated. It can only be set once when creating the // ResourceClaim. Spec ResourceClaimSpec `json:"spec" protobuf:"bytes,2,name=spec"` // Status describes whether the resource is available and with which // attributes. // +optional Status ResourceClaimStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // ResourceClaimSpec defines how a resource is to be allocated. type ResourceClaimSpec struct { // ResourceClassName references the driver and additional parameters // via the name of a ResourceClass that was created as part of the // driver deployment. ResourceClassName string `json:"resourceClassName" protobuf:"bytes,1,name=resourceClassName"` // ParametersRef references a separate object with arbitrary parameters // that will be used by the driver when allocating a resource for the // claim. // // The object must be in the same namespace as the ResourceClaim. // +optional ParametersRef *ResourceClaimParametersReference `json:"parametersRef,omitempty" protobuf:"bytes,2,opt,name=parametersRef"` // Allocation can start immediately or when a Pod wants to use the // resource. "WaitForFirstConsumer" is the default. // +optional AllocationMode AllocationMode `json:"allocationMode,omitempty" protobuf:"bytes,3,opt,name=allocationMode"` } // AllocationMode describes whether a ResourceClaim gets allocated immediately // when it gets created (AllocationModeImmediate) or whether allocation is // delayed until it is needed for a Pod // (AllocationModeWaitForFirstConsumer). Other modes might get added in the // future. type AllocationMode string const ( // When a ResourceClaim has AllocationModeWaitForFirstConsumer, allocation is // delayed until a Pod gets scheduled that needs the ResourceClaim. The // scheduler will consider all resource requirements of that Pod and // trigger allocation for a node that fits the Pod. AllocationModeWaitForFirstConsumer AllocationMode = "WaitForFirstConsumer" // When a ResourceClaim has AllocationModeImmediate, allocation starts // as soon as the ResourceClaim gets created. This is done without // considering the needs of Pods that will use the ResourceClaim // because those Pods are not known yet. AllocationModeImmediate AllocationMode = "Immediate" ) // ResourceClaimStatus tracks whether the resource has been allocated and what // the resulting attributes are. type ResourceClaimStatus struct { // DriverName is a copy of the driver name from the ResourceClass at // the time when allocation started. // +optional DriverName string `json:"driverName,omitempty" protobuf:"bytes,1,opt,name=driverName"` // Allocation is set by the resource driver once a resource or set of // resources has been allocated successfully. If this is not specified, the // resources have not been allocated yet. // +optional Allocation *AllocationResult `json:"allocation,omitempty" protobuf:"bytes,2,opt,name=allocation"` // ReservedFor indicates which entities are currently allowed to use // the claim. A Pod which references a ResourceClaim which is not // reserved for that Pod will not be started. // // There can be at most 32 such reservations. This may get increased in // the future, but not reduced. // // +listType=map // +listMapKey=uid // +optional ReservedFor []ResourceClaimConsumerReference `json:"reservedFor,omitempty" protobuf:"bytes,3,opt,name=reservedFor"` // DeallocationRequested indicates that a ResourceClaim is to be // deallocated. // // The driver then must deallocate this claim and reset the field // together with clearing the Allocation field. // // While DeallocationRequested is set, no new consumers may be added to // ReservedFor. // +optional DeallocationRequested bool `json:"deallocationRequested,omitempty" protobuf:"varint,4,opt,name=deallocationRequested"` } // ReservedForMaxSize is the maximum number of entries in // claim.status.reservedFor. const ResourceClaimReservedForMaxSize = 32 // AllocationResult contains attributes of an allocated resource. type AllocationResult struct { // ResourceHandles contain the state associated with an allocation that // should be maintained throughout the lifetime of a claim. Each // ResourceHandle contains data that should be passed to a specific kubelet // plugin once it lands on a node. This data is returned by the driver // after a successful allocation and is opaque to Kubernetes. Driver // documentation may explain to users how to interpret this data if needed. // // Setting this field is optional. It has a maximum size of 32 entries. // If null (or empty), it is assumed this allocation will be processed by a // single kubelet plugin with no ResourceHandle data attached. The name of // the kubelet plugin invoked will match the DriverName set in the // ResourceClaimStatus this AllocationResult is embedded in. // // +listType=atomic // +optional ResourceHandles []ResourceHandle `json:"resourceHandles,omitempty" protobuf:"bytes,1,opt,name=resourceHandles"` // This field will get set by the resource driver after it has allocated // the resource to inform the scheduler where it can schedule Pods using // the ResourceClaim. // // Setting this field is optional. If null, the resource is available // everywhere. // +optional AvailableOnNodes *v1.NodeSelector `json:"availableOnNodes,omitempty" protobuf:"bytes,2,opt,name=availableOnNodes"` // Shareable determines whether the resource supports more // than one consumer at a time. // +optional Shareable bool `json:"shareable,omitempty" protobuf:"varint,3,opt,name=shareable"` } // AllocationResultResourceHandlesMaxSize represents the maximum number of // entries in allocation.resourceHandles. const AllocationResultResourceHandlesMaxSize = 32 // ResourceHandle holds opaque resource data for processing by a specific kubelet plugin. type ResourceHandle struct { // DriverName specifies the name of the resource driver whose kubelet // plugin should be invoked to process this ResourceHandle's data once it // lands on a node. This may differ from the DriverName set in // ResourceClaimStatus this ResourceHandle is embedded in. DriverName string `json:"driverName,omitempty" protobuf:"bytes,1,opt,name=driverName"` // Data contains the opaque data associated with this ResourceHandle. It is // set by the controller component of the resource driver whose name // matches the DriverName set in the ResourceClaimStatus this // ResourceHandle is embedded in. It is set at allocation time and is // intended for processing by the kubelet plugin whose name matches // the DriverName set in this ResourceHandle. // // The maximum size of this field is 16KiB. This may get increased in the // future, but not reduced. // +optional Data string `json:"data,omitempty" protobuf:"bytes,2,opt,name=data"` } // ResourceHandleDataMaxSize represents the maximum size of resourceHandle.data. const ResourceHandleDataMaxSize = 16 * 1024 // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.26 // ResourceClaimList is a collection of claims. type ResourceClaimList 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 resource claims. Items []ResourceClaim `json:"items" protobuf:"bytes,2,rep,name=items"` } // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.26 // PodSchedulingContext objects hold information that is needed to schedule // a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation // mode. // // This is an alpha type and requires enabling the DynamicResourceAllocation // feature gate. type PodSchedulingContext struct { metav1.TypeMeta `json:",inline"` // Standard object metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec describes where resources for the Pod are needed. Spec PodSchedulingContextSpec `json:"spec" protobuf:"bytes,2,name=spec"` // Status describes where resources for the Pod can be allocated. // +optional Status PodSchedulingContextStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // PodSchedulingContextSpec describes where resources for the Pod are needed. type PodSchedulingContextSpec struct { // SelectedNode is the node for which allocation of ResourceClaims that // are referenced by the Pod and that use "WaitForFirstConsumer" // allocation is to be attempted. // +optional SelectedNode string `json:"selectedNode,omitempty" protobuf:"bytes,1,opt,name=selectedNode"` // PotentialNodes lists nodes where the Pod might be able to run. // // The size of this field is limited to 128. This is large enough for // many clusters. Larger clusters may need more attempts to find a node // that suits all pending resources. This may get increased in the // future, but not reduced. // // +listType=atomic // +optional PotentialNodes []string `json:"potentialNodes,omitempty" protobuf:"bytes,2,opt,name=potentialNodes"` } // PodSchedulingContextStatus describes where resources for the Pod can be allocated. type PodSchedulingContextStatus struct { // ResourceClaims describes resource availability for each // pod.spec.resourceClaim entry where the corresponding ResourceClaim // uses "WaitForFirstConsumer" allocation mode. // // +listType=map // +listMapKey=name // +optional ResourceClaims []ResourceClaimSchedulingStatus `json:"resourceClaims,omitempty" protobuf:"bytes,1,opt,name=resourceClaims"` // If there ever is a need to support other kinds of resources // than ResourceClaim, then new fields could get added here // for those other resources. } // ResourceClaimSchedulingStatus contains information about one particular // ResourceClaim with "WaitForFirstConsumer" allocation mode. type ResourceClaimSchedulingStatus struct { // Name matches the pod.spec.resourceClaims[*].Name field. // +optional Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` // UnsuitableNodes lists nodes that the ResourceClaim cannot be // allocated for. // // The size of this field is limited to 128, the same as for // PodSchedulingSpec.PotentialNodes. This may get increased in the // future, but not reduced. // // +listType=atomic // +optional UnsuitableNodes []string `json:"unsuitableNodes,omitempty" protobuf:"bytes,2,opt,name=unsuitableNodes"` } // PodSchedulingNodeListMaxSize defines the maximum number of entries in the // node lists that are stored in PodSchedulingContext objects. This limit is part // of the API. const PodSchedulingNodeListMaxSize = 128 // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.26 // PodSchedulingContextList is a collection of Pod scheduling objects. type PodSchedulingContextList 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 PodSchedulingContext objects. Items []PodSchedulingContext `json:"items" protobuf:"bytes,2,rep,name=items"` } // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.26 // ResourceClass is used by administrators to influence how resources // are allocated. // // This is an alpha type and requires enabling the DynamicResourceAllocation // feature gate. type ResourceClass struct { metav1.TypeMeta `json:",inline"` // Standard object metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // DriverName defines the name of the dynamic resource driver that is // used for allocation of a ResourceClaim that uses this class. // // Resource drivers have a unique name in forward domain order // (acme.example.com). DriverName string `json:"driverName" protobuf:"bytes,2,name=driverName"` // ParametersRef references an arbitrary separate object that may hold // parameters that will be used by the driver when allocating a // resource that uses this class. A dynamic resource driver can // distinguish between parameters stored here and and those stored in // ResourceClaimSpec. // +optional ParametersRef *ResourceClassParametersReference `json:"parametersRef,omitempty" protobuf:"bytes,3,opt,name=parametersRef"` // Only nodes matching the selector will be considered by the scheduler // when trying to find a Node that fits a Pod when that Pod uses // a ResourceClaim that has not been allocated yet. // // Setting this field is optional. If null, all nodes are candidates. // +optional SuitableNodes *v1.NodeSelector `json:"suitableNodes,omitempty" protobuf:"bytes,4,opt,name=suitableNodes"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.26 // ResourceClassList is a collection of classes. type ResourceClassList 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 resource classes. Items []ResourceClass `json:"items" protobuf:"bytes,2,rep,name=items"` } // ResourceClassParametersReference contains enough information to let you // locate the parameters for a ResourceClass. type ResourceClassParametersReference struct { // APIGroup is the group for the resource being referenced. It is // empty for the core API. This matches the group in the APIVersion // that is used when creating the resources. // +optional APIGroup string `json:"apiGroup,omitempty" protobuf:"bytes,1,opt,name=apiGroup"` // Kind is the type of resource being referenced. This is the same // value as in the parameter object's metadata. Kind string `json:"kind" protobuf:"bytes,2,name=kind"` // Name is the name of resource being referenced. Name string `json:"name" protobuf:"bytes,3,name=name"` // Namespace that contains the referenced resource. Must be empty // for cluster-scoped resources and non-empty for namespaced // resources. // +optional Namespace string `json:"namespace,omitempty" protobuf:"bytes,4,opt,name=namespace"` } // ResourceClaimParametersReference contains enough information to let you // locate the parameters for a ResourceClaim. The object must be in the same // namespace as the ResourceClaim. type ResourceClaimParametersReference struct { // APIGroup is the group for the resource being referenced. It is // empty for the core API. This matches the group in the APIVersion // that is used when creating the resources. // +optional APIGroup string `json:"apiGroup,omitempty" protobuf:"bytes,1,opt,name=apiGroup"` // Kind is the type of resource being referenced. This is the same // value as in the parameter object's metadata, for example "ConfigMap". Kind string `json:"kind" protobuf:"bytes,2,name=kind"` // Name is the name of resource being referenced. Name string `json:"name" protobuf:"bytes,3,name=name"` } // ResourceClaimConsumerReference contains enough information to let you // locate the consumer of a ResourceClaim. The user must be a resource in the same // namespace as the ResourceClaim. type ResourceClaimConsumerReference struct { // APIGroup is the group for the resource being referenced. It is // empty for the core API. This matches the group in the APIVersion // that is used when creating the resources. // +optional APIGroup string `json:"apiGroup,omitempty" protobuf:"bytes,1,opt,name=apiGroup"` // Resource is the type of resource being referenced, for example "pods". Resource string `json:"resource" protobuf:"bytes,3,name=resource"` // Name is the name of resource being referenced. Name string `json:"name" protobuf:"bytes,4,name=name"` // UID identifies exactly one incarnation of the resource. UID types.UID `json:"uid" protobuf:"bytes,5,name=uid"` } // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.26 // ResourceClaimTemplate is used to produce ResourceClaim objects. type ResourceClaimTemplate struct { metav1.TypeMeta `json:",inline"` // Standard object metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Describes the ResourceClaim that is to be generated. // // This field is immutable. A ResourceClaim will get created by the // control plane for a Pod when needed and then not get updated // anymore. Spec ResourceClaimTemplateSpec `json:"spec" protobuf:"bytes,2,name=spec"` } // ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. type ResourceClaimTemplateSpec struct { // ObjectMeta may contain labels and annotations that will be copied into the PVC // when creating it. No other fields are allowed and will be rejected during // validation. // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec for the ResourceClaim. The entire content is copied unchanged // into the ResourceClaim that gets created from this template. The // same fields as in a ResourceClaim are also valid here. Spec ResourceClaimSpec `json:"spec" protobuf:"bytes,2,name=spec"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.26 // ResourceClaimTemplateList is a collection of claim templates. type ResourceClaimTemplateList 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 resource claim templates. Items []ResourceClaimTemplate `json:"items" protobuf:"bytes,2,rep,name=items"` } golang-k8s-api-0.29.0/resource/v1alpha2/types_swagger_doc_generated.go000066400000000000000000000346511453636404600256710ustar00rootroot00000000000000/* 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 v1alpha2 // 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_AllocationResult = map[string]string{ "": "AllocationResult contains attributes of an allocated resource.", "resourceHandles": "ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim. Each ResourceHandle contains data that should be passed to a specific kubelet plugin once it lands on a node. This data is returned by the driver after a successful allocation and is opaque to Kubernetes. Driver documentation may explain to users how to interpret this data if needed.\n\nSetting this field is optional. It has a maximum size of 32 entries. If null (or empty), it is assumed this allocation will be processed by a single kubelet plugin with no ResourceHandle data attached. The name of the kubelet plugin invoked will match the DriverName set in the ResourceClaimStatus this AllocationResult is embedded in.", "availableOnNodes": "This field will get set by the resource driver after it has allocated the resource to inform the scheduler where it can schedule Pods using the ResourceClaim.\n\nSetting this field is optional. If null, the resource is available everywhere.", "shareable": "Shareable determines whether the resource supports more than one consumer at a time.", } func (AllocationResult) SwaggerDoc() map[string]string { return map_AllocationResult } var map_PodSchedulingContext = map[string]string{ "": "PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use \"WaitForFirstConsumer\" allocation mode.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", "metadata": "Standard object metadata", "spec": "Spec describes where resources for the Pod are needed.", "status": "Status describes where resources for the Pod can be allocated.", } func (PodSchedulingContext) SwaggerDoc() map[string]string { return map_PodSchedulingContext } var map_PodSchedulingContextList = map[string]string{ "": "PodSchedulingContextList is a collection of Pod scheduling objects.", "metadata": "Standard list metadata", "items": "Items is the list of PodSchedulingContext objects.", } func (PodSchedulingContextList) SwaggerDoc() map[string]string { return map_PodSchedulingContextList } var map_PodSchedulingContextSpec = map[string]string{ "": "PodSchedulingContextSpec describes where resources for the Pod are needed.", "selectedNode": "SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted.", "potentialNodes": "PotentialNodes lists nodes where the Pod might be able to run.\n\nThe size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.", } func (PodSchedulingContextSpec) SwaggerDoc() map[string]string { return map_PodSchedulingContextSpec } var map_PodSchedulingContextStatus = map[string]string{ "": "PodSchedulingContextStatus describes where resources for the Pod can be allocated.", "resourceClaims": "ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode.", } func (PodSchedulingContextStatus) SwaggerDoc() map[string]string { return map_PodSchedulingContextStatus } var map_ResourceClaim = map[string]string{ "": "ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", "metadata": "Standard object metadata", "spec": "Spec describes the desired attributes of a resource that then needs to be allocated. It can only be set once when creating the ResourceClaim.", "status": "Status describes whether the resource is available and with which attributes.", } func (ResourceClaim) SwaggerDoc() map[string]string { return map_ResourceClaim } var map_ResourceClaimConsumerReference = map[string]string{ "": "ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.", "apiGroup": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", "resource": "Resource is the type of resource being referenced, for example \"pods\".", "name": "Name is the name of resource being referenced.", "uid": "UID identifies exactly one incarnation of the resource.", } func (ResourceClaimConsumerReference) SwaggerDoc() map[string]string { return map_ResourceClaimConsumerReference } var map_ResourceClaimList = map[string]string{ "": "ResourceClaimList is a collection of claims.", "metadata": "Standard list metadata", "items": "Items is the list of resource claims.", } func (ResourceClaimList) SwaggerDoc() map[string]string { return map_ResourceClaimList } var map_ResourceClaimParametersReference = map[string]string{ "": "ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim.", "apiGroup": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", "kind": "Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \"ConfigMap\".", "name": "Name is the name of resource being referenced.", } func (ResourceClaimParametersReference) SwaggerDoc() map[string]string { return map_ResourceClaimParametersReference } var map_ResourceClaimSchedulingStatus = map[string]string{ "": "ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode.", "name": "Name matches the pod.spec.resourceClaims[*].Name field.", "unsuitableNodes": "UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.\n\nThe size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.", } func (ResourceClaimSchedulingStatus) SwaggerDoc() map[string]string { return map_ResourceClaimSchedulingStatus } var map_ResourceClaimSpec = map[string]string{ "": "ResourceClaimSpec defines how a resource is to be allocated.", "resourceClassName": "ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.", "parametersRef": "ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim.\n\nThe object must be in the same namespace as the ResourceClaim.", "allocationMode": "Allocation can start immediately or when a Pod wants to use the resource. \"WaitForFirstConsumer\" is the default.", } func (ResourceClaimSpec) SwaggerDoc() map[string]string { return map_ResourceClaimSpec } var map_ResourceClaimStatus = map[string]string{ "": "ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.", "driverName": "DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.", "allocation": "Allocation is set by the resource driver once a resource or set of resources has been allocated successfully. If this is not specified, the resources have not been allocated yet.", "reservedFor": "ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started.\n\nThere can be at most 32 such reservations. This may get increased in the future, but not reduced.", "deallocationRequested": "DeallocationRequested indicates that a ResourceClaim is to be deallocated.\n\nThe driver then must deallocate this claim and reset the field together with clearing the Allocation field.\n\nWhile DeallocationRequested is set, no new consumers may be added to ReservedFor.", } func (ResourceClaimStatus) SwaggerDoc() map[string]string { return map_ResourceClaimStatus } var map_ResourceClaimTemplate = map[string]string{ "": "ResourceClaimTemplate is used to produce ResourceClaim objects.", "metadata": "Standard object metadata", "spec": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.", } func (ResourceClaimTemplate) SwaggerDoc() map[string]string { return map_ResourceClaimTemplate } var map_ResourceClaimTemplateList = map[string]string{ "": "ResourceClaimTemplateList is a collection of claim templates.", "metadata": "Standard list metadata", "items": "Items is the list of resource claim templates.", } func (ResourceClaimTemplateList) SwaggerDoc() map[string]string { return map_ResourceClaimTemplateList } var map_ResourceClaimTemplateSpec = map[string]string{ "": "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.", "metadata": "ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.", "spec": "Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.", } func (ResourceClaimTemplateSpec) SwaggerDoc() map[string]string { return map_ResourceClaimTemplateSpec } var map_ResourceClass = map[string]string{ "": "ResourceClass is used by administrators to influence how resources are allocated.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", "metadata": "Standard object metadata", "driverName": "DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class.\n\nResource drivers have a unique name in forward domain order (acme.example.com).", "parametersRef": "ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec.", "suitableNodes": "Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet.\n\nSetting this field is optional. If null, all nodes are candidates.", } func (ResourceClass) SwaggerDoc() map[string]string { return map_ResourceClass } var map_ResourceClassList = map[string]string{ "": "ResourceClassList is a collection of classes.", "metadata": "Standard list metadata", "items": "Items is the list of resource classes.", } func (ResourceClassList) SwaggerDoc() map[string]string { return map_ResourceClassList } var map_ResourceClassParametersReference = map[string]string{ "": "ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass.", "apiGroup": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", "kind": "Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.", "name": "Name is the name of resource being referenced.", "namespace": "Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.", } func (ResourceClassParametersReference) SwaggerDoc() map[string]string { return map_ResourceClassParametersReference } var map_ResourceHandle = map[string]string{ "": "ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.", "driverName": "DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.", "data": "Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.\n\nThe maximum size of this field is 16KiB. This may get increased in the future, but not reduced.", } func (ResourceHandle) SwaggerDoc() map[string]string { return map_ResourceHandle } // AUTO-GENERATED FUNCTIONS END HERE golang-k8s-api-0.29.0/resource/v1alpha2/zz_generated.deepcopy.go000066400000000000000000000356131453636404600244320ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 v1alpha2 import ( v1 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AllocationResult) DeepCopyInto(out *AllocationResult) { *out = *in if in.ResourceHandles != nil { in, out := &in.ResourceHandles, &out.ResourceHandles *out = make([]ResourceHandle, len(*in)) copy(*out, *in) } if in.AvailableOnNodes != nil { in, out := &in.AvailableOnNodes, &out.AvailableOnNodes *out = new(v1.NodeSelector) (*in).DeepCopyInto(*out) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllocationResult. func (in *AllocationResult) DeepCopy() *AllocationResult { if in == nil { return nil } out := new(AllocationResult) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PodSchedulingContext) DeepCopyInto(out *PodSchedulingContext) { *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 PodSchedulingContext. func (in *PodSchedulingContext) DeepCopy() *PodSchedulingContext { if in == nil { return nil } out := new(PodSchedulingContext) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *PodSchedulingContext) 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 *PodSchedulingContextList) DeepCopyInto(out *PodSchedulingContextList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]PodSchedulingContext, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingContextList. func (in *PodSchedulingContextList) DeepCopy() *PodSchedulingContextList { if in == nil { return nil } out := new(PodSchedulingContextList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *PodSchedulingContextList) 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 *PodSchedulingContextSpec) DeepCopyInto(out *PodSchedulingContextSpec) { *out = *in if in.PotentialNodes != nil { in, out := &in.PotentialNodes, &out.PotentialNodes *out = make([]string, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingContextSpec. func (in *PodSchedulingContextSpec) DeepCopy() *PodSchedulingContextSpec { if in == nil { return nil } out := new(PodSchedulingContextSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PodSchedulingContextStatus) DeepCopyInto(out *PodSchedulingContextStatus) { *out = *in if in.ResourceClaims != nil { in, out := &in.ResourceClaims, &out.ResourceClaims *out = make([]ResourceClaimSchedulingStatus, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingContextStatus. func (in *PodSchedulingContextStatus) DeepCopy() *PodSchedulingContextStatus { if in == nil { return nil } out := new(PodSchedulingContextStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ResourceClaim) DeepCopyInto(out *ResourceClaim) { *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 ResourceClaim. func (in *ResourceClaim) DeepCopy() *ResourceClaim { if in == nil { return nil } out := new(ResourceClaim) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *ResourceClaim) 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 *ResourceClaimConsumerReference) DeepCopyInto(out *ResourceClaimConsumerReference) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimConsumerReference. func (in *ResourceClaimConsumerReference) DeepCopy() *ResourceClaimConsumerReference { if in == nil { return nil } out := new(ResourceClaimConsumerReference) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ResourceClaimList) DeepCopyInto(out *ResourceClaimList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ResourceClaim, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimList. func (in *ResourceClaimList) DeepCopy() *ResourceClaimList { if in == nil { return nil } out := new(ResourceClaimList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *ResourceClaimList) 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 *ResourceClaimParametersReference) DeepCopyInto(out *ResourceClaimParametersReference) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimParametersReference. func (in *ResourceClaimParametersReference) DeepCopy() *ResourceClaimParametersReference { if in == nil { return nil } out := new(ResourceClaimParametersReference) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ResourceClaimSchedulingStatus) DeepCopyInto(out *ResourceClaimSchedulingStatus) { *out = *in if in.UnsuitableNodes != nil { in, out := &in.UnsuitableNodes, &out.UnsuitableNodes *out = make([]string, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimSchedulingStatus. func (in *ResourceClaimSchedulingStatus) DeepCopy() *ResourceClaimSchedulingStatus { if in == nil { return nil } out := new(ResourceClaimSchedulingStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ResourceClaimSpec) DeepCopyInto(out *ResourceClaimSpec) { *out = *in if in.ParametersRef != nil { in, out := &in.ParametersRef, &out.ParametersRef *out = new(ResourceClaimParametersReference) **out = **in } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimSpec. func (in *ResourceClaimSpec) DeepCopy() *ResourceClaimSpec { if in == nil { return nil } out := new(ResourceClaimSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ResourceClaimStatus) DeepCopyInto(out *ResourceClaimStatus) { *out = *in if in.Allocation != nil { in, out := &in.Allocation, &out.Allocation *out = new(AllocationResult) (*in).DeepCopyInto(*out) } if in.ReservedFor != nil { in, out := &in.ReservedFor, &out.ReservedFor *out = make([]ResourceClaimConsumerReference, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimStatus. func (in *ResourceClaimStatus) DeepCopy() *ResourceClaimStatus { if in == nil { return nil } out := new(ResourceClaimStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ResourceClaimTemplate) DeepCopyInto(out *ResourceClaimTemplate) { *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 ResourceClaimTemplate. func (in *ResourceClaimTemplate) DeepCopy() *ResourceClaimTemplate { if in == nil { return nil } out := new(ResourceClaimTemplate) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *ResourceClaimTemplate) 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 *ResourceClaimTemplateList) DeepCopyInto(out *ResourceClaimTemplateList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ResourceClaimTemplate, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimTemplateList. func (in *ResourceClaimTemplateList) DeepCopy() *ResourceClaimTemplateList { if in == nil { return nil } out := new(ResourceClaimTemplateList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *ResourceClaimTemplateList) 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 *ResourceClaimTemplateSpec) DeepCopyInto(out *ResourceClaimTemplateSpec) { *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 ResourceClaimTemplateSpec. func (in *ResourceClaimTemplateSpec) DeepCopy() *ResourceClaimTemplateSpec { if in == nil { return nil } out := new(ResourceClaimTemplateSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ResourceClass) DeepCopyInto(out *ResourceClass) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) if in.ParametersRef != nil { in, out := &in.ParametersRef, &out.ParametersRef *out = new(ResourceClassParametersReference) **out = **in } if in.SuitableNodes != nil { in, out := &in.SuitableNodes, &out.SuitableNodes *out = new(v1.NodeSelector) (*in).DeepCopyInto(*out) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClass. func (in *ResourceClass) DeepCopy() *ResourceClass { if in == nil { return nil } out := new(ResourceClass) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *ResourceClass) 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 *ResourceClassList) DeepCopyInto(out *ResourceClassList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ResourceClass, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClassList. func (in *ResourceClassList) DeepCopy() *ResourceClassList { if in == nil { return nil } out := new(ResourceClassList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *ResourceClassList) 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 *ResourceClassParametersReference) DeepCopyInto(out *ResourceClassParametersReference) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClassParametersReference. func (in *ResourceClassParametersReference) DeepCopy() *ResourceClassParametersReference { if in == nil { return nil } out := new(ResourceClassParametersReference) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ResourceHandle) DeepCopyInto(out *ResourceHandle) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceHandle. func (in *ResourceHandle) DeepCopy() *ResourceHandle { if in == nil { return nil } out := new(ResourceHandle) in.DeepCopyInto(out) return out } golang-k8s-api-0.29.0/roundtrip_test.go000066400000000000000000000134261453636404600177600ustar00rootroot00000000000000/* 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 api import ( "math/rand" "testing" admissionv1 "k8s.io/api/admission/v1" admissionv1beta1 "k8s.io/api/admission/v1beta1" admissionregv1 "k8s.io/api/admissionregistration/v1" admissionregv1alpha1 "k8s.io/api/admissionregistration/v1alpha1" admissionregv1beta1 "k8s.io/api/admissionregistration/v1beta1" apidiscoveryv2beta1 "k8s.io/api/apidiscovery/v2beta1" apiserverinternalv1alpha1 "k8s.io/api/apiserverinternal/v1alpha1" appsv1 "k8s.io/api/apps/v1" appsv1beta1 "k8s.io/api/apps/v1beta1" appsv1beta2 "k8s.io/api/apps/v1beta2" authenticationv1 "k8s.io/api/authentication/v1" authenticationv1beta1 "k8s.io/api/authentication/v1beta1" authorizationv1 "k8s.io/api/authorization/v1" authorizationv1beta1 "k8s.io/api/authorization/v1beta1" autoscalingv1 "k8s.io/api/autoscaling/v1" autoscalingv2 "k8s.io/api/autoscaling/v2" autoscalingv2beta1 "k8s.io/api/autoscaling/v2beta1" autoscalingv2beta2 "k8s.io/api/autoscaling/v2beta2" batchv1 "k8s.io/api/batch/v1" batchv1beta1 "k8s.io/api/batch/v1beta1" certificatesv1 "k8s.io/api/certificates/v1" certificatesv1alpha1 "k8s.io/api/certificates/v1alpha1" certificatesv1beta1 "k8s.io/api/certificates/v1beta1" coordinationv1 "k8s.io/api/coordination/v1" coordinationv1beta1 "k8s.io/api/coordination/v1beta1" corev1 "k8s.io/api/core/v1" discoveryv1 "k8s.io/api/discovery/v1" discoveryv1beta1 "k8s.io/api/discovery/v1beta1" eventsv1 "k8s.io/api/events/v1" eventsv1beta1 "k8s.io/api/events/v1beta1" extensionsv1beta1 "k8s.io/api/extensions/v1beta1" flowcontrolv1 "k8s.io/api/flowcontrol/v1" flowcontrolv1beta1 "k8s.io/api/flowcontrol/v1beta1" flowcontrolv1beta2 "k8s.io/api/flowcontrol/v1beta2" flowcontrolv1beta3 "k8s.io/api/flowcontrol/v1beta3" imagepolicyv1alpha1 "k8s.io/api/imagepolicy/v1alpha1" networkingv1 "k8s.io/api/networking/v1" networkingv1alpha1 "k8s.io/api/networking/v1alpha1" networkingv1beta1 "k8s.io/api/networking/v1beta1" nodev1 "k8s.io/api/node/v1" nodev1alpha1 "k8s.io/api/node/v1alpha1" nodev1beta1 "k8s.io/api/node/v1beta1" policyv1 "k8s.io/api/policy/v1" policyv1beta1 "k8s.io/api/policy/v1beta1" rbacv1 "k8s.io/api/rbac/v1" rbacv1alpha1 "k8s.io/api/rbac/v1alpha1" rbacv1beta1 "k8s.io/api/rbac/v1beta1" resourcev1alpha2 "k8s.io/api/resource/v1alpha2" schedulingv1 "k8s.io/api/scheduling/v1" schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1" schedulingv1beta1 "k8s.io/api/scheduling/v1beta1" storagev1 "k8s.io/api/storage/v1" storagev1alpha1 "k8s.io/api/storage/v1alpha1" storagev1beta1 "k8s.io/api/storage/v1beta1" "github.com/stretchr/testify/require" "k8s.io/apimachinery/pkg/api/apitesting/fuzzer" "k8s.io/apimachinery/pkg/api/apitesting/roundtrip" genericfuzzer "k8s.io/apimachinery/pkg/apis/meta/fuzzer" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/serializer" ) var groups = []runtime.SchemeBuilder{ admissionv1beta1.SchemeBuilder, admissionv1.SchemeBuilder, admissionregv1alpha1.SchemeBuilder, admissionregv1beta1.SchemeBuilder, admissionregv1.SchemeBuilder, apiserverinternalv1alpha1.SchemeBuilder, apidiscoveryv2beta1.SchemeBuilder, appsv1beta1.SchemeBuilder, appsv1beta2.SchemeBuilder, appsv1.SchemeBuilder, authenticationv1beta1.SchemeBuilder, authenticationv1.SchemeBuilder, authorizationv1beta1.SchemeBuilder, authorizationv1.SchemeBuilder, autoscalingv1.SchemeBuilder, autoscalingv2.SchemeBuilder, autoscalingv2beta1.SchemeBuilder, autoscalingv2beta2.SchemeBuilder, batchv1beta1.SchemeBuilder, batchv1.SchemeBuilder, certificatesv1.SchemeBuilder, certificatesv1beta1.SchemeBuilder, certificatesv1alpha1.SchemeBuilder, coordinationv1.SchemeBuilder, coordinationv1beta1.SchemeBuilder, corev1.SchemeBuilder, discoveryv1.SchemeBuilder, discoveryv1beta1.SchemeBuilder, eventsv1.SchemeBuilder, eventsv1beta1.SchemeBuilder, extensionsv1beta1.SchemeBuilder, flowcontrolv1beta1.SchemeBuilder, flowcontrolv1beta2.SchemeBuilder, flowcontrolv1beta3.SchemeBuilder, flowcontrolv1.SchemeBuilder, imagepolicyv1alpha1.SchemeBuilder, networkingv1.SchemeBuilder, networkingv1beta1.SchemeBuilder, networkingv1alpha1.SchemeBuilder, nodev1.SchemeBuilder, nodev1alpha1.SchemeBuilder, nodev1beta1.SchemeBuilder, policyv1.SchemeBuilder, policyv1beta1.SchemeBuilder, rbacv1alpha1.SchemeBuilder, rbacv1beta1.SchemeBuilder, rbacv1.SchemeBuilder, resourcev1alpha2.SchemeBuilder, schedulingv1alpha1.SchemeBuilder, schedulingv1beta1.SchemeBuilder, schedulingv1.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) } golang-k8s-api-0.29.0/scheduling/000077500000000000000000000000001453636404600164635ustar00rootroot00000000000000golang-k8s-api-0.29.0/scheduling/v1/000077500000000000000000000000001453636404600170115ustar00rootroot00000000000000golang-k8s-api-0.29.0/scheduling/v1/doc.go000066400000000000000000000013401453636404600201030ustar00rootroot00000000000000/* 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 "k8s.io/api/scheduling/v1" golang-k8s-api-0.29.0/scheduling/v1/generated.pb.go000066400000000000000000000457631453636404600217150ustar00rootroot00000000000000/* 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/k8s.io/api/scheduling/v1/generated.proto package v1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" k8s_io_api_core_v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // 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/k8s.io/api/scheduling/v1/generated.proto", fileDescriptor_277b2f43b72fffd5) } var fileDescriptor_277b2f43b72fffd5 = []byte{ // 492 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x8b, 0xd3, 0x4e, 0x18, 0xc7, 0x3b, 0xdd, 0x5f, 0xa1, 0xbf, 0x29, 0x85, 0x1a, 0x11, 0x42, 0x0f, 0x69, 0xe9, 0x1e, 0xec, 0xc5, 0x19, 0xbb, 0xa8, 0x08, 0x0b, 0x82, 0x71, 0x41, 0x84, 0x15, 0x4b, 0x0e, 0x1e, 0xc4, 0x83, 0x93, 0xe4, 0xd9, 0x74, 0x6c, 0x92, 0x09, 0x33, 0x93, 0x40, 0x6f, 0xbe, 0x04, 0xdf, 0x91, 0xd7, 0x1e, 0xf7, 0xb8, 0xa7, 0x62, 0xe3, 0x4b, 0xf0, 0xe6, 0x49, 0x92, 0xc6, 0x4d, 0xff, 0x6c, 0xd1, 0x5b, 0x9e, 0xe7, 0xf9, 0x7e, 0xbe, 0x33, 0xf3, 0xcd, 0x0c, 0x7e, 0x39, 0x7f, 0xae, 0x08, 0x17, 0x74, 0x9e, 0xba, 0x20, 0x63, 0xd0, 0xa0, 0x68, 0x06, 0xb1, 0x2f, 0x24, 0xad, 0x06, 0x2c, 0xe1, 0x54, 0x79, 0x33, 0xf0, 0xd3, 0x90, 0xc7, 0x01, 0xcd, 0x26, 0x34, 0x80, 0x18, 0x24, 0xd3, 0xe0, 0x93, 0x44, 0x0a, 0x2d, 0x0c, 0x73, 0xa3, 0x24, 0x2c, 0xe1, 0xa4, 0x56, 0x92, 0x6c, 0xd2, 0x7f, 0x14, 0x70, 0x3d, 0x4b, 0x5d, 0xe2, 0x89, 0x88, 0x06, 0x22, 0x10, 0xb4, 0x04, 0xdc, 0xf4, 0xaa, 0xac, 0xca, 0xa2, 0xfc, 0xda, 0x18, 0xf5, 0x47, 0x5b, 0x4b, 0x7a, 0x42, 0xc2, 0x1d, 0x8b, 0xf5, 0x9f, 0xd4, 0x9a, 0x88, 0x79, 0x33, 0x1e, 0x83, 0x5c, 0xd0, 0x64, 0x1e, 0x14, 0x0d, 0x45, 0x23, 0xd0, 0xec, 0x2e, 0x8a, 0x1e, 0xa3, 0x64, 0x1a, 0x6b, 0x1e, 0xc1, 0x01, 0xf0, 0xec, 0x6f, 0x40, 0x71, 0xd0, 0x88, 0xed, 0x73, 0xa3, 0x9f, 0x4d, 0xdc, 0x9d, 0x4a, 0x2e, 0x24, 0xd7, 0x8b, 0x57, 0x21, 0x53, 0xca, 0xf8, 0x84, 0xdb, 0xc5, 0xae, 0x7c, 0xa6, 0x99, 0x89, 0x86, 0x68, 0xdc, 0x39, 0x7b, 0x4c, 0xea, 0xc0, 0x6e, 0xcd, 0x49, 0x32, 0x0f, 0x8a, 0x86, 0x22, 0x85, 0x9a, 0x64, 0x13, 0xf2, 0xce, 0xfd, 0x0c, 0x9e, 0x7e, 0x0b, 0x9a, 0xd9, 0xc6, 0x72, 0x35, 0x68, 0xe4, 0xab, 0x01, 0xae, 0x7b, 0xce, 0xad, 0xab, 0x71, 0x8a, 0x5b, 0x19, 0x0b, 0x53, 0x30, 0x9b, 0x43, 0x34, 0x6e, 0xd9, 0xdd, 0x4a, 0xdc, 0x7a, 0x5f, 0x34, 0x9d, 0xcd, 0xcc, 0x38, 0xc7, 0xdd, 0x20, 0x14, 0x2e, 0x0b, 0x2f, 0xe0, 0x8a, 0xa5, 0xa1, 0x36, 0x4f, 0x86, 0x68, 0xdc, 0xb6, 0x1f, 0x54, 0xe2, 0xee, 0xeb, 0xed, 0xa1, 0xb3, 0xab, 0x35, 0x9e, 0xe2, 0x8e, 0x0f, 0xca, 0x93, 0x3c, 0xd1, 0x5c, 0xc4, 0xe6, 0x7f, 0x43, 0x34, 0xfe, 0xdf, 0xbe, 0x5f, 0xa1, 0x9d, 0x8b, 0x7a, 0xe4, 0x6c, 0xeb, 0x8c, 0x00, 0xf7, 0x12, 0x09, 0x10, 0x95, 0xd5, 0x54, 0x84, 0xdc, 0x5b, 0x98, 0xad, 0x92, 0x3d, 0xcf, 0x57, 0x83, 0xde, 0x74, 0x6f, 0xf6, 0x6b, 0x35, 0x38, 0x3d, 0xbc, 0x01, 0x64, 0x5f, 0xe6, 0x1c, 0x98, 0x8e, 0xbe, 0x21, 0x7c, 0x6f, 0x27, 0xf5, 0x4b, 0xae, 0xb4, 0xf1, 0xf1, 0x20, 0x79, 0xf2, 0x6f, 0xc9, 0x17, 0x74, 0x99, 0x7b, 0xaf, 0x3a, 0x62, 0xfb, 0x4f, 0x67, 0x2b, 0xf5, 0x4b, 0xdc, 0xe2, 0x1a, 0x22, 0x65, 0x36, 0x87, 0x27, 0xe3, 0xce, 0xd9, 0x43, 0x72, 0xec, 0x15, 0x90, 0x9d, 0x9d, 0xd5, 0xbf, 0xe7, 0x4d, 0x41, 0x3b, 0x1b, 0x13, 0xfb, 0xc5, 0x72, 0x6d, 0x35, 0xae, 0xd7, 0x56, 0xe3, 0x66, 0x6d, 0x35, 0xbe, 0xe4, 0x16, 0x5a, 0xe6, 0x16, 0xba, 0xce, 0x2d, 0x74, 0x93, 0x5b, 0xe8, 0x7b, 0x6e, 0xa1, 0xaf, 0x3f, 0xac, 0xc6, 0x07, 0xf3, 0xd8, 0x9b, 0xfc, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xa9, 0x88, 0x2b, 0xa0, 0xc7, 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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/scheduling/v1/generated.proto000066400000000000000000000054711453636404600220430ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/scheduling/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; // value represents the integer 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. // +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; } golang-k8s-api-0.29.0/scheduling/v1/register.go000066400000000000000000000035141453636404600211670ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/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 } golang-k8s-api-0.29.0/scheduling/v1/types.go000066400000000000000000000057401453636404600205120ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/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"` // value represents the integer 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. // +optional PreemptionPolicy *apiv1.PreemptionPolicy `json:"preemptionPolicy,omitempty" protobuf:"bytes,5,opt,name=preemptionPolicy"` } // +k8s:deepcopy-gen:interfaces=k8s.io/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"` } golang-k8s-api-0.29.0/scheduling/v1/types_swagger_doc_generated.go000066400000000000000000000056171453636404600250770ustar00rootroot00000000000000/* 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-codegen.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": "value represents the integer 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.", } 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 golang-k8s-api-0.29.0/scheduling/v1/zz_generated.deepcopy.go000066400000000000000000000050771453636404600236410ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *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 } golang-k8s-api-0.29.0/scheduling/v1alpha1/000077500000000000000000000000001453636404600201005ustar00rootroot00000000000000golang-k8s-api-0.29.0/scheduling/v1alpha1/doc.go000066400000000000000000000013541453636404600211770ustar00rootroot00000000000000/* 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 "k8s.io/api/scheduling/v1alpha1" golang-k8s-api-0.29.0/scheduling/v1alpha1/generated.pb.go000066400000000000000000000460431453636404600227740ustar00rootroot00000000000000/* 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/k8s.io/api/scheduling/v1alpha1/generated.proto package v1alpha1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" k8s_io_api_core_v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // 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/k8s.io/api/scheduling/v1alpha1/generated.proto", fileDescriptor_f033641dd0b95dce) } var fileDescriptor_f033641dd0b95dce = []byte{ // 495 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x31, 0x8f, 0xd3, 0x30, 0x14, 0xc7, 0xeb, 0x1e, 0x95, 0x8a, 0xab, 0x4a, 0x25, 0x08, 0x29, 0xea, 0xe0, 0x56, 0xbd, 0xa5, 0xcb, 0xd9, 0xf4, 0x04, 0x08, 0xe9, 0xb6, 0x52, 0xe9, 0x84, 0x04, 0xa2, 0xca, 0xc0, 0x80, 0x18, 0x70, 0xd3, 0x77, 0xa9, 0x69, 0x12, 0x47, 0xb6, 0x13, 0xa9, 0x1b, 0x1f, 0x81, 0x2f, 0x85, 0xd4, 0xf1, 0xc6, 0x9b, 0x2a, 0x1a, 0x3e, 0x02, 0x1b, 0x13, 0x4a, 0x9a, 0xbb, 0xb4, 0x0d, 0x1c, 0x6c, 0x79, 0xef, 0xfd, 0xfe, 0x7f, 0xdb, 0xff, 0xd8, 0xf8, 0x72, 0xf9, 0x52, 0x53, 0x21, 0xd9, 0x32, 0x9e, 0x81, 0x0a, 0xc1, 0x80, 0x66, 0x09, 0x84, 0x73, 0xa9, 0x58, 0x31, 0xe0, 0x91, 0x60, 0xda, 0x5d, 0xc0, 0x3c, 0xf6, 0x45, 0xe8, 0xb1, 0x64, 0xc4, 0xfd, 0x68, 0xc1, 0x47, 0xcc, 0x83, 0x10, 0x14, 0x37, 0x30, 0xa7, 0x91, 0x92, 0x46, 0x5a, 0x64, 0xc7, 0x53, 0x1e, 0x09, 0x5a, 0xf2, 0xf4, 0x96, 0xef, 0x9e, 0x79, 0xc2, 0x2c, 0xe2, 0x19, 0x75, 0x65, 0xc0, 0x3c, 0xe9, 0x49, 0x96, 0xcb, 0x66, 0xf1, 0x55, 0x5e, 0xe5, 0x45, 0xfe, 0xb5, 0xb3, 0xeb, 0x0e, 0xf6, 0x96, 0x77, 0xa5, 0x02, 0x96, 0x54, 0x96, 0xec, 0x3e, 0x2b, 0x99, 0x80, 0xbb, 0x0b, 0x11, 0x82, 0x5a, 0xb1, 0x68, 0xe9, 0x65, 0x0d, 0xcd, 0x02, 0x30, 0xfc, 0x4f, 0x2a, 0xf6, 0x37, 0x95, 0x8a, 0x43, 0x23, 0x02, 0xa8, 0x08, 0x5e, 0xfc, 0x4b, 0x90, 0x1d, 0x37, 0xe0, 0xc7, 0xba, 0xc1, 0xcf, 0x3a, 0x6e, 0x4f, 0x95, 0x90, 0x4a, 0x98, 0xd5, 0x2b, 0x9f, 0x6b, 0x6d, 0x7d, 0xc2, 0xcd, 0x6c, 0x57, 0x73, 0x6e, 0xb8, 0x8d, 0xfa, 0x68, 0xd8, 0x3a, 0x7f, 0x4a, 0xcb, 0xd8, 0xee, 0xcc, 0x69, 0xb4, 0xf4, 0xb2, 0x86, 0xa6, 0x19, 0x4d, 0x93, 0x11, 0x7d, 0x37, 0xfb, 0x0c, 0xae, 0x79, 0x0b, 0x86, 0x8f, 0xad, 0xf5, 0xa6, 0x57, 0x4b, 0x37, 0x3d, 0x5c, 0xf6, 0x9c, 0x3b, 0x57, 0xeb, 0x14, 0x37, 0x12, 0xee, 0xc7, 0x60, 0xd7, 0xfb, 0x68, 0xd8, 0x18, 0xb7, 0x0b, 0xb8, 0xf1, 0x3e, 0x6b, 0x3a, 0xbb, 0x99, 0x75, 0x81, 0xdb, 0x9e, 0x2f, 0x67, 0xdc, 0x9f, 0xc0, 0x15, 0x8f, 0x7d, 0x63, 0x9f, 0xf4, 0xd1, 0xb0, 0x39, 0x7e, 0x52, 0xc0, 0xed, 0xcb, 0xfd, 0xa1, 0x73, 0xc8, 0x5a, 0xcf, 0x71, 0x6b, 0x0e, 0xda, 0x55, 0x22, 0x32, 0x42, 0x86, 0xf6, 0x83, 0x3e, 0x1a, 0x3e, 0x1c, 0x3f, 0x2e, 0xa4, 0xad, 0x49, 0x39, 0x72, 0xf6, 0x39, 0xcb, 0xc3, 0x9d, 0x48, 0x01, 0x04, 0x79, 0x35, 0x95, 0xbe, 0x70, 0x57, 0x76, 0x23, 0xd7, 0x5e, 0xa4, 0x9b, 0x5e, 0x67, 0x7a, 0x34, 0xfb, 0xb5, 0xe9, 0x9d, 0x56, 0x6f, 0x00, 0x3d, 0xc6, 0x9c, 0x8a, 0xe9, 0xe0, 0x1b, 0xc2, 0x8f, 0x0e, 0x52, 0x7f, 0x23, 0xb4, 0xb1, 0x3e, 0x56, 0x92, 0xa7, 0xff, 0x97, 0x7c, 0xa6, 0xce, 0x73, 0xef, 0x14, 0x47, 0x6c, 0xde, 0x76, 0xf6, 0x52, 0x77, 0x70, 0x43, 0x18, 0x08, 0xb4, 0x5d, 0xef, 0x9f, 0x0c, 0x5b, 0xe7, 0x67, 0xf4, 0xfe, 0xb7, 0x40, 0x0f, 0xf6, 0x57, 0xfe, 0xa4, 0xd7, 0x99, 0x87, 0xb3, 0xb3, 0x1a, 0x4f, 0xd6, 0x5b, 0x52, 0xbb, 0xde, 0x92, 0xda, 0xcd, 0x96, 0xd4, 0xbe, 0xa4, 0x04, 0xad, 0x53, 0x82, 0xae, 0x53, 0x82, 0x6e, 0x52, 0x82, 0xbe, 0xa7, 0x04, 0x7d, 0xfd, 0x41, 0x6a, 0x1f, 0xc8, 0xfd, 0xaf, 0xf4, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbd, 0xf8, 0x5a, 0x80, 0xdf, 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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/scheduling/v1alpha1/generated.proto000066400000000000000000000056561453636404600231370ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/scheduling/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; // value represents the integer 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. // +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; } golang-k8s-api-0.29.0/scheduling/v1alpha1/register.go000066400000000000000000000033221453636404600222530ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &PriorityClass{}, &PriorityClassList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/scheduling/v1alpha1/types.go000066400000000000000000000061171453636404600216000ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/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"` // value represents the integer 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. // +optional PreemptionPolicy *apiv1.PreemptionPolicy `json:"preemptionPolicy,omitempty" protobuf:"bytes,5,opt,name=preemptionPolicy"` } // +k8s:deepcopy-gen:interfaces=k8s.io/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"` } golang-k8s-api-0.29.0/scheduling/v1alpha1/types_swagger_doc_generated.go000066400000000000000000000057731453636404600261710ustar00rootroot00000000000000/* 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-codegen.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": "value represents the integer 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.", } 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 golang-k8s-api-0.29.0/scheduling/v1alpha1/zz_generated.deepcopy.go000066400000000000000000000050751453636404600247260ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *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 } golang-k8s-api-0.29.0/scheduling/v1beta1/000077500000000000000000000000001453636404600177265ustar00rootroot00000000000000golang-k8s-api-0.29.0/scheduling/v1beta1/doc.go000066400000000000000000000014201453636404600210170ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true // +groupName=scheduling.k8s.io package v1beta1 // import "k8s.io/api/scheduling/v1beta1" golang-k8s-api-0.29.0/scheduling/v1beta1/generated.pb.go000066400000000000000000000460531453636404600226230ustar00rootroot00000000000000/* 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/k8s.io/api/scheduling/v1beta1/generated.proto package v1beta1 import ( fmt "fmt" io "io" proto "github.com/gogo/protobuf/proto" k8s_io_api_core_v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // 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/k8s.io/api/scheduling/v1beta1/generated.proto", fileDescriptor_6cd406dede2d3f42) } var fileDescriptor_6cd406dede2d3f42 = []byte{ // 497 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x31, 0x8f, 0xd3, 0x3e, 0x18, 0xc6, 0xeb, 0xde, 0xbf, 0x52, 0xff, 0xae, 0x2a, 0x95, 0x20, 0xa4, 0xa8, 0xd2, 0xa5, 0x55, 0x6f, 0xe9, 0x00, 0x36, 0x3d, 0x01, 0x42, 0xba, 0xad, 0x77, 0x02, 0x21, 0x81, 0x28, 0x19, 0x18, 0x10, 0x03, 0x4e, 0xf2, 0x5e, 0x6a, 0x9a, 0xc4, 0x91, 0xed, 0x44, 0xea, 0xc6, 0x47, 0xe0, 0x43, 0x31, 0x74, 0xbc, 0xf1, 0xa6, 0x8a, 0x86, 0x8f, 0xc0, 0xc6, 0x84, 0x92, 0x86, 0x4b, 0xdb, 0xc0, 0xc1, 0x96, 0xf7, 0x7d, 0x7f, 0xcf, 0x63, 0xfb, 0x89, 0x8d, 0x9f, 0x2d, 0x9e, 0x2a, 0xc2, 0x05, 0x5d, 0x24, 0x0e, 0xc8, 0x08, 0x34, 0x28, 0x9a, 0x42, 0xe4, 0x09, 0x49, 0xcb, 0x01, 0x8b, 0x39, 0x55, 0xee, 0x1c, 0xbc, 0x24, 0xe0, 0x91, 0x4f, 0xd3, 0x89, 0x03, 0x9a, 0x4d, 0xa8, 0x0f, 0x11, 0x48, 0xa6, 0xc1, 0x23, 0xb1, 0x14, 0x5a, 0x18, 0xc7, 0x5b, 0x9c, 0xb0, 0x98, 0x93, 0x0a, 0x27, 0x25, 0xde, 0x7f, 0xe0, 0x73, 0x3d, 0x4f, 0x1c, 0xe2, 0x8a, 0x90, 0xfa, 0xc2, 0x17, 0xb4, 0x50, 0x39, 0xc9, 0x65, 0x51, 0x15, 0x45, 0xf1, 0xb5, 0x75, 0xeb, 0x8f, 0x76, 0x16, 0x77, 0x85, 0x04, 0x9a, 0xd6, 0x56, 0xec, 0x3f, 0xaa, 0x98, 0x90, 0xb9, 0x73, 0x1e, 0x81, 0x5c, 0xd2, 0x78, 0xe1, 0xe7, 0x0d, 0x45, 0x43, 0xd0, 0xec, 0x77, 0x2a, 0xfa, 0x27, 0x95, 0x4c, 0x22, 0xcd, 0x43, 0xa8, 0x09, 0x9e, 0xfc, 0x4d, 0x90, 0x9f, 0x36, 0x64, 0x87, 0xba, 0xd1, 0xf7, 0x26, 0xee, 0xce, 0x24, 0x17, 0x92, 0xeb, 0xe5, 0x79, 0xc0, 0x94, 0x32, 0x3e, 0xe0, 0x76, 0xbe, 0x2b, 0x8f, 0x69, 0x66, 0xa2, 0x21, 0x1a, 0x77, 0x4e, 0x1f, 0x92, 0x2a, 0xb5, 0x1b, 0x73, 0x12, 0x2f, 0xfc, 0xbc, 0xa1, 0x48, 0x4e, 0x93, 0x74, 0x42, 0x5e, 0x3b, 0x1f, 0xc1, 0xd5, 0xaf, 0x40, 0xb3, 0xa9, 0xb1, 0x5a, 0x0f, 0x1a, 0xd9, 0x7a, 0x80, 0xab, 0x9e, 0x7d, 0xe3, 0x6a, 0x9c, 0xe0, 0x56, 0xca, 0x82, 0x04, 0xcc, 0xe6, 0x10, 0x8d, 0x5b, 0xd3, 0x6e, 0x09, 0xb7, 0xde, 0xe6, 0x4d, 0x7b, 0x3b, 0x33, 0xce, 0x70, 0xd7, 0x0f, 0x84, 0xc3, 0x82, 0x0b, 0xb8, 0x64, 0x49, 0xa0, 0xcd, 0xa3, 0x21, 0x1a, 0xb7, 0xa7, 0xf7, 0x4a, 0xb8, 0xfb, 0x7c, 0x77, 0x68, 0xef, 0xb3, 0xc6, 0x63, 0xdc, 0xf1, 0x40, 0xb9, 0x92, 0xc7, 0x9a, 0x8b, 0xc8, 0xfc, 0x6f, 0x88, 0xc6, 0xff, 0x4f, 0xef, 0x96, 0xd2, 0xce, 0x45, 0x35, 0xb2, 0x77, 0x39, 0xc3, 0xc7, 0xbd, 0x58, 0x02, 0x84, 0x45, 0x35, 0x13, 0x01, 0x77, 0x97, 0x66, 0xab, 0xd0, 0x9e, 0x65, 0xeb, 0x41, 0x6f, 0x76, 0x30, 0xfb, 0xb1, 0x1e, 0x9c, 0xd4, 0x6f, 0x00, 0x39, 0xc4, 0xec, 0x9a, 0xe9, 0xe8, 0x0b, 0xc2, 0x77, 0xf6, 0x52, 0x7f, 0xc9, 0x95, 0x36, 0xde, 0xd7, 0x92, 0x27, 0xff, 0x96, 0x7c, 0xae, 0x2e, 0x72, 0xef, 0x95, 0x47, 0x6c, 0xff, 0xea, 0xec, 0xa4, 0xfe, 0x06, 0xb7, 0xb8, 0x86, 0x50, 0x99, 0xcd, 0xe1, 0xd1, 0xb8, 0x73, 0x7a, 0x9f, 0xdc, 0xfa, 0x14, 0xc8, 0xde, 0xf6, 0xaa, 0x7f, 0xf4, 0x22, 0xb7, 0xb0, 0xb7, 0x4e, 0xd3, 0xf3, 0xd5, 0xc6, 0x6a, 0x5c, 0x6d, 0xac, 0xc6, 0xf5, 0xc6, 0x6a, 0x7c, 0xca, 0x2c, 0xb4, 0xca, 0x2c, 0x74, 0x95, 0x59, 0xe8, 0x3a, 0xb3, 0xd0, 0xd7, 0xcc, 0x42, 0x9f, 0xbf, 0x59, 0x8d, 0x77, 0xc7, 0xb7, 0x3e, 0xd1, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x6c, 0x56, 0x80, 0xdb, 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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/scheduling/v1beta1/generated.proto000066400000000000000000000056541453636404600227630ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/scheduling/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; // value represents the integer 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. // +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; } golang-k8s-api-0.29.0/scheduling/v1beta1/register.go000066400000000000000000000033201453636404600220770ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &PriorityClass{}, &PriorityClassList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/scheduling/v1beta1/types.go000066400000000000000000000070221453636404600214220ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.11 // +k8s:prerelease-lifecycle-gen:deprecated=1.14 // +k8s:prerelease-lifecycle-gen:removed=1.22 // +k8s:prerelease-lifecycle-gen:replacement=scheduling.k8s.io,v1,PriorityClass // 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"` // value represents the integer 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. // +optional PreemptionPolicy *apiv1.PreemptionPolicy `json:"preemptionPolicy,omitempty" protobuf:"bytes,5,opt,name=preemptionPolicy"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.11 // +k8s:prerelease-lifecycle-gen:deprecated=1.14 // +k8s:prerelease-lifecycle-gen:removed=1.22 // +k8s:prerelease-lifecycle-gen:replacement=scheduling.k8s.io,v1,PriorityClassList // 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"` } golang-k8s-api-0.29.0/scheduling/v1beta1/types_swagger_doc_generated.go000066400000000000000000000057721453636404600260160ustar00rootroot00000000000000/* 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-codegen.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": "value represents the integer 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.", } 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 golang-k8s-api-0.29.0/scheduling/v1beta1/zz_generated.deepcopy.go000066400000000000000000000050741453636404600245530ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *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 } golang-k8s-api-0.29.0/scheduling/v1beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000075541453636404600270340ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta1 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *PriorityClass) APILifecycleIntroduced() (major, minor int) { return 1, 11 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *PriorityClass) APILifecycleDeprecated() (major, minor int) { return 1, 14 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *PriorityClass) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "scheduling.k8s.io", Version: "v1", Kind: "PriorityClass"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *PriorityClass) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *PriorityClassList) APILifecycleIntroduced() (major, minor int) { return 1, 11 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *PriorityClassList) APILifecycleDeprecated() (major, minor int) { return 1, 14 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *PriorityClassList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "scheduling.k8s.io", Version: "v1", Kind: "PriorityClassList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *PriorityClassList) APILifecycleRemoved() (major, minor int) { return 1, 22 } golang-k8s-api-0.29.0/storage/000077500000000000000000000000001453636404600160025ustar00rootroot00000000000000golang-k8s-api-0.29.0/storage/OWNERS000066400000000000000000000002351453636404600167420ustar00rootroot00000000000000# See the OWNERS docs at https://go.k8s.io/owners approvers: - sig-storage-api-approvers reviewers: - sig-storage-api-reviewers labels: - sig/storage golang-k8s-api-0.29.0/storage/v1/000077500000000000000000000000001453636404600163305ustar00rootroot00000000000000golang-k8s-api-0.29.0/storage/v1/doc.go000066400000000000000000000013311453636404600174220ustar00rootroot00000000000000/* 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 "k8s.io/api/storage/v1" golang-k8s-api-0.29.0/storage/v1/generated.pb.go000066400000000000000000004137111453636404600212240ustar00rootroot00000000000000/* 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/k8s.io/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 "k8s.io/api/core/v1" v11 "k8s.io/api/core/v1" resource "k8s.io/apimachinery/pkg/api/resource" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *CSIDriver) Reset() { *m = CSIDriver{} } func (*CSIDriver) ProtoMessage() {} func (*CSIDriver) Descriptor() ([]byte, []int) { return fileDescriptor_3b530c1983504d8d, []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_3b530c1983504d8d, []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_3b530c1983504d8d, []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_3b530c1983504d8d, []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_3b530c1983504d8d, []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_3b530c1983504d8d, []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_3b530c1983504d8d, []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 *CSIStorageCapacity) Reset() { *m = CSIStorageCapacity{} } func (*CSIStorageCapacity) ProtoMessage() {} func (*CSIStorageCapacity) Descriptor() ([]byte, []int) { return fileDescriptor_3b530c1983504d8d, []int{7} } func (m *CSIStorageCapacity) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *CSIStorageCapacity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *CSIStorageCapacity) XXX_Merge(src proto.Message) { xxx_messageInfo_CSIStorageCapacity.Merge(m, src) } func (m *CSIStorageCapacity) XXX_Size() int { return m.Size() } func (m *CSIStorageCapacity) XXX_DiscardUnknown() { xxx_messageInfo_CSIStorageCapacity.DiscardUnknown(m) } var xxx_messageInfo_CSIStorageCapacity proto.InternalMessageInfo func (m *CSIStorageCapacityList) Reset() { *m = CSIStorageCapacityList{} } func (*CSIStorageCapacityList) ProtoMessage() {} func (*CSIStorageCapacityList) Descriptor() ([]byte, []int) { return fileDescriptor_3b530c1983504d8d, []int{8} } func (m *CSIStorageCapacityList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *CSIStorageCapacityList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *CSIStorageCapacityList) XXX_Merge(src proto.Message) { xxx_messageInfo_CSIStorageCapacityList.Merge(m, src) } func (m *CSIStorageCapacityList) XXX_Size() int { return m.Size() } func (m *CSIStorageCapacityList) XXX_DiscardUnknown() { xxx_messageInfo_CSIStorageCapacityList.DiscardUnknown(m) } var xxx_messageInfo_CSIStorageCapacityList proto.InternalMessageInfo func (m *StorageClass) Reset() { *m = StorageClass{} } func (*StorageClass) ProtoMessage() {} func (*StorageClass) Descriptor() ([]byte, []int) { return fileDescriptor_3b530c1983504d8d, []int{9} } 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{10} } 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 *TokenRequest) Reset() { *m = TokenRequest{} } func (*TokenRequest) ProtoMessage() {} func (*TokenRequest) Descriptor() ([]byte, []int) { return fileDescriptor_3b530c1983504d8d, []int{11} } 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 *VolumeAttachment) Reset() { *m = VolumeAttachment{} } func (*VolumeAttachment) ProtoMessage() {} func (*VolumeAttachment) Descriptor() ([]byte, []int) { return fileDescriptor_3b530c1983504d8d, []int{12} } 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{13} } 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{14} } 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{15} } 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{16} } 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{17} } 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_3b530c1983504d8d, []int{18} } 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.v1.CSIDriver") proto.RegisterType((*CSIDriverList)(nil), "k8s.io.api.storage.v1.CSIDriverList") proto.RegisterType((*CSIDriverSpec)(nil), "k8s.io.api.storage.v1.CSIDriverSpec") proto.RegisterType((*CSINode)(nil), "k8s.io.api.storage.v1.CSINode") proto.RegisterType((*CSINodeDriver)(nil), "k8s.io.api.storage.v1.CSINodeDriver") proto.RegisterType((*CSINodeList)(nil), "k8s.io.api.storage.v1.CSINodeList") proto.RegisterType((*CSINodeSpec)(nil), "k8s.io.api.storage.v1.CSINodeSpec") proto.RegisterType((*CSIStorageCapacity)(nil), "k8s.io.api.storage.v1.CSIStorageCapacity") proto.RegisterType((*CSIStorageCapacityList)(nil), "k8s.io.api.storage.v1.CSIStorageCapacityList") 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((*TokenRequest)(nil), "k8s.io.api.storage.v1.TokenRequest") 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") proto.RegisterType((*VolumeNodeResources)(nil), "k8s.io.api.storage.v1.VolumeNodeResources") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/storage/v1/generated.proto", fileDescriptor_3b530c1983504d8d) } var fileDescriptor_3b530c1983504d8d = []byte{ // 1670 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcd, 0x73, 0x1b, 0x4b, 0x11, 0xf7, 0x5a, 0xf2, 0xd7, 0xc8, 0x8e, 0xed, 0xb1, 0xfd, 0x10, 0x3e, 0x48, 0xae, 0x7d, 0xaf, 0xc0, 0xef, 0xc1, 0x5b, 0xbd, 0x38, 0x21, 0x95, 0x0a, 0x15, 0xaa, 0xbc, 0xb6, 0x42, 0x5c, 0x58, 0xb6, 0x19, 0x99, 0x54, 0x8a, 0x02, 0x2a, 0xe3, 0xdd, 0xb1, 0x3c, 0xb1, 0xf6, 0x23, 0x3b, 0xb3, 0xc2, 0xe2, 0x04, 0x17, 0x6e, 0x54, 0xc1, 0x95, 0xbf, 0x02, 0xaa, 0xe0, 0xc2, 0x91, 0x03, 0x15, 0x6e, 0x29, 0x4e, 0x39, 0xa9, 0x88, 0x38, 0xc3, 0x91, 0x83, 0x4f, 0xaf, 0x66, 0x76, 0xa4, 0xfd, 0xd0, 0xca, 0xb1, 0x2f, 0xba, 0x69, 0xa6, 0xbb, 0x7f, 0xdd, 0x33, 0xdd, 0xfd, 0x9b, 0x5e, 0x81, 0x1f, 0x5c, 0x3e, 0x66, 0x06, 0xf5, 0x6a, 0x97, 0xe1, 0x19, 0x09, 0x5c, 0xc2, 0x09, 0xab, 0x75, 0x88, 0x6b, 0x7b, 0x41, 0x4d, 0x09, 0xb0, 0x4f, 0x6b, 0x8c, 0x7b, 0x01, 0x6e, 0x91, 0x5a, 0xe7, 0x7e, 0xad, 0x45, 0x5c, 0x12, 0x60, 0x4e, 0x6c, 0xc3, 0x0f, 0x3c, 0xee, 0xc1, 0x8d, 0x48, 0xcd, 0xc0, 0x3e, 0x35, 0x94, 0x9a, 0xd1, 0xb9, 0xbf, 0xf9, 0x65, 0x8b, 0xf2, 0x8b, 0xf0, 0xcc, 0xb0, 0x3c, 0xa7, 0xd6, 0xf2, 0x5a, 0x5e, 0x4d, 0x6a, 0x9f, 0x85, 0xe7, 0x72, 0x25, 0x17, 0xf2, 0x57, 0x84, 0xb2, 0xa9, 0x27, 0x9c, 0x59, 0x5e, 0x90, 0xe7, 0x69, 0xf3, 0x61, 0xac, 0xe3, 0x60, 0xeb, 0x82, 0xba, 0x24, 0xe8, 0xd6, 0xfc, 0xcb, 0x96, 0x34, 0x0a, 0x08, 0xf3, 0xc2, 0xc0, 0x22, 0x77, 0xb2, 0x62, 0x35, 0x87, 0x70, 0x9c, 0xe7, 0xab, 0x36, 0xce, 0x2a, 0x08, 0x5d, 0x4e, 0x9d, 0x51, 0x37, 0x8f, 0x3e, 0x66, 0xc0, 0xac, 0x0b, 0xe2, 0xe0, 0xac, 0x9d, 0xfe, 0x57, 0x0d, 0x2c, 0xec, 0x35, 0x0f, 0xf6, 0x03, 0xda, 0x21, 0x01, 0x7c, 0x05, 0xe6, 0x45, 0x44, 0x36, 0xe6, 0xb8, 0xac, 0x6d, 0x69, 0xdb, 0xa5, 0x9d, 0xaf, 0x8c, 0xf8, 0x7e, 0x87, 0xc0, 0x86, 0x7f, 0xd9, 0x12, 0x1b, 0xcc, 0x10, 0xda, 0x46, 0xe7, 0xbe, 0x71, 0x7c, 0xf6, 0x9a, 0x58, 0xbc, 0x41, 0x38, 0x36, 0xe1, 0xdb, 0x5e, 0x75, 0xaa, 0xdf, 0xab, 0x82, 0x78, 0x0f, 0x0d, 0x51, 0xe1, 0x33, 0x50, 0x64, 0x3e, 0xb1, 0xca, 0xd3, 0x12, 0xfd, 0x33, 0x23, 0x37, 0x7b, 0xc6, 0x30, 0xa2, 0xa6, 0x4f, 0x2c, 0x73, 0x51, 0x21, 0x16, 0xc5, 0x0a, 0x49, 0x7b, 0xfd, 0x2f, 0x1a, 0x58, 0x1a, 0x6a, 0x1d, 0x52, 0xc6, 0xe1, 0xcf, 0x46, 0x62, 0x37, 0x6e, 0x17, 0xbb, 0xb0, 0x96, 0x91, 0xaf, 0x28, 0x3f, 0xf3, 0x83, 0x9d, 0x44, 0xdc, 0x75, 0x30, 0x43, 0x39, 0x71, 0x58, 0x79, 0x7a, 0xab, 0xb0, 0x5d, 0xda, 0xd9, 0xfa, 0x58, 0xe0, 0xe6, 0x92, 0x02, 0x9b, 0x39, 0x10, 0x66, 0x28, 0xb2, 0xd6, 0xff, 0x55, 0x4c, 0x84, 0x2d, 0x8e, 0x03, 0x9f, 0x80, 0x7b, 0x98, 0x73, 0x6c, 0x5d, 0x20, 0xf2, 0x26, 0xa4, 0x01, 0xb1, 0x65, 0xf0, 0xf3, 0x26, 0xec, 0xf7, 0xaa, 0xf7, 0x76, 0x53, 0x12, 0x94, 0xd1, 0x14, 0xb6, 0xbe, 0x67, 0x1f, 0xb8, 0xe7, 0xde, 0xb1, 0xdb, 0xf0, 0x42, 0x97, 0xcb, 0x6b, 0x55, 0xb6, 0x27, 0x29, 0x09, 0xca, 0x68, 0x42, 0x0b, 0xac, 0x77, 0xbc, 0x76, 0xe8, 0x90, 0x43, 0x7a, 0x4e, 0xac, 0xae, 0xd5, 0x26, 0x0d, 0xcf, 0x26, 0xac, 0x5c, 0xd8, 0x2a, 0x6c, 0x2f, 0x98, 0xb5, 0x7e, 0xaf, 0xba, 0xfe, 0x22, 0x47, 0x7e, 0xdd, 0xab, 0xae, 0xe5, 0xec, 0xa3, 0x5c, 0x30, 0xf8, 0x14, 0x2c, 0xab, 0xcb, 0xd9, 0xc3, 0x3e, 0xb6, 0x28, 0xef, 0x96, 0x8b, 0x32, 0xc2, 0xb5, 0x7e, 0xaf, 0xba, 0xdc, 0x4c, 0x8b, 0x50, 0x56, 0x17, 0x3e, 0x07, 0x4b, 0xe7, 0xec, 0x87, 0x81, 0x17, 0xfa, 0x27, 0x5e, 0x9b, 0x5a, 0xdd, 0xf2, 0xcc, 0x96, 0xb6, 0xbd, 0x60, 0xea, 0xfd, 0x5e, 0x75, 0xe9, 0x59, 0x33, 0x21, 0xb8, 0xce, 0x6e, 0xa0, 0xb4, 0x21, 0x7c, 0x05, 0x96, 0xb8, 0x77, 0x49, 0x5c, 0x71, 0x75, 0x84, 0x71, 0x56, 0x9e, 0x95, 0x69, 0xfc, 0x74, 0x4c, 0x1a, 0x4f, 0x13, 0xba, 0xe6, 0x86, 0xca, 0xe4, 0x52, 0x72, 0x97, 0xa1, 0x34, 0x20, 0xdc, 0x03, 0xab, 0x41, 0x94, 0x17, 0x86, 0x88, 0x1f, 0x9e, 0xb5, 0x29, 0xbb, 0x28, 0xcf, 0xc9, 0xc3, 0x6e, 0xf4, 0x7b, 0xd5, 0x55, 0x94, 0x15, 0xa2, 0x51, 0x7d, 0xf8, 0x10, 0x2c, 0x32, 0x72, 0x48, 0xdd, 0xf0, 0x2a, 0x4a, 0xe7, 0xbc, 0xb4, 0x5f, 0xe9, 0xf7, 0xaa, 0x8b, 0xcd, 0x7a, 0xbc, 0x8f, 0x52, 0x5a, 0xfa, 0x9f, 0x35, 0x30, 0xb7, 0xd7, 0x3c, 0x38, 0xf2, 0x6c, 0x32, 0x81, 0x0e, 0xde, 0x4f, 0x75, 0xb0, 0x3e, 0xbe, 0x11, 0x44, 0x3c, 0x63, 0xfb, 0xf7, 0x7f, 0x51, 0xff, 0x0a, 0x1d, 0xc5, 0x3d, 0x5b, 0xa0, 0xe8, 0x62, 0x87, 0xc8, 0xa8, 0x17, 0x62, 0x9b, 0x23, 0xec, 0x10, 0x24, 0x25, 0xf0, 0x5b, 0x60, 0xd6, 0xf5, 0x6c, 0x72, 0xb0, 0x2f, 0x7d, 0x2f, 0x98, 0xf7, 0x94, 0xce, 0xec, 0x91, 0xdc, 0x45, 0x4a, 0x2a, 0x6e, 0x91, 0x7b, 0xbe, 0xd7, 0xf6, 0x5a, 0xdd, 0x1f, 0x91, 0xee, 0xa0, 0xa4, 0xe5, 0x2d, 0x9e, 0x26, 0xf6, 0x51, 0x4a, 0x0b, 0xfe, 0x1c, 0x94, 0x70, 0xbb, 0xed, 0x59, 0x98, 0xe3, 0xb3, 0x36, 0x91, 0x75, 0x5a, 0xda, 0xf9, 0x62, 0xcc, 0xf1, 0xa2, 0x16, 0x10, 0x7e, 0x91, 0x22, 0x7e, 0x66, 0x2e, 0xf7, 0x7b, 0xd5, 0xd2, 0x6e, 0x0c, 0x81, 0x92, 0x78, 0xfa, 0x9f, 0x34, 0x50, 0x52, 0x07, 0x9e, 0x00, 0x5d, 0xed, 0xa5, 0xe9, 0xaa, 0x72, 0x73, 0x96, 0xc6, 0x90, 0xd5, 0x2f, 0x86, 0x11, 0x4b, 0xa6, 0x3a, 0x06, 0x73, 0xb6, 0x4c, 0x15, 0x2b, 0x6b, 0x12, 0xf5, 0xb3, 0x9b, 0x51, 0x15, 0x11, 0x2e, 0x2b, 0xec, 0xb9, 0x68, 0xcd, 0xd0, 0x00, 0x45, 0xff, 0x7f, 0x01, 0xc0, 0xbd, 0xe6, 0x41, 0x86, 0x06, 0x26, 0x50, 0xc2, 0x14, 0x2c, 0x8a, 0x52, 0x19, 0x14, 0x83, 0x2a, 0xe5, 0x07, 0xb7, 0xbc, 0x7f, 0x7c, 0x46, 0xda, 0x4d, 0xd2, 0x26, 0x16, 0xf7, 0x82, 0xa8, 0xaa, 0x8e, 0x12, 0x60, 0x28, 0x05, 0x0d, 0xf7, 0xc1, 0xca, 0x80, 0xd5, 0xda, 0x98, 0x31, 0x51, 0xcd, 0xe5, 0x82, 0xac, 0xde, 0xb2, 0x0a, 0x71, 0xa5, 0x99, 0x91, 0xa3, 0x11, 0x0b, 0xf8, 0x12, 0xcc, 0x5b, 0x49, 0x02, 0xfd, 0x48, 0xb1, 0x18, 0x83, 0x69, 0xc4, 0xf8, 0x71, 0x88, 0x5d, 0x4e, 0x79, 0xd7, 0x5c, 0x14, 0x85, 0x32, 0x64, 0xda, 0x21, 0x1a, 0x64, 0x60, 0xd5, 0xc1, 0x57, 0xd4, 0x09, 0x9d, 0xa8, 0xa4, 0x9b, 0xf4, 0x57, 0x44, 0xd2, 0xec, 0xdd, 0x5d, 0x48, 0x9a, 0x6b, 0x64, 0xc1, 0xd0, 0x28, 0xbe, 0xfe, 0x0f, 0x0d, 0x7c, 0x32, 0x9a, 0xf8, 0x09, 0xb4, 0xc5, 0x51, 0xba, 0x2d, 0x3e, 0x1f, 0x5f, 0xc0, 0x99, 0xd8, 0xc6, 0x74, 0xc8, 0xef, 0x66, 0xc1, 0x62, 0x32, 0x7d, 0x13, 0xa8, 0xdd, 0xef, 0x81, 0x92, 0x1f, 0x78, 0x1d, 0xca, 0xa8, 0xe7, 0x92, 0x40, 0x31, 0xe1, 0x9a, 0x32, 0x29, 0x9d, 0xc4, 0x22, 0x94, 0xd4, 0x83, 0x2d, 0x00, 0x7c, 0x1c, 0x60, 0x87, 0x70, 0xd1, 0xbf, 0x05, 0x79, 0xfc, 0x07, 0x63, 0x8e, 0x9f, 0x3c, 0x91, 0x71, 0x32, 0xb4, 0xaa, 0xbb, 0x3c, 0xe8, 0xc6, 0xd1, 0xc5, 0x02, 0x94, 0x80, 0x86, 0x97, 0x60, 0x29, 0x20, 0x56, 0x1b, 0x53, 0x47, 0xbd, 0xd9, 0x45, 0x19, 0x61, 0x5d, 0x3c, 0xa0, 0x28, 0x29, 0xb8, 0xee, 0x55, 0xbf, 0x1a, 0x9d, 0xba, 0x8d, 0x13, 0x12, 0x30, 0xca, 0x38, 0x71, 0x79, 0x54, 0x30, 0x29, 0x1b, 0x94, 0xc6, 0x16, 0x4c, 0xef, 0x88, 0x27, 0xf0, 0xd8, 0xe7, 0xd4, 0x73, 0x59, 0x79, 0x26, 0x66, 0xfa, 0x46, 0x62, 0x1f, 0xa5, 0xb4, 0xe0, 0x21, 0x58, 0x17, 0xcc, 0xfc, 0xcb, 0xc8, 0x41, 0xfd, 0xca, 0xc7, 0xae, 0xb8, 0xa5, 0xf2, 0xac, 0x7c, 0x6d, 0xcb, 0x62, 0xf4, 0xd9, 0xcd, 0x91, 0xa3, 0x5c, 0x2b, 0xf8, 0x12, 0xac, 0x46, 0xb3, 0x8f, 0x49, 0x5d, 0x9b, 0xba, 0x2d, 0x31, 0xf9, 0xc8, 0x87, 0x7f, 0xc1, 0xfc, 0x42, 0x74, 0xc4, 0x8b, 0xac, 0xf0, 0x3a, 0x6f, 0x13, 0x8d, 0x82, 0xc0, 0x37, 0x60, 0x55, 0x7a, 0x24, 0xb6, 0xa2, 0x13, 0x4a, 0x58, 0x79, 0x5e, 0xa6, 0x6e, 0x3b, 0x99, 0x3a, 0x71, 0x75, 0xd1, 0xd4, 0x12, 0x91, 0xce, 0x80, 0x9c, 0x4e, 0x49, 0xe0, 0x98, 0xdf, 0x54, 0xf9, 0x5a, 0xdd, 0xcd, 0x42, 0xa1, 0x51, 0xf4, 0xcd, 0xa7, 0x60, 0x39, 0x93, 0x70, 0xb8, 0x02, 0x0a, 0x97, 0xa4, 0x1b, 0x3d, 0xcb, 0x48, 0xfc, 0x84, 0xeb, 0x60, 0xa6, 0x83, 0xdb, 0x21, 0x89, 0x8a, 0x0f, 0x45, 0x8b, 0x27, 0xd3, 0x8f, 0x35, 0xfd, 0x6f, 0x1a, 0x48, 0xd1, 0xd9, 0x04, 0x5a, 0xfa, 0x79, 0xba, 0xa5, 0x3f, 0xbd, 0x45, 0x4d, 0x8f, 0x69, 0xe6, 0xdf, 0x68, 0x60, 0x31, 0x39, 0xe2, 0xc1, 0xef, 0x82, 0x79, 0x1c, 0xda, 0x94, 0xb8, 0xd6, 0x60, 0x2a, 0x19, 0x06, 0xb2, 0xab, 0xf6, 0xd1, 0x50, 0x43, 0x0c, 0x80, 0xe4, 0xca, 0xa7, 0x01, 0x16, 0x45, 0xd6, 0x24, 0x96, 0xe7, 0xda, 0x4c, 0xde, 0x50, 0x21, 0x62, 0xc6, 0x7a, 0x56, 0x88, 0x46, 0xf5, 0xf5, 0x3f, 0x4e, 0x83, 0x95, 0xa8, 0x36, 0xa2, 0xd1, 0xdf, 0x21, 0x2e, 0x9f, 0x00, 0xa9, 0x34, 0x52, 0x33, 0xdd, 0x77, 0x6e, 0x1c, 0x7a, 0xe2, 0xc0, 0xc6, 0x0d, 0x77, 0xf0, 0x27, 0x60, 0x96, 0x71, 0xcc, 0x43, 0x26, 0x9f, 0xba, 0xd2, 0xce, 0x97, 0xb7, 0x05, 0x94, 0x46, 0xf1, 0x5c, 0x17, 0xad, 0x91, 0x02, 0xd3, 0xff, 0xae, 0x81, 0xf5, 0xac, 0xc9, 0x04, 0x2a, 0xec, 0x30, 0x5d, 0x61, 0xdf, 0xbe, 0xe5, 0x61, 0xc6, 0x7d, 0x01, 0x6a, 0xe0, 0x93, 0x91, 0x73, 0xcb, 0x97, 0x54, 0xf0, 0x92, 0x9f, 0x61, 0xbf, 0xa3, 0x78, 0x22, 0x96, 0xbc, 0x74, 0x92, 0x23, 0x47, 0xb9, 0x56, 0xf0, 0x35, 0x58, 0xa1, 0x6e, 0x9b, 0xba, 0x44, 0x3d, 0xbc, 0x71, 0x7e, 0x73, 0xc9, 0x23, 0x8b, 0x2c, 0x93, 0xbb, 0x2e, 0xe6, 0x93, 0x83, 0x0c, 0x0a, 0x1a, 0xc1, 0xd5, 0xff, 0x99, 0x93, 0x19, 0x39, 0x33, 0x8a, 0x16, 0x92, 0x3b, 0x24, 0x18, 0x69, 0x21, 0xb5, 0x8f, 0x86, 0x1a, 0xb2, 0x6e, 0xe4, 0x55, 0xa8, 0x40, 0x6f, 0x5d, 0x37, 0xd2, 0x28, 0x51, 0x37, 0x72, 0x8d, 0x14, 0x98, 0x08, 0x42, 0xcc, 0x64, 0x89, 0xd9, 0x6b, 0x18, 0xc4, 0x91, 0xda, 0x47, 0x43, 0x0d, 0xfd, 0xbf, 0x85, 0x9c, 0x04, 0xc9, 0x02, 0x4c, 0x9c, 0x66, 0xf0, 0x95, 0x9e, 0x3d, 0x8d, 0x3d, 0x3c, 0x8d, 0x0d, 0xff, 0xa0, 0x01, 0x88, 0x87, 0x10, 0x8d, 0x41, 0x81, 0x46, 0x55, 0x54, 0xbf, 0x53, 0x4b, 0x18, 0xbb, 0x23, 0x38, 0xd1, 0x6b, 0xbc, 0xa9, 0xfc, 0xc3, 0x51, 0x05, 0x94, 0xe3, 0x1c, 0xda, 0xa0, 0x14, 0xed, 0xd6, 0x83, 0xc0, 0x0b, 0x54, 0x7b, 0xea, 0x37, 0xc6, 0x22, 0x35, 0xcd, 0x8a, 0xfc, 0xb8, 0x89, 0x4d, 0xaf, 0x7b, 0xd5, 0x52, 0x42, 0x8e, 0x92, 0xb0, 0xc2, 0x8b, 0x4d, 0x62, 0x2f, 0xc5, 0xbb, 0x79, 0xd9, 0x27, 0xe3, 0xbd, 0x24, 0x60, 0x37, 0xeb, 0xe0, 0x1b, 0x63, 0xae, 0xe5, 0x4e, 0x6f, 0xd6, 0x6f, 0x35, 0x90, 0xf4, 0x01, 0x0f, 0x41, 0x91, 0x53, 0xd5, 0x75, 0xe9, 0x0f, 0xc0, 0x1b, 0x88, 0xe4, 0x94, 0x3a, 0x24, 0xa6, 0x42, 0xb1, 0x42, 0x12, 0x05, 0x7e, 0x0e, 0xe6, 0x1c, 0xc2, 0x18, 0x6e, 0x29, 0xcf, 0xf1, 0xe7, 0x50, 0x23, 0xda, 0x46, 0x03, 0xb9, 0xfe, 0x08, 0xac, 0xe5, 0x7c, 0x56, 0xc2, 0x2a, 0x98, 0xb1, 0xe4, 0x9f, 0x01, 0x22, 0xa0, 0x19, 0x73, 0x41, 0x30, 0xca, 0x9e, 0xfc, 0x17, 0x20, 0xda, 0x37, 0xbf, 0xff, 0xf6, 0x43, 0x65, 0xea, 0xdd, 0x87, 0xca, 0xd4, 0xfb, 0x0f, 0x95, 0xa9, 0x5f, 0xf7, 0x2b, 0xda, 0xdb, 0x7e, 0x45, 0x7b, 0xd7, 0xaf, 0x68, 0xef, 0xfb, 0x15, 0xed, 0xdf, 0xfd, 0x8a, 0xf6, 0xfb, 0xff, 0x54, 0xa6, 0x7e, 0xba, 0x91, 0xfb, 0x77, 0xea, 0xd7, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0d, 0xf9, 0xe3, 0xd5, 0x7f, 0x15, 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 m.SELinuxMount != nil { i-- if *m.SELinuxMount { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x40 } if m.RequiresRepublish != nil { i-- if *m.RequiresRepublish { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x38 } if len(m.TokenRequests) > 0 { for iNdEx := len(m.TokenRequests) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.TokenRequests[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x32 } } if m.FSGroupPolicy != nil { i -= len(*m.FSGroupPolicy) copy(dAtA[i:], *m.FSGroupPolicy) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FSGroupPolicy))) i-- dAtA[i] = 0x2a } if m.StorageCapacity != nil { i-- if *m.StorageCapacity { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x20 } 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 *CSIStorageCapacity) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *CSIStorageCapacity) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *CSIStorageCapacity) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.MaximumVolumeSize != nil { { size, err := m.MaximumVolumeSize.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a } if m.Capacity != nil { { size, err := m.Capacity.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } i -= len(m.StorageClassName) copy(dAtA[i:], m.StorageClassName) i = encodeVarintGenerated(dAtA, i, uint64(len(m.StorageClassName))) i-- dAtA[i] = 0x1a if m.NodeTopology != nil { { size, err := m.NodeTopology.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 *CSIStorageCapacityList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *CSIStorageCapacityList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *CSIStorageCapacityList) 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 *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 *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 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 *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)) } } if m.StorageCapacity != nil { n += 2 } if m.FSGroupPolicy != nil { l = len(*m.FSGroupPolicy) n += 1 + l + sovGenerated(uint64(l)) } if len(m.TokenRequests) > 0 { for _, e := range m.TokenRequests { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } if m.RequiresRepublish != nil { n += 2 } if m.SELinuxMount != nil { n += 2 } 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 *CSIStorageCapacity) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.ObjectMeta.Size() n += 1 + l + sovGenerated(uint64(l)) if m.NodeTopology != nil { l = m.NodeTopology.Size() n += 1 + l + sovGenerated(uint64(l)) } l = len(m.StorageClassName) n += 1 + l + sovGenerated(uint64(l)) if m.Capacity != nil { l = m.Capacity.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.MaximumVolumeSize != nil { l = m.MaximumVolumeSize.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *CSIStorageCapacityList) 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 *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 *TokenRequest) 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)) } 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" } repeatedStringForTokenRequests := "[]TokenRequest{" for _, f := range this.TokenRequests { repeatedStringForTokenRequests += strings.Replace(strings.Replace(f.String(), "TokenRequest", "TokenRequest", 1), `&`, ``, 1) + "," } repeatedStringForTokenRequests += "}" s := strings.Join([]string{`&CSIDriverSpec{`, `AttachRequired:` + valueToStringGenerated(this.AttachRequired) + `,`, `PodInfoOnMount:` + valueToStringGenerated(this.PodInfoOnMount) + `,`, `VolumeLifecycleModes:` + fmt.Sprintf("%v", this.VolumeLifecycleModes) + `,`, `StorageCapacity:` + valueToStringGenerated(this.StorageCapacity) + `,`, `FSGroupPolicy:` + valueToStringGenerated(this.FSGroupPolicy) + `,`, `TokenRequests:` + repeatedStringForTokenRequests + `,`, `RequiresRepublish:` + valueToStringGenerated(this.RequiresRepublish) + `,`, `SELinuxMount:` + valueToStringGenerated(this.SELinuxMount) + `,`, `}`, }, "") 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 *CSIStorageCapacity) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&CSIStorageCapacity{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `NodeTopology:` + strings.Replace(fmt.Sprintf("%v", this.NodeTopology), "LabelSelector", "v1.LabelSelector", 1) + `,`, `StorageClassName:` + fmt.Sprintf("%v", this.StorageClassName) + `,`, `Capacity:` + strings.Replace(fmt.Sprintf("%v", this.Capacity), "Quantity", "resource.Quantity", 1) + `,`, `MaximumVolumeSize:` + strings.Replace(fmt.Sprintf("%v", this.MaximumVolumeSize), "Quantity", "resource.Quantity", 1) + `,`, `}`, }, "") return s } func (this *CSIStorageCapacityList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]CSIStorageCapacity{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "CSIStorageCapacity", "CSIStorageCapacity", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&CSIStorageCapacityList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") 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 *TokenRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&TokenRequest{`, `Audience:` + fmt.Sprintf("%v", this.Audience) + `,`, `ExpirationSeconds:` + valueToStringGenerated(this.ExpirationSeconds) + `,`, `}`, }, "") 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) || (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) || (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 case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field StorageCapacity", 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.StorageCapacity = &b case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field FSGroupPolicy", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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 := FSGroupPolicy(dAtA[iNdEx:postIndex]) m.FSGroupPolicy = &s iNdEx = postIndex case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TokenRequests", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.TokenRequests = append(m.TokenRequests, TokenRequest{}) if err := m.TokenRequests[len(m.TokenRequests)-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 RequiresRepublish", 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.RequiresRepublish = &b case 8: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field SELinuxMount", 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.SELinuxMount = &b default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *CSIStorageCapacity) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: CSIStorageCapacity: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: CSIStorageCapacity: 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 NodeTopology", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.NodeTopology == nil { m.NodeTopology = &v1.LabelSelector{} } if err := m.NodeTopology.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: 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 4: 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 = &resource.Quantity{} } if err := m.Capacity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MaximumVolumeSize", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.MaximumVolumeSize == nil { m.MaximumVolumeSize = &resource.Quantity{} } if err := m.MaximumVolumeSize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *CSIStorageCapacityList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: CSIStorageCapacityList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: CSIStorageCapacityList: 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, CSIStorageCapacity{}) 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) || (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) || (iNdEx+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) || (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) || (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 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (iNdEx+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) || (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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/storage/v1/generated.proto000066400000000000000000000613001453636404600213530ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/api/resource/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/storage/v1"; // CSIDriver captures information about a Container Storage Interface (CSI) // volume driver deployed on the cluster. // 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; // spec represents the 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. // // This field is immutable. // // +optional optional bool attachRequired = 1; // podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) // during mount operations, if set to true. // 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 VolumeContext 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" if 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. // // This field is immutable. // // +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. // // This field is beta. // This field is immutable. // // +optional // +listType=set repeated string volumeLifecycleModes = 3; // storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage // capacity that the driver deployment will report by creating // CSIStorageCapacity objects with capacity information, if set to true. // // The check can be enabled immediately when deploying a driver. // In that case, provisioning new volumes with late binding // will pause until the driver deployment has published // some suitable CSIStorageCapacity object. // // Alternatively, the driver can be deployed with the field // unset or false and it can be flipped later when storage // capacity information has been published. // // This field was immutable in Kubernetes <= 1.22 and now is mutable. // // +optional // +featureGate=CSIStorageCapacity optional bool storageCapacity = 4; // fsGroupPolicy defines if the underlying volume supports changing ownership and // permission of the volume before being mounted. // Refer to the specific FSGroupPolicy values for additional details. // // This field is immutable. // // Defaults to ReadWriteOnceWithFSType, which will examine each volume // to determine if Kubernetes should modify ownership and permissions of the volume. // With the default policy the defined fsGroup will only be applied // if a fstype is defined and the volume's access mode contains ReadWriteOnce. // // +optional optional string fsGroupPolicy = 5; // tokenRequests indicates the CSI driver needs pods' service account // tokens it is mounting volume for to do necessary authentication. Kubelet // will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. // The CSI driver should parse and validate the following VolumeContext: // "csi.storage.k8s.io/serviceAccount.tokens": { // "": { // "token": , // "expirationTimestamp": , // }, // ... // } // // Note: Audience in each TokenRequest should be different and at // most one token is empty string. To receive a new token after expiry, // RequiresRepublish can be used to trigger NodePublishVolume periodically. // // +optional // +listType=atomic repeated TokenRequest tokenRequests = 6; // requiresRepublish indicates the CSI driver wants `NodePublishVolume` // being periodically called to reflect any possible change in the mounted // volume. This field defaults to false. // // Note: After a successful initial NodePublishVolume call, subsequent calls // to NodePublishVolume should only update the contents of the volume. New // mount points will not be seen by a running container. // // +optional optional bool requiresRepublish = 7; // seLinuxMount specifies if the CSI driver supports "-o context" // mount option. // // When "true", the CSI driver must ensure that all volumes provided by this CSI // driver can be mounted separately with different `-o context` options. This is // typical for storage backends that provide volumes as filesystems on block // devices or as independent shared volumes. // Kubernetes will call NodeStage / NodePublish with "-o context=xyz" mount // option when mounting a ReadWriteOncePod volume used in Pod that has // explicitly set SELinux context. In the future, it may be expanded to other // volume AccessModes. In any case, Kubernetes will ensure that the volume is // mounted only with a single SELinux context. // // When "false", Kubernetes won't pass any special SELinux mount options to the driver. // This is typical for volumes that represent subdirectories of a bigger shared filesystem. // // Default is "false". // // +featureGate=SELinuxMountReadWriteOncePod // +optional optional bool seLinuxMount = 8; } // 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 { // Standard object's metadata. // 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 { // name represents 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. // This field is beta. // +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; } // CSIStorageCapacity stores the result of one CSI GetCapacity call. // For a given StorageClass, this describes the available capacity in a // particular topology segment. This can be used when considering where to // instantiate new PersistentVolumes. // // For example this can express things like: // - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" // - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" // // The following three cases all imply that no capacity is available for // a certain combination: // - no object exists with suitable topology and storage class name // - such an object exists, but the capacity is unset // - such an object exists, but the capacity is zero // // The producer of these objects can decide which approach is more suitable. // // They are consumed by the kube-scheduler when a CSI driver opts into // capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler // compares the MaximumVolumeSize against the requested size of pending volumes // to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back // to a comparison against the less precise Capacity. If that is also unset, // the scheduler assumes that capacity is insufficient and tries some other // node. message CSIStorageCapacity { // Standard object's metadata. // The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). // To ensure that there are no conflicts with other CSI drivers on the cluster, // the recommendation is to use csisc-, a generated name, or a reverse-domain name // which ends with the unique CSI driver name. // // Objects are namespaced. // // 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; // nodeTopology defines which nodes have access to the storage // for which capacity was reported. If not set, the storage is // not accessible from any node in the cluster. If empty, the // storage is accessible from all nodes. This field is // immutable. // // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2; // storageClassName represents the name of the StorageClass that the reported capacity applies to. // It must meet the same requirements as the name of a StorageClass // object (non-empty, DNS subdomain). If that object no longer exists, // the CSIStorageCapacity object is obsolete and should be removed by its // creator. // This field is immutable. optional string storageClassName = 3; // capacity is the value reported by the CSI driver in its GetCapacityResponse // for a GetCapacityRequest with topology and parameters that match the // previous fields. // // The semantic is currently (CSI spec 1.2) defined as: // The available capacity, in bytes, of the storage that can be used // to provision volumes. If not set, that information is currently // unavailable. // // +optional optional k8s.io.apimachinery.pkg.api.resource.Quantity capacity = 4; // maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse // for a GetCapacityRequest with topology and parameters that match the // previous fields. // // This is defined since CSI spec 1.4.0 as the largest size // that may be used in a // CreateVolumeRequest.capacity_range.required_bytes field to // create a volume with the same parameters as those in // GetCapacityRequest. The corresponding value in the Kubernetes // API is ResourceRequirements.Requests in a volume claim. // // +optional optional k8s.io.apimachinery.pkg.api.resource.Quantity maximumVolumeSize = 5; } // CSIStorageCapacityList is a collection of CSIStorageCapacity objects. message CSIStorageCapacityList { // 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 CSIStorageCapacity objects. // +listType=map // +listMapKey=name repeated CSIStorageCapacity items = 2; } // 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; // reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. // Defaults to Delete. // +optional optional string reclaimPolicy = 4; // mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. // 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; // 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. // +optional // +listType=atomic 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; } // TokenRequest contains parameters of a service account token. message TokenRequest { // audience is the intended audience of the token in "TokenRequestSpec". // It will default to the audiences of kube apiserver. optional string audience = 1; // expirationSeconds is the duration of validity of the token in "TokenRequestSpec". // It has the same default value of "ExpirationSeconds" in "TokenRequestSpec". // // +optional optional int64 expirationSeconds = 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; // spec represents specification of the desired attach/detach volume behavior. // Populated by the Kubernetes system. optional VolumeAttachmentSpec spec = 2; // status represents 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 { // persistentVolumeName represents the 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 beta-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; // nodeName represents the node that the volume should be attached to. optional string nodeName = 3; } // VolumeAttachmentStatus is the status of a VolumeAttachment request. message VolumeAttachmentStatus { // 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. optional bool attached = 1; // attachmentMetadata is populated with any // information returned by the attach operation, upon successful attach, 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; // attachError represents 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; // detachError represents 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 represents the time the error was encountered. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; // message represents 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 { // count indicates the 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 not specified, then the supported number of volumes on this node is unbounded. // +optional optional int32 count = 1; } golang-k8s-api-0.29.0/storage/v1/register.go000066400000000000000000000035621453636404600205110ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &StorageClass{}, &StorageClassList{}, &VolumeAttachment{}, &VolumeAttachmentList{}, &CSINode{}, &CSINodeList{}, &CSIDriver{}, &CSIDriverList{}, &CSIStorageCapacity{}, &CSIStorageCapacityList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/storage/v1/types.go000066400000000000000000000766251453636404600200430ustar00rootroot00000000000000/* 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 ( v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/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"` // reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. // Defaults to Delete. // +optional ReclaimPolicy *v1.PersistentVolumeReclaimPolicy `json:"reclaimPolicy,omitempty" protobuf:"bytes,4,opt,name=reclaimPolicy,casttype=k8s.io/api/core/v1.PersistentVolumeReclaimPolicy"` // mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. // 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"` // 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. // +optional // +listType=atomic AllowedTopologies []v1.TopologySelectorTerm `json:"allowedTopologies,omitempty" protobuf:"bytes,8,rep,name=allowedTopologies"` } // +k8s:deepcopy-gen:interfaces=k8s.io/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. // +enum 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=k8s.io/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"` // spec represents specification of the desired attach/detach volume behavior. // Populated by the Kubernetes system. Spec VolumeAttachmentSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // status represents 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=k8s.io/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"` // nodeName represents 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 { // persistentVolumeName represents the 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 beta-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 { // 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. Attached bool `json:"attached" protobuf:"varint,1,opt,name=attached"` // attachmentMetadata is populated with any // information returned by the attach operation, upon successful attach, 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"` // attachError represents 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"` // detachError represents 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 represents the time the error was encountered. // +optional Time metav1.Time `json:"time,omitempty" protobuf:"bytes,1,opt,name=time"` // message represents 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=k8s.io/apimachinery/pkg/runtime.Object // CSIDriver captures information about a Container Storage Interface (CSI) // volume driver deployed on the cluster. // 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"` // spec represents the specification of the CSI Driver. Spec CSIDriverSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` } // +k8s:deepcopy-gen:interfaces=k8s.io/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. // // This field is immutable. // // +optional AttachRequired *bool `json:"attachRequired,omitempty" protobuf:"varint,1,opt,name=attachRequired"` // podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) // during mount operations, if set to true. // 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 VolumeContext 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" if 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. // // This field is immutable. // // +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. // // This field is beta. // This field is immutable. // // +optional // +listType=set VolumeLifecycleModes []VolumeLifecycleMode `json:"volumeLifecycleModes,omitempty" protobuf:"bytes,3,opt,name=volumeLifecycleModes"` // storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage // capacity that the driver deployment will report by creating // CSIStorageCapacity objects with capacity information, if set to true. // // The check can be enabled immediately when deploying a driver. // In that case, provisioning new volumes with late binding // will pause until the driver deployment has published // some suitable CSIStorageCapacity object. // // Alternatively, the driver can be deployed with the field // unset or false and it can be flipped later when storage // capacity information has been published. // // This field was immutable in Kubernetes <= 1.22 and now is mutable. // // +optional // +featureGate=CSIStorageCapacity StorageCapacity *bool `json:"storageCapacity,omitempty" protobuf:"bytes,4,opt,name=storageCapacity"` // fsGroupPolicy defines if the underlying volume supports changing ownership and // permission of the volume before being mounted. // Refer to the specific FSGroupPolicy values for additional details. // // This field is immutable. // // Defaults to ReadWriteOnceWithFSType, which will examine each volume // to determine if Kubernetes should modify ownership and permissions of the volume. // With the default policy the defined fsGroup will only be applied // if a fstype is defined and the volume's access mode contains ReadWriteOnce. // // +optional FSGroupPolicy *FSGroupPolicy `json:"fsGroupPolicy,omitempty" protobuf:"bytes,5,opt,name=fsGroupPolicy"` // tokenRequests indicates the CSI driver needs pods' service account // tokens it is mounting volume for to do necessary authentication. Kubelet // will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. // The CSI driver should parse and validate the following VolumeContext: // "csi.storage.k8s.io/serviceAccount.tokens": { // "": { // "token": , // "expirationTimestamp": , // }, // ... // } // // Note: Audience in each TokenRequest should be different and at // most one token is empty string. To receive a new token after expiry, // RequiresRepublish can be used to trigger NodePublishVolume periodically. // // +optional // +listType=atomic TokenRequests []TokenRequest `json:"tokenRequests,omitempty" protobuf:"bytes,6,opt,name=tokenRequests"` // requiresRepublish indicates the CSI driver wants `NodePublishVolume` // being periodically called to reflect any possible change in the mounted // volume. This field defaults to false. // // Note: After a successful initial NodePublishVolume call, subsequent calls // to NodePublishVolume should only update the contents of the volume. New // mount points will not be seen by a running container. // // +optional RequiresRepublish *bool `json:"requiresRepublish,omitempty" protobuf:"varint,7,opt,name=requiresRepublish"` // seLinuxMount specifies if the CSI driver supports "-o context" // mount option. // // When "true", the CSI driver must ensure that all volumes provided by this CSI // driver can be mounted separately with different `-o context` options. This is // typical for storage backends that provide volumes as filesystems on block // devices or as independent shared volumes. // Kubernetes will call NodeStage / NodePublish with "-o context=xyz" mount // option when mounting a ReadWriteOncePod volume used in Pod that has // explicitly set SELinux context. In the future, it may be expanded to other // volume AccessModes. In any case, Kubernetes will ensure that the volume is // mounted only with a single SELinux context. // // When "false", Kubernetes won't pass any special SELinux mount options to the driver. // This is typical for volumes that represent subdirectories of a bigger shared filesystem. // // Default is "false". // // +featureGate=SELinuxMountReadWriteOncePod // +optional SELinuxMount *bool `json:"seLinuxMount,omitempty" protobuf:"varint,8,opt,name=seLinuxMount"` } // FSGroupPolicy specifies if a CSI Driver supports modifying // volume ownership and permissions of the volume to be mounted. // More modes may be added in the future. type FSGroupPolicy string const ( // ReadWriteOnceWithFSTypeFSGroupPolicy indicates that each volume will be examined // to determine if the volume ownership and permissions // should be modified. If a fstype is defined and the volume's access mode // contains ReadWriteOnce, then the defined fsGroup will be applied. // This mode should be defined if it's expected that the // fsGroup may need to be modified depending on the pod's SecurityPolicy. // This is the default behavior if no other FSGroupPolicy is defined. ReadWriteOnceWithFSTypeFSGroupPolicy FSGroupPolicy = "ReadWriteOnceWithFSType" // FileFSGroupPolicy indicates that CSI driver supports volume ownership // and permission change via fsGroup, and Kubernetes will change the permissions // and ownership of every file in the volume to match the user requested fsGroup in // the pod's SecurityPolicy regardless of fstype or access mode. // Use this mode if Kubernetes should modify the permissions and ownership // of the volume. FileFSGroupPolicy FSGroupPolicy = "File" // NoneFSGroupPolicy indicates that volumes will be mounted without performing // any ownership or permission modifications, as the CSIDriver does not support // these operations. // This mode should be selected if the CSIDriver does not support fsGroup modifications, // for example when Kubernetes cannot change ownership and permissions on a volume due // to root-squash settings on a NFS volume. NoneFSGroupPolicy FSGroupPolicy = "None" ) // 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 // TokenRequest contains parameters of a service account token. type TokenRequest struct { // audience is the intended audience of the token in "TokenRequestSpec". // It will default to the audiences of kube apiserver. Audience string `json:"audience" protobuf:"bytes,1,opt,name=audience"` // expirationSeconds is the duration of validity of the token in "TokenRequestSpec". // It has the same default value of "ExpirationSeconds" in "TokenRequestSpec". // // +optional ExpirationSeconds *int64 `json:"expirationSeconds,omitempty" protobuf:"varint,2,opt,name=expirationSeconds"` } 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=k8s.io/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"` // Standard object's metadata. // 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 { // name represents 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. // This field is beta. // +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 { // count indicates the 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 not specified, 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=k8s.io/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"` } // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // CSIStorageCapacity stores the result of one CSI GetCapacity call. // For a given StorageClass, this describes the available capacity in a // particular topology segment. This can be used when considering where to // instantiate new PersistentVolumes. // // For example this can express things like: // - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" // - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" // // The following three cases all imply that no capacity is available for // a certain combination: // - no object exists with suitable topology and storage class name // - such an object exists, but the capacity is unset // - such an object exists, but the capacity is zero // // The producer of these objects can decide which approach is more suitable. // // They are consumed by the kube-scheduler when a CSI driver opts into // capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler // compares the MaximumVolumeSize against the requested size of pending volumes // to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back // to a comparison against the less precise Capacity. If that is also unset, // the scheduler assumes that capacity is insufficient and tries some other // node. type CSIStorageCapacity struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. // The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). // To ensure that there are no conflicts with other CSI drivers on the cluster, // the recommendation is to use csisc-, a generated name, or a reverse-domain name // which ends with the unique CSI driver name. // // Objects are namespaced. // // 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"` // nodeTopology defines which nodes have access to the storage // for which capacity was reported. If not set, the storage is // not accessible from any node in the cluster. If empty, the // storage is accessible from all nodes. This field is // immutable. // // +optional NodeTopology *metav1.LabelSelector `json:"nodeTopology,omitempty" protobuf:"bytes,2,opt,name=nodeTopology"` // storageClassName represents the name of the StorageClass that the reported capacity applies to. // It must meet the same requirements as the name of a StorageClass // object (non-empty, DNS subdomain). If that object no longer exists, // the CSIStorageCapacity object is obsolete and should be removed by its // creator. // This field is immutable. StorageClassName string `json:"storageClassName" protobuf:"bytes,3,name=storageClassName"` // capacity is the value reported by the CSI driver in its GetCapacityResponse // for a GetCapacityRequest with topology and parameters that match the // previous fields. // // The semantic is currently (CSI spec 1.2) defined as: // The available capacity, in bytes, of the storage that can be used // to provision volumes. If not set, that information is currently // unavailable. // // +optional Capacity *resource.Quantity `json:"capacity,omitempty" protobuf:"bytes,4,opt,name=capacity"` // maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse // for a GetCapacityRequest with topology and parameters that match the // previous fields. // // This is defined since CSI spec 1.4.0 as the largest size // that may be used in a // CreateVolumeRequest.capacity_range.required_bytes field to // create a volume with the same parameters as those in // GetCapacityRequest. The corresponding value in the Kubernetes // API is ResourceRequirements.Requests in a volume claim. // // +optional MaximumVolumeSize *resource.Quantity `json:"maximumVolumeSize,omitempty" protobuf:"bytes,5,opt,name=maximumVolumeSize"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // CSIStorageCapacityList is a collection of CSIStorageCapacity objects. type CSIStorageCapacityList 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 CSIStorageCapacity objects. // +listType=map // +listMapKey=name Items []CSIStorageCapacity `json:"items" protobuf:"bytes,2,rep,name=items"` } golang-k8s-api-0.29.0/storage/v1/types_swagger_doc_generated.go000066400000000000000000000562031453636404600244130ustar00rootroot00000000000000/* 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-codegen.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. 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": "spec represents the 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.\n\nThis field is immutable.", "podInfoOnMount": "podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false.\n\nThe 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.\n\nThe following VolumeContext 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\" if 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.\n\nThis field is immutable.", "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.\n\nThe 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.\n\nFor 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.\n\nThis field is beta. This field is immutable.", "storageCapacity": "storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true.\n\nThe check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.\n\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\n\nThis field was immutable in Kubernetes <= 1.22 and now is mutable.", "fsGroupPolicy": "fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.\n\nThis field is immutable.\n\nDefaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.", "tokenRequests": "tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": {\n \"\": {\n \"token\": ,\n \"expirationTimestamp\": ,\n },\n ...\n}\n\nNote: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.", "requiresRepublish": "requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\n\nNote: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.", "seLinuxMount": "seLinuxMount specifies if the CSI driver supports \"-o context\" mount option.\n\nWhen \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context.\n\nWhen \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem.\n\nDefault is \"false\".", } 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": "Standard object's 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": "name represents 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. This field is beta.", } 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_CSIStorageCapacity = map[string]string{ "": "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.\n\nFor example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\"\n\nThe following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.", "metadata": "Standard object's metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "nodeTopology": "nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable.", "storageClassName": "storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.", "capacity": "capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable.", "maximumVolumeSize": "maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim.", } func (CSIStorageCapacity) SwaggerDoc() map[string]string { return map_CSIStorageCapacity } var map_CSIStorageCapacityList = map[string]string{ "": "CSIStorageCapacityList is a collection of CSIStorageCapacity 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 CSIStorageCapacity objects.", } func (CSIStorageCapacityList) SwaggerDoc() map[string]string { return map_CSIStorageCapacityList } 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": "reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.", "mountOptions": "mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. 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": "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_TokenRequest = map[string]string{ "": "TokenRequest contains parameters of a service account token.", "audience": "audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver.", "expirationSeconds": "expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\".", } func (TokenRequest) SwaggerDoc() map[string]string { return map_TokenRequest } 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": "spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.", "status": "status represents 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": "persistentVolumeName represents the 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": "nodeName represents 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": "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": "attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, 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": "attachError represents 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": "detachError represents 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 represents the time the error was encountered.", "message": "message represents 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": "count indicates the 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 not specified, 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 golang-k8s-api-0.29.0/storage/v1/zz_generated.deepcopy.go000066400000000000000000000422231453636404600231520ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *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) } if in.StorageCapacity != nil { in, out := &in.StorageCapacity, &out.StorageCapacity *out = new(bool) **out = **in } if in.FSGroupPolicy != nil { in, out := &in.FSGroupPolicy, &out.FSGroupPolicy *out = new(FSGroupPolicy) **out = **in } if in.TokenRequests != nil { in, out := &in.TokenRequests, &out.TokenRequests *out = make([]TokenRequest, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.RequiresRepublish != nil { in, out := &in.RequiresRepublish, &out.RequiresRepublish *out = new(bool) **out = **in } if in.SELinuxMount != nil { in, out := &in.SELinuxMount, &out.SELinuxMount *out = new(bool) **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 *CSIStorageCapacity) DeepCopyInto(out *CSIStorageCapacity) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) if in.NodeTopology != nil { in, out := &in.NodeTopology, &out.NodeTopology *out = new(metav1.LabelSelector) (*in).DeepCopyInto(*out) } if in.Capacity != nil { in, out := &in.Capacity, &out.Capacity x := (*in).DeepCopy() *out = &x } if in.MaximumVolumeSize != nil { in, out := &in.MaximumVolumeSize, &out.MaximumVolumeSize x := (*in).DeepCopy() *out = &x } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIStorageCapacity. func (in *CSIStorageCapacity) DeepCopy() *CSIStorageCapacity { if in == nil { return nil } out := new(CSIStorageCapacity) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *CSIStorageCapacity) 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 *CSIStorageCapacityList) DeepCopyInto(out *CSIStorageCapacityList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]CSIStorageCapacity, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIStorageCapacityList. func (in *CSIStorageCapacityList) DeepCopy() *CSIStorageCapacityList { if in == nil { return nil } out := new(CSIStorageCapacityList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *CSIStorageCapacityList) 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 *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 *TokenRequest) DeepCopyInto(out *TokenRequest) { *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 TokenRequest. func (in *TokenRequest) DeepCopy() *TokenRequest { if in == nil { return nil } out := new(TokenRequest) in.DeepCopyInto(out) return out } // 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 } // 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 } golang-k8s-api-0.29.0/storage/v1alpha1/000077500000000000000000000000001453636404600174175ustar00rootroot00000000000000golang-k8s-api-0.29.0/storage/v1alpha1/doc.go000066400000000000000000000014131453636404600205120ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true package v1alpha1 // import "k8s.io/api/storage/v1alpha1" golang-k8s-api-0.29.0/storage/v1alpha1/generated.pb.go000066400000000000000000002311561453636404600223140ustar00rootroot00000000000000/* 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/k8s.io/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 "k8s.io/api/core/v1" resource "k8s.io/apimachinery/pkg/api/resource" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package func (m *CSIStorageCapacity) Reset() { *m = CSIStorageCapacity{} } func (*CSIStorageCapacity) ProtoMessage() {} func (*CSIStorageCapacity) Descriptor() ([]byte, []int) { return fileDescriptor_10f856db1e670dc4, []int{0} } func (m *CSIStorageCapacity) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *CSIStorageCapacity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *CSIStorageCapacity) XXX_Merge(src proto.Message) { xxx_messageInfo_CSIStorageCapacity.Merge(m, src) } func (m *CSIStorageCapacity) XXX_Size() int { return m.Size() } func (m *CSIStorageCapacity) XXX_DiscardUnknown() { xxx_messageInfo_CSIStorageCapacity.DiscardUnknown(m) } var xxx_messageInfo_CSIStorageCapacity proto.InternalMessageInfo func (m *CSIStorageCapacityList) Reset() { *m = CSIStorageCapacityList{} } func (*CSIStorageCapacityList) ProtoMessage() {} func (*CSIStorageCapacityList) Descriptor() ([]byte, []int) { return fileDescriptor_10f856db1e670dc4, []int{1} } func (m *CSIStorageCapacityList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *CSIStorageCapacityList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *CSIStorageCapacityList) XXX_Merge(src proto.Message) { xxx_messageInfo_CSIStorageCapacityList.Merge(m, src) } func (m *CSIStorageCapacityList) XXX_Size() int { return m.Size() } func (m *CSIStorageCapacityList) XXX_DiscardUnknown() { xxx_messageInfo_CSIStorageCapacityList.DiscardUnknown(m) } var xxx_messageInfo_CSIStorageCapacityList proto.InternalMessageInfo func (m *VolumeAttachment) Reset() { *m = VolumeAttachment{} } func (*VolumeAttachment) ProtoMessage() {} func (*VolumeAttachment) Descriptor() ([]byte, []int) { return fileDescriptor_10f856db1e670dc4, []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_10f856db1e670dc4, []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_10f856db1e670dc4, []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_10f856db1e670dc4, []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_10f856db1e670dc4, []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 *VolumeAttributesClass) Reset() { *m = VolumeAttributesClass{} } func (*VolumeAttributesClass) ProtoMessage() {} func (*VolumeAttributesClass) Descriptor() ([]byte, []int) { return fileDescriptor_10f856db1e670dc4, []int{7} } func (m *VolumeAttributesClass) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *VolumeAttributesClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *VolumeAttributesClass) XXX_Merge(src proto.Message) { xxx_messageInfo_VolumeAttributesClass.Merge(m, src) } func (m *VolumeAttributesClass) XXX_Size() int { return m.Size() } func (m *VolumeAttributesClass) XXX_DiscardUnknown() { xxx_messageInfo_VolumeAttributesClass.DiscardUnknown(m) } var xxx_messageInfo_VolumeAttributesClass proto.InternalMessageInfo func (m *VolumeAttributesClassList) Reset() { *m = VolumeAttributesClassList{} } func (*VolumeAttributesClassList) ProtoMessage() {} func (*VolumeAttributesClassList) Descriptor() ([]byte, []int) { return fileDescriptor_10f856db1e670dc4, []int{8} } func (m *VolumeAttributesClassList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *VolumeAttributesClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *VolumeAttributesClassList) XXX_Merge(src proto.Message) { xxx_messageInfo_VolumeAttributesClassList.Merge(m, src) } func (m *VolumeAttributesClassList) XXX_Size() int { return m.Size() } func (m *VolumeAttributesClassList) XXX_DiscardUnknown() { xxx_messageInfo_VolumeAttributesClassList.DiscardUnknown(m) } var xxx_messageInfo_VolumeAttributesClassList proto.InternalMessageInfo func (m *VolumeError) Reset() { *m = VolumeError{} } func (*VolumeError) ProtoMessage() {} func (*VolumeError) Descriptor() ([]byte, []int) { return fileDescriptor_10f856db1e670dc4, []int{9} } 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((*CSIStorageCapacity)(nil), "k8s.io.api.storage.v1alpha1.CSIStorageCapacity") proto.RegisterType((*CSIStorageCapacityList)(nil), "k8s.io.api.storage.v1alpha1.CSIStorageCapacityList") 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((*VolumeAttributesClass)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttributesClass") proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttributesClass.ParametersEntry") proto.RegisterType((*VolumeAttributesClassList)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttributesClassList") proto.RegisterType((*VolumeError)(nil), "k8s.io.api.storage.v1alpha1.VolumeError") } func init() { proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/storage/v1alpha1/generated.proto", fileDescriptor_10f856db1e670dc4) } var fileDescriptor_10f856db1e670dc4 = []byte{ // 1023 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcb, 0x6e, 0x23, 0x45, 0x17, 0x4e, 0xe7, 0x32, 0xe3, 0xa9, 0xe4, 0xff, 0xc7, 0x53, 0xca, 0x0c, 0xc6, 0x23, 0xb5, 0x23, 0xaf, 0x0c, 0x62, 0xba, 0x49, 0x40, 0x68, 0x84, 0xc4, 0xc2, 0x9d, 0x64, 0x11, 0x91, 0x84, 0xa1, 0x1c, 0x01, 0x02, 0x16, 0x94, 0xdb, 0x07, 0xbb, 0x62, 0xf7, 0x45, 0x55, 0xd5, 0x16, 0x66, 0xc5, 0x8a, 0x35, 0x3b, 0xde, 0x80, 0x67, 0xc9, 0x02, 0x89, 0xd1, 0xac, 0x66, 0x65, 0x91, 0x86, 0x67, 0x60, 0xc1, 0x06, 0xd4, 0xd5, 0xe5, 0x76, 0xc7, 0x6d, 0x07, 0x27, 0x8b, 0xec, 0x5c, 0xe7, 0xf2, 0x9d, 0xdb, 0x77, 0x4e, 0x27, 0xe8, 0xa0, 0xff, 0x5c, 0x58, 0x2c, 0xb0, 0xfb, 0x51, 0x1b, 0xb8, 0x0f, 0x12, 0x84, 0x3d, 0x04, 0xbf, 0x13, 0x70, 0x5b, 0x2b, 0x68, 0xc8, 0x6c, 0x21, 0x03, 0x4e, 0xbb, 0x60, 0x0f, 0x77, 0xe9, 0x20, 0xec, 0xd1, 0x5d, 0xbb, 0x0b, 0x3e, 0x70, 0x2a, 0xa1, 0x63, 0x85, 0x3c, 0x90, 0x01, 0x7e, 0x9a, 0x1a, 0x5b, 0x34, 0x64, 0x96, 0x36, 0xb6, 0x26, 0xc6, 0xd5, 0x67, 0x5d, 0x26, 0x7b, 0x51, 0xdb, 0x72, 0x03, 0xcf, 0xee, 0x06, 0xdd, 0xc0, 0x56, 0x3e, 0xed, 0xe8, 0x5b, 0xf5, 0x52, 0x0f, 0xf5, 0x2b, 0xc5, 0xaa, 0xd6, 0x73, 0x81, 0xdd, 0x80, 0x27, 0x51, 0x67, 0xe3, 0x55, 0xdf, 0x9f, 0xda, 0x78, 0xd4, 0xed, 0x31, 0x1f, 0xf8, 0xc8, 0x0e, 0xfb, 0x5d, 0xe5, 0xc4, 0x41, 0x04, 0x11, 0x77, 0xe1, 0x46, 0x5e, 0xc2, 0xf6, 0x40, 0xd2, 0x79, 0xb1, 0xec, 0x45, 0x5e, 0x3c, 0xf2, 0x25, 0xf3, 0x8a, 0x61, 0x3e, 0xf8, 0x2f, 0x07, 0xe1, 0xf6, 0xc0, 0xa3, 0xb3, 0x7e, 0xf5, 0xbf, 0xd6, 0x10, 0xde, 0x6f, 0x1d, 0xb5, 0xd2, 0xfe, 0xed, 0xd3, 0x90, 0xba, 0x4c, 0x8e, 0xf0, 0x37, 0xa8, 0x94, 0xa4, 0xd6, 0xa1, 0x92, 0x56, 0x8c, 0x1d, 0xa3, 0xb1, 0xb9, 0xf7, 0xae, 0x35, 0x6d, 0x77, 0x16, 0xc1, 0x0a, 0xfb, 0xdd, 0x44, 0x20, 0xac, 0xc4, 0xda, 0x1a, 0xee, 0x5a, 0x9f, 0xb4, 0xcf, 0xc1, 0x95, 0x27, 0x20, 0xa9, 0x83, 0x2f, 0xc6, 0xb5, 0x95, 0x78, 0x5c, 0x43, 0x53, 0x19, 0xc9, 0x50, 0x31, 0x43, 0x5b, 0x7e, 0xd0, 0x81, 0xb3, 0x20, 0x0c, 0x06, 0x41, 0x77, 0x54, 0x59, 0x55, 0x51, 0xde, 0x5b, 0x2e, 0xca, 0x31, 0x6d, 0xc3, 0xa0, 0x05, 0x03, 0x70, 0x65, 0xc0, 0x9d, 0x72, 0x3c, 0xae, 0x6d, 0x9d, 0xe6, 0xc0, 0xc8, 0x15, 0x68, 0x7c, 0x80, 0xca, 0x9a, 0x1f, 0xfb, 0x03, 0x2a, 0xc4, 0x29, 0xf5, 0xa0, 0xb2, 0xb6, 0x63, 0x34, 0x1e, 0x38, 0x15, 0x9d, 0x62, 0xb9, 0x35, 0xa3, 0x27, 0x05, 0x0f, 0xfc, 0x05, 0x2a, 0xb9, 0xba, 0x3d, 0x95, 0x75, 0x95, 0xac, 0x75, 0x5d, 0xb2, 0xd6, 0x84, 0x11, 0xd6, 0xa7, 0x11, 0xf5, 0x25, 0x93, 0x23, 0x67, 0x2b, 0x1e, 0xd7, 0x4a, 0x93, 0x16, 0x93, 0x0c, 0x0d, 0x0b, 0xf4, 0xc8, 0xa3, 0xdf, 0x31, 0x2f, 0xf2, 0x3e, 0x0b, 0x06, 0x91, 0x07, 0x2d, 0xf6, 0x3d, 0x54, 0x36, 0x6e, 0x15, 0xe2, 0x71, 0x3c, 0xae, 0x3d, 0x3a, 0x99, 0x05, 0x23, 0x45, 0xfc, 0xfa, 0xaf, 0x06, 0x7a, 0x52, 0x1c, 0xfc, 0x31, 0x13, 0x12, 0x7f, 0x5d, 0x18, 0xbe, 0xb5, 0xe4, 0x58, 0x98, 0x48, 0x47, 0x5f, 0xd6, 0x7d, 0x2d, 0x4d, 0x24, 0xb9, 0xc1, 0x9f, 0xa1, 0x0d, 0x26, 0xc1, 0x13, 0x95, 0xd5, 0x9d, 0xb5, 0xc6, 0xe6, 0x9e, 0x6d, 0x5d, 0xb3, 0xc6, 0x56, 0x31, 0x43, 0xe7, 0x7f, 0x1a, 0x7b, 0xe3, 0x28, 0x41, 0x21, 0x29, 0x58, 0xfd, 0x97, 0x55, 0x54, 0x4e, 0xab, 0x6b, 0x4a, 0x49, 0xdd, 0x9e, 0x07, 0xbe, 0xbc, 0x03, 0x16, 0xb7, 0xd0, 0xba, 0x08, 0xc1, 0xd5, 0xec, 0xdd, 0xbd, 0xb6, 0x96, 0xd9, 0xf4, 0x5a, 0x21, 0xb8, 0xce, 0x96, 0x86, 0x5f, 0x4f, 0x5e, 0x44, 0x81, 0xe1, 0xaf, 0xd0, 0x3d, 0x21, 0xa9, 0x8c, 0x84, 0x62, 0xe9, 0xd5, 0xa5, 0x58, 0x02, 0x56, 0xb9, 0x3a, 0xff, 0xd7, 0xc0, 0xf7, 0xd2, 0x37, 0xd1, 0x90, 0xf5, 0x0b, 0x03, 0x6d, 0xcf, 0xba, 0xdc, 0xc1, 0xd4, 0xc9, 0xd5, 0xa9, 0x3f, 0xbb, 0x51, 0x49, 0x0b, 0x66, 0xfe, 0xca, 0x40, 0x4f, 0x0a, 0xd5, 0xab, 0x85, 0xc0, 0xc7, 0x68, 0x3b, 0x04, 0x2e, 0x98, 0x90, 0xe0, 0xcb, 0xd4, 0x46, 0xad, 0xbd, 0x91, 0xae, 0x7d, 0x3c, 0xae, 0x6d, 0xbf, 0x98, 0xa3, 0x27, 0x73, 0xbd, 0xf0, 0x39, 0x2a, 0x33, 0x7f, 0xc0, 0x7c, 0xd0, 0xfb, 0x33, 0x9d, 0x78, 0x23, 0x5f, 0x47, 0xf2, 0xe1, 0x48, 0x1a, 0x32, 0x8b, 0xac, 0x06, 0xbd, 0x9d, 0x9c, 0x99, 0xa3, 0x19, 0x14, 0x52, 0xc0, 0xad, 0xff, 0x36, 0x67, 0x3e, 0x89, 0x02, 0xbf, 0x83, 0x4a, 0x54, 0x49, 0x80, 0xeb, 0x32, 0xb2, 0x7e, 0x37, 0xb5, 0x9c, 0x64, 0x16, 0x8a, 0x43, 0xaa, 0x15, 0x73, 0x0e, 0xeb, 0x12, 0x1c, 0x52, 0xae, 0x39, 0x0e, 0xa9, 0x37, 0xd1, 0x90, 0x49, 0x2a, 0xc9, 0x81, 0xcd, 0x1d, 0xd2, 0x2c, 0x95, 0x53, 0x2d, 0x27, 0x99, 0x45, 0xfd, 0x9f, 0xb5, 0x39, 0x63, 0x52, 0x64, 0xcc, 0xd5, 0xd4, 0x51, 0x35, 0x95, 0x0a, 0x35, 0x75, 0xb2, 0x9a, 0x3a, 0xf8, 0x67, 0x03, 0x61, 0x9a, 0x41, 0x9c, 0x4c, 0xc8, 0x9a, 0x32, 0xea, 0xe3, 0x5b, 0x2c, 0x89, 0xd5, 0x2c, 0xa0, 0x1d, 0xfa, 0x92, 0x8f, 0x9c, 0xaa, 0xce, 0x02, 0x17, 0x0d, 0xc8, 0x9c, 0x14, 0xf0, 0x39, 0xda, 0x4c, 0xa5, 0x87, 0x9c, 0x07, 0x5c, 0xaf, 0x6d, 0x63, 0x89, 0x8c, 0x94, 0xbd, 0x63, 0xc6, 0xe3, 0xda, 0x66, 0x73, 0x0a, 0xf0, 0xf7, 0xb8, 0xb6, 0x99, 0xd3, 0x93, 0x3c, 0x78, 0x12, 0xab, 0x03, 0xd3, 0x58, 0xeb, 0xb7, 0x89, 0x75, 0x00, 0x8b, 0x63, 0xe5, 0xc0, 0xab, 0x87, 0xe8, 0x8d, 0x05, 0x2d, 0xc2, 0x65, 0xb4, 0xd6, 0x87, 0x51, 0xca, 0x44, 0x92, 0xfc, 0xc4, 0xdb, 0x68, 0x63, 0x48, 0x07, 0x51, 0xca, 0xb8, 0x07, 0x24, 0x7d, 0x7c, 0xb8, 0xfa, 0xdc, 0xa8, 0xff, 0xb9, 0x8a, 0x1e, 0x67, 0x13, 0xe0, 0xac, 0x1d, 0x49, 0x10, 0xea, 0xc3, 0x7a, 0x07, 0x17, 0x7a, 0x0f, 0xa1, 0x0e, 0x67, 0x43, 0xe0, 0x8a, 0xad, 0x2a, 0xb5, 0xa9, 0xc7, 0x41, 0xa6, 0x21, 0x39, 0x2b, 0x3c, 0x44, 0x28, 0xa4, 0x9c, 0x7a, 0x20, 0x81, 0x27, 0x47, 0x38, 0xe1, 0x97, 0xb3, 0x1c, 0xbf, 0xf2, 0xd5, 0x59, 0x2f, 0x32, 0x90, 0x94, 0x56, 0x59, 0xdc, 0xa9, 0x82, 0xe4, 0x22, 0x55, 0x3f, 0x42, 0x0f, 0x67, 0x5c, 0x6e, 0xd4, 0xe6, 0x57, 0x06, 0x7a, 0x73, 0x6e, 0x22, 0x77, 0x70, 0xdf, 0x3f, 0xbf, 0x7a, 0xdf, 0xf7, 0x6e, 0xde, 0xad, 0x05, 0x47, 0xfe, 0x47, 0x03, 0xe5, 0xf9, 0x89, 0x8f, 0xd1, 0x7a, 0xf2, 0xf7, 0xac, 0x2e, 0xe1, 0xed, 0xe5, 0x4a, 0x38, 0x63, 0x1e, 0x4c, 0x3f, 0xb5, 0xc9, 0x8b, 0x28, 0x14, 0xfc, 0x16, 0xba, 0xef, 0x81, 0x10, 0xb4, 0x3b, 0xa1, 0xc6, 0x43, 0x6d, 0x74, 0xff, 0x24, 0x15, 0x93, 0x89, 0xde, 0x69, 0x5e, 0x5c, 0x9a, 0x2b, 0x2f, 0x2f, 0xcd, 0x95, 0xd7, 0x97, 0xe6, 0xca, 0x0f, 0xb1, 0x69, 0x5c, 0xc4, 0xa6, 0xf1, 0x32, 0x36, 0x8d, 0xd7, 0xb1, 0x69, 0xfc, 0x1e, 0x9b, 0xc6, 0x4f, 0x7f, 0x98, 0x2b, 0x5f, 0x3e, 0xbd, 0xe6, 0x3f, 0x98, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xb9, 0x2f, 0x75, 0xee, 0xf8, 0x0c, 0x00, 0x00, } func (m *CSIStorageCapacity) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *CSIStorageCapacity) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *CSIStorageCapacity) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.MaximumVolumeSize != nil { { size, err := m.MaximumVolumeSize.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a } if m.Capacity != nil { { size, err := m.Capacity.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } i -= len(m.StorageClassName) copy(dAtA[i:], m.StorageClassName) i = encodeVarintGenerated(dAtA, i, uint64(len(m.StorageClassName))) i-- dAtA[i] = 0x1a if m.NodeTopology != nil { { size, err := m.NodeTopology.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 *CSIStorageCapacityList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *CSIStorageCapacityList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *CSIStorageCapacityList) 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 *VolumeAttributesClass) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *VolumeAttributesClass) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *VolumeAttributesClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l 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.DriverName) copy(dAtA[i:], m.DriverName) i = encodeVarintGenerated(dAtA, i, uint64(len(m.DriverName))) 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 *VolumeAttributesClassList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *VolumeAttributesClassList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *VolumeAttributesClassList) 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 *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 *CSIStorageCapacity) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.ObjectMeta.Size() n += 1 + l + sovGenerated(uint64(l)) if m.NodeTopology != nil { l = m.NodeTopology.Size() n += 1 + l + sovGenerated(uint64(l)) } l = len(m.StorageClassName) n += 1 + l + sovGenerated(uint64(l)) if m.Capacity != nil { l = m.Capacity.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.MaximumVolumeSize != nil { l = m.MaximumVolumeSize.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *CSIStorageCapacityList) 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 *VolumeAttributesClass) 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.DriverName) 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)) } } return n } func (m *VolumeAttributesClassList) 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 *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 *CSIStorageCapacity) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&CSIStorageCapacity{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `NodeTopology:` + strings.Replace(fmt.Sprintf("%v", this.NodeTopology), "LabelSelector", "v1.LabelSelector", 1) + `,`, `StorageClassName:` + fmt.Sprintf("%v", this.StorageClassName) + `,`, `Capacity:` + strings.Replace(fmt.Sprintf("%v", this.Capacity), "Quantity", "resource.Quantity", 1) + `,`, `MaximumVolumeSize:` + strings.Replace(fmt.Sprintf("%v", this.MaximumVolumeSize), "Quantity", "resource.Quantity", 1) + `,`, `}`, }, "") return s } func (this *CSIStorageCapacityList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]CSIStorageCapacity{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "CSIStorageCapacity", "CSIStorageCapacity", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&CSIStorageCapacityList{`, `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 *VolumeAttributesClass) String() string { if this == nil { return "nil" } 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{`&VolumeAttributesClass{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `DriverName:` + fmt.Sprintf("%v", this.DriverName) + `,`, `Parameters:` + mapStringForParameters + `,`, `}`, }, "") return s } func (this *VolumeAttributesClassList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]VolumeAttributesClass{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "VolumeAttributesClass", "VolumeAttributesClass", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&VolumeAttributesClassList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") 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 *CSIStorageCapacity) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: CSIStorageCapacity: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: CSIStorageCapacity: 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 NodeTopology", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.NodeTopology == nil { m.NodeTopology = &v1.LabelSelector{} } if err := m.NodeTopology.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: 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 4: 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 = &resource.Quantity{} } if err := m.Capacity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MaximumVolumeSize", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.MaximumVolumeSize == nil { m.MaximumVolumeSize = &resource.Quantity{} } if err := m.MaximumVolumeSize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *CSIStorageCapacityList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: CSIStorageCapacityList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: CSIStorageCapacityList: 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, CSIStorageCapacity{}) 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) || (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) || (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) || (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) || (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) || (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) || (iNdEx+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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *VolumeAttributesClass) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: VolumeAttributesClass: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: VolumeAttributesClass: 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 DriverName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.DriverName = 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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > postIndex { return io.ErrUnexpectedEOF } iNdEx += skippy } } m.Parameters[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *VolumeAttributesClassList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: VolumeAttributesClassList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: VolumeAttributesClassList: 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, VolumeAttributesClass{}) 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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/storage/v1alpha1/generated.proto000066400000000000000000000265601453636404600224530ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/api/resource/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/storage/v1alpha1"; // CSIStorageCapacity stores the result of one CSI GetCapacity call. // For a given StorageClass, this describes the available capacity in a // particular topology segment. This can be used when considering where to // instantiate new PersistentVolumes. // // For example this can express things like: // - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" // - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" // // The following three cases all imply that no capacity is available for // a certain combination: // - no object exists with suitable topology and storage class name // - such an object exists, but the capacity is unset // - such an object exists, but the capacity is zero // // The producer of these objects can decide which approach is more suitable. // // They are consumed by the kube-scheduler when a CSI driver opts into // capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler // compares the MaximumVolumeSize against the requested size of pending volumes // to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back // to a comparison against the less precise Capacity. If that is also unset, // the scheduler assumes that capacity is insufficient and tries some other // node. message CSIStorageCapacity { // Standard object's metadata. The name has no particular meaning. It must be // be a DNS subdomain (dots allowed, 253 characters). To ensure that // there are no conflicts with other CSI drivers on the cluster, the recommendation // is to use csisc-, a generated name, or a reverse-domain name which ends // with the unique CSI driver name. // // Objects are namespaced. // // 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; // nodeTopology defines which nodes have access to the storage // for which capacity was reported. If not set, the storage is // not accessible from any node in the cluster. If empty, the // storage is accessible from all nodes. This field is // immutable. // // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2; // storageClassName represents the name of the StorageClass that the reported capacity applies to. // It must meet the same requirements as the name of a StorageClass // object (non-empty, DNS subdomain). If that object no longer exists, // the CSIStorageCapacity object is obsolete and should be removed by its // creator. // This field is immutable. optional string storageClassName = 3; // capacity is the value reported by the CSI driver in its GetCapacityResponse // for a GetCapacityRequest with topology and parameters that match the // previous fields. // // The semantic is currently (CSI spec 1.2) defined as: // The available capacity, in bytes, of the storage that can be used // to provision volumes. If not set, that information is currently // unavailable. // // +optional optional k8s.io.apimachinery.pkg.api.resource.Quantity capacity = 4; // maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse // for a GetCapacityRequest with topology and parameters that match the // previous fields. // // This is defined since CSI spec 1.4.0 as the largest size // that may be used in a // CreateVolumeRequest.capacity_range.required_bytes field to // create a volume with the same parameters as those in // GetCapacityRequest. The corresponding value in the Kubernetes // API is ResourceRequirements.Requests in a volume claim. // // +optional optional k8s.io.apimachinery.pkg.api.resource.Quantity maximumVolumeSize = 5; } // CSIStorageCapacityList is a collection of CSIStorageCapacity objects. message CSIStorageCapacityList { // 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 CSIStorageCapacity objects. // +listType=map // +listMapKey=name repeated CSIStorageCapacity 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; // spec represents specification of the desired attach/detach volume behavior. // Populated by the Kubernetes system. optional VolumeAttachmentSpec spec = 2; // status represents 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 { // persistentVolumeName represents the 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; // nodeName represents the node that the volume should be attached to. optional string nodeName = 3; } // VolumeAttachmentStatus is the status of a VolumeAttachment request. message VolumeAttachmentStatus { // 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. optional bool attached = 1; // attachmentMetadata is populated with any // information returned by the attach operation, upon successful attach, 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; // attachError represents 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; // detachError represents 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; } // VolumeAttributesClass represents a specification of mutable volume attributes // defined by the CSI driver. The class can be specified during dynamic provisioning // of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning. message VolumeAttributesClass { // 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; // Name of the CSI driver // This field is immutable. optional string driverName = 2; // parameters hold volume attributes defined by the CSI driver. These values // are opaque to the Kubernetes and are passed directly to the CSI driver. // The underlying storage provider supports changing these attributes on an // existing volume, however the parameters field itself is immutable. To // invoke a volume update, a new VolumeAttributesClass should be created with // new parameters, and the PersistentVolumeClaim should be updated to reference // the new VolumeAttributesClass. // // This field is required and must contain at least one key/value pair. // The keys cannot be empty, and the maximum number of parameters is 512, with // a cumulative max size of 256K. If the CSI driver rejects invalid parameters, // the target PersistentVolumeClaim will be set to an "Infeasible" state in the // modifyVolumeStatus field. map parameters = 3; } // VolumeAttributesClassList is a collection of VolumeAttributesClass objects. message VolumeAttributesClassList { // 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 VolumeAttributesClass objects. repeated VolumeAttributesClass items = 2; } // VolumeError captures an error encountered during a volume operation. message VolumeError { // time represents the time the error was encountered. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; // message represents the error encountered during Attach or Detach operation. // This string maybe logged, so it should not contain sensitive // information. // +optional optional string message = 2; } golang-k8s-api-0.29.0/storage/v1alpha1/register.go000066400000000000000000000032031453636404600215700ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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{}, &CSIStorageCapacity{}, &CSIStorageCapacityList{}, &VolumeAttributesClass{}, &VolumeAttributesClassList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/storage/v1alpha1/types.go000066400000000000000000000327601453636404600211220ustar00rootroot00000000000000/* 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 ( v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.9 // +k8s:prerelease-lifecycle-gen:deprecated=1.21 // +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1,VolumeAttachment // 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"` // spec represents specification of the desired attach/detach volume behavior. // Populated by the Kubernetes system. Spec VolumeAttachmentSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // status represents 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.9 // +k8s:prerelease-lifecycle-gen:deprecated=1.21 // +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1,VolumeAttachmentList // 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"` // nodeName represents 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 { // persistentVolumeName represents the 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 { // 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. Attached bool `json:"attached" protobuf:"varint,1,opt,name=attached"` // attachmentMetadata is populated with any // information returned by the attach operation, upon successful attach, 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"` // attachError represents 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"` // detachError represents 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 represents the time the error was encountered. // +optional Time metav1.Time `json:"time,omitempty" protobuf:"bytes,1,opt,name=time"` // message represents 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"` } // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.19 // +k8s:prerelease-lifecycle-gen:deprecated=1.21 // +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1beta1,CSIStorageCapacity // CSIStorageCapacity stores the result of one CSI GetCapacity call. // For a given StorageClass, this describes the available capacity in a // particular topology segment. This can be used when considering where to // instantiate new PersistentVolumes. // // For example this can express things like: // - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" // - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" // // The following three cases all imply that no capacity is available for // a certain combination: // - no object exists with suitable topology and storage class name // - such an object exists, but the capacity is unset // - such an object exists, but the capacity is zero // // The producer of these objects can decide which approach is more suitable. // // They are consumed by the kube-scheduler when a CSI driver opts into // capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler // compares the MaximumVolumeSize against the requested size of pending volumes // to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back // to a comparison against the less precise Capacity. If that is also unset, // the scheduler assumes that capacity is insufficient and tries some other // node. type CSIStorageCapacity struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. The name has no particular meaning. It must be // be a DNS subdomain (dots allowed, 253 characters). To ensure that // there are no conflicts with other CSI drivers on the cluster, the recommendation // is to use csisc-, a generated name, or a reverse-domain name which ends // with the unique CSI driver name. // // Objects are namespaced. // // 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"` // nodeTopology defines which nodes have access to the storage // for which capacity was reported. If not set, the storage is // not accessible from any node in the cluster. If empty, the // storage is accessible from all nodes. This field is // immutable. // // +optional NodeTopology *metav1.LabelSelector `json:"nodeTopology,omitempty" protobuf:"bytes,2,opt,name=nodeTopology"` // storageClassName represents the name of the StorageClass that the reported capacity applies to. // It must meet the same requirements as the name of a StorageClass // object (non-empty, DNS subdomain). If that object no longer exists, // the CSIStorageCapacity object is obsolete and should be removed by its // creator. // This field is immutable. StorageClassName string `json:"storageClassName" protobuf:"bytes,3,name=storageClassName"` // capacity is the value reported by the CSI driver in its GetCapacityResponse // for a GetCapacityRequest with topology and parameters that match the // previous fields. // // The semantic is currently (CSI spec 1.2) defined as: // The available capacity, in bytes, of the storage that can be used // to provision volumes. If not set, that information is currently // unavailable. // // +optional Capacity *resource.Quantity `json:"capacity,omitempty" protobuf:"bytes,4,opt,name=capacity"` // maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse // for a GetCapacityRequest with topology and parameters that match the // previous fields. // // This is defined since CSI spec 1.4.0 as the largest size // that may be used in a // CreateVolumeRequest.capacity_range.required_bytes field to // create a volume with the same parameters as those in // GetCapacityRequest. The corresponding value in the Kubernetes // API is ResourceRequirements.Requests in a volume claim. // // +optional MaximumVolumeSize *resource.Quantity `json:"maximumVolumeSize,omitempty" protobuf:"bytes,5,opt,name=maximumVolumeSize"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.19 // +k8s:prerelease-lifecycle-gen:deprecated=1.21 // +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1beta1,CSIStorageCapacityList // CSIStorageCapacityList is a collection of CSIStorageCapacity objects. type CSIStorageCapacityList 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 CSIStorageCapacity objects. // +listType=map // +listMapKey=name Items []CSIStorageCapacity `json:"items" protobuf:"bytes,2,rep,name=items"` } // +genclient // +genclient:nonNamespaced // +k8s:prerelease-lifecycle-gen:introduced=1.29 // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // VolumeAttributesClass represents a specification of mutable volume attributes // defined by the CSI driver. The class can be specified during dynamic provisioning // of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning. type VolumeAttributesClass 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"` // Name of the CSI driver // This field is immutable. DriverName string `json:"driverName" protobuf:"bytes,2,opt,name=driverName"` // parameters hold volume attributes defined by the CSI driver. These values // are opaque to the Kubernetes and are passed directly to the CSI driver. // The underlying storage provider supports changing these attributes on an // existing volume, however the parameters field itself is immutable. To // invoke a volume update, a new VolumeAttributesClass should be created with // new parameters, and the PersistentVolumeClaim should be updated to reference // the new VolumeAttributesClass. // // This field is required and must contain at least one key/value pair. // The keys cannot be empty, and the maximum number of parameters is 512, with // a cumulative max size of 256K. If the CSI driver rejects invalid parameters, // the target PersistentVolumeClaim will be set to an "Infeasible" state in the // modifyVolumeStatus field. Parameters map[string]string `json:"parameters,omitempty" protobuf:"bytes,3,rep,name=parameters"` } // +k8s:prerelease-lifecycle-gen:introduced=1.29 // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // VolumeAttributesClassList is a collection of VolumeAttributesClass objects. type VolumeAttributesClassList 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 VolumeAttributesClass objects. Items []VolumeAttributesClass `json:"items" protobuf:"bytes,2,rep,name=items"` } golang-k8s-api-0.29.0/storage/v1alpha1/types_swagger_doc_generated.go000066400000000000000000000251771453636404600255100ustar00rootroot00000000000000/* 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-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_CSIStorageCapacity = map[string]string{ "": "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.\n\nFor example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\"\n\nThe following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.", "metadata": "Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "nodeTopology": "nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable.", "storageClassName": "storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.", "capacity": "capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable.", "maximumVolumeSize": "maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim.", } func (CSIStorageCapacity) SwaggerDoc() map[string]string { return map_CSIStorageCapacity } var map_CSIStorageCapacityList = map[string]string{ "": "CSIStorageCapacityList is a collection of CSIStorageCapacity 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 CSIStorageCapacity objects.", } func (CSIStorageCapacityList) SwaggerDoc() map[string]string { return map_CSIStorageCapacityList } 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": "spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.", "status": "status represents 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": "persistentVolumeName represents the 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": "nodeName represents 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": "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": "attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, 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": "attachError represents 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": "detachError represents 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_VolumeAttributesClass = map[string]string{ "": "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.", "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "driverName": "Name of the CSI driver This field is immutable.", "parameters": "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\n\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.", } func (VolumeAttributesClass) SwaggerDoc() map[string]string { return map_VolumeAttributesClass } var map_VolumeAttributesClassList = map[string]string{ "": "VolumeAttributesClassList is a collection of VolumeAttributesClass 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 VolumeAttributesClass objects.", } func (VolumeAttributesClassList) SwaggerDoc() map[string]string { return map_VolumeAttributesClassList } var map_VolumeError = map[string]string{ "": "VolumeError captures an error encountered during a volume operation.", "time": "time represents the time the error was encountered.", "message": "message represents 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 golang-k8s-api-0.29.0/storage/v1alpha1/zz_generated.deepcopy.go000066400000000000000000000225251453636404600242440ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 ( corev1 "k8s.io/api/core/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CSIStorageCapacity) DeepCopyInto(out *CSIStorageCapacity) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) if in.NodeTopology != nil { in, out := &in.NodeTopology, &out.NodeTopology *out = new(v1.LabelSelector) (*in).DeepCopyInto(*out) } if in.Capacity != nil { in, out := &in.Capacity, &out.Capacity x := (*in).DeepCopy() *out = &x } if in.MaximumVolumeSize != nil { in, out := &in.MaximumVolumeSize, &out.MaximumVolumeSize x := (*in).DeepCopy() *out = &x } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIStorageCapacity. func (in *CSIStorageCapacity) DeepCopy() *CSIStorageCapacity { if in == nil { return nil } out := new(CSIStorageCapacity) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *CSIStorageCapacity) 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 *CSIStorageCapacityList) DeepCopyInto(out *CSIStorageCapacityList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]CSIStorageCapacity, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIStorageCapacityList. func (in *CSIStorageCapacityList) DeepCopy() *CSIStorageCapacityList { if in == nil { return nil } out := new(CSIStorageCapacityList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *CSIStorageCapacityList) 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 *VolumeAttributesClass) DeepCopyInto(out *VolumeAttributesClass) { *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 } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttributesClass. func (in *VolumeAttributesClass) DeepCopy() *VolumeAttributesClass { if in == nil { return nil } out := new(VolumeAttributesClass) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *VolumeAttributesClass) 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 *VolumeAttributesClassList) DeepCopyInto(out *VolumeAttributesClassList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]VolumeAttributesClass, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttributesClassList. func (in *VolumeAttributesClassList) DeepCopy() *VolumeAttributesClassList { if in == nil { return nil } out := new(VolumeAttributesClassList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *VolumeAttributesClassList) 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 *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 } golang-k8s-api-0.29.0/storage/v1alpha1/zz_generated.prerelease-lifecycle.go000066400000000000000000000225151453636404600265170ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1alpha1 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *CSIStorageCapacity) APILifecycleIntroduced() (major, minor int) { return 1, 19 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *CSIStorageCapacity) APILifecycleDeprecated() (major, minor int) { return 1, 21 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *CSIStorageCapacity) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1beta1", Kind: "CSIStorageCapacity"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *CSIStorageCapacity) APILifecycleRemoved() (major, minor int) { return 1, 24 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *CSIStorageCapacityList) APILifecycleIntroduced() (major, minor int) { return 1, 19 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *CSIStorageCapacityList) APILifecycleDeprecated() (major, minor int) { return 1, 21 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *CSIStorageCapacityList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1beta1", Kind: "CSIStorageCapacityList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *CSIStorageCapacityList) APILifecycleRemoved() (major, minor int) { return 1, 24 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *VolumeAttachment) APILifecycleIntroduced() (major, minor int) { return 1, 9 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *VolumeAttachment) APILifecycleDeprecated() (major, minor int) { return 1, 21 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *VolumeAttachment) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1", Kind: "VolumeAttachment"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *VolumeAttachment) APILifecycleRemoved() (major, minor int) { return 1, 24 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *VolumeAttachmentList) APILifecycleIntroduced() (major, minor int) { return 1, 9 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *VolumeAttachmentList) APILifecycleDeprecated() (major, minor int) { return 1, 21 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *VolumeAttachmentList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1", Kind: "VolumeAttachmentList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *VolumeAttachmentList) APILifecycleRemoved() (major, minor int) { return 1, 24 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *VolumeAttributesClass) APILifecycleIntroduced() (major, minor int) { return 1, 29 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *VolumeAttributesClass) APILifecycleDeprecated() (major, minor int) { return 1, 32 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *VolumeAttributesClass) APILifecycleRemoved() (major, minor int) { return 1, 35 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *VolumeAttributesClassList) APILifecycleIntroduced() (major, minor int) { return 1, 29 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *VolumeAttributesClassList) APILifecycleDeprecated() (major, minor int) { return 1, 32 } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *VolumeAttributesClassList) APILifecycleRemoved() (major, minor int) { return 1, 35 } golang-k8s-api-0.29.0/storage/v1beta1/000077500000000000000000000000001453636404600172455ustar00rootroot00000000000000golang-k8s-api-0.29.0/storage/v1beta1/doc.go000066400000000000000000000014111453636404600203360ustar00rootroot00000000000000/* 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 // +k8s:prerelease-lifecycle-gen=true package v1beta1 // import "k8s.io/api/storage/v1beta1" golang-k8s-api-0.29.0/storage/v1beta1/generated.pb.go000066400000000000000000004141151453636404600221400ustar00rootroot00000000000000/* 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/k8s.io/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 "k8s.io/api/core/v1" v11 "k8s.io/api/core/v1" resource "k8s.io/apimachinery/pkg/api/resource" v1 "k8s.io/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.GoGoProtoPackageIsVersion3 // 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 *CSIStorageCapacity) Reset() { *m = CSIStorageCapacity{} } func (*CSIStorageCapacity) ProtoMessage() {} func (*CSIStorageCapacity) Descriptor() ([]byte, []int) { return fileDescriptor_7d2980599fd0de80, []int{7} } func (m *CSIStorageCapacity) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *CSIStorageCapacity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *CSIStorageCapacity) XXX_Merge(src proto.Message) { xxx_messageInfo_CSIStorageCapacity.Merge(m, src) } func (m *CSIStorageCapacity) XXX_Size() int { return m.Size() } func (m *CSIStorageCapacity) XXX_DiscardUnknown() { xxx_messageInfo_CSIStorageCapacity.DiscardUnknown(m) } var xxx_messageInfo_CSIStorageCapacity proto.InternalMessageInfo func (m *CSIStorageCapacityList) Reset() { *m = CSIStorageCapacityList{} } func (*CSIStorageCapacityList) ProtoMessage() {} func (*CSIStorageCapacityList) Descriptor() ([]byte, []int) { return fileDescriptor_7d2980599fd0de80, []int{8} } func (m *CSIStorageCapacityList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *CSIStorageCapacityList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } func (m *CSIStorageCapacityList) XXX_Merge(src proto.Message) { xxx_messageInfo_CSIStorageCapacityList.Merge(m, src) } func (m *CSIStorageCapacityList) XXX_Size() int { return m.Size() } func (m *CSIStorageCapacityList) XXX_DiscardUnknown() { xxx_messageInfo_CSIStorageCapacityList.DiscardUnknown(m) } var xxx_messageInfo_CSIStorageCapacityList proto.InternalMessageInfo func (m *StorageClass) Reset() { *m = StorageClass{} } func (*StorageClass) ProtoMessage() {} func (*StorageClass) Descriptor() ([]byte, []int) { return fileDescriptor_7d2980599fd0de80, []int{9} } 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{10} } 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 *TokenRequest) Reset() { *m = TokenRequest{} } func (*TokenRequest) ProtoMessage() {} func (*TokenRequest) Descriptor() ([]byte, []int) { return fileDescriptor_7d2980599fd0de80, []int{11} } 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 *VolumeAttachment) Reset() { *m = VolumeAttachment{} } func (*VolumeAttachment) ProtoMessage() {} func (*VolumeAttachment) Descriptor() ([]byte, []int) { return fileDescriptor_7d2980599fd0de80, []int{12} } 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{13} } 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{14} } 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{15} } 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{16} } 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{17} } 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{18} } 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((*CSIStorageCapacity)(nil), "k8s.io.api.storage.v1beta1.CSIStorageCapacity") proto.RegisterType((*CSIStorageCapacityList)(nil), "k8s.io.api.storage.v1beta1.CSIStorageCapacityList") 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((*TokenRequest)(nil), "k8s.io.api.storage.v1beta1.TokenRequest") 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/k8s.io/api/storage/v1beta1/generated.proto", fileDescriptor_7d2980599fd0de80) } var fileDescriptor_7d2980599fd0de80 = []byte{ // 1672 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcd, 0x6f, 0x1b, 0x4d, 0x19, 0xcf, 0xc6, 0xce, 0xd7, 0x38, 0x69, 0x92, 0x49, 0x5a, 0x8c, 0x0f, 0x76, 0x64, 0x04, 0x4d, 0xab, 0xb2, 0x6e, 0x43, 0xa9, 0xaa, 0x4a, 0x95, 0xc8, 0x26, 0x81, 0xba, 0x8d, 0xd3, 0x74, 0x1c, 0x55, 0x55, 0xc5, 0x81, 0xf1, 0xee, 0xc4, 0x99, 0xc6, 0xfb, 0xd1, 0x9d, 0xd9, 0x10, 0x73, 0x82, 0x0b, 0x67, 0xc4, 0x81, 0xbf, 0x80, 0x7f, 0x01, 0x24, 0xb8, 0x70, 0xa4, 0x12, 0x12, 0xaa, 0xb8, 0xd0, 0x93, 0x45, 0xcd, 0x9f, 0xf0, 0x4a, 0xef, 0x21, 0x7a, 0x0f, 0xaf, 0x66, 0x76, 0xec, 0xfd, 0xb2, 0x9b, 0xe4, 0x3d, 0xf8, 0xe6, 0x79, 0x3e, 0x7e, 0xcf, 0x33, 0xf3, 0x7c, 0xae, 0xc1, 0xce, 0xe9, 0x63, 0xa6, 0x53, 0xb7, 0x76, 0x1a, 0xb4, 0x88, 0xef, 0x10, 0x4e, 0x58, 0xed, 0x8c, 0x38, 0x96, 0xeb, 0xd7, 0x14, 0x03, 0x7b, 0xb4, 0xc6, 0xb8, 0xeb, 0xe3, 0x36, 0xa9, 0x9d, 0x3d, 0x68, 0x11, 0x8e, 0x1f, 0xd4, 0xda, 0xc4, 0x21, 0x3e, 0xe6, 0xc4, 0xd2, 0x3d, 0xdf, 0xe5, 0x2e, 0x2c, 0x85, 0xb2, 0x3a, 0xf6, 0xa8, 0xae, 0x64, 0x75, 0x25, 0x5b, 0xfa, 0x71, 0x9b, 0xf2, 0x93, 0xa0, 0xa5, 0x9b, 0xae, 0x5d, 0x6b, 0xbb, 0x6d, 0xb7, 0x26, 0x55, 0x5a, 0xc1, 0xb1, 0x3c, 0xc9, 0x83, 0xfc, 0x15, 0x42, 0x95, 0xaa, 0x31, 0xb3, 0xa6, 0xeb, 0x0b, 0x9b, 0x69, 0x73, 0xa5, 0x87, 0x91, 0x8c, 0x8d, 0xcd, 0x13, 0xea, 0x10, 0xbf, 0x5b, 0xf3, 0x4e, 0xdb, 0x52, 0xc9, 0x27, 0xcc, 0x0d, 0x7c, 0x93, 0x5c, 0x4b, 0x8b, 0xd5, 0x6c, 0xc2, 0xf1, 0x28, 0x5b, 0xb5, 0x71, 0x5a, 0x7e, 0xe0, 0x70, 0x6a, 0x67, 0xcd, 0x3c, 0xba, 0x4c, 0x81, 0x99, 0x27, 0xc4, 0xc6, 0x69, 0xbd, 0xea, 0xdf, 0x35, 0xb0, 0xb0, 0xd3, 0xac, 0xef, 0xfa, 0xf4, 0x8c, 0xf8, 0xf0, 0x57, 0x60, 0x5e, 0x78, 0x64, 0x61, 0x8e, 0x8b, 0xda, 0x86, 0xb6, 0x59, 0xd8, 0xba, 0xaf, 0x47, 0x8f, 0x3c, 0x04, 0xd6, 0xbd, 0xd3, 0xb6, 0x20, 0x30, 0x5d, 0x48, 0xeb, 0x67, 0x0f, 0xf4, 0x97, 0xad, 0x77, 0xc4, 0xe4, 0x0d, 0xc2, 0xb1, 0x01, 0x3f, 0xf4, 0x2a, 0x53, 0xfd, 0x5e, 0x05, 0x44, 0x34, 0x34, 0x44, 0x85, 0x2f, 0x40, 0x9e, 0x79, 0xc4, 0x2c, 0x4e, 0x4b, 0xf4, 0x3b, 0xfa, 0xf8, 0x10, 0xea, 0x43, 0xb7, 0x9a, 0x1e, 0x31, 0x8d, 0x45, 0x05, 0x9b, 0x17, 0x27, 0x24, 0x41, 0xaa, 0x7f, 0xd3, 0xc0, 0xd2, 0x50, 0x6a, 0x9f, 0x32, 0x0e, 0x7f, 0x99, 0xb9, 0x80, 0x7e, 0xb5, 0x0b, 0x08, 0x6d, 0xe9, 0xfe, 0x8a, 0xb2, 0x33, 0x3f, 0xa0, 0xc4, 0x9c, 0x7f, 0x0e, 0x66, 0x28, 0x27, 0x36, 0x2b, 0x4e, 0x6f, 0xe4, 0x36, 0x0b, 0x5b, 0x3f, 0xbc, 0x92, 0xf7, 0xc6, 0x92, 0x42, 0x9c, 0xa9, 0x0b, 0x5d, 0x14, 0x42, 0x54, 0xff, 0x9b, 0x8f, 0xf9, 0x2e, 0xee, 0x04, 0x9f, 0x80, 0x1b, 0x98, 0x73, 0x6c, 0x9e, 0x20, 0xf2, 0x3e, 0xa0, 0x3e, 0xb1, 0xe4, 0x0d, 0xe6, 0x0d, 0xd8, 0xef, 0x55, 0x6e, 0x6c, 0x27, 0x38, 0x28, 0x25, 0x29, 0x74, 0x3d, 0xd7, 0xaa, 0x3b, 0xc7, 0xee, 0x4b, 0xa7, 0xe1, 0x06, 0x0e, 0x97, 0x0f, 0xac, 0x74, 0x0f, 0x13, 0x1c, 0x94, 0x92, 0x84, 0x26, 0x58, 0x3f, 0x73, 0x3b, 0x81, 0x4d, 0xf6, 0xe9, 0x31, 0x31, 0xbb, 0x66, 0x87, 0x34, 0x5c, 0x8b, 0xb0, 0x62, 0x6e, 0x23, 0xb7, 0xb9, 0x60, 0xd4, 0xfa, 0xbd, 0xca, 0xfa, 0xeb, 0x11, 0xfc, 0x8b, 0x5e, 0x65, 0x6d, 0x04, 0x1d, 0x8d, 0x04, 0x83, 0x4f, 0xc1, 0xb2, 0x7a, 0xa1, 0x1d, 0xec, 0x61, 0x93, 0xf2, 0x6e, 0x31, 0x2f, 0x3d, 0x5c, 0xeb, 0xf7, 0x2a, 0xcb, 0xcd, 0x24, 0x0b, 0xa5, 0x65, 0xe1, 0x33, 0xb0, 0x74, 0xcc, 0x7e, 0xe1, 0xbb, 0x81, 0x77, 0xe8, 0x76, 0xa8, 0xd9, 0x2d, 0xce, 0x6c, 0x68, 0x9b, 0x0b, 0x46, 0xb5, 0xdf, 0xab, 0x2c, 0xfd, 0xbc, 0x19, 0x63, 0x5c, 0xa4, 0x09, 0x28, 0xa9, 0x08, 0x09, 0x58, 0xe2, 0xee, 0x29, 0x71, 0xc4, 0xd3, 0x11, 0xc6, 0x59, 0x71, 0x56, 0xc6, 0x72, 0xf3, 0x4b, 0xb1, 0x3c, 0x8a, 0x29, 0x18, 0x37, 0x55, 0x38, 0x97, 0xe2, 0x54, 0x86, 0x92, 0xa8, 0x70, 0x07, 0xac, 0xfa, 0x61, 0x70, 0x18, 0x22, 0x5e, 0xd0, 0xea, 0x50, 0x76, 0x52, 0x9c, 0x93, 0x37, 0xbe, 0xd9, 0xef, 0x55, 0x56, 0x51, 0x9a, 0x89, 0xb2, 0xf2, 0xf0, 0x21, 0x58, 0x64, 0x64, 0x9f, 0x3a, 0xc1, 0x79, 0x18, 0xd3, 0x79, 0xa9, 0xbf, 0xd2, 0xef, 0x55, 0x16, 0x9b, 0x7b, 0x11, 0x1d, 0x25, 0xa4, 0xaa, 0x7f, 0xd5, 0xc0, 0xdc, 0x4e, 0xb3, 0x7e, 0xe0, 0x5a, 0x64, 0x02, 0x05, 0x5d, 0x4f, 0x14, 0xf4, 0xed, 0x4b, 0x4a, 0x42, 0x38, 0x35, 0xb6, 0x9c, 0xbf, 0x0a, 0xcb, 0x59, 0xc8, 0xa8, 0x7e, 0xb4, 0x01, 0xf2, 0x0e, 0xb6, 0x89, 0x74, 0x7d, 0x21, 0xd2, 0x39, 0xc0, 0x36, 0x41, 0x92, 0x03, 0x7f, 0x04, 0x66, 0x1d, 0xd7, 0x22, 0xf5, 0x5d, 0xe9, 0xc0, 0x82, 0x71, 0x43, 0xc9, 0xcc, 0x1e, 0x48, 0x2a, 0x52, 0x5c, 0xf1, 0x94, 0xdc, 0xf5, 0xdc, 0x8e, 0xdb, 0xee, 0xbe, 0x20, 0xdd, 0x41, 0x72, 0xcb, 0xa7, 0x3c, 0x8a, 0xd1, 0x51, 0x42, 0x0a, 0xb6, 0x40, 0x01, 0x77, 0x3a, 0xae, 0x89, 0x39, 0x6e, 0x75, 0x88, 0xcc, 0xd8, 0xc2, 0x56, 0xed, 0x4b, 0x77, 0x0c, 0x2b, 0x42, 0x18, 0x47, 0x6a, 0x22, 0x30, 0x63, 0xb9, 0xdf, 0xab, 0x14, 0xb6, 0x23, 0x1c, 0x14, 0x07, 0xad, 0xfe, 0x45, 0x03, 0x05, 0x75, 0xeb, 0x09, 0xb4, 0xb0, 0x67, 0xc9, 0x16, 0xf6, 0x83, 0x2b, 0xc4, 0x6b, 0x4c, 0x03, 0x33, 0x87, 0x6e, 0xcb, 0xee, 0x75, 0x04, 0xe6, 0x2c, 0x19, 0x34, 0x56, 0xd4, 0x24, 0xf4, 0x9d, 0x2b, 0x40, 0xab, 0x0e, 0xb9, 0xac, 0x0c, 0xcc, 0x85, 0x67, 0x86, 0x06, 0x50, 0xd5, 0xaf, 0x73, 0x00, 0xee, 0x34, 0xeb, 0xa9, 0xfe, 0x30, 0x81, 0xb4, 0xa6, 0x60, 0x51, 0x64, 0xce, 0x20, 0x37, 0x54, 0x7a, 0xff, 0xe4, 0x8a, 0x91, 0xc0, 0x2d, 0xd2, 0x69, 0x92, 0x0e, 0x31, 0xb9, 0xeb, 0x87, 0x49, 0x76, 0x10, 0x03, 0x43, 0x09, 0x68, 0xb8, 0x0b, 0x56, 0x06, 0xed, 0xae, 0x83, 0x19, 0x13, 0xc9, 0x5d, 0xcc, 0xc9, 0x64, 0x2e, 0x2a, 0x17, 0x57, 0x9a, 0x29, 0x3e, 0xca, 0x68, 0xc0, 0x37, 0x60, 0xde, 0x8c, 0x77, 0xd6, 0x4b, 0xd2, 0x46, 0x1f, 0x2c, 0x2c, 0xfa, 0xab, 0x00, 0x3b, 0x9c, 0xf2, 0xae, 0xb1, 0x28, 0x52, 0x66, 0xd8, 0x82, 0x87, 0x68, 0x90, 0x81, 0x55, 0x1b, 0x9f, 0x53, 0x3b, 0xb0, 0xc3, 0xe4, 0x6e, 0xd2, 0xdf, 0x10, 0xd9, 0x7f, 0xaf, 0x6f, 0x42, 0xb6, 0xbe, 0x46, 0x1a, 0x0c, 0x65, 0xf1, 0xab, 0xff, 0xd2, 0xc0, 0xad, 0x6c, 0xe0, 0x27, 0x50, 0x20, 0xcd, 0x64, 0x81, 0xe8, 0x97, 0x64, 0x71, 0xca, 0xc1, 0x31, 0xb5, 0xf2, 0xc7, 0x59, 0xb0, 0x18, 0x8f, 0xe1, 0x04, 0x12, 0xf8, 0xa7, 0xa0, 0xe0, 0xf9, 0xee, 0x19, 0x65, 0xd4, 0x75, 0x88, 0xaf, 0xba, 0xe3, 0x9a, 0x52, 0x29, 0x1c, 0x46, 0x2c, 0x14, 0x97, 0x83, 0x1d, 0x00, 0x3c, 0xec, 0x63, 0x9b, 0x70, 0x51, 0xc9, 0x39, 0xf9, 0x06, 0x8f, 0xbf, 0xf4, 0x06, 0xf1, 0x6b, 0xe9, 0x87, 0x43, 0xd5, 0x3d, 0x87, 0xfb, 0xdd, 0xc8, 0xc5, 0x88, 0x81, 0x62, 0xf8, 0xf0, 0x14, 0x2c, 0xf9, 0xc4, 0xec, 0x60, 0x6a, 0xab, 0xb1, 0x9e, 0x97, 0x6e, 0xee, 0x89, 0xf1, 0x8a, 0xe2, 0x8c, 0x8b, 0x5e, 0xe5, 0x7e, 0x76, 0x45, 0xd7, 0x0f, 0x89, 0xcf, 0x28, 0xe3, 0xc4, 0xe1, 0x61, 0xea, 0x24, 0x74, 0x50, 0x12, 0x5b, 0x8c, 0x00, 0x5b, 0x0c, 0xc8, 0x97, 0x1e, 0xa7, 0xae, 0xc3, 0x8a, 0x33, 0xd1, 0x08, 0x68, 0xc4, 0xe8, 0x28, 0x21, 0x05, 0xf7, 0xc1, 0xba, 0xe8, 0xd6, 0xbf, 0x0e, 0x0d, 0xec, 0x9d, 0x7b, 0xd8, 0x11, 0x4f, 0x55, 0x9c, 0x95, 0xb3, 0xb8, 0x28, 0xb6, 0xa3, 0xed, 0x11, 0x7c, 0x34, 0x52, 0x0b, 0xbe, 0x01, 0xab, 0xe1, 0x7a, 0x64, 0x50, 0xc7, 0xa2, 0x4e, 0x5b, 0x2c, 0x47, 0x72, 0x2d, 0x58, 0x30, 0xee, 0x8a, 0xda, 0x78, 0x9d, 0x66, 0x5e, 0x8c, 0x22, 0xa2, 0x2c, 0x08, 0x7c, 0x0f, 0x56, 0xa5, 0x45, 0x62, 0xa9, 0xc6, 0x42, 0x09, 0x2b, 0xce, 0x67, 0x77, 0x1b, 0xf1, 0x74, 0x22, 0x91, 0x06, 0xed, 0x67, 0xd0, 0xa6, 0x8e, 0x88, 0x6f, 0x1b, 0xdf, 0x57, 0xf1, 0x5a, 0xdd, 0x4e, 0x43, 0xa1, 0x2c, 0x7a, 0xe9, 0x29, 0x58, 0x4e, 0x05, 0x1c, 0xae, 0x80, 0xdc, 0x29, 0xe9, 0x86, 0xf3, 0x1a, 0x89, 0x9f, 0x70, 0x1d, 0xcc, 0x9c, 0xe1, 0x4e, 0x40, 0xc2, 0x0c, 0x44, 0xe1, 0xe1, 0xc9, 0xf4, 0x63, 0xad, 0xfa, 0x0f, 0x0d, 0x24, 0x1a, 0xdb, 0x04, 0x8a, 0xbb, 0x91, 0x2c, 0xee, 0xcd, 0xab, 0x26, 0xf6, 0x98, 0xb2, 0xfe, 0x9d, 0x06, 0x16, 0xe3, 0x5b, 0x20, 0xbc, 0x07, 0xe6, 0x71, 0x60, 0x51, 0xe2, 0x98, 0x83, 0x9d, 0x65, 0xe8, 0xcd, 0xb6, 0xa2, 0xa3, 0xa1, 0x84, 0xd8, 0x11, 0xc9, 0xb9, 0x47, 0x7d, 0x2c, 0x32, 0xad, 0x49, 0x4c, 0xd7, 0xb1, 0x98, 0x7c, 0xa6, 0x5c, 0xd8, 0x28, 0xf7, 0xd2, 0x4c, 0x94, 0x95, 0xaf, 0xfe, 0x79, 0x1a, 0xac, 0x84, 0x09, 0x12, 0x7e, 0x22, 0xd8, 0xc4, 0xe1, 0x13, 0x68, 0x2f, 0x28, 0xb1, 0xf6, 0xdd, 0xbf, 0x7c, 0x25, 0x8a, 0xbc, 0x1b, 0xb7, 0xff, 0xc1, 0xb7, 0x60, 0x96, 0x71, 0xcc, 0x03, 0x26, 0xc7, 0x5f, 0x61, 0x6b, 0xeb, 0x5a, 0xa8, 0x52, 0x33, 0xda, 0xff, 0xc2, 0x33, 0x52, 0x88, 0xd5, 0x7f, 0x6a, 0x60, 0x3d, 0xad, 0x32, 0x81, 0x84, 0x7b, 0x95, 0x4c, 0xb8, 0x7b, 0xd7, 0xb9, 0xd1, 0x98, 0xa4, 0xfb, 0x8f, 0x06, 0x6e, 0x65, 0x2e, 0x2f, 0xe7, 0xac, 0xe8, 0x55, 0x5e, 0xaa, 0x23, 0x1e, 0x44, 0xeb, 0xb3, 0xec, 0x55, 0x87, 0x23, 0xf8, 0x68, 0xa4, 0x16, 0x7c, 0x07, 0x56, 0xa8, 0xd3, 0xa1, 0x0e, 0x51, 0x63, 0x39, 0x0a, 0xf7, 0xc8, 0x86, 0x92, 0x46, 0x96, 0x61, 0x5e, 0x17, 0xdb, 0x4b, 0x3d, 0x85, 0x82, 0x32, 0xb8, 0xd5, 0x7f, 0x8f, 0x08, 0x8f, 0x5c, 0x2b, 0x45, 0x45, 0x49, 0x0a, 0xf1, 0x33, 0x15, 0xa5, 0xe8, 0x68, 0x28, 0x21, 0x33, 0x48, 0x3e, 0x85, 0x72, 0xf4, 0x7a, 0x19, 0x24, 0x35, 0x63, 0x19, 0x24, 0xcf, 0x48, 0x21, 0x0a, 0x4f, 0xc4, 0xda, 0x16, 0x5b, 0xcf, 0x86, 0x9e, 0x1c, 0x28, 0x3a, 0x1a, 0x4a, 0x54, 0xbf, 0xc9, 0x8d, 0x88, 0x92, 0x4c, 0xc5, 0xd8, 0x95, 0x06, 0x5f, 0xf8, 0xe9, 0x2b, 0x59, 0xc3, 0x2b, 0x59, 0xf0, 0x4f, 0x1a, 0x80, 0x78, 0x08, 0xd1, 0x18, 0xa4, 0x6a, 0x98, 0x4f, 0xcf, 0xaf, 0x5f, 0x21, 0xfa, 0x76, 0x06, 0x2c, 0x9c, 0xd5, 0x25, 0xe5, 0x04, 0xcc, 0x0a, 0xa0, 0x11, 0x1e, 0x40, 0x0a, 0x0a, 0x21, 0x75, 0xcf, 0xf7, 0x5d, 0x5f, 0x95, 0xec, 0xed, 0xcb, 0x1d, 0x92, 0xe2, 0x46, 0x59, 0x7e, 0x13, 0x45, 0xfa, 0x17, 0xbd, 0x4a, 0x21, 0xc6, 0x47, 0x71, 0x6c, 0x61, 0xca, 0x22, 0x91, 0xa9, 0xfc, 0x77, 0x30, 0xb5, 0x4b, 0xc6, 0x9b, 0x8a, 0x61, 0x97, 0xf6, 0xc0, 0xf7, 0xc6, 0x3c, 0xd0, 0xb5, 0x66, 0xdb, 0xef, 0x35, 0x10, 0xb7, 0x01, 0xf7, 0x41, 0x9e, 0x53, 0x55, 0x89, 0x85, 0xad, 0xbb, 0x57, 0xeb, 0x30, 0x47, 0xd4, 0x26, 0x51, 0xa3, 0x14, 0x27, 0x24, 0x51, 0xe0, 0x1d, 0x30, 0x67, 0x13, 0xc6, 0x70, 0x5b, 0x59, 0x8e, 0x3e, 0xa0, 0x1a, 0x21, 0x19, 0x0d, 0xf8, 0xd5, 0x47, 0x60, 0x6d, 0xc4, 0x27, 0x29, 0xac, 0x80, 0x19, 0x53, 0xfe, 0xa5, 0x20, 0x1c, 0x9a, 0x31, 0x16, 0x44, 0x97, 0xd9, 0x91, 0xff, 0x25, 0x84, 0x74, 0xe3, 0x67, 0x1f, 0x3e, 0x97, 0xa7, 0x3e, 0x7e, 0x2e, 0x4f, 0x7d, 0xfa, 0x5c, 0x9e, 0xfa, 0x6d, 0xbf, 0xac, 0x7d, 0xe8, 0x97, 0xb5, 0x8f, 0xfd, 0xb2, 0xf6, 0xa9, 0x5f, 0xd6, 0xfe, 0xd7, 0x2f, 0x6b, 0x7f, 0xf8, 0x7f, 0x79, 0xea, 0x6d, 0x69, 0xfc, 0xbf, 0xb5, 0xdf, 0x06, 0x00, 0x00, 0xff, 0xff, 0xee, 0x44, 0x0b, 0xed, 0xe3, 0x15, 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 m.SELinuxMount != nil { i-- if *m.SELinuxMount { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x40 } if m.RequiresRepublish != nil { i-- if *m.RequiresRepublish { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x38 } if len(m.TokenRequests) > 0 { for iNdEx := len(m.TokenRequests) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.TokenRequests[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x32 } } if m.FSGroupPolicy != nil { i -= len(*m.FSGroupPolicy) copy(dAtA[i:], *m.FSGroupPolicy) i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FSGroupPolicy))) i-- dAtA[i] = 0x2a } if m.StorageCapacity != nil { i-- if *m.StorageCapacity { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x20 } 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 *CSIStorageCapacity) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *CSIStorageCapacity) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *CSIStorageCapacity) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.MaximumVolumeSize != nil { { size, err := m.MaximumVolumeSize.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a } if m.Capacity != nil { { size, err := m.Capacity.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } i -= len(m.StorageClassName) copy(dAtA[i:], m.StorageClassName) i = encodeVarintGenerated(dAtA, i, uint64(len(m.StorageClassName))) i-- dAtA[i] = 0x1a if m.NodeTopology != nil { { size, err := m.NodeTopology.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 *CSIStorageCapacityList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *CSIStorageCapacityList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *CSIStorageCapacityList) 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 *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 *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 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 *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)) } } if m.StorageCapacity != nil { n += 2 } if m.FSGroupPolicy != nil { l = len(*m.FSGroupPolicy) n += 1 + l + sovGenerated(uint64(l)) } if len(m.TokenRequests) > 0 { for _, e := range m.TokenRequests { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } if m.RequiresRepublish != nil { n += 2 } if m.SELinuxMount != nil { n += 2 } 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 *CSIStorageCapacity) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.ObjectMeta.Size() n += 1 + l + sovGenerated(uint64(l)) if m.NodeTopology != nil { l = m.NodeTopology.Size() n += 1 + l + sovGenerated(uint64(l)) } l = len(m.StorageClassName) n += 1 + l + sovGenerated(uint64(l)) if m.Capacity != nil { l = m.Capacity.Size() n += 1 + l + sovGenerated(uint64(l)) } if m.MaximumVolumeSize != nil { l = m.MaximumVolumeSize.Size() n += 1 + l + sovGenerated(uint64(l)) } return n } func (m *CSIStorageCapacityList) 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 *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 *TokenRequest) 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)) } 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" } repeatedStringForTokenRequests := "[]TokenRequest{" for _, f := range this.TokenRequests { repeatedStringForTokenRequests += strings.Replace(strings.Replace(f.String(), "TokenRequest", "TokenRequest", 1), `&`, ``, 1) + "," } repeatedStringForTokenRequests += "}" s := strings.Join([]string{`&CSIDriverSpec{`, `AttachRequired:` + valueToStringGenerated(this.AttachRequired) + `,`, `PodInfoOnMount:` + valueToStringGenerated(this.PodInfoOnMount) + `,`, `VolumeLifecycleModes:` + fmt.Sprintf("%v", this.VolumeLifecycleModes) + `,`, `StorageCapacity:` + valueToStringGenerated(this.StorageCapacity) + `,`, `FSGroupPolicy:` + valueToStringGenerated(this.FSGroupPolicy) + `,`, `TokenRequests:` + repeatedStringForTokenRequests + `,`, `RequiresRepublish:` + valueToStringGenerated(this.RequiresRepublish) + `,`, `SELinuxMount:` + valueToStringGenerated(this.SELinuxMount) + `,`, `}`, }, "") 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 *CSIStorageCapacity) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&CSIStorageCapacity{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, `NodeTopology:` + strings.Replace(fmt.Sprintf("%v", this.NodeTopology), "LabelSelector", "v1.LabelSelector", 1) + `,`, `StorageClassName:` + fmt.Sprintf("%v", this.StorageClassName) + `,`, `Capacity:` + strings.Replace(fmt.Sprintf("%v", this.Capacity), "Quantity", "resource.Quantity", 1) + `,`, `MaximumVolumeSize:` + strings.Replace(fmt.Sprintf("%v", this.MaximumVolumeSize), "Quantity", "resource.Quantity", 1) + `,`, `}`, }, "") return s } func (this *CSIStorageCapacityList) String() string { if this == nil { return "nil" } repeatedStringForItems := "[]CSIStorageCapacity{" for _, f := range this.Items { repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "CSIStorageCapacity", "CSIStorageCapacity", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" s := strings.Join([]string{`&CSIStorageCapacityList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") 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 *TokenRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&TokenRequest{`, `Audience:` + fmt.Sprintf("%v", this.Audience) + `,`, `ExpirationSeconds:` + valueToStringGenerated(this.ExpirationSeconds) + `,`, `}`, }, "") 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) || (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) || (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 case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field StorageCapacity", 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.StorageCapacity = &b case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field FSGroupPolicy", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 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 := FSGroupPolicy(dAtA[iNdEx:postIndex]) m.FSGroupPolicy = &s iNdEx = postIndex case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TokenRequests", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } m.TokenRequests = append(m.TokenRequests, TokenRequest{}) if err := m.TokenRequests[len(m.TokenRequests)-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 RequiresRepublish", 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.RequiresRepublish = &b case 8: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field SELinuxMount", 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.SELinuxMount = &b default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *CSIStorageCapacity) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: CSIStorageCapacity: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: CSIStorageCapacity: 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 NodeTopology", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.NodeTopology == nil { m.NodeTopology = &v1.LabelSelector{} } if err := m.NodeTopology.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: 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 4: 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 = &resource.Quantity{} } if err := m.Capacity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MaximumVolumeSize", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthGenerated } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } if m.MaximumVolumeSize == nil { m.MaximumVolumeSize = &resource.Quantity{} } if err := m.MaximumVolumeSize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenerated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *CSIStorageCapacityList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: CSIStorageCapacityList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: CSIStorageCapacityList: 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, CSIStorageCapacity{}) 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) || (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) || (iNdEx+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) || (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) || (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 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 default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (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) || (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) || (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) || (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) || (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) || (iNdEx+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) || (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) || (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) || (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 depth := 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 } } case 1: iNdEx += 8 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 case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGenerated } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGenerated } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") ) golang-k8s-api-0.29.0/storage/v1beta1/generated.proto000066400000000000000000000616611453636404600223020ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1/generated.proto"; import "k8s.io/apimachinery/pkg/api/resource/generated.proto"; import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/storage/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; // spec represents the 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. // // This field is immutable. // // +optional optional bool attachRequired = 1; // podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) // during mount operations, if set to true. // 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 VolumeContext 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" if 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. // // This field is immutable. // // +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. // // This field is immutable. // // +optional repeated string volumeLifecycleModes = 3; // storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage // capacity that the driver deployment will report by creating // CSIStorageCapacity objects with capacity information, if set to true. // // The check can be enabled immediately when deploying a driver. // In that case, provisioning new volumes with late binding // will pause until the driver deployment has published // some suitable CSIStorageCapacity object. // // Alternatively, the driver can be deployed with the field // unset or false and it can be flipped later when storage // capacity information has been published. // // This field was immutable in Kubernetes <= 1.22 and now is mutable. // // +optional optional bool storageCapacity = 4; // fsGroupPolicy defines if the underlying volume supports changing ownership and // permission of the volume before being mounted. // Refer to the specific FSGroupPolicy values for additional details. // // This field is immutable. // // Defaults to ReadWriteOnceWithFSType, which will examine each volume // to determine if Kubernetes should modify ownership and permissions of the volume. // With the default policy the defined fsGroup will only be applied // if a fstype is defined and the volume's access mode contains ReadWriteOnce. // // +optional optional string fsGroupPolicy = 5; // tokenRequests indicates the CSI driver needs pods' service account // tokens it is mounting volume for to do necessary authentication. Kubelet // will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. // The CSI driver should parse and validate the following VolumeContext: // "csi.storage.k8s.io/serviceAccount.tokens": { // "": { // "token": , // "expirationTimestamp": , // }, // ... // } // // Note: Audience in each TokenRequest should be different and at // most one token is empty string. To receive a new token after expiry, // RequiresRepublish can be used to trigger NodePublishVolume periodically. // // +optional // +listType=atomic repeated TokenRequest tokenRequests = 6; // requiresRepublish indicates the CSI driver wants `NodePublishVolume` // being periodically called to reflect any possible change in the mounted // volume. This field defaults to false. // // Note: After a successful initial NodePublishVolume call, subsequent calls // to NodePublishVolume should only update the contents of the volume. New // mount points will not be seen by a running container. // // +optional optional bool requiresRepublish = 7; // seLinuxMount specifies if the CSI driver supports "-o context" // mount option. // // When "true", the CSI driver must ensure that all volumes provided by this CSI // driver can be mounted separately with different `-o context` options. This is // typical for storage backends that provide volumes as filesystems on block // devices or as independent shared volumes. // Kubernetes will call NodeStage / NodePublish with "-o context=xyz" mount // option when mounting a ReadWriteOncePod volume used in Pod that has // explicitly set SELinux context. In the future, it may be expanded to other // volume AccessModes. In any case, Kubernetes will ensure that the volume is // mounted only with a single SELinux context. // // When "false", Kubernetes won't pass any special SELinux mount options to the driver. // This is typical for volumes that represent subdirectories of a bigger shared filesystem. // // Default is "false". // // +featureGate=SELinuxMountReadWriteOncePod // +optional optional bool seLinuxMount = 8; } // DEPRECATED - This group version of CSINode is deprecated by storage/v1/CSINode. // See the release notes for more information. // 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 { // name represents 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; } // CSIStorageCapacity stores the result of one CSI GetCapacity call. // For a given StorageClass, this describes the available capacity in a // particular topology segment. This can be used when considering where to // instantiate new PersistentVolumes. // // For example this can express things like: // - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" // - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" // // The following three cases all imply that no capacity is available for // a certain combination: // - no object exists with suitable topology and storage class name // - such an object exists, but the capacity is unset // - such an object exists, but the capacity is zero // // The producer of these objects can decide which approach is more suitable. // // They are consumed by the kube-scheduler when a CSI driver opts into // capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler // compares the MaximumVolumeSize against the requested size of pending volumes // to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back // to a comparison against the less precise Capacity. If that is also unset, // the scheduler assumes that capacity is insufficient and tries some other // node. message CSIStorageCapacity { // Standard object's metadata. The name has no particular meaning. It must be // be a DNS subdomain (dots allowed, 253 characters). To ensure that // there are no conflicts with other CSI drivers on the cluster, the recommendation // is to use csisc-, a generated name, or a reverse-domain name which ends // with the unique CSI driver name. // // Objects are namespaced. // // 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; // nodeTopology defines which nodes have access to the storage // for which capacity was reported. If not set, the storage is // not accessible from any node in the cluster. If empty, the // storage is accessible from all nodes. This field is // immutable. // // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2; // storageClassName represents the name of the StorageClass that the reported capacity applies to. // It must meet the same requirements as the name of a StorageClass // object (non-empty, DNS subdomain). If that object no longer exists, // the CSIStorageCapacity object is obsolete and should be removed by its // creator. // This field is immutable. optional string storageClassName = 3; // capacity is the value reported by the CSI driver in its GetCapacityResponse // for a GetCapacityRequest with topology and parameters that match the // previous fields. // // The semantic is currently (CSI spec 1.2) defined as: // The available capacity, in bytes, of the storage that can be used // to provision volumes. If not set, that information is currently // unavailable. // // +optional optional k8s.io.apimachinery.pkg.api.resource.Quantity capacity = 4; // maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse // for a GetCapacityRequest with topology and parameters that match the // previous fields. // // This is defined since CSI spec 1.4.0 as the largest size // that may be used in a // CreateVolumeRequest.capacity_range.required_bytes field to // create a volume with the same parameters as those in // GetCapacityRequest. The corresponding value in the Kubernetes // API is ResourceRequirements.Requests in a volume claim. // // +optional optional k8s.io.apimachinery.pkg.api.resource.Quantity maximumVolumeSize = 5; } // CSIStorageCapacityList is a collection of CSIStorageCapacity objects. message CSIStorageCapacityList { // 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 CSIStorageCapacity objects. // +listType=map // +listMapKey=name repeated CSIStorageCapacity items = 2; } // 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; // reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. // Defaults to Delete. // +optional optional string reclaimPolicy = 4; // mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. // 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; // 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. // +optional // +listType=atomic 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; } // TokenRequest contains parameters of a service account token. message TokenRequest { // audience is the intended audience of the token in "TokenRequestSpec". // It will default to the audiences of kube apiserver. optional string audience = 1; // expirationSeconds is the duration of validity of the token in "TokenRequestSpec". // It has the same default value of "ExpirationSeconds" in "TokenRequestSpec" // // +optional optional int64 expirationSeconds = 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; // spec represents specification of the desired attach/detach volume behavior. // Populated by the Kubernetes system. optional VolumeAttachmentSpec spec = 2; // status represents 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 { // persistentVolumeName represents the 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 beta-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; // nodeName represents the node that the volume should be attached to. optional string nodeName = 3; } // VolumeAttachmentStatus is the status of a VolumeAttachment request. message VolumeAttachmentStatus { // 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. optional bool attached = 1; // attachmentMetadata is populated with any // information returned by the attach operation, upon successful attach, 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; // attachError represents 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; // detachError represents 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 represents the time the error was encountered. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; // message represents 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 { // count indicates the 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; } golang-k8s-api-0.29.0/storage/v1beta1/register.go000066400000000000000000000035741453636404600214310ustar00rootroot00000000000000/* 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 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // GroupName is the group name use in this package const GroupName = "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 k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &StorageClass{}, &StorageClassList{}, &VolumeAttachment{}, &VolumeAttachmentList{}, &CSIDriver{}, &CSIDriverList{}, &CSINode{}, &CSINodeList{}, &CSIStorageCapacity{}, &CSIStorageCapacityList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } golang-k8s-api-0.29.0/storage/v1beta1/types.go000066400000000000000000001021051453636404600207370ustar00rootroot00000000000000/* 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 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.4 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1,StorageClass // 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"` // reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. // Defaults to Delete. // +optional ReclaimPolicy *v1.PersistentVolumeReclaimPolicy `json:"reclaimPolicy,omitempty" protobuf:"bytes,4,opt,name=reclaimPolicy,casttype=k8s.io/api/core/v1.PersistentVolumeReclaimPolicy"` // mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. // 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"` // 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. // +optional // +listType=atomic AllowedTopologies []v1.TopologySelectorTerm `json:"allowedTopologies,omitempty" protobuf:"bytes,8,rep,name=allowedTopologies"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.4 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1,StorageClassList // 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.10 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1,VolumeAttachment // 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"` // spec represents specification of the desired attach/detach volume behavior. // Populated by the Kubernetes system. Spec VolumeAttachmentSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // status represents 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.10 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1,VolumeAttachmentList // 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"` // nodeName represents 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 { // persistentVolumeName represents the 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 beta-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 { // 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. Attached bool `json:"attached" protobuf:"varint,1,opt,name=attached"` // attachmentMetadata is populated with any // information returned by the attach operation, upon successful attach, 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"` // attachError represents 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"` // detachError represents 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 represents the time the error was encountered. // +optional Time metav1.Time `json:"time,omitempty" protobuf:"bytes,1,opt,name=time"` // message represents 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.14 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1,CSIDriver // 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"` // spec represents the specification of the CSI Driver. Spec CSIDriverSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.14 // +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1,CSIDriverList // 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. // // This field is immutable. // // +optional AttachRequired *bool `json:"attachRequired,omitempty" protobuf:"varint,1,opt,name=attachRequired"` // podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) // during mount operations, if set to true. // 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 VolumeContext 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" if 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. // // This field is immutable. // // +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. // // This field is immutable. // // +optional VolumeLifecycleModes []VolumeLifecycleMode `json:"volumeLifecycleModes,omitempty" protobuf:"bytes,3,opt,name=volumeLifecycleModes"` // storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage // capacity that the driver deployment will report by creating // CSIStorageCapacity objects with capacity information, if set to true. // // The check can be enabled immediately when deploying a driver. // In that case, provisioning new volumes with late binding // will pause until the driver deployment has published // some suitable CSIStorageCapacity object. // // Alternatively, the driver can be deployed with the field // unset or false and it can be flipped later when storage // capacity information has been published. // // This field was immutable in Kubernetes <= 1.22 and now is mutable. // // +optional StorageCapacity *bool `json:"storageCapacity,omitempty" protobuf:"bytes,4,opt,name=storageCapacity"` // fsGroupPolicy defines if the underlying volume supports changing ownership and // permission of the volume before being mounted. // Refer to the specific FSGroupPolicy values for additional details. // // This field is immutable. // // Defaults to ReadWriteOnceWithFSType, which will examine each volume // to determine if Kubernetes should modify ownership and permissions of the volume. // With the default policy the defined fsGroup will only be applied // if a fstype is defined and the volume's access mode contains ReadWriteOnce. // // +optional FSGroupPolicy *FSGroupPolicy `json:"fsGroupPolicy,omitempty" protobuf:"bytes,5,opt,name=fsGroupPolicy"` // tokenRequests indicates the CSI driver needs pods' service account // tokens it is mounting volume for to do necessary authentication. Kubelet // will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. // The CSI driver should parse and validate the following VolumeContext: // "csi.storage.k8s.io/serviceAccount.tokens": { // "": { // "token": , // "expirationTimestamp": , // }, // ... // } // // Note: Audience in each TokenRequest should be different and at // most one token is empty string. To receive a new token after expiry, // RequiresRepublish can be used to trigger NodePublishVolume periodically. // // +optional // +listType=atomic TokenRequests []TokenRequest `json:"tokenRequests,omitempty" protobuf:"bytes,6,opt,name=tokenRequests"` // requiresRepublish indicates the CSI driver wants `NodePublishVolume` // being periodically called to reflect any possible change in the mounted // volume. This field defaults to false. // // Note: After a successful initial NodePublishVolume call, subsequent calls // to NodePublishVolume should only update the contents of the volume. New // mount points will not be seen by a running container. // // +optional RequiresRepublish *bool `json:"requiresRepublish,omitempty" protobuf:"varint,7,opt,name=requiresRepublish"` // seLinuxMount specifies if the CSI driver supports "-o context" // mount option. // // When "true", the CSI driver must ensure that all volumes provided by this CSI // driver can be mounted separately with different `-o context` options. This is // typical for storage backends that provide volumes as filesystems on block // devices or as independent shared volumes. // Kubernetes will call NodeStage / NodePublish with "-o context=xyz" mount // option when mounting a ReadWriteOncePod volume used in Pod that has // explicitly set SELinux context. In the future, it may be expanded to other // volume AccessModes. In any case, Kubernetes will ensure that the volume is // mounted only with a single SELinux context. // // When "false", Kubernetes won't pass any special SELinux mount options to the driver. // This is typical for volumes that represent subdirectories of a bigger shared filesystem. // // Default is "false". // // +featureGate=SELinuxMountReadWriteOncePod // +optional SELinuxMount *bool `json:"seLinuxMount,omitempty" protobuf:"varint,8,opt,name=seLinuxMount"` } // FSGroupPolicy specifies if a CSI Driver supports modifying // volume ownership and permissions of the volume to be mounted. // More modes may be added in the future. type FSGroupPolicy string const ( // ReadWriteOnceWithFSTypeFSGroupPolicy indicates that each volume will be examined // to determine if the volume ownership and permissions // should be modified. If a fstype is defined and the volume's access mode // contains ReadWriteOnce, then the defined fsGroup will be applied. // This is the default behavior if no other FSGroupPolicy is defined. ReadWriteOnceWithFSTypeFSGroupPolicy FSGroupPolicy = "ReadWriteOnceWithFSType" // FileFSGroupPolicy indicates that CSI driver supports volume ownership // and permission change via fsGroup, and Kubernetes will change the permissions // and ownership of every file in the volume to match the user requested fsGroup in // the pod's SecurityPolicy regardless of fstype or access mode. // Use this mode if Kubernetes should modify the permissions and ownership // of the volume. FileFSGroupPolicy FSGroupPolicy = "File" // None indicates that volumes will be mounted without performing // any ownership or permission modifications, as the CSIDriver does not support // these operations. NoneFSGroupPolicy FSGroupPolicy = "None" ) // 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 // TokenRequest contains parameters of a service account token. type TokenRequest struct { // audience is the intended audience of the token in "TokenRequestSpec". // It will default to the audiences of kube apiserver. Audience string `json:"audience" protobuf:"bytes,1,opt,name=audience"` // expirationSeconds is the duration of validity of the token in "TokenRequestSpec". // It has the same default value of "ExpirationSeconds" in "TokenRequestSpec" // // +optional ExpirationSeconds *int64 `json:"expirationSeconds,omitempty" protobuf:"varint,2,opt,name=expirationSeconds"` } 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.14 // +k8s:prerelease-lifecycle-gen:deprecated=1.17 // +k8s:prerelease-lifecycle-gen:removed=1.22 // +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1,CSINode // DEPRECATED - This group version of CSINode is deprecated by storage/v1/CSINode. // See the release notes for more information. // 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 { // name represents 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 { // count indicates the 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=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.14 // +k8s:prerelease-lifecycle-gen:deprecated=1.17 // +k8s:prerelease-lifecycle-gen:removed=1.22 // +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1,CSINode // 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"` } // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.21 // +k8s:prerelease-lifecycle-gen:deprecated=1.24 // +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1,CSIStorageCapacity // CSIStorageCapacity stores the result of one CSI GetCapacity call. // For a given StorageClass, this describes the available capacity in a // particular topology segment. This can be used when considering where to // instantiate new PersistentVolumes. // // For example this can express things like: // - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" // - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" // // The following three cases all imply that no capacity is available for // a certain combination: // - no object exists with suitable topology and storage class name // - such an object exists, but the capacity is unset // - such an object exists, but the capacity is zero // // The producer of these objects can decide which approach is more suitable. // // They are consumed by the kube-scheduler when a CSI driver opts into // capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler // compares the MaximumVolumeSize against the requested size of pending volumes // to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back // to a comparison against the less precise Capacity. If that is also unset, // the scheduler assumes that capacity is insufficient and tries some other // node. type CSIStorageCapacity struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. The name has no particular meaning. It must be // be a DNS subdomain (dots allowed, 253 characters). To ensure that // there are no conflicts with other CSI drivers on the cluster, the recommendation // is to use csisc-, a generated name, or a reverse-domain name which ends // with the unique CSI driver name. // // Objects are namespaced. // // 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"` // nodeTopology defines which nodes have access to the storage // for which capacity was reported. If not set, the storage is // not accessible from any node in the cluster. If empty, the // storage is accessible from all nodes. This field is // immutable. // // +optional NodeTopology *metav1.LabelSelector `json:"nodeTopology,omitempty" protobuf:"bytes,2,opt,name=nodeTopology"` // storageClassName represents the name of the StorageClass that the reported capacity applies to. // It must meet the same requirements as the name of a StorageClass // object (non-empty, DNS subdomain). If that object no longer exists, // the CSIStorageCapacity object is obsolete and should be removed by its // creator. // This field is immutable. StorageClassName string `json:"storageClassName" protobuf:"bytes,3,name=storageClassName"` // capacity is the value reported by the CSI driver in its GetCapacityResponse // for a GetCapacityRequest with topology and parameters that match the // previous fields. // // The semantic is currently (CSI spec 1.2) defined as: // The available capacity, in bytes, of the storage that can be used // to provision volumes. If not set, that information is currently // unavailable. // // +optional Capacity *resource.Quantity `json:"capacity,omitempty" protobuf:"bytes,4,opt,name=capacity"` // maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse // for a GetCapacityRequest with topology and parameters that match the // previous fields. // // This is defined since CSI spec 1.4.0 as the largest size // that may be used in a // CreateVolumeRequest.capacity_range.required_bytes field to // create a volume with the same parameters as those in // GetCapacityRequest. The corresponding value in the Kubernetes // API is ResourceRequirements.Requests in a volume claim. // // +optional MaximumVolumeSize *resource.Quantity `json:"maximumVolumeSize,omitempty" protobuf:"bytes,5,opt,name=maximumVolumeSize"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.21 // +k8s:prerelease-lifecycle-gen:deprecated=1.24 // +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1,CSIStorageCapacityList // CSIStorageCapacityList is a collection of CSIStorageCapacity objects. type CSIStorageCapacityList 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 CSIStorageCapacity objects. // +listType=map // +listMapKey=name Items []CSIStorageCapacity `json:"items" protobuf:"bytes,2,rep,name=items"` } golang-k8s-api-0.29.0/storage/v1beta1/types_swagger_doc_generated.go000066400000000000000000000566421453636404600253370ustar00rootroot00000000000000/* 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-codegen.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": "spec represents the 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.\n\nThis field is immutable.", "podInfoOnMount": "podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false.\n\nThe 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.\n\nThe following VolumeContext 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\" if 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.\n\nThis field is immutable.", "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.\n\nThe 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.\n\nFor 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.\n\nThis field is immutable.", "storageCapacity": "storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true.\n\nThe check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.\n\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\n\nThis field was immutable in Kubernetes <= 1.22 and now is mutable.", "fsGroupPolicy": "fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.\n\nThis field is immutable.\n\nDefaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.", "tokenRequests": "tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": {\n \"\": {\n \"token\": ,\n \"expirationTimestamp\": ,\n },\n ...\n}\n\nNote: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.", "requiresRepublish": "requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\n\nNote: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.", "seLinuxMount": "seLinuxMount specifies if the CSI driver supports \"-o context\" mount option.\n\nWhen \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context.\n\nWhen \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem.\n\nDefault is \"false\".", } func (CSIDriverSpec) SwaggerDoc() map[string]string { return map_CSIDriverSpec } var map_CSINode = map[string]string{ "": "DEPRECATED - This group version of CSINode is deprecated by storage/v1/CSINode. See the release notes for more information. 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": "name represents 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_CSIStorageCapacity = map[string]string{ "": "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.\n\nFor example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\"\n\nThe following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.", "metadata": "Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "nodeTopology": "nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable.", "storageClassName": "storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.", "capacity": "capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable.", "maximumVolumeSize": "maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim.", } func (CSIStorageCapacity) SwaggerDoc() map[string]string { return map_CSIStorageCapacity } var map_CSIStorageCapacityList = map[string]string{ "": "CSIStorageCapacityList is a collection of CSIStorageCapacity 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 CSIStorageCapacity objects.", } func (CSIStorageCapacityList) SwaggerDoc() map[string]string { return map_CSIStorageCapacityList } 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": "reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.", "mountOptions": "mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. 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": "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_TokenRequest = map[string]string{ "": "TokenRequest contains parameters of a service account token.", "audience": "audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver.", "expirationSeconds": "expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\"", } func (TokenRequest) SwaggerDoc() map[string]string { return map_TokenRequest } 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": "spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.", "status": "status represents 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": "persistentVolumeName represents the 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": "nodeName represents 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": "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": "attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, 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": "attachError represents 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": "detachError represents 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 represents the time the error was encountered.", "message": "message represents 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": "count indicates the 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 golang-k8s-api-0.29.0/storage/v1beta1/zz_generated.deepcopy.go000066400000000000000000000422201453636404600240640ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 "k8s.io/api/core/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *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) } if in.StorageCapacity != nil { in, out := &in.StorageCapacity, &out.StorageCapacity *out = new(bool) **out = **in } if in.FSGroupPolicy != nil { in, out := &in.FSGroupPolicy, &out.FSGroupPolicy *out = new(FSGroupPolicy) **out = **in } if in.TokenRequests != nil { in, out := &in.TokenRequests, &out.TokenRequests *out = make([]TokenRequest, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.RequiresRepublish != nil { in, out := &in.RequiresRepublish, &out.RequiresRepublish *out = new(bool) **out = **in } if in.SELinuxMount != nil { in, out := &in.SELinuxMount, &out.SELinuxMount *out = new(bool) **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 *CSIStorageCapacity) DeepCopyInto(out *CSIStorageCapacity) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) if in.NodeTopology != nil { in, out := &in.NodeTopology, &out.NodeTopology *out = new(v1.LabelSelector) (*in).DeepCopyInto(*out) } if in.Capacity != nil { in, out := &in.Capacity, &out.Capacity x := (*in).DeepCopy() *out = &x } if in.MaximumVolumeSize != nil { in, out := &in.MaximumVolumeSize, &out.MaximumVolumeSize x := (*in).DeepCopy() *out = &x } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIStorageCapacity. func (in *CSIStorageCapacity) DeepCopy() *CSIStorageCapacity { if in == nil { return nil } out := new(CSIStorageCapacity) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *CSIStorageCapacity) 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 *CSIStorageCapacityList) DeepCopyInto(out *CSIStorageCapacityList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]CSIStorageCapacity, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIStorageCapacityList. func (in *CSIStorageCapacityList) DeepCopy() *CSIStorageCapacityList { if in == nil { return nil } out := new(CSIStorageCapacityList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *CSIStorageCapacityList) 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 *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 *TokenRequest) DeepCopyInto(out *TokenRequest) { *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 TokenRequest. func (in *TokenRequest) DeepCopy() *TokenRequest { if in == nil { return nil } out := new(TokenRequest) in.DeepCopyInto(out) return out } // 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 } // 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 } golang-k8s-api-0.29.0/storage/v1beta1/zz_generated.prerelease-lifecycle.go000066400000000000000000000403221453636404600263410ustar00rootroot00000000000000//go:build !ignore_autogenerated // +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 prerelease-lifecycle-gen. DO NOT EDIT. package v1beta1 import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *CSIDriver) APILifecycleIntroduced() (major, minor int) { return 1, 14 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *CSIDriver) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *CSIDriver) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1", Kind: "CSIDriver"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *CSIDriver) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *CSIDriverList) APILifecycleIntroduced() (major, minor int) { return 1, 14 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *CSIDriverList) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *CSIDriverList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1", Kind: "CSIDriverList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *CSIDriverList) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *CSINode) APILifecycleIntroduced() (major, minor int) { return 1, 14 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *CSINode) APILifecycleDeprecated() (major, minor int) { return 1, 17 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *CSINode) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1", Kind: "CSINode"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *CSINode) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *CSINodeList) APILifecycleIntroduced() (major, minor int) { return 1, 14 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *CSINodeList) APILifecycleDeprecated() (major, minor int) { return 1, 17 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *CSINodeList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1", Kind: "CSINode"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *CSINodeList) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *CSIStorageCapacity) APILifecycleIntroduced() (major, minor int) { return 1, 21 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *CSIStorageCapacity) APILifecycleDeprecated() (major, minor int) { return 1, 24 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *CSIStorageCapacity) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1", Kind: "CSIStorageCapacity"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *CSIStorageCapacity) APILifecycleRemoved() (major, minor int) { return 1, 27 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *CSIStorageCapacityList) APILifecycleIntroduced() (major, minor int) { return 1, 21 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *CSIStorageCapacityList) APILifecycleDeprecated() (major, minor int) { return 1, 24 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *CSIStorageCapacityList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1", Kind: "CSIStorageCapacityList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *CSIStorageCapacityList) APILifecycleRemoved() (major, minor int) { return 1, 27 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *StorageClass) APILifecycleIntroduced() (major, minor int) { return 1, 4 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *StorageClass) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *StorageClass) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1", Kind: "StorageClass"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *StorageClass) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *StorageClassList) APILifecycleIntroduced() (major, minor int) { return 1, 4 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *StorageClassList) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *StorageClassList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1", Kind: "StorageClassList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *StorageClassList) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *VolumeAttachment) APILifecycleIntroduced() (major, minor int) { return 1, 10 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *VolumeAttachment) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *VolumeAttachment) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1", Kind: "VolumeAttachment"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *VolumeAttachment) APILifecycleRemoved() (major, minor int) { return 1, 22 } // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *VolumeAttachmentList) APILifecycleIntroduced() (major, minor int) { return 1, 10 } // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. func (in *VolumeAttachmentList) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *VolumeAttachmentList) APILifecycleReplacement() schema.GroupVersionKind { return schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1", Kind: "VolumeAttachmentList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *VolumeAttachmentList) APILifecycleRemoved() (major, minor int) { return 1, 22 } golang-k8s-api-0.29.0/testdata/000077500000000000000000000000001453636404600161475ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEAD/000077500000000000000000000000001453636404600166505ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEAD/admission.k8s.io.v1.AdmissionReview.json000066400000000000000000000046571453636404600263130ustar00rootroot00000000000000{ "kind": "AdmissionReview", "apiVersion": "admission.k8s.io/v1", "request": { "uid": "uidValue", "kind": { "group": "groupValue", "version": "versionValue", "kind": "kindValue" }, "resource": { "group": "groupValue", "version": "versionValue", "resource": "resourceValue" }, "subResource": "subResourceValue", "requestKind": { "group": "groupValue", "version": "versionValue", "kind": "kindValue" }, "requestResource": { "group": "groupValue", "version": "versionValue", "resource": "resourceValue" }, "requestSubResource": "requestSubResourceValue", "name": "nameValue", "namespace": "namespaceValue", "operation": "operationValue", "userInfo": { "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } }, "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": { "apiVersion": "example.com/v1", "kind": "CustomType", "spec": { "replicas": 1 }, "status": { "available": 1 } } }, "response": { "uid": "uidValue", "allowed": true, "status": { "metadata": { "selfLink": "selfLinkValue", "resourceVersion": "resourceVersionValue", "continue": "continueValue", "remainingItemCount": 4 }, "status": "statusValue", "message": "messageValue", "reason": "reasonValue", "details": { "name": "nameValue", "group": "groupValue", "kind": "kindValue", "uid": "uidValue", "causes": [ { "reason": "reasonValue", "message": "messageValue", "field": "fieldValue" } ], "retryAfterSeconds": 5 }, "code": 6 }, "patch": "BA==", "patchType": "patchTypeValue", "auditAnnotations": { "auditAnnotationsKey": "auditAnnotationsValue" }, "warnings": [ "warningsValue" ] } }golang-k8s-api-0.29.0/testdata/HEAD/admission.k8s.io.v1.AdmissionReview.pb000066400000000000000000000017151453636404600257330ustar00rootroot00000000000000k8s & admission.k8s.io/v1AdmissionReview  uidValue% groupValue versionValue kindValue) groupValue versionValue resourceValue"subResourceValue* nameValue2namespaceValue:operationValueB@ usernameValueuidValue groupsValue" extraKey extraValueJd b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}Rd b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}Xbd b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}j% groupValue versionValue kindValuer) groupValue versionValue resourceValuezrequestSubResourceValue uidValue 6 selfLinkValueresourceVersionValue continueValue  statusValue messageValue" reasonValue*W nameValue groupValue kindValue"' reasonValue messageValue fieldValue(2uidValue0"*patchTypeValue2, auditAnnotationsKeyauditAnnotationsValue: warningsValue"golang-k8s-api-0.29.0/testdata/HEAD/admission.k8s.io.v1.AdmissionReview.yaml000066400000000000000000000033121453636404600262670ustar00rootroot00000000000000apiVersion: admission.k8s.io/v1 kind: AdmissionReview request: dryRun: true kind: group: groupValue kind: kindValue version: versionValue name: nameValue namespace: namespaceValue 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: operationValue options: apiVersion: example.com/v1 kind: CustomType spec: replicas: 1 status: available: 1 requestKind: group: groupValue kind: kindValue version: versionValue requestResource: group: groupValue resource: resourceValue version: versionValue requestSubResource: requestSubResourceValue resource: group: groupValue resource: resourceValue version: versionValue subResource: subResourceValue uid: uidValue userInfo: extra: extraKey: - extraValue groups: - groupsValue uid: uidValue username: usernameValue response: allowed: true auditAnnotations: auditAnnotationsKey: auditAnnotationsValue patch: BA== patchType: patchTypeValue status: code: 6 details: causes: - field: fieldValue message: messageValue reason: reasonValue group: groupValue kind: kindValue name: nameValue retryAfterSeconds: 5 uid: uidValue message: messageValue metadata: continue: continueValue remainingItemCount: 4 resourceVersion: resourceVersionValue selfLink: selfLinkValue reason: reasonValue status: statusValue uid: uidValue warnings: - warningsValue golang-k8s-api-0.29.0/testdata/HEAD/admission.k8s.io.v1beta1.AdmissionReview.json000066400000000000000000000046641453636404600272260ustar00rootroot00000000000000{ "kind": "AdmissionReview", "apiVersion": "admission.k8s.io/v1beta1", "request": { "uid": "uidValue", "kind": { "group": "groupValue", "version": "versionValue", "kind": "kindValue" }, "resource": { "group": "groupValue", "version": "versionValue", "resource": "resourceValue" }, "subResource": "subResourceValue", "requestKind": { "group": "groupValue", "version": "versionValue", "kind": "kindValue" }, "requestResource": { "group": "groupValue", "version": "versionValue", "resource": "resourceValue" }, "requestSubResource": "requestSubResourceValue", "name": "nameValue", "namespace": "namespaceValue", "operation": "operationValue", "userInfo": { "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } }, "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": { "apiVersion": "example.com/v1", "kind": "CustomType", "spec": { "replicas": 1 }, "status": { "available": 1 } } }, "response": { "uid": "uidValue", "allowed": true, "status": { "metadata": { "selfLink": "selfLinkValue", "resourceVersion": "resourceVersionValue", "continue": "continueValue", "remainingItemCount": 4 }, "status": "statusValue", "message": "messageValue", "reason": "reasonValue", "details": { "name": "nameValue", "group": "groupValue", "kind": "kindValue", "uid": "uidValue", "causes": [ { "reason": "reasonValue", "message": "messageValue", "field": "fieldValue" } ], "retryAfterSeconds": 5 }, "code": 6 }, "patch": "BA==", "patchType": "patchTypeValue", "auditAnnotations": { "auditAnnotationsKey": "auditAnnotationsValue" }, "warnings": [ "warningsValue" ] } }golang-k8s-api-0.29.0/testdata/HEAD/admission.k8s.io.v1beta1.AdmissionReview.pb000066400000000000000000000017221453636404600266460ustar00rootroot00000000000000k8s + admission.k8s.io/v1beta1AdmissionReview  uidValue% groupValue versionValue kindValue) groupValue versionValue resourceValue"subResourceValue* nameValue2namespaceValue:operationValueB@ usernameValueuidValue groupsValue" extraKey extraValueJd b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}Rd b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}Xbd b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}j% groupValue versionValue kindValuer) groupValue versionValue resourceValuezrequestSubResourceValue uidValue 6 selfLinkValueresourceVersionValue continueValue  statusValue messageValue" reasonValue*W nameValue groupValue kindValue"' reasonValue messageValue fieldValue(2uidValue0"*patchTypeValue2, auditAnnotationsKeyauditAnnotationsValue: warningsValue"golang-k8s-api-0.29.0/testdata/HEAD/admission.k8s.io.v1beta1.AdmissionReview.yaml000066400000000000000000000033171453636404600272110ustar00rootroot00000000000000apiVersion: admission.k8s.io/v1beta1 kind: AdmissionReview request: dryRun: true kind: group: groupValue kind: kindValue version: versionValue name: nameValue namespace: namespaceValue 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: operationValue options: apiVersion: example.com/v1 kind: CustomType spec: replicas: 1 status: available: 1 requestKind: group: groupValue kind: kindValue version: versionValue requestResource: group: groupValue resource: resourceValue version: versionValue requestSubResource: requestSubResourceValue resource: group: groupValue resource: resourceValue version: versionValue subResource: subResourceValue uid: uidValue userInfo: extra: extraKey: - extraValue groups: - groupsValue uid: uidValue username: usernameValue response: allowed: true auditAnnotations: auditAnnotationsKey: auditAnnotationsValue patch: BA== patchType: patchTypeValue status: code: 6 details: causes: - field: fieldValue message: messageValue reason: reasonValue group: groupValue kind: kindValue name: nameValue retryAfterSeconds: 5 uid: uidValue message: messageValue metadata: continue: continueValue remainingItemCount: 4 resourceVersion: resourceVersionValue selfLink: selfLinkValue reason: reasonValue status: statusValue uid: uidValue warnings: - warningsValue admissionregistration.k8s.io.v1.MutatingWebhookConfiguration.json000066400000000000000000000055441453636404600334120ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEAD{ "kind": "MutatingWebhookConfiguration", "apiVersion": "admissionregistration.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "webhooks": [ { "name": "nameValue", "clientConfig": { "url": "urlValue", "service": { "namespace": "namespaceValue", "name": "nameValue", "path": "pathValue", "port": 4 }, "caBundle": "Ag==" }, "rules": [ { "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "failurePolicy": "failurePolicyValue", "matchPolicy": "matchPolicyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "sideEffects": "sideEffectsValue", "timeoutSeconds": 7, "admissionReviewVersions": [ "admissionReviewVersionsValue" ], "reinvocationPolicy": "reinvocationPolicyValue", "matchConditions": [ { "name": "nameValue", "expression": "expressionValue" } ] } ] }golang-k8s-api-0.29.0/testdata/HEAD/admissionregistration.k8s.io.v1.MutatingWebhookConfiguration.pb000066400000000000000000000015641453636404600331170ustar00rootroot00000000000000k8s ? admissionregistration.k8s.io/v1MutatingWebhookConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue7 ( namespaceValue nameValue pathValue urlValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"failurePolicyValue*L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue2sideEffectsValue8BadmissionReviewVersionsValueJmatchPolicyValueRreinvocationPolicyValueZL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueb nameValueexpressionValue"admissionregistration.k8s.io.v1.MutatingWebhookConfiguration.yaml000066400000000000000000000035741453636404600334040ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADapiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue webhooks: - admissionReviewVersions: - admissionReviewVersionsValue clientConfig: caBundle: Ag== service: name: nameValue namespace: namespaceValue path: pathValue port: 4 url: urlValue failurePolicy: failurePolicyValue matchConditions: - expression: expressionValue name: nameValue matchPolicy: matchPolicyValue name: nameValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue reinvocationPolicy: reinvocationPolicyValue rules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resources: - resourcesValue scope: scopeValue sideEffects: sideEffectsValue timeoutSeconds: 7 admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.json000066400000000000000000000054571453636404600337070ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEAD{ "kind": "ValidatingWebhookConfiguration", "apiVersion": "admissionregistration.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "webhooks": [ { "name": "nameValue", "clientConfig": { "url": "urlValue", "service": { "namespace": "namespaceValue", "name": "nameValue", "path": "pathValue", "port": 4 }, "caBundle": "Ag==" }, "rules": [ { "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "failurePolicy": "failurePolicyValue", "matchPolicy": "matchPolicyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "sideEffects": "sideEffectsValue", "timeoutSeconds": 7, "admissionReviewVersions": [ "admissionReviewVersionsValue" ], "matchConditions": [ { "name": "nameValue", "expression": "expressionValue" } ] } ] }admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.pb000066400000000000000000000015351453636404600333300ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADk8s A admissionregistration.k8s.io/v1ValidatingWebhookConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue7 ( namespaceValue nameValue pathValue urlValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"failurePolicyValue*L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue2sideEffectsValue8BadmissionReviewVersionsValueJmatchPolicyValueRL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueZ nameValueexpressionValue"admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.yaml000066400000000000000000000035201453636404600336650ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADapiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue webhooks: - admissionReviewVersions: - admissionReviewVersionsValue clientConfig: caBundle: Ag== service: name: nameValue namespace: namespaceValue path: pathValue port: 4 url: urlValue failurePolicy: failurePolicyValue matchConditions: - expression: expressionValue name: nameValue matchPolicy: matchPolicyValue name: nameValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue rules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resources: - resourcesValue scope: scopeValue sideEffects: sideEffectsValue timeoutSeconds: 7 admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicy.json000066400000000000000000000076061453636404600337540ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEAD{ "kind": "ValidatingAdmissionPolicy", "apiVersion": "admissionregistration.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "paramKind": { "apiVersion": "apiVersionValue", "kind": "kindValue" }, "matchConstraints": { "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "excludeResourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "matchPolicy": "matchPolicyValue" }, "validations": [ { "expression": "expressionValue", "message": "messageValue", "reason": "reasonValue", "messageExpression": "messageExpressionValue" } ], "failurePolicy": "failurePolicyValue", "auditAnnotations": [ { "key": "keyValue", "valueExpression": "valueExpressionValue" } ], "matchConditions": [ { "name": "nameValue", "expression": "expressionValue" } ], "variables": [ { "name": "nameValue", "expression": "expressionValue" } ] }, "status": { "observedGeneration": 1, "typeChecking": { "expressionWarnings": [ { "fieldRef": "fieldRefValue", "warning": "warningValue" } ] }, "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicy.pb000066400000000000000000000021641453636404600333760ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADk8s B %admissionregistration.k8s.io/v1alpha1ValidatingAdmissionPolicy  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue  apiVersionValue kindValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueg resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"g resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue:matchPolicyValueD expressionValue messageValue reasonValue"messageExpressionValue"failurePolicyValue* keyValuevalueExpressionValue2 nameValueexpressionValue: nameValueexpressionValued  fieldRefValue warningValue? typeValue statusValue"* reasonValue2 messageValue"admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicy.yaml000066400000000000000000000051211453636404600337330ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADapiVersion: admissionregistration.k8s.io/v1alpha1 kind: ValidatingAdmissionPolicy metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: auditAnnotations: - key: keyValue valueExpression: valueExpressionValue failurePolicy: failurePolicyValue matchConditions: - expression: expressionValue name: nameValue matchConstraints: excludeResourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue matchPolicy: matchPolicyValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue resourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue paramKind: apiVersion: apiVersionValue kind: kindValue validations: - expression: expressionValue message: messageValue messageExpression: messageExpressionValue reason: reasonValue variables: - expression: expressionValue name: nameValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 typeChecking: expressionWarnings: - fieldRef: fieldRefValue warning: warningValue admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicyBinding.json000066400000000000000000000064711453636404600352460ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEAD{ "kind": "ValidatingAdmissionPolicyBinding", "apiVersion": "admissionregistration.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "policyName": "policyNameValue", "paramRef": { "name": "nameValue", "namespace": "namespaceValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "parameterNotFoundAction": "parameterNotFoundActionValue" }, "matchResources": { "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "excludeResourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "matchPolicy": "matchPolicyValue" }, "validationActions": [ "validationActionsValue" ] } }admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicyBinding.pb000066400000000000000000000017621453636404600346740ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADk8s I %admissionregistration.k8s.io/v1alpha1 ValidatingAdmissionPolicyBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue policyNameValue nameValuenamespaceValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue"parameterNotFoundActionValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueg resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"g resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue:matchPolicyValue"validationActionsValue"admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicyBinding.yaml000066400000000000000000000043271453636404600352350ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADapiVersion: admissionregistration.k8s.io/v1alpha1 kind: ValidatingAdmissionPolicyBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: matchResources: excludeResourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue matchPolicy: matchPolicyValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue resourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue paramRef: name: nameValue namespace: namespaceValue parameterNotFoundAction: parameterNotFoundActionValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue policyName: policyNameValue validationActions: - validationActionsValue admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.json000066400000000000000000000055511453636404600343250ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEAD{ "kind": "MutatingWebhookConfiguration", "apiVersion": "admissionregistration.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "webhooks": [ { "name": "nameValue", "clientConfig": { "url": "urlValue", "service": { "namespace": "namespaceValue", "name": "nameValue", "path": "pathValue", "port": 4 }, "caBundle": "Ag==" }, "rules": [ { "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "failurePolicy": "failurePolicyValue", "matchPolicy": "matchPolicyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "sideEffects": "sideEffectsValue", "timeoutSeconds": 7, "admissionReviewVersions": [ "admissionReviewVersionsValue" ], "reinvocationPolicy": "reinvocationPolicyValue", "matchConditions": [ { "name": "nameValue", "expression": "expressionValue" } ] } ] }admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.pb000066400000000000000000000015711453636404600337530ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADk8s D $admissionregistration.k8s.io/v1beta1MutatingWebhookConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue7 ( namespaceValue nameValue pathValue urlValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"failurePolicyValue*L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue2sideEffectsValue8BadmissionReviewVersionsValueJmatchPolicyValueRreinvocationPolicyValueZL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueb nameValueexpressionValue"admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.yaml000066400000000000000000000036011453636404600343100ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADapiVersion: admissionregistration.k8s.io/v1beta1 kind: MutatingWebhookConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue webhooks: - admissionReviewVersions: - admissionReviewVersionsValue clientConfig: caBundle: Ag== service: name: nameValue namespace: namespaceValue path: pathValue port: 4 url: urlValue failurePolicy: failurePolicyValue matchConditions: - expression: expressionValue name: nameValue matchPolicy: matchPolicyValue name: nameValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue reinvocationPolicy: reinvocationPolicyValue rules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resources: - resourcesValue scope: scopeValue sideEffects: sideEffectsValue timeoutSeconds: 7 admissionregistration.k8s.io.v1beta1.ValidatingAdmissionPolicy.json000066400000000000000000000076051453636404600336010ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEAD{ "kind": "ValidatingAdmissionPolicy", "apiVersion": "admissionregistration.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "paramKind": { "apiVersion": "apiVersionValue", "kind": "kindValue" }, "matchConstraints": { "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "excludeResourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "matchPolicy": "matchPolicyValue" }, "validations": [ { "expression": "expressionValue", "message": "messageValue", "reason": "reasonValue", "messageExpression": "messageExpressionValue" } ], "failurePolicy": "failurePolicyValue", "auditAnnotations": [ { "key": "keyValue", "valueExpression": "valueExpressionValue" } ], "matchConditions": [ { "name": "nameValue", "expression": "expressionValue" } ], "variables": [ { "name": "nameValue", "expression": "expressionValue" } ] }, "status": { "observedGeneration": 1, "typeChecking": { "expressionWarnings": [ { "fieldRef": "fieldRefValue", "warning": "warningValue" } ] }, "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }admissionregistration.k8s.io.v1beta1.ValidatingAdmissionPolicy.pb000066400000000000000000000021631453636404600332230ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADk8s A $admissionregistration.k8s.io/v1beta1ValidatingAdmissionPolicy  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue  apiVersionValue kindValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueg resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"g resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue:matchPolicyValueD expressionValue messageValue reasonValue"messageExpressionValue"failurePolicyValue* keyValuevalueExpressionValue2 nameValueexpressionValue: nameValueexpressionValued  fieldRefValue warningValue? typeValue statusValue"* reasonValue2 messageValue"admissionregistration.k8s.io.v1beta1.ValidatingAdmissionPolicy.yaml000066400000000000000000000051201453636404600335600ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADapiVersion: admissionregistration.k8s.io/v1beta1 kind: ValidatingAdmissionPolicy metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: auditAnnotations: - key: keyValue valueExpression: valueExpressionValue failurePolicy: failurePolicyValue matchConditions: - expression: expressionValue name: nameValue matchConstraints: excludeResourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue matchPolicy: matchPolicyValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue resourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue paramKind: apiVersion: apiVersionValue kind: kindValue validations: - expression: expressionValue message: messageValue messageExpression: messageExpressionValue reason: reasonValue variables: - expression: expressionValue name: nameValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 typeChecking: expressionWarnings: - fieldRef: fieldRefValue warning: warningValue admissionregistration.k8s.io.v1beta1.ValidatingAdmissionPolicyBinding.json000066400000000000000000000064701453636404600350730ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEAD{ "kind": "ValidatingAdmissionPolicyBinding", "apiVersion": "admissionregistration.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "policyName": "policyNameValue", "paramRef": { "name": "nameValue", "namespace": "namespaceValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "parameterNotFoundAction": "parameterNotFoundActionValue" }, "matchResources": { "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "excludeResourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "matchPolicy": "matchPolicyValue" }, "validationActions": [ "validationActionsValue" ] } }admissionregistration.k8s.io.v1beta1.ValidatingAdmissionPolicyBinding.pb000066400000000000000000000017611453636404600345210ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADk8s H $admissionregistration.k8s.io/v1beta1 ValidatingAdmissionPolicyBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue policyNameValue nameValuenamespaceValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue"parameterNotFoundActionValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueg resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"g resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue:matchPolicyValue"validationActionsValue"admissionregistration.k8s.io.v1beta1.ValidatingAdmissionPolicyBinding.yaml000066400000000000000000000043261453636404600350620ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADapiVersion: admissionregistration.k8s.io/v1beta1 kind: ValidatingAdmissionPolicyBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: matchResources: excludeResourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue matchPolicy: matchPolicyValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue resourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue paramRef: name: nameValue namespace: namespaceValue parameterNotFoundAction: parameterNotFoundActionValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue policyName: policyNameValue validationActions: - validationActionsValue admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.json000066400000000000000000000054641453636404600346220ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEAD{ "kind": "ValidatingWebhookConfiguration", "apiVersion": "admissionregistration.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "webhooks": [ { "name": "nameValue", "clientConfig": { "url": "urlValue", "service": { "namespace": "namespaceValue", "name": "nameValue", "path": "pathValue", "port": 4 }, "caBundle": "Ag==" }, "rules": [ { "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "failurePolicy": "failurePolicyValue", "matchPolicy": "matchPolicyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "sideEffects": "sideEffectsValue", "timeoutSeconds": 7, "admissionReviewVersions": [ "admissionReviewVersionsValue" ], "matchConditions": [ { "name": "nameValue", "expression": "expressionValue" } ] } ] }admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.pb000066400000000000000000000015421453636404600342430ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADk8s F $admissionregistration.k8s.io/v1beta1ValidatingWebhookConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue7 ( namespaceValue nameValue pathValue urlValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"failurePolicyValue*L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue2sideEffectsValue8BadmissionReviewVersionsValueJmatchPolicyValueRL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueZ nameValueexpressionValue"admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.yaml000066400000000000000000000035251453636404600346070ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADapiVersion: admissionregistration.k8s.io/v1beta1 kind: ValidatingWebhookConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue webhooks: - admissionReviewVersions: - admissionReviewVersionsValue clientConfig: caBundle: Ag== service: name: nameValue namespace: namespaceValue path: pathValue port: 4 url: urlValue failurePolicy: failurePolicyValue matchConditions: - expression: expressionValue name: nameValue matchPolicy: matchPolicyValue name: nameValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue rules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resources: - resourcesValue scope: scopeValue sideEffects: sideEffectsValue timeoutSeconds: 7 golang-k8s-api-0.29.0/testdata/HEAD/apidiscovery.k8s.io.v2beta1.APIGroupDiscovery.json000066400000000000000000000045031453636404600301400ustar00rootroot00000000000000{ "kind": "APIGroupDiscovery", "apiVersion": "apidiscovery.k8s.io/v2beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "versions": [ { "version": "versionValue", "resources": [ { "resource": "resourceValue", "responseKind": { "group": "groupValue", "version": "versionValue", "kind": "kindValue" }, "scope": "scopeValue", "singularResource": "singularResourceValue", "verbs": [ "verbsValue" ], "shortNames": [ "shortNamesValue" ], "categories": [ "categoriesValue" ], "subresources": [ { "subresource": "subresourceValue", "responseKind": { "group": "groupValue", "version": "versionValue", "kind": "kindValue" }, "acceptedTypes": [ { "group": "groupValue", "version": "versionValue", "kind": "kindValue" } ], "verbs": [ "verbsValue" ] } ] } ], "freshness": "freshnessValue" } ] }golang-k8s-api-0.29.0/testdata/HEAD/apidiscovery.k8s.io.v2beta1.APIGroupDiscovery.pb000066400000000000000000000012711453636404600275670ustar00rootroot00000000000000k8s 0 apidiscovery.k8s.io/v2beta1APIGroupDiscovery  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue versionValue resourceValue% groupValue versionValue kindValue scopeValue"singularResourceValue* verbsValue2shortNamesValue:categoriesValueBl subresourceValue% groupValue versionValue kindValue% groupValue versionValue kindValue" verbsValuefreshnessValue"golang-k8s-api-0.29.0/testdata/HEAD/apidiscovery.k8s.io.v2beta1.APIGroupDiscovery.yaml000066400000000000000000000027701453636404600301350ustar00rootroot00000000000000apiVersion: apidiscovery.k8s.io/v2beta1 kind: APIGroupDiscovery metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue versions: - freshness: freshnessValue resources: - categories: - categoriesValue resource: resourceValue responseKind: group: groupValue kind: kindValue version: versionValue scope: scopeValue shortNames: - shortNamesValue singularResource: singularResourceValue subresources: - acceptedTypes: - group: groupValue kind: kindValue version: versionValue responseKind: group: groupValue kind: kindValue version: versionValue subresource: subresourceValue verbs: - verbsValue verbs: - verbsValue version: versionValue golang-k8s-api-0.29.0/testdata/HEAD/apps.v1.ControllerRevision.json000066400000000000000000000025011453636404600246720ustar00rootroot00000000000000{ "kind": "ControllerRevision", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "data": { "apiVersion": "example.com/v1", "kind": "CustomType", "spec": { "replicas": 1 }, "status": { "available": 1 } }, "revision": 3 }golang-k8s-api-0.29.0/testdata/HEAD/apps.v1.ControllerRevision.pb000066400000000000000000000007651453636404600243340ustar00rootroot00000000000000k8s  apps/v1ControllerRevision  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValued b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}"golang-k8s-api-0.29.0/testdata/HEAD/apps.v1.ControllerRevision.yaml000066400000000000000000000017161453636404600246720ustar00rootroot00000000000000apiVersion: apps/v1 data: apiVersion: example.com/v1 kind: CustomType spec: replicas: 1 status: available: 1 kind: ControllerRevision metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue revision: 3 golang-k8s-api-0.29.0/testdata/HEAD/apps.v1.DaemonSet.json000066400000000000000000001531651453636404600227240ustar00rootroot00000000000000{ "kind": "DaemonSet", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" }, "clusterTrustBundle": { "name": "nameValue", "signerName": "signerNameValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "optional": true, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "updateStrategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 4, "revisionHistoryLimit": 6 }, "status": { "currentNumberScheduled": 1, "numberMisscheduled": 2, "desiredNumberScheduled": 3, "numberReady": 4, "observedGeneration": 5, "updatedNumberScheduled": 6, "numberAvailable": 7, "numberUnavailable": 8, "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/apps.v1.DaemonSet.pb000066400000000000000000000245351453636404600223520ustar00rootroot00000000000000k8s  apps/v1 DaemonSetR  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueO L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueM  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValue*w nameValuesignerNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" pathValue(C volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue= typeValue0 maxUnavailableValue maxSurgeValue 0Q (08@H R= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/HEAD/apps.v1.DaemonSet.yaml000066400000000000000000001047271453636404600227150ustar00rootroot00000000000000apiVersion: apps/v1 kind: DaemonSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - clusterTrustBundle: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue name: nameValue optional: true path: pathValue signerName: signerNameValue configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue status: collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentNumberScheduled: 1 desiredNumberScheduled: 3 numberAvailable: 7 numberMisscheduled: 2 numberReady: 4 numberUnavailable: 8 observedGeneration: 5 updatedNumberScheduled: 6 golang-k8s-api-0.29.0/testdata/HEAD/apps.v1.Deployment.json000066400000000000000000001532361453636404600231640ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" }, "clusterTrustBundle": { "name": "nameValue", "signerName": "signerNameValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "optional": true, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/HEAD/apps.v1.Deployment.pb000066400000000000000000000245521453636404600226120ustar00rootroot00000000000000k8s  apps/v1 DeploymentR  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueOL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueM  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValue*w nameValuesignerNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" pathValue(C volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08H W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/HEAD/apps.v1.Deployment.yaml000066400000000000000000001047641453636404600231570ustar00rootroot00000000000000apiVersion: apps/v1 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - clusterTrustBundle: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue name: nameValue optional: true path: pathValue signerName: signerNameValue configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/HEAD/apps.v1.ReplicaSet.json000066400000000000000000001524731453636404600231010ustar00rootroot00000000000000{ "kind": "ReplicaSet", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" }, "clusterTrustBundle": { "name": "nameValue", "signerName": "signerNameValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "optional": true, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/apps.v1.ReplicaSet.pb000066400000000000000000000244271453636404600225260ustar00rootroot00000000000000k8s  apps/v1 ReplicaSetQ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueNL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueM  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValue*w nameValuesignerNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" pathValue(C volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/HEAD/apps.v1.ReplicaSet.yaml000066400000000000000000001043401453636404600230600ustar00rootroot00000000000000apiVersion: apps/v1 kind: ReplicaSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - clusterTrustBundle: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue name: nameValue optional: true path: pathValue signerName: signerNameValue configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/HEAD/apps.v1.StatefulSet.json000066400000000000000000001626721453636404600233130ustar00rootroot00000000000000{ "kind": "StatefulSet", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" }, "clusterTrustBundle": { "name": "nameValue", "signerName": "signerNameValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "optional": true, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "volumeClaimTemplates": [ { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" }, "allocatedResourceStatuses": { "allocatedResourceStatusesKey": "allocatedResourceStatusesValue" }, "currentVolumeAttributesClassName": "currentVolumeAttributesClassNameValue", "modifyVolumeStatus": { "targetVolumeAttributesClassName": "targetVolumeAttributesClassNameValue", "status": "statusValue" } } } ], "serviceName": "serviceNameValue", "podManagementPolicy": "podManagementPolicyValue", "updateStrategy": { "type": "typeValue", "rollingUpdate": { "partition": 1, "maxUnavailable": "maxUnavailableValue" } }, "revisionHistoryLimit": 8, "minReadySeconds": 9, "persistentVolumeClaimRetentionPolicy": { "whenDeleted": "whenDeletedValue", "whenScaled": "whenScaledValue" }, "ordinals": { "start": 1 } }, "status": { "observedGeneration": 1, "replicas": 2, "readyReplicas": 3, "currentReplicas": 4, "updatedReplicas": 5, "currentRevision": "currentRevisionValue", "updateRevision": "updateRevisionValue", "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "availableReplicas": 11 } }golang-k8s-api-0.29.0/testdata/HEAD/apps.v1.StatefulSet.pb000066400000000000000000000266521453636404600227400ustar00rootroot00000000000000k8s  apps/v1 StatefulSet[  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueWL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueM  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValue*w nameValuesignerNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" pathValue(C volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 0:> allocatedResourceStatusesKeyallocatedResourceStatusesValueB%currentVolumeAttributesClassNameValueJ3 $targetVolumeAttributesClassNameValue statusValue*serviceNameValue2podManagementPolicyValue:* typeValuemaxUnavailableValue@H R# whenDeletedValuewhenScaledValueZx (2currentRevisionValue:updateRevisionValueH R= typeValue statusValue" reasonValue* messageValueX "golang-k8s-api-0.29.0/testdata/HEAD/apps.v1.StatefulSet.yaml000066400000000000000000001121201453636404600232630ustar00rootroot00000000000000apiVersion: apps/v1 kind: StatefulSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 9 ordinals: start: 1 persistentVolumeClaimRetentionPolicy: whenDeleted: whenDeletedValue whenScaled: whenScaledValue podManagementPolicy: podManagementPolicyValue replicas: 1 revisionHistoryLimit: 8 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue serviceName: serviceNameValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - clusterTrustBundle: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue name: nameValue optional: true path: pathValue signerName: signerNameValue configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxUnavailable: maxUnavailableValue partition: 1 type: typeValue volumeClaimTemplates: - metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResourceStatuses: allocatedResourceStatusesKey: allocatedResourceStatusesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentVolumeAttributesClassName: currentVolumeAttributesClassNameValue modifyVolumeStatus: status: statusValue targetVolumeAttributesClassName: targetVolumeAttributesClassNameValue phase: phaseValue status: availableReplicas: 11 collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentReplicas: 4 currentRevision: currentRevisionValue observedGeneration: 1 readyReplicas: 3 replicas: 2 updateRevision: updateRevisionValue updatedReplicas: 5 golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta1.ControllerRevision.json000066400000000000000000000025061453636404600256140ustar00rootroot00000000000000{ "kind": "ControllerRevision", "apiVersion": "apps/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "data": { "apiVersion": "example.com/v1", "kind": "CustomType", "spec": { "replicas": 1 }, "status": { "available": 1 } }, "revision": 3 }golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta1.ControllerRevision.pb000066400000000000000000000007721453636404600252470ustar00rootroot00000000000000k8s " apps/v1beta1ControllerRevision  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValued b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}"golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta1.ControllerRevision.yaml000066400000000000000000000017231453636404600256050ustar00rootroot00000000000000apiVersion: apps/v1beta1 data: apiVersion: example.com/v1 kind: CustomType spec: replicas: 1 status: available: 1 kind: ControllerRevision metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue revision: 3 golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta1.Deployment.json000066400000000000000000001533221453636404600240750ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "apps/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" }, "clusterTrustBundle": { "name": "nameValue", "signerName": "signerNameValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "optional": true, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "rollbackTo": { "revision": 1 }, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta1.Deployment.pb000066400000000000000000000245631453636404600235310ustar00rootroot00000000000000k8s  apps/v1beta1 DeploymentR  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueOL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueM  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValue*w nameValuesignerNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" pathValue(C volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08BH W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta1.Deployment.yaml000066400000000000000000001050271453636404600240650ustar00rootroot00000000000000apiVersion: apps/v1beta1 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 rollbackTo: revision: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - clusterTrustBundle: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue name: nameValue optional: true path: pathValue signerName: signerNameValue configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta1.DeploymentRollback.json000066400000000000000000000003301453636404600255350ustar00rootroot00000000000000{ "kind": "DeploymentRollback", "apiVersion": "apps/v1beta1", "name": "nameValue", "updatedAnnotations": { "updatedAnnotationsKey": "updatedAnnotationsValue" }, "rollbackTo": { "revision": 1 } }golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta1.DeploymentRollback.pb000066400000000000000000000001571453636404600251740ustar00rootroot00000000000000k8s " apps/v1beta1DeploymentRollbackA nameValue0 updatedAnnotationsKeyupdatedAnnotationsValue"golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta1.DeploymentRollback.yaml000066400000000000000000000002411453636404600255270ustar00rootroot00000000000000apiVersion: apps/v1beta1 kind: DeploymentRollback name: nameValue rollbackTo: revision: 1 updatedAnnotations: updatedAnnotationsKey: updatedAnnotationsValue golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta1.Scale.json000066400000000000000000000024701453636404600230010ustar00rootroot00000000000000{ "kind": "Scale", "apiVersion": "apps/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1 }, "status": { "replicas": 1, "selector": { "selectorKey": "selectorValue" }, "targetSelector": "targetSelectorValue" } }golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta1.Scale.pb000066400000000000000000000007001453636404600224230ustar00rootroot00000000000000k8s  apps/v1beta1Scale  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 selectorKey selectorValuetargetSelectorValue"golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta1.Scale.yaml000066400000000000000000000017141453636404600227720ustar00rootroot00000000000000apiVersion: apps/v1beta1 kind: Scale metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: replicas: 1 status: replicas: 1 selector: selectorKey: selectorValue targetSelector: targetSelectorValue golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta1.StatefulSet.json000066400000000000000000001626771453636404600242350ustar00rootroot00000000000000{ "kind": "StatefulSet", "apiVersion": "apps/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" }, "clusterTrustBundle": { "name": "nameValue", "signerName": "signerNameValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "optional": true, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "volumeClaimTemplates": [ { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" }, "allocatedResourceStatuses": { "allocatedResourceStatusesKey": "allocatedResourceStatusesValue" }, "currentVolumeAttributesClassName": "currentVolumeAttributesClassNameValue", "modifyVolumeStatus": { "targetVolumeAttributesClassName": "targetVolumeAttributesClassNameValue", "status": "statusValue" } } } ], "serviceName": "serviceNameValue", "podManagementPolicy": "podManagementPolicyValue", "updateStrategy": { "type": "typeValue", "rollingUpdate": { "partition": 1, "maxUnavailable": "maxUnavailableValue" } }, "revisionHistoryLimit": 8, "minReadySeconds": 9, "persistentVolumeClaimRetentionPolicy": { "whenDeleted": "whenDeletedValue", "whenScaled": "whenScaledValue" }, "ordinals": { "start": 1 } }, "status": { "observedGeneration": 1, "replicas": 2, "readyReplicas": 3, "currentReplicas": 4, "updatedReplicas": 5, "currentRevision": "currentRevisionValue", "updateRevision": "updateRevisionValue", "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "availableReplicas": 11 } }golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta1.StatefulSet.pb000066400000000000000000000266571453636404600236620ustar00rootroot00000000000000k8s  apps/v1beta1 StatefulSet[  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueWL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueM  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValue*w nameValuesignerNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" pathValue(C volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 0:> allocatedResourceStatusesKeyallocatedResourceStatusesValueB%currentVolumeAttributesClassNameValueJ3 $targetVolumeAttributesClassNameValue statusValue*serviceNameValue2podManagementPolicyValue:* typeValuemaxUnavailableValue@H R# whenDeletedValuewhenScaledValueZx (2currentRevisionValue:updateRevisionValueH R= typeValue statusValue" reasonValue* messageValueX "golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta1.StatefulSet.yaml000066400000000000000000001121251453636404600242050ustar00rootroot00000000000000apiVersion: apps/v1beta1 kind: StatefulSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 9 ordinals: start: 1 persistentVolumeClaimRetentionPolicy: whenDeleted: whenDeletedValue whenScaled: whenScaledValue podManagementPolicy: podManagementPolicyValue replicas: 1 revisionHistoryLimit: 8 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue serviceName: serviceNameValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - clusterTrustBundle: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue name: nameValue optional: true path: pathValue signerName: signerNameValue configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxUnavailable: maxUnavailableValue partition: 1 type: typeValue volumeClaimTemplates: - metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResourceStatuses: allocatedResourceStatusesKey: allocatedResourceStatusesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentVolumeAttributesClassName: currentVolumeAttributesClassNameValue modifyVolumeStatus: status: statusValue targetVolumeAttributesClassName: targetVolumeAttributesClassNameValue phase: phaseValue status: availableReplicas: 11 collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentReplicas: 4 currentRevision: currentRevisionValue observedGeneration: 1 readyReplicas: 3 replicas: 2 updateRevision: updateRevisionValue updatedReplicas: 5 golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta2.ControllerRevision.json000066400000000000000000000025061453636404600256150ustar00rootroot00000000000000{ "kind": "ControllerRevision", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "data": { "apiVersion": "example.com/v1", "kind": "CustomType", "spec": { "replicas": 1 }, "status": { "available": 1 } }, "revision": 3 }golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta2.ControllerRevision.pb000066400000000000000000000007721453636404600252500ustar00rootroot00000000000000k8s " apps/v1beta2ControllerRevision  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValued b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}"golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta2.ControllerRevision.yaml000066400000000000000000000017231453636404600256060ustar00rootroot00000000000000apiVersion: apps/v1beta2 data: apiVersion: example.com/v1 kind: CustomType spec: replicas: 1 status: available: 1 kind: ControllerRevision metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue revision: 3 golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta2.DaemonSet.json000066400000000000000000001531721453636404600236400ustar00rootroot00000000000000{ "kind": "DaemonSet", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" }, "clusterTrustBundle": { "name": "nameValue", "signerName": "signerNameValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "optional": true, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "updateStrategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 4, "revisionHistoryLimit": 6 }, "status": { "currentNumberScheduled": 1, "numberMisscheduled": 2, "desiredNumberScheduled": 3, "numberReady": 4, "observedGeneration": 5, "updatedNumberScheduled": 6, "numberAvailable": 7, "numberUnavailable": 8, "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta2.DaemonSet.pb000066400000000000000000000245421453636404600232660ustar00rootroot00000000000000k8s  apps/v1beta2 DaemonSetR  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueO L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueM  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValue*w nameValuesignerNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" pathValue(C volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue= typeValue0 maxUnavailableValue maxSurgeValue 0Q (08@H R= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta2.DaemonSet.yaml000066400000000000000000001047341453636404600236310ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: DaemonSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - clusterTrustBundle: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue name: nameValue optional: true path: pathValue signerName: signerNameValue configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue status: collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentNumberScheduled: 1 desiredNumberScheduled: 3 numberAvailable: 7 numberMisscheduled: 2 numberReady: 4 numberUnavailable: 8 observedGeneration: 5 updatedNumberScheduled: 6 golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta2.Deployment.json000066400000000000000000001532431453636404600241000ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" }, "clusterTrustBundle": { "name": "nameValue", "signerName": "signerNameValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "optional": true, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta2.Deployment.pb000066400000000000000000000245571453636404600235350ustar00rootroot00000000000000k8s  apps/v1beta2 DeploymentR  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueOL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueM  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValue*w nameValuesignerNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" pathValue(C volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08H W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta2.Deployment.yaml000066400000000000000000001047711453636404600240730ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - clusterTrustBundle: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue name: nameValue optional: true path: pathValue signerName: signerNameValue configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta2.ReplicaSet.json000066400000000000000000001525001453636404600240060ustar00rootroot00000000000000{ "kind": "ReplicaSet", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" }, "clusterTrustBundle": { "name": "nameValue", "signerName": "signerNameValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "optional": true, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta2.ReplicaSet.pb000066400000000000000000000244341453636404600234420ustar00rootroot00000000000000k8s  apps/v1beta2 ReplicaSetQ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueNL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueM  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValue*w nameValuesignerNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" pathValue(C volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta2.ReplicaSet.yaml000066400000000000000000001043451453636404600240030ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: ReplicaSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - clusterTrustBundle: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue name: nameValue optional: true path: pathValue signerName: signerNameValue configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta2.Scale.json000066400000000000000000000024701453636404600230020ustar00rootroot00000000000000{ "kind": "Scale", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1 }, "status": { "replicas": 1, "selector": { "selectorKey": "selectorValue" }, "targetSelector": "targetSelectorValue" } }golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta2.Scale.pb000066400000000000000000000007001453636404600224240ustar00rootroot00000000000000k8s  apps/v1beta2Scale  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 selectorKey selectorValuetargetSelectorValue"golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta2.Scale.yaml000066400000000000000000000017141453636404600227730ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: Scale metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: replicas: 1 status: replicas: 1 selector: selectorKey: selectorValue targetSelector: targetSelectorValue golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta2.StatefulSet.json000066400000000000000000001626771453636404600242360ustar00rootroot00000000000000{ "kind": "StatefulSet", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" }, "clusterTrustBundle": { "name": "nameValue", "signerName": "signerNameValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "optional": true, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "volumeClaimTemplates": [ { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" }, "allocatedResourceStatuses": { "allocatedResourceStatusesKey": "allocatedResourceStatusesValue" }, "currentVolumeAttributesClassName": "currentVolumeAttributesClassNameValue", "modifyVolumeStatus": { "targetVolumeAttributesClassName": "targetVolumeAttributesClassNameValue", "status": "statusValue" } } } ], "serviceName": "serviceNameValue", "podManagementPolicy": "podManagementPolicyValue", "updateStrategy": { "type": "typeValue", "rollingUpdate": { "partition": 1, "maxUnavailable": "maxUnavailableValue" } }, "revisionHistoryLimit": 8, "minReadySeconds": 9, "persistentVolumeClaimRetentionPolicy": { "whenDeleted": "whenDeletedValue", "whenScaled": "whenScaledValue" }, "ordinals": { "start": 1 } }, "status": { "observedGeneration": 1, "replicas": 2, "readyReplicas": 3, "currentReplicas": 4, "updatedReplicas": 5, "currentRevision": "currentRevisionValue", "updateRevision": "updateRevisionValue", "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "availableReplicas": 11 } }golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta2.StatefulSet.pb000066400000000000000000000266571453636404600236630ustar00rootroot00000000000000k8s  apps/v1beta2 StatefulSet[  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueWL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueM  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValue*w nameValuesignerNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" pathValue(C volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 0:> allocatedResourceStatusesKeyallocatedResourceStatusesValueB%currentVolumeAttributesClassNameValueJ3 $targetVolumeAttributesClassNameValue statusValue*serviceNameValue2podManagementPolicyValue:* typeValuemaxUnavailableValue@H R# whenDeletedValuewhenScaledValueZx (2currentRevisionValue:updateRevisionValueH R= typeValue statusValue" reasonValue* messageValueX "golang-k8s-api-0.29.0/testdata/HEAD/apps.v1beta2.StatefulSet.yaml000066400000000000000000001121251453636404600242060ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: StatefulSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 9 ordinals: start: 1 persistentVolumeClaimRetentionPolicy: whenDeleted: whenDeletedValue whenScaled: whenScaledValue podManagementPolicy: podManagementPolicyValue replicas: 1 revisionHistoryLimit: 8 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue serviceName: serviceNameValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - clusterTrustBundle: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue name: nameValue optional: true path: pathValue signerName: signerNameValue configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxUnavailable: maxUnavailableValue partition: 1 type: typeValue volumeClaimTemplates: - metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResourceStatuses: allocatedResourceStatusesKey: allocatedResourceStatusesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentVolumeAttributesClassName: currentVolumeAttributesClassNameValue modifyVolumeStatus: status: statusValue targetVolumeAttributesClassName: targetVolumeAttributesClassNameValue phase: phaseValue status: availableReplicas: 11 collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentReplicas: 4 currentRevision: currentRevisionValue observedGeneration: 1 readyReplicas: 3 replicas: 2 updateRevision: updateRevisionValue updatedReplicas: 5 golang-k8s-api-0.29.0/testdata/HEAD/authentication.k8s.io.v1.SelfSubjectReview.json000066400000000000000000000026051453636404600276160ustar00rootroot00000000000000{ "kind": "SelfSubjectReview", "apiVersion": "authentication.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "status": { "userInfo": { "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } } } }golang-k8s-api-0.29.0/testdata/HEAD/authentication.k8s.io.v1.SelfSubjectReview.pb000066400000000000000000000007411453636404600272450ustar00rootroot00000000000000k8s - authentication.k8s.io/v1SelfSubjectReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueB @ usernameValueuidValue groupsValue" extraKey extraValue"golang-k8s-api-0.29.0/testdata/HEAD/authentication.k8s.io.v1.SelfSubjectReview.yaml000066400000000000000000000017671453636404600276170ustar00rootroot00000000000000apiVersion: authentication.k8s.io/v1 kind: SelfSubjectReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue status: userInfo: extra: extraKey: - extraValue groups: - groupsValue uid: uidValue username: usernameValue golang-k8s-api-0.29.0/testdata/HEAD/authentication.k8s.io.v1.TokenRequest.json000066400000000000000000000027511453636404600266560ustar00rootroot00000000000000{ "kind": "TokenRequest", "apiVersion": "authentication.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "audiences": [ "audiencesValue" ], "expirationSeconds": 4, "boundObjectRef": { "kind": "kindValue", "apiVersion": "apiVersionValue", "name": "nameValue", "uid": "uidValue" } }, "status": { "token": "tokenValue", "expirationTimestamp": "2002-01-01T01:01:01Z" } }golang-k8s-api-0.29.0/testdata/HEAD/authentication.k8s.io.v1.TokenRequest.pb000066400000000000000000000007671453636404600263130ustar00rootroot00000000000000k8s ( authentication.k8s.io/v1 TokenRequest  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueE audiencesValue1 kindValueapiVersionValue nameValue"uidValue  tokenValue͔"golang-k8s-api-0.29.0/testdata/HEAD/authentication.k8s.io.v1.TokenRequest.yaml000066400000000000000000000021271453636404600266440ustar00rootroot00000000000000apiVersion: authentication.k8s.io/v1 kind: TokenRequest metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: audiences: - audiencesValue boundObjectRef: apiVersion: apiVersionValue kind: kindValue name: nameValue uid: uidValue expirationSeconds: 4 status: expirationTimestamp: "2002-01-01T01:01:01Z" token: tokenValue golang-k8s-api-0.29.0/testdata/HEAD/authentication.k8s.io.v1.TokenReview.json000066400000000000000000000030761453636404600264700ustar00rootroot00000000000000{ "kind": "TokenReview", "apiVersion": "authentication.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "token": "tokenValue", "audiences": [ "audiencesValue" ] }, "status": { "authenticated": true, "user": { "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } }, "audiences": [ "audiencesValue" ], "error": "errorValue" } }golang-k8s-api-0.29.0/testdata/HEAD/authentication.k8s.io.v1.TokenReview.pb000066400000000000000000000010271453636404600261120ustar00rootroot00000000000000k8s ' authentication.k8s.io/v1 TokenReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue tokenValueaudiencesValue`@ usernameValueuidValue groupsValue" extraKey extraValue errorValue"audiencesValue"golang-k8s-api-0.29.0/testdata/HEAD/authentication.k8s.io.v1.TokenReview.yaml000066400000000000000000000021611453636404600264530ustar00rootroot00000000000000apiVersion: authentication.k8s.io/v1 kind: TokenReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: audiences: - audiencesValue token: tokenValue status: audiences: - audiencesValue authenticated: true error: errorValue user: extra: extraKey: - extraValue groups: - groupsValue uid: uidValue username: usernameValue golang-k8s-api-0.29.0/testdata/HEAD/authentication.k8s.io.v1beta1.SelfSubjectReview.json000066400000000000000000000026121453636404600305310ustar00rootroot00000000000000{ "kind": "SelfSubjectReview", "apiVersion": "authentication.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "status": { "userInfo": { "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } } } }golang-k8s-api-0.29.0/testdata/HEAD/authentication.k8s.io.v1beta1.SelfSubjectReview.pb000066400000000000000000000007461453636404600301670ustar00rootroot00000000000000k8s 2 authentication.k8s.io/v1beta1SelfSubjectReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueB @ usernameValueuidValue groupsValue" extraKey extraValue"golang-k8s-api-0.29.0/testdata/HEAD/authentication.k8s.io.v1beta1.SelfSubjectReview.yaml000066400000000000000000000017741453636404600305320ustar00rootroot00000000000000apiVersion: authentication.k8s.io/v1beta1 kind: SelfSubjectReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue status: userInfo: extra: extraKey: - extraValue groups: - groupsValue uid: uidValue username: usernameValue golang-k8s-api-0.29.0/testdata/HEAD/authentication.k8s.io.v1beta1.TokenReview.json000066400000000000000000000031031453636404600273740ustar00rootroot00000000000000{ "kind": "TokenReview", "apiVersion": "authentication.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "token": "tokenValue", "audiences": [ "audiencesValue" ] }, "status": { "authenticated": true, "user": { "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } }, "audiences": [ "audiencesValue" ], "error": "errorValue" } }golang-k8s-api-0.29.0/testdata/HEAD/authentication.k8s.io.v1beta1.TokenReview.pb000066400000000000000000000010341453636404600270250ustar00rootroot00000000000000k8s , authentication.k8s.io/v1beta1 TokenReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue tokenValueaudiencesValue`@ usernameValueuidValue groupsValue" extraKey extraValue errorValue"audiencesValue"golang-k8s-api-0.29.0/testdata/HEAD/authentication.k8s.io.v1beta1.TokenReview.yaml000066400000000000000000000021661453636404600273750ustar00rootroot00000000000000apiVersion: authentication.k8s.io/v1beta1 kind: TokenReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: audiences: - audiencesValue token: tokenValue status: audiences: - audiencesValue authenticated: true error: errorValue user: extra: extraKey: - extraValue groups: - groupsValue uid: uidValue username: usernameValue golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1.LocalSubjectAccessReview.json000066400000000000000000000034761453636404600307710ustar00rootroot00000000000000{ "kind": "LocalSubjectAccessReview", "apiVersion": "authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceAttributes": { "namespace": "namespaceValue", "verb": "verbValue", "group": "groupValue", "version": "versionValue", "resource": "resourceValue", "subresource": "subresourceValue", "name": "nameValue" }, "nonResourceAttributes": { "path": "pathValue", "verb": "verbValue" }, "user": "userValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] }, "uid": "uidValue" }, "status": { "allowed": true, "denied": true, "reason": "reasonValue", "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1.LocalSubjectAccessReview.pb000066400000000000000000000012061453636404600304060ustar00rootroot00000000000000k8s 3 authorization.k8s.io/v1LocalSubjectAccessReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue a namespaceValue verbValue groupValue" versionValue* resourceValue2subresourceValue: nameValue pathValue verbValue userValue" groupsValue* extraKey extraValue2uidValue' reasonValueevaluationErrorValue "golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1.LocalSubjectAccessReview.yaml000066400000000000000000000025111453636404600307470ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1 kind: LocalSubjectAccessReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: extra: extraKey: - extraValue groups: - groupsValue nonResourceAttributes: path: pathValue verb: verbValue resourceAttributes: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue subresource: subresourceValue verb: verbValue version: versionValue uid: uidValue user: userValue status: allowed: true denied: true evaluationError: evaluationErrorValue reason: reasonValue golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectAccessReview.json000066400000000000000000000032331453636404600306170ustar00rootroot00000000000000{ "kind": "SelfSubjectAccessReview", "apiVersion": "authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceAttributes": { "namespace": "namespaceValue", "verb": "verbValue", "group": "groupValue", "version": "versionValue", "resource": "resourceValue", "subresource": "subresourceValue", "name": "nameValue" }, "nonResourceAttributes": { "path": "pathValue", "verb": "verbValue" } }, "status": { "allowed": true, "denied": true, "reason": "reasonValue", "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectAccessReview.pb000066400000000000000000000011101453636404600302370ustar00rootroot00000000000000k8s 2 authorization.k8s.io/v1SelfSubjectAccessReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue{ a namespaceValue verbValue groupValue" versionValue* resourceValue2subresourceValue: nameValue pathValue verbValue' reasonValueevaluationErrorValue "golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectAccessReview.yaml000066400000000000000000000023441453636404600306120ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1 kind: SelfSubjectAccessReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: nonResourceAttributes: path: pathValue verb: verbValue resourceAttributes: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue subresource: subresourceValue verb: verbValue version: versionValue status: allowed: true denied: true evaluationError: evaluationErrorValue reason: reasonValue golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectRulesReview.json000066400000000000000000000033741453636404600305160ustar00rootroot00000000000000{ "kind": "SelfSubjectRulesReview", "apiVersion": "authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "namespace": "namespaceValue" }, "status": { "resourceRules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ] } ], "nonResourceRules": [ { "verbs": [ "verbsValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ], "incomplete": true, "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectRulesReview.pb000066400000000000000000000010631453636404600301370ustar00rootroot00000000000000k8s 1 authorization.k8s.io/v1SelfSubjectRulesReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue namespaceValue~ @ verbsValueapiGroupsValueresourcesValue"resourceNamesValue" verbsValuenonResourceURLsValue"evaluationErrorValue"golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectRulesReview.yaml000066400000000000000000000023231453636404600305000ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1 kind: SelfSubjectRulesReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: namespace: namespaceValue status: evaluationError: evaluationErrorValue incomplete: true nonResourceRules: - nonResourceURLs: - nonResourceURLsValue verbs: - verbsValue resourceRules: - apiGroups: - apiGroupsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1.SubjectAccessReview.json000066400000000000000000000034711453636404600300110ustar00rootroot00000000000000{ "kind": "SubjectAccessReview", "apiVersion": "authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceAttributes": { "namespace": "namespaceValue", "verb": "verbValue", "group": "groupValue", "version": "versionValue", "resource": "resourceValue", "subresource": "subresourceValue", "name": "nameValue" }, "nonResourceAttributes": { "path": "pathValue", "verb": "verbValue" }, "user": "userValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] }, "uid": "uidValue" }, "status": { "allowed": true, "denied": true, "reason": "reasonValue", "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1.SubjectAccessReview.pb000066400000000000000000000012011453636404600274260ustar00rootroot00000000000000k8s . authorization.k8s.io/v1SubjectAccessReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue a namespaceValue verbValue groupValue" versionValue* resourceValue2subresourceValue: nameValue pathValue verbValue userValue" groupsValue* extraKey extraValue2uidValue' reasonValueevaluationErrorValue "golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1.SubjectAccessReview.yaml000066400000000000000000000025041453636404600277760ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1 kind: SubjectAccessReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: extra: extraKey: - extraValue groups: - groupsValue nonResourceAttributes: path: pathValue verb: verbValue resourceAttributes: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue subresource: subresourceValue verb: verbValue version: versionValue uid: uidValue user: userValue status: allowed: true denied: true evaluationError: evaluationErrorValue reason: reasonValue golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.json000066400000000000000000000035011453636404600316730ustar00rootroot00000000000000{ "kind": "LocalSubjectAccessReview", "apiVersion": "authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceAttributes": { "namespace": "namespaceValue", "verb": "verbValue", "group": "groupValue", "version": "versionValue", "resource": "resourceValue", "subresource": "subresourceValue", "name": "nameValue" }, "nonResourceAttributes": { "path": "pathValue", "verb": "verbValue" }, "user": "userValue", "group": [ "groupValue" ], "extra": { "extraKey": [ "extraValue" ] }, "uid": "uidValue" }, "status": { "allowed": true, "denied": true, "reason": "reasonValue", "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.pb000066400000000000000000000012121453636404600313200ustar00rootroot00000000000000k8s 8 authorization.k8s.io/v1beta1LocalSubjectAccessReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue a namespaceValue verbValue groupValue" versionValue* resourceValue2subresourceValue: nameValue pathValue verbValue userValue" groupValue* extraKey extraValue2uidValue' reasonValueevaluationErrorValue "golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.yaml000066400000000000000000000025141453636404600316670ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1beta1 kind: LocalSubjectAccessReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: extra: extraKey: - extraValue group: - groupValue nonResourceAttributes: path: pathValue verb: verbValue resourceAttributes: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue subresource: subresourceValue verb: verbValue version: versionValue uid: uidValue user: userValue status: allowed: true denied: true evaluationError: evaluationErrorValue reason: reasonValue golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.json000066400000000000000000000032401453636404600315320ustar00rootroot00000000000000{ "kind": "SelfSubjectAccessReview", "apiVersion": "authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceAttributes": { "namespace": "namespaceValue", "verb": "verbValue", "group": "groupValue", "version": "versionValue", "resource": "resourceValue", "subresource": "subresourceValue", "name": "nameValue" }, "nonResourceAttributes": { "path": "pathValue", "verb": "verbValue" } }, "status": { "allowed": true, "denied": true, "reason": "reasonValue", "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.pb000066400000000000000000000011151453636404600311610ustar00rootroot00000000000000k8s 7 authorization.k8s.io/v1beta1SelfSubjectAccessReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue{ a namespaceValue verbValue groupValue" versionValue* resourceValue2subresourceValue: nameValue pathValue verbValue' reasonValueevaluationErrorValue "golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.yaml000066400000000000000000000023511453636404600315250ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1beta1 kind: SelfSubjectAccessReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: nonResourceAttributes: path: pathValue verb: verbValue resourceAttributes: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue subresource: subresourceValue verb: verbValue version: versionValue status: allowed: true denied: true evaluationError: evaluationErrorValue reason: reasonValue golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.json000066400000000000000000000034011453636404600314220ustar00rootroot00000000000000{ "kind": "SelfSubjectRulesReview", "apiVersion": "authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "namespace": "namespaceValue" }, "status": { "resourceRules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ] } ], "nonResourceRules": [ { "verbs": [ "verbsValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ], "incomplete": true, "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.pb000066400000000000000000000010701453636404600310520ustar00rootroot00000000000000k8s 6 authorization.k8s.io/v1beta1SelfSubjectRulesReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue namespaceValue~ @ verbsValueapiGroupsValueresourcesValue"resourceNamesValue" verbsValuenonResourceURLsValue"evaluationErrorValue"golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.yaml000066400000000000000000000023301453636404600314130ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1beta1 kind: SelfSubjectRulesReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: namespace: namespaceValue status: evaluationError: evaluationErrorValue incomplete: true nonResourceRules: - nonResourceURLs: - nonResourceURLsValue verbs: - verbsValue resourceRules: - apiGroups: - apiGroupsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1beta1.SubjectAccessReview.json000066400000000000000000000034741453636404600307310ustar00rootroot00000000000000{ "kind": "SubjectAccessReview", "apiVersion": "authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceAttributes": { "namespace": "namespaceValue", "verb": "verbValue", "group": "groupValue", "version": "versionValue", "resource": "resourceValue", "subresource": "subresourceValue", "name": "nameValue" }, "nonResourceAttributes": { "path": "pathValue", "verb": "verbValue" }, "user": "userValue", "group": [ "groupValue" ], "extra": { "extraKey": [ "extraValue" ] }, "uid": "uidValue" }, "status": { "allowed": true, "denied": true, "reason": "reasonValue", "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1beta1.SubjectAccessReview.pb000066400000000000000000000012051453636404600303470ustar00rootroot00000000000000k8s 3 authorization.k8s.io/v1beta1SubjectAccessReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue a namespaceValue verbValue groupValue" versionValue* resourceValue2subresourceValue: nameValue pathValue verbValue userValue" groupValue* extraKey extraValue2uidValue' reasonValueevaluationErrorValue "golang-k8s-api-0.29.0/testdata/HEAD/authorization.k8s.io.v1beta1.SubjectAccessReview.yaml000066400000000000000000000025071453636404600307160ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1beta1 kind: SubjectAccessReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: extra: extraKey: - extraValue group: - groupValue nonResourceAttributes: path: pathValue verb: verbValue resourceAttributes: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue subresource: subresourceValue verb: verbValue version: versionValue uid: uidValue user: userValue status: allowed: true denied: true evaluationError: evaluationErrorValue reason: reasonValue golang-k8s-api-0.29.0/testdata/HEAD/autoscaling.v1.HorizontalPodAutoscaler.json000066400000000000000000000030631453636404600272210ustar00rootroot00000000000000{ "kind": "HorizontalPodAutoscaler", "apiVersion": "autoscaling/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "scaleTargetRef": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "minReplicas": 2, "maxReplicas": 3, "targetCPUUtilizationPercentage": 4 }, "status": { "observedGeneration": 1, "lastScaleTime": "2002-01-01T01:01:01Z", "currentReplicas": 3, "desiredReplicas": 4, "currentCPUUtilizationPercentage": 5 } }golang-k8s-api-0.29.0/testdata/HEAD/autoscaling.v1.HorizontalPodAutoscaler.pb000066400000000000000000000007361453636404600266550ustar00rootroot00000000000000k8s ) autoscaling/v1HorizontalPodAutoscaler  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue/ ' kindValue nameValueapiVersionValue ͔ ("golang-k8s-api-0.29.0/testdata/HEAD/autoscaling.v1.HorizontalPodAutoscaler.yaml000066400000000000000000000022421453636404600272100ustar00rootroot00000000000000apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: maxReplicas: 3 minReplicas: 2 scaleTargetRef: apiVersion: apiVersionValue kind: kindValue name: nameValue targetCPUUtilizationPercentage: 4 status: currentCPUUtilizationPercentage: 5 currentReplicas: 3 desiredReplicas: 4 lastScaleTime: "2002-01-01T01:01:01Z" observedGeneration: 1 golang-k8s-api-0.29.0/testdata/HEAD/autoscaling.v1.Scale.json000066400000000000000000000023601453636404600234300ustar00rootroot00000000000000{ "kind": "Scale", "apiVersion": "autoscaling/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1 }, "status": { "replicas": 1, "selector": "selectorValue" } }golang-k8s-api-0.29.0/testdata/HEAD/autoscaling.v1.Scale.pb000066400000000000000000000006361453636404600230640ustar00rootroot00000000000000k8s  autoscaling/v1Scale  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue selectorValue"golang-k8s-api-0.29.0/testdata/HEAD/autoscaling.v1.Scale.yaml000066400000000000000000000016271453636404600234260ustar00rootroot00000000000000apiVersion: autoscaling/v1 kind: Scale metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: replicas: 1 status: replicas: 1 selector: selectorValue golang-k8s-api-0.29.0/testdata/HEAD/autoscaling.v2.HorizontalPodAutoscaler.json000066400000000000000000000165331453636404600272300ustar00rootroot00000000000000{ "kind": "HorizontalPodAutoscaler", "apiVersion": "autoscaling/v2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "scaleTargetRef": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "minReplicas": 2, "maxReplicas": 3, "metrics": [ { "type": "typeValue", "object": { "describedObject": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 }, "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } }, "pods": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 } }, "resource": { "name": "nameValue", "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 } }, "containerResource": { "name": "nameValue", "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 }, "container": "containerValue" }, "external": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 } } } ], "behavior": { "scaleUp": { "stabilizationWindowSeconds": 3, "selectPolicy": "selectPolicyValue", "policies": [ { "type": "typeValue", "value": 2, "periodSeconds": 3 } ] }, "scaleDown": { "stabilizationWindowSeconds": 3, "selectPolicy": "selectPolicyValue", "policies": [ { "type": "typeValue", "value": 2, "periodSeconds": 3 } ] } } }, "status": { "observedGeneration": 1, "lastScaleTime": "2002-01-01T01:01:01Z", "currentReplicas": 3, "desiredReplicas": 4, "currentMetrics": [ { "type": "typeValue", "object": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 }, "describedObject": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" } }, "pods": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 } }, "resource": { "name": "nameValue", "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 } }, "containerResource": { "name": "nameValue", "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 }, "container": "containerValue" }, "external": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 } } } ], "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/autoscaling.v2.HorizontalPodAutoscaler.pb000066400000000000000000000030421453636404600266470ustar00rootroot00000000000000k8s ) autoscaling/v2HorizontalPodAutoscaler  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue ' kindValue nameValueapiVersionValue" typeValue ' kindValue nameValueapiVersionValue typeValue 0 0 Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuet Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue typeValue 0 0 "$ nameValue typeValue 0 0 *t Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue typeValue 0 0 :4 nameValue typeValue 0 0 containerValue*P & selectPolicyValue typeValue& selectPolicyValue typeValue͔ * typeValue Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  0 0' kindValue nameValueapiVersionValuei Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  0 0" nameValue  0 0*i Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  0 0:) nameValue  0 0containerValue2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/HEAD/autoscaling.v2.HorizontalPodAutoscaler.yaml000066400000000000000000000112501453636404600272100ustar00rootroot00000000000000apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: behavior: scaleDown: policies: - periodSeconds: 3 type: typeValue value: 2 selectPolicy: selectPolicyValue stabilizationWindowSeconds: 3 scaleUp: policies: - periodSeconds: 3 type: typeValue value: 2 selectPolicy: selectPolicyValue stabilizationWindowSeconds: 3 maxReplicas: 3 metrics: - containerResource: container: containerValue name: nameValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" external: metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" object: describedObject: apiVersion: apiVersionValue kind: kindValue name: nameValue metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" pods: metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" resource: name: nameValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" type: typeValue minReplicas: 2 scaleTargetRef: apiVersion: apiVersionValue kind: kindValue name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentMetrics: - containerResource: container: containerValue current: averageUtilization: 3 averageValue: "0" value: "0" name: nameValue external: current: averageUtilization: 3 averageValue: "0" value: "0" metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue object: current: averageUtilization: 3 averageValue: "0" value: "0" describedObject: apiVersion: apiVersionValue kind: kindValue name: nameValue metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue pods: current: averageUtilization: 3 averageValue: "0" value: "0" metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue resource: current: averageUtilization: 3 averageValue: "0" value: "0" name: nameValue type: typeValue currentReplicas: 3 desiredReplicas: 4 lastScaleTime: "2002-01-01T01:01:01Z" observedGeneration: 1 golang-k8s-api-0.29.0/testdata/HEAD/autoscaling.v2beta1.HorizontalPodAutoscaler.json000066400000000000000000000133201453636404600301340ustar00rootroot00000000000000{ "kind": "HorizontalPodAutoscaler", "apiVersion": "autoscaling/v2beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "scaleTargetRef": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "minReplicas": 2, "maxReplicas": 3, "metrics": [ { "type": "typeValue", "object": { "target": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "metricName": "metricNameValue", "targetValue": "0", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "averageValue": "0" }, "pods": { "metricName": "metricNameValue", "targetAverageValue": "0", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "resource": { "name": "nameValue", "targetAverageUtilization": 2, "targetAverageValue": "0" }, "containerResource": { "name": "nameValue", "targetAverageUtilization": 2, "targetAverageValue": "0", "container": "containerValue" }, "external": { "metricName": "metricNameValue", "metricSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "targetValue": "0", "targetAverageValue": "0" } } ] }, "status": { "observedGeneration": 1, "lastScaleTime": "2002-01-01T01:01:01Z", "currentReplicas": 3, "desiredReplicas": 4, "currentMetrics": [ { "type": "typeValue", "object": { "target": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "metricName": "metricNameValue", "currentValue": "0", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "averageValue": "0" }, "pods": { "metricName": "metricNameValue", "currentAverageValue": "0", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "resource": { "name": "nameValue", "currentAverageUtilization": 2, "currentAverageValue": "0" }, "containerResource": { "name": "nameValue", "currentAverageUtilization": 2, "currentAverageValue": "0", "container": "containerValue" }, "external": { "metricName": "metricNameValue", "metricSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "currentValue": "0", "currentAverageValue": "0" } } ], "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/autoscaling.v2beta1.HorizontalPodAutoscaler.pb000066400000000000000000000025701453636404600275710ustar00rootroot00000000000000k8s . autoscaling/v2beta1HorizontalPodAutoscaler  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue ' kindValue nameValueapiVersionValue" typeValue ' kindValue nameValueapiVersionValuemetricNameValue 0"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue* 0d metricNameValue 0L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" nameValue 0*i metricNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue 0" 0:" nameValue 0"containerValue͔ * typeValue ' kindValue nameValueapiVersionValuemetricNameValue 0"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue* 0d metricNameValue 0L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" nameValue 0*i metricNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue 0" 0:" nameValue 0"containerValue2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/HEAD/autoscaling.v2beta1.HorizontalPodAutoscaler.yaml000066400000000000000000000073441453636404600301360ustar00rootroot00000000000000apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: maxReplicas: 3 metrics: - containerResource: container: containerValue name: nameValue targetAverageUtilization: 2 targetAverageValue: "0" external: metricName: metricNameValue metricSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue targetAverageValue: "0" targetValue: "0" object: averageValue: "0" metricName: metricNameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: apiVersion: apiVersionValue kind: kindValue name: nameValue targetValue: "0" pods: metricName: metricNameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue targetAverageValue: "0" resource: name: nameValue targetAverageUtilization: 2 targetAverageValue: "0" type: typeValue minReplicas: 2 scaleTargetRef: apiVersion: apiVersionValue kind: kindValue name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentMetrics: - containerResource: container: containerValue currentAverageUtilization: 2 currentAverageValue: "0" name: nameValue external: currentAverageValue: "0" currentValue: "0" metricName: metricNameValue metricSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue object: averageValue: "0" currentValue: "0" metricName: metricNameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: apiVersion: apiVersionValue kind: kindValue name: nameValue pods: currentAverageValue: "0" metricName: metricNameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue resource: currentAverageUtilization: 2 currentAverageValue: "0" name: nameValue type: typeValue currentReplicas: 3 desiredReplicas: 4 lastScaleTime: "2002-01-01T01:01:01Z" observedGeneration: 1 golang-k8s-api-0.29.0/testdata/HEAD/autoscaling.v2beta2.HorizontalPodAutoscaler.json000066400000000000000000000165401453636404600301440ustar00rootroot00000000000000{ "kind": "HorizontalPodAutoscaler", "apiVersion": "autoscaling/v2beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "scaleTargetRef": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "minReplicas": 2, "maxReplicas": 3, "metrics": [ { "type": "typeValue", "object": { "describedObject": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 }, "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } }, "pods": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 } }, "resource": { "name": "nameValue", "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 } }, "containerResource": { "name": "nameValue", "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 }, "container": "containerValue" }, "external": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 } } } ], "behavior": { "scaleUp": { "stabilizationWindowSeconds": 3, "selectPolicy": "selectPolicyValue", "policies": [ { "type": "typeValue", "value": 2, "periodSeconds": 3 } ] }, "scaleDown": { "stabilizationWindowSeconds": 3, "selectPolicy": "selectPolicyValue", "policies": [ { "type": "typeValue", "value": 2, "periodSeconds": 3 } ] } } }, "status": { "observedGeneration": 1, "lastScaleTime": "2002-01-01T01:01:01Z", "currentReplicas": 3, "desiredReplicas": 4, "currentMetrics": [ { "type": "typeValue", "object": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 }, "describedObject": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" } }, "pods": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 } }, "resource": { "name": "nameValue", "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 } }, "containerResource": { "name": "nameValue", "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 }, "container": "containerValue" }, "external": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 } } } ], "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/autoscaling.v2beta2.HorizontalPodAutoscaler.pb000066400000000000000000000030471453636404600275720ustar00rootroot00000000000000k8s . autoscaling/v2beta2HorizontalPodAutoscaler  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue ' kindValue nameValueapiVersionValue" typeValue ' kindValue nameValueapiVersionValue typeValue 0 0 Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuet Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue typeValue 0 0 "$ nameValue typeValue 0 0 *t Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue typeValue 0 0 :4 nameValue typeValue 0 0 containerValue*P & selectPolicyValue typeValue& selectPolicyValue typeValue͔ * typeValue Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  0 0' kindValue nameValueapiVersionValuei Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  0 0" nameValue  0 0*i Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  0 0:) nameValue  0 0containerValue2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/HEAD/autoscaling.v2beta2.HorizontalPodAutoscaler.yaml000066400000000000000000000112551453636404600301330ustar00rootroot00000000000000apiVersion: autoscaling/v2beta2 kind: HorizontalPodAutoscaler metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: behavior: scaleDown: policies: - periodSeconds: 3 type: typeValue value: 2 selectPolicy: selectPolicyValue stabilizationWindowSeconds: 3 scaleUp: policies: - periodSeconds: 3 type: typeValue value: 2 selectPolicy: selectPolicyValue stabilizationWindowSeconds: 3 maxReplicas: 3 metrics: - containerResource: container: containerValue name: nameValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" external: metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" object: describedObject: apiVersion: apiVersionValue kind: kindValue name: nameValue metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" pods: metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" resource: name: nameValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" type: typeValue minReplicas: 2 scaleTargetRef: apiVersion: apiVersionValue kind: kindValue name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentMetrics: - containerResource: container: containerValue current: averageUtilization: 3 averageValue: "0" value: "0" name: nameValue external: current: averageUtilization: 3 averageValue: "0" value: "0" metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue object: current: averageUtilization: 3 averageValue: "0" value: "0" describedObject: apiVersion: apiVersionValue kind: kindValue name: nameValue metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue pods: current: averageUtilization: 3 averageValue: "0" value: "0" metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue resource: current: averageUtilization: 3 averageValue: "0" value: "0" name: nameValue type: typeValue currentReplicas: 3 desiredReplicas: 4 lastScaleTime: "2002-01-01T01:01:01Z" observedGeneration: 1 golang-k8s-api-0.29.0/testdata/HEAD/batch.v1.CronJob.json000066400000000000000000001745461453636404600225250ustar00rootroot00000000000000{ "kind": "CronJob", "apiVersion": "batch/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "schedule": "scheduleValue", "timeZone": "timeZoneValue", "startingDeadlineSeconds": 2, "concurrencyPolicy": "concurrencyPolicyValue", "suspend": true, "jobTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parallelism": 1, "completions": 2, "activeDeadlineSeconds": 3, "podFailurePolicy": { "rules": [ { "action": "actionValue", "onExitCodes": { "containerName": "containerNameValue", "operator": "operatorValue", "values": [ 3 ] }, "onPodConditions": [ { "type": "typeValue", "status": "statusValue" } ] } ] }, "backoffLimit": 7, "backoffLimitPerIndex": 12, "maxFailedIndexes": 13, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "manualSelector": true, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" }, "clusterTrustBundle": { "name": "nameValue", "signerName": "signerNameValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "optional": true, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "ttlSecondsAfterFinished": 8, "completionMode": "completionModeValue", "suspend": true, "podReplacementPolicy": "podReplacementPolicyValue" } }, "successfulJobsHistoryLimit": 6, "failedJobsHistoryLimit": 7 }, "status": { "active": [ { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } ], "lastScheduleTime": "2004-01-01T01:01:01Z", "lastSuccessfulTime": "2005-01-01T01:01:01Z" } }golang-k8s-api-0.29.0/testdata/HEAD/batch.v1.CronJob.pb000066400000000000000000000256001453636404600221370ustar00rootroot00000000000000k8s  batch/v1CronJobV  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueR scheduleValueconcurrencyPolicyValue *R  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueO"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2M  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValue*w nameValuesignerNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" pathValue(C volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue8@JcompletionModeValuePZP N actionValue% containerNameValue operatorValue typeValue statusValue` h rpodReplacementPolicyValue08B timeZoneValue} g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue"*׎"golang-k8s-api-0.29.0/testdata/HEAD/batch.v1.CronJob.yaml000066400000000000000000001207601453636404600225030ustar00rootroot00000000000000apiVersion: batch/v1 kind: CronJob metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: concurrencyPolicy: concurrencyPolicyValue failedJobsHistoryLimit: 7 jobTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 3 backoffLimit: 7 backoffLimitPerIndex: 12 completionMode: completionModeValue completions: 2 manualSelector: true maxFailedIndexes: 13 parallelism: 1 podFailurePolicy: rules: - action: actionValue onExitCodes: containerName: containerNameValue operator: operatorValue values: - 3 onPodConditions: - status: statusValue type: typeValue podReplacementPolicy: podReplacementPolicyValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue suspend: true template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - clusterTrustBundle: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue name: nameValue optional: true path: pathValue signerName: signerNameValue configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue ttlSecondsAfterFinished: 8 schedule: scheduleValue startingDeadlineSeconds: 2 successfulJobsHistoryLimit: 6 suspend: true timeZone: timeZoneValue status: active: - apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue lastScheduleTime: "2004-01-01T01:01:01Z" lastSuccessfulTime: "2005-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/HEAD/batch.v1.Job.json000066400000000000000000001545501453636404600216740ustar00rootroot00000000000000{ "kind": "Job", "apiVersion": "batch/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parallelism": 1, "completions": 2, "activeDeadlineSeconds": 3, "podFailurePolicy": { "rules": [ { "action": "actionValue", "onExitCodes": { "containerName": "containerNameValue", "operator": "operatorValue", "values": [ 3 ] }, "onPodConditions": [ { "type": "typeValue", "status": "statusValue" } ] } ] }, "backoffLimit": 7, "backoffLimitPerIndex": 12, "maxFailedIndexes": 13, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "manualSelector": true, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" }, "clusterTrustBundle": { "name": "nameValue", "signerName": "signerNameValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "optional": true, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "ttlSecondsAfterFinished": 8, "completionMode": "completionModeValue", "suspend": true, "podReplacementPolicy": "podReplacementPolicyValue" }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "startTime": "2002-01-01T01:01:01Z", "completionTime": "2003-01-01T01:01:01Z", "active": 4, "succeeded": 5, "failed": 6, "terminating": 11, "completedIndexes": "completedIndexesValue", "failedIndexes": "failedIndexesValue", "uncountedTerminatedPods": { "succeeded": [ "succeededValue" ], "failed": [ "failedValue" ] }, "ready": 9 } }golang-k8s-api-0.29.0/testdata/HEAD/batch.v1.Job.pb000066400000000000000000000250121453636404600213120ustar00rootroot00000000000000k8s  batch/v1JobS  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueO"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2M  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValue*w nameValuesignerNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" pathValue(C volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue8@JcompletionModeValuePZP N actionValue% containerNameValue operatorValue typeValue statusValue` h rpodReplacementPolicyValue G typeValue statusValue"* reasonValue2 messageValue͔ (0:completedIndexesValueB succeededValue failedValueH RfailedIndexesValueX "golang-k8s-api-0.29.0/testdata/HEAD/batch.v1.Job.yaml000066400000000000000000001057151453636404600216640ustar00rootroot00000000000000apiVersion: batch/v1 kind: Job metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 3 backoffLimit: 7 backoffLimitPerIndex: 12 completionMode: completionModeValue completions: 2 manualSelector: true maxFailedIndexes: 13 parallelism: 1 podFailurePolicy: rules: - action: actionValue onExitCodes: containerName: containerNameValue operator: operatorValue values: - 3 onPodConditions: - status: statusValue type: typeValue podReplacementPolicy: podReplacementPolicyValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue suspend: true template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - clusterTrustBundle: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue name: nameValue optional: true path: pathValue signerName: signerNameValue configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue ttlSecondsAfterFinished: 8 status: active: 4 completedIndexes: completedIndexesValue completionTime: "2003-01-01T01:01:01Z" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue failed: 6 failedIndexes: failedIndexesValue ready: 9 startTime: "2002-01-01T01:01:01Z" succeeded: 5 terminating: 11 uncountedTerminatedPods: failed: - failedValue succeeded: - succeededValue golang-k8s-api-0.29.0/testdata/HEAD/batch.v1beta1.CronJob.json000066400000000000000000001745531453636404600234400ustar00rootroot00000000000000{ "kind": "CronJob", "apiVersion": "batch/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "schedule": "scheduleValue", "timeZone": "timeZoneValue", "startingDeadlineSeconds": 2, "concurrencyPolicy": "concurrencyPolicyValue", "suspend": true, "jobTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parallelism": 1, "completions": 2, "activeDeadlineSeconds": 3, "podFailurePolicy": { "rules": [ { "action": "actionValue", "onExitCodes": { "containerName": "containerNameValue", "operator": "operatorValue", "values": [ 3 ] }, "onPodConditions": [ { "type": "typeValue", "status": "statusValue" } ] } ] }, "backoffLimit": 7, "backoffLimitPerIndex": 12, "maxFailedIndexes": 13, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "manualSelector": true, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" }, "clusterTrustBundle": { "name": "nameValue", "signerName": "signerNameValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "optional": true, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "ttlSecondsAfterFinished": 8, "completionMode": "completionModeValue", "suspend": true, "podReplacementPolicy": "podReplacementPolicyValue" } }, "successfulJobsHistoryLimit": 6, "failedJobsHistoryLimit": 7 }, "status": { "active": [ { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } ], "lastScheduleTime": "2004-01-01T01:01:01Z", "lastSuccessfulTime": "2005-01-01T01:01:01Z" } }golang-k8s-api-0.29.0/testdata/HEAD/batch.v1beta1.CronJob.pb000066400000000000000000000256051453636404600230610ustar00rootroot00000000000000k8s  batch/v1beta1CronJobV  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueR scheduleValueconcurrencyPolicyValue *R  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueO"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2M  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValue*w nameValuesignerNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" pathValue(C volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue8@JcompletionModeValuePZP N actionValue% containerNameValue operatorValue typeValue statusValue` h rpodReplacementPolicyValue08B timeZoneValue} g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue"*׎"golang-k8s-api-0.29.0/testdata/HEAD/batch.v1beta1.CronJob.yaml000066400000000000000000001207651453636404600234250ustar00rootroot00000000000000apiVersion: batch/v1beta1 kind: CronJob metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: concurrencyPolicy: concurrencyPolicyValue failedJobsHistoryLimit: 7 jobTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 3 backoffLimit: 7 backoffLimitPerIndex: 12 completionMode: completionModeValue completions: 2 manualSelector: true maxFailedIndexes: 13 parallelism: 1 podFailurePolicy: rules: - action: actionValue onExitCodes: containerName: containerNameValue operator: operatorValue values: - 3 onPodConditions: - status: statusValue type: typeValue podReplacementPolicy: podReplacementPolicyValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue suspend: true template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - clusterTrustBundle: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue name: nameValue optional: true path: pathValue signerName: signerNameValue configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue ttlSecondsAfterFinished: 8 schedule: scheduleValue startingDeadlineSeconds: 2 successfulJobsHistoryLimit: 6 suspend: true timeZone: timeZoneValue status: active: - apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue lastScheduleTime: "2004-01-01T01:01:01Z" lastSuccessfulTime: "2005-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/HEAD/certificates.k8s.io.v1.CertificateSigningRequest.json000066400000000000000000000034411453636404600307620ustar00rootroot00000000000000{ "kind": "CertificateSigningRequest", "apiVersion": "certificates.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "request": "AQ==", "signerName": "signerNameValue", "expirationSeconds": 8, "usages": [ "usagesValue" ], "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "reason": "reasonValue", "message": "messageValue", "lastUpdateTime": "2004-01-01T01:01:01Z", "lastTransitionTime": "2005-01-01T01:01:01Z" } ], "certificate": "Ag==" } }golang-k8s-api-0.29.0/testdata/HEAD/certificates.k8s.io.v1.CertificateSigningRequest.pb000066400000000000000000000011261453636404600304100ustar00rootroot00000000000000k8s 3 certificates.k8s.io/v1CertificateSigningRequest  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValuec  usernameValueuidValue" groupsValue* usagesValue2 extraKey extraValue:signerNameValue@L G typeValue reasonValue messageValue"*׎2 statusValue"golang-k8s-api-0.29.0/testdata/HEAD/certificates.k8s.io.v1.CertificateSigningRequest.yaml000066400000000000000000000024421453636404600307530ustar00rootroot00000000000000apiVersion: certificates.k8s.io/v1 kind: CertificateSigningRequest metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: expirationSeconds: 8 extra: extraKey: - extraValue groups: - groupsValue request: AQ== signerName: signerNameValue uid: uidValue usages: - usagesValue username: usernameValue status: certificate: Ag== conditions: - lastTransitionTime: "2005-01-01T01:01:01Z" lastUpdateTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/HEAD/certificates.k8s.io.v1alpha1.ClusterTrustBundle.json000066400000000000000000000023761453636404600305620ustar00rootroot00000000000000{ "kind": "ClusterTrustBundle", "apiVersion": "certificates.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "signerName": "signerNameValue", "trustBundle": "trustBundleValue" } }golang-k8s-api-0.29.0/testdata/HEAD/certificates.k8s.io.v1alpha1.ClusterTrustBundle.pb000066400000000000000000000007071453636404600302060ustar00rootroot00000000000000k8s 2 certificates.k8s.io/v1alpha1ClusterTrustBundle  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue# signerNameValuetrustBundleValue"golang-k8s-api-0.29.0/testdata/HEAD/certificates.k8s.io.v1alpha1.ClusterTrustBundle.yaml000066400000000000000000000016621453636404600305500ustar00rootroot00000000000000apiVersion: certificates.k8s.io/v1alpha1 kind: ClusterTrustBundle metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: signerName: signerNameValue trustBundle: trustBundleValue golang-k8s-api-0.29.0/testdata/HEAD/certificates.k8s.io.v1beta1.CertificateSigningRequest.json000066400000000000000000000034461453636404600317040ustar00rootroot00000000000000{ "kind": "CertificateSigningRequest", "apiVersion": "certificates.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "request": "AQ==", "signerName": "signerNameValue", "expirationSeconds": 8, "usages": [ "usagesValue" ], "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "reason": "reasonValue", "message": "messageValue", "lastUpdateTime": "2004-01-01T01:01:01Z", "lastTransitionTime": "2005-01-01T01:01:01Z" } ], "certificate": "Ag==" } }golang-k8s-api-0.29.0/testdata/HEAD/certificates.k8s.io.v1beta1.CertificateSigningRequest.pb000066400000000000000000000011331453636404600313230ustar00rootroot00000000000000k8s 8 certificates.k8s.io/v1beta1CertificateSigningRequest  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValuec  usernameValueuidValue" groupsValue* usagesValue2 extraKey extraValue:signerNameValue@L G typeValue reasonValue messageValue"*׎2 statusValue"golang-k8s-api-0.29.0/testdata/HEAD/certificates.k8s.io.v1beta1.CertificateSigningRequest.yaml000066400000000000000000000024471453636404600316750ustar00rootroot00000000000000apiVersion: certificates.k8s.io/v1beta1 kind: CertificateSigningRequest metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: expirationSeconds: 8 extra: extraKey: - extraValue groups: - groupsValue request: AQ== signerName: signerNameValue uid: uidValue usages: - usagesValue username: usernameValue status: certificate: Ag== conditions: - lastTransitionTime: "2005-01-01T01:01:01Z" lastUpdateTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/HEAD/coordination.k8s.io.v1.Lease.json000066400000000000000000000025501453636404600247240ustar00rootroot00000000000000{ "kind": "Lease", "apiVersion": "coordination.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "holderIdentity": "holderIdentityValue", "leaseDurationSeconds": 2, "acquireTime": "2003-01-01T01:01:01.000003Z", "renewTime": "2004-01-01T01:01:01.000004Z", "leaseTransitions": 5 } }golang-k8s-api-0.29.0/testdata/HEAD/coordination.k8s.io.v1.Lease.pb000066400000000000000000000007001453636404600243470ustar00rootroot00000000000000k8s  coordination.k8s.io/v1Lease  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue/ holderIdentityValue " ("golang-k8s-api-0.29.0/testdata/HEAD/coordination.k8s.io.v1.Lease.yaml000066400000000000000000000020171453636404600247130ustar00rootroot00000000000000apiVersion: coordination.k8s.io/v1 kind: Lease metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: acquireTime: "2003-01-01T01:01:01.000003Z" holderIdentity: holderIdentityValue leaseDurationSeconds: 2 leaseTransitions: 5 renewTime: "2004-01-01T01:01:01.000004Z" golang-k8s-api-0.29.0/testdata/HEAD/coordination.k8s.io.v1beta1.Lease.json000066400000000000000000000025551453636404600256460ustar00rootroot00000000000000{ "kind": "Lease", "apiVersion": "coordination.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "holderIdentity": "holderIdentityValue", "leaseDurationSeconds": 2, "acquireTime": "2003-01-01T01:01:01.000003Z", "renewTime": "2004-01-01T01:01:01.000004Z", "leaseTransitions": 5 } }golang-k8s-api-0.29.0/testdata/HEAD/coordination.k8s.io.v1beta1.Lease.pb000066400000000000000000000007051453636404600252710ustar00rootroot00000000000000k8s $ coordination.k8s.io/v1beta1Lease  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue/ holderIdentityValue " ("golang-k8s-api-0.29.0/testdata/HEAD/coordination.k8s.io.v1beta1.Lease.yaml000066400000000000000000000020241453636404600256260ustar00rootroot00000000000000apiVersion: coordination.k8s.io/v1beta1 kind: Lease metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: acquireTime: "2003-01-01T01:01:01.000003Z" holderIdentity: holderIdentityValue leaseDurationSeconds: 2 leaseTransitions: 5 renewTime: "2004-01-01T01:01:01.000004Z" golang-k8s-api-0.29.0/testdata/HEAD/core.v1.APIGroup.json000066400000000000000000000006331453636404600224470ustar00rootroot00000000000000{ "kind": "APIGroup", "apiVersion": "v1", "name": "nameValue", "versions": [ { "groupVersion": "groupVersionValue", "version": "versionValue" } ], "preferredVersion": { "groupVersion": "groupVersionValue", "version": "versionValue" }, "serverAddressByClientCIDRs": [ { "clientCIDR": "clientCIDRValue", "serverAddress": "serverAddressValue" } ] }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.APIGroup.pb000066400000000000000000000002221453636404600220710ustar00rootroot00000000000000k8s  v1APIGroupx nameValue! groupVersionValue versionValue! groupVersionValue versionValue"% clientCIDRValueserverAddressValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.APIGroup.yaml000066400000000000000000000004341453636404600224370ustar00rootroot00000000000000apiVersion: v1 kind: APIGroup name: nameValue preferredVersion: groupVersion: groupVersionValue version: versionValue serverAddressByClientCIDRs: - clientCIDR: clientCIDRValue serverAddress: serverAddressValue versions: - groupVersion: groupVersionValue version: versionValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.APIVersions.json000066400000000000000000000003401453636404600231560ustar00rootroot00000000000000{ "kind": "APIVersions", "apiVersion": "v1", "versions": [ "versionsValue" ], "serverAddressByClientCIDRs": [ { "clientCIDR": "clientCIDRValue", "serverAddress": "serverAddressValue" } ] }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.APIVersions.pb000066400000000000000000000001231453636404600226050ustar00rootroot00000000000000k8s  v1 APIVersions6 versionsValue% clientCIDRValueserverAddressValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.APIVersions.yaml000066400000000000000000000002311453636404600231460ustar00rootroot00000000000000apiVersion: v1 kind: APIVersions serverAddressByClientCIDRs: - clientCIDR: clientCIDRValue serverAddress: serverAddressValue versions: - versionsValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Binding.json000066400000000000000000000025621453636404600223760ustar00rootroot00000000000000{ "kind": "Binding", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "target": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Binding.pb000066400000000000000000000007461453636404600220300ustar00rootroot00000000000000k8s v1Binding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Binding.yaml000066400000000000000000000020031453636404600223550ustar00rootroot00000000000000apiVersion: v1 kind: Binding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue target: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ComponentStatus.json000066400000000000000000000024371453636404600241730ustar00rootroot00000000000000{ "kind": "ComponentStatus", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "conditions": [ { "type": "typeValue", "status": "statusValue", "message": "messageValue", "error": "errorValue" } ] }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ComponentStatus.pb000066400000000000000000000006711453636404600236210ustar00rootroot00000000000000k8s  v1ComponentStatus  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue2 typeValue statusValue messageValue" errorValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ComponentStatus.yaml000066400000000000000000000016611453636404600241620ustar00rootroot00000000000000apiVersion: v1 conditions: - error: errorValue message: messageValue status: statusValue type: typeValue kind: ComponentStatus metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ConfigMap.json000066400000000000000000000023631453636404600226660ustar00rootroot00000000000000{ "kind": "ConfigMap", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "immutable": true, "data": { "dataKey": "dataValue" }, "binaryData": { "binaryDataKey": "Aw==" } }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ConfigMap.pb000066400000000000000000000006531453636404600223160ustar00rootroot00000000000000k8s  v1 ConfigMap  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue dataKey dataValue binaryDataKey "golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ConfigMap.yaml000066400000000000000000000016301453636404600226530ustar00rootroot00000000000000apiVersion: v1 binaryData: binaryDataKey: Aw== data: dataKey: dataValue immutable: true kind: ConfigMap metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.CreateOptions.json000066400000000000000000000002541453636404600235770ustar00rootroot00000000000000{ "kind": "CreateOptions", "apiVersion": "v1", "dryRun": [ "dryRunValue" ], "fieldManager": "fieldManagerValue", "fieldValidation": "fieldValidationValue" }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.CreateOptions.pb000066400000000000000000000001251453636404600232240ustar00rootroot00000000000000k8s  v1 CreateOptions6 dryRunValuefieldManagerValue"fieldValidationValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.CreateOptions.yaml000066400000000000000000000001771453636404600235740ustar00rootroot00000000000000apiVersion: v1 dryRun: - dryRunValue fieldManager: fieldManagerValue fieldValidation: fieldValidationValue kind: CreateOptions golang-k8s-api-0.29.0/testdata/HEAD/core.v1.DeleteOptions.json000066400000000000000000000004371453636404600236010ustar00rootroot00000000000000{ "kind": "DeleteOptions", "apiVersion": "v1", "gracePeriodSeconds": 1, "preconditions": { "uid": "uidValue", "resourceVersion": "resourceVersionValue" }, "orphanDependents": true, "propagationPolicy": "propagationPolicyValue", "dryRun": [ "dryRunValue" ] }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.DeleteOptions.pb000066400000000000000000000001521453636404600232230ustar00rootroot00000000000000k8s  v1 DeleteOptionsK uidValueresourceVersionValue"propagationPolicyValue* dryRunValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.DeleteOptions.yaml000066400000000000000000000003271453636404600235700ustar00rootroot00000000000000apiVersion: v1 dryRun: - dryRunValue gracePeriodSeconds: 1 kind: DeleteOptions orphanDependents: true preconditions: resourceVersion: resourceVersionValue uid: uidValue propagationPolicy: propagationPolicyValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Endpoints.json000066400000000000000000000044171453636404600227700ustar00rootroot00000000000000{ "kind": "Endpoints", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subsets": [ { "addresses": [ { "ip": "ipValue", "hostname": "hostnameValue", "nodeName": "nodeNameValue", "targetRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } } ], "notReadyAddresses": [ { "ip": "ipValue", "hostname": "hostnameValue", "nodeName": "nodeNameValue", "targetRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } } ], "ports": [ { "name": "nameValue", "port": 2, "protocol": "protocolValue", "appProtocol": "appProtocolValue" } ] } ] }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Endpoints.pb000066400000000000000000000013301453636404600224070ustar00rootroot00000000000000k8s  v1 Endpoints  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue  ipValueg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue hostnameValue" nodeNameValue ipValueg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue hostnameValue" nodeNameValue. nameValue protocolValue"appProtocolValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Endpoints.yaml000066400000000000000000000030471453636404600227570ustar00rootroot00000000000000apiVersion: v1 kind: Endpoints metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue subsets: - addresses: - hostname: hostnameValue ip: ipValue nodeName: nodeNameValue targetRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue notReadyAddresses: - hostname: hostnameValue ip: ipValue nodeName: nodeNameValue targetRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue ports: - appProtocol: appProtocolValue name: nameValue port: 2 protocol: protocolValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Event.json000066400000000000000000000041661453636404600221070ustar00rootroot00000000000000{ "kind": "Event", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "involvedObject": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "reason": "reasonValue", "message": "messageValue", "source": { "component": "componentValue", "host": "hostValue" }, "firstTimestamp": "2006-01-01T01:01:01Z", "lastTimestamp": "2007-01-01T01:01:01Z", "count": 8, "type": "typeValue", "eventTime": "2010-01-01T01:01:01.000010Z", "series": { "count": 1, "lastObservedTime": "2002-01-01T01:01:01.000002Z" }, "action": "actionValue", "related": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "reportingComponent": "reportingComponentValue", "reportingInstance": "reportingInstanceValue" }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Event.pb000066400000000000000000000013761453636404600215370ustar00rootroot00000000000000k8s v1Event  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue reasonValue" messageValue* componentValue hostValue2ܝ:ͺ@J typeValueR ͒NZ  ͔b actionValuejg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValuerreportingComponentValuezreportingInstanceValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Event.yaml000066400000000000000000000031421453636404600220710ustar00rootroot00000000000000action: actionValue apiVersion: v1 count: 8 eventTime: "2010-01-01T01:01:01.000010Z" firstTimestamp: "2006-01-01T01:01:01Z" involvedObject: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue kind: Event lastTimestamp: "2007-01-01T01:01:01Z" message: messageValue metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue reason: reasonValue related: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue reportingComponent: reportingComponentValue reportingInstance: reportingInstanceValue series: count: 1 lastObservedTime: "2002-01-01T01:01:01.000002Z" source: component: componentValue host: hostValue type: typeValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.GetOptions.json000066400000000000000000000001351453636404600231110ustar00rootroot00000000000000{ "kind": "GetOptions", "apiVersion": "v1", "resourceVersion": "resourceVersionValue" }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.GetOptions.pb000066400000000000000000000000621453636404600225400ustar00rootroot00000000000000k8s  v1 GetOptions resourceVersionValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.GetOptions.yaml000066400000000000000000000001061453636404600231000ustar00rootroot00000000000000apiVersion: v1 kind: GetOptions resourceVersion: resourceVersionValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.LimitRange.json000066400000000000000000000030271453636404600230540ustar00rootroot00000000000000{ "kind": "LimitRange", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "limits": [ { "type": "typeValue", "max": { "maxKey": "0" }, "min": { "minKey": "0" }, "default": { "defaultKey": "0" }, "defaultRequest": { "defaultRequestKey": "0" }, "maxLimitRequestRatio": { "maxLimitRequestRatioKey": "0" } } ] } }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.LimitRange.pb000066400000000000000000000007721453636404600225100ustar00rootroot00000000000000k8s  v1 LimitRange  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValuex v typeValue maxKey 0 minKey 0" defaultKey 0* defaultRequestKey 02 maxLimitRequestRatioKey 0"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.LimitRange.yaml000066400000000000000000000020671453636404600230500ustar00rootroot00000000000000apiVersion: v1 kind: LimitRange metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: limits: - default: defaultKey: "0" defaultRequest: defaultRequestKey: "0" max: maxKey: "0" maxLimitRequestRatio: maxLimitRequestRatioKey: "0" min: minKey: "0" type: typeValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ListOptions.json000066400000000000000000000005701453636404600233100ustar00rootroot00000000000000{ "kind": "ListOptions", "apiVersion": "v1", "labelSelector": "labelSelectorValue", "fieldSelector": "fieldSelectorValue", "watch": true, "allowWatchBookmarks": true, "resourceVersion": "resourceVersionValue", "resourceVersionMatch": "resourceVersionMatchValue", "timeoutSeconds": 5, "limit": 7, "continue": "continueValue", "sendInitialEvents": true }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ListOptions.pb000066400000000000000000000002171453636404600227360ustar00rootroot00000000000000k8s  v1 ListOptionsr labelSelectorValuefieldSelectorValue"resourceVersionValue(8B continueValueHRresourceVersionMatchValueX"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ListOptions.yaml000066400000000000000000000004541453636404600233020ustar00rootroot00000000000000allowWatchBookmarks: true apiVersion: v1 continue: continueValue fieldSelector: fieldSelectorValue kind: ListOptions labelSelector: labelSelectorValue limit: 7 resourceVersion: resourceVersionValue resourceVersionMatch: resourceVersionMatchValue sendInitialEvents: true timeoutSeconds: 5 watch: true golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Namespace.json000066400000000000000000000027211453636404600227150ustar00rootroot00000000000000{ "kind": "Namespace", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "finalizers": [ "finalizersValue" ] }, "status": { "phase": "phaseValue", "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Namespace.pb000066400000000000000000000007371453636404600223520ustar00rootroot00000000000000k8s  v1 Namespace  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue finalizersValueK phaseValue= typeValue statusValue"* reasonValue2 messageValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Namespace.yaml000066400000000000000000000020521453636404600227030ustar00rootroot00000000000000apiVersion: v1 kind: Namespace metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: finalizers: - finalizersValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue phase: phaseValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Node.json000066400000000000000000000076461453636404600217210ustar00rootroot00000000000000{ "kind": "Node", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "podCIDR": "podCIDRValue", "podCIDRs": [ "podCIDRsValue" ], "providerID": "providerIDValue", "unschedulable": true, "taints": [ { "key": "keyValue", "value": "valueValue", "effect": "effectValue", "timeAdded": "2004-01-01T01:01:01Z" } ], "configSource": { "configMap": { "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "kubeletConfigKey": "kubeletConfigKeyValue" } }, "externalID": "externalIDValue" }, "status": { "capacity": { "capacityKey": "0" }, "allocatable": { "allocatableKey": "0" }, "phase": "phaseValue", "conditions": [ { "type": "typeValue", "status": "statusValue", "lastHeartbeatTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "addresses": [ { "type": "typeValue", "address": "addressValue" } ], "daemonEndpoints": { "kubeletEndpoint": { "Port": 1 } }, "nodeInfo": { "machineID": "machineIDValue", "systemUUID": "systemUUIDValue", "bootID": "bootIDValue", "kernelVersion": "kernelVersionValue", "osImage": "osImageValue", "containerRuntimeVersion": "containerRuntimeVersionValue", "kubeletVersion": "kubeletVersionValue", "kubeProxyVersion": "kubeProxyVersionValue", "operatingSystem": "operatingSystemValue", "architecture": "architectureValue" }, "images": [ { "names": [ "namesValue" ], "sizeBytes": 2 } ], "volumesInUse": [ "volumesInUseValue" ], "volumesAttached": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "config": { "assigned": { "configMap": { "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "kubeletConfigKey": "kubeletConfigKeyValue" } }, "active": { "configMap": { "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "kubeletConfigKey": "kubeletConfigKeyValue" } }, "lastKnownGood": { "configMap": { "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "kubeletConfigKey": "kubeletConfigKeyValue" } }, "error": "errorValue" } } }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Node.pb000066400000000000000000000023771453636404600213450ustar00rootroot00000000000000k8s v1Node  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue podCIDRValueexternalIDValueproviderIDValue *- keyValue valueValue effectValue"2TR namespaceValue nameValueuidValue"resourceVersionValue*kubeletConfigKeyValue: podCIDRsValue  capacityKey 0 allocatableKey 0 phaseValue"G typeValue statusValue"* reasonValue2 messageValue* typeValue addressValue2 : machineIDValuesystemUUIDValue bootIDValue"kernelVersionValue* osImageValue2containerRuntimeVersionValue:kubeletVersionValueBkubeProxyVersionValueJoperatingSystemValueRarchitectureValueB namesValueJvolumesInUseValueR nameValuedevicePathValueZ TR namespaceValue nameValueuidValue"resourceVersionValue*kubeletConfigKeyValueTR namespaceValue nameValueuidValue"resourceVersionValue*kubeletConfigKeyValueTR namespaceValue nameValueuidValue"resourceVersionValue*kubeletConfigKeyValue" errorValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Node.yaml000066400000000000000000000055211453636404600217000ustar00rootroot00000000000000apiVersion: v1 kind: Node metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: configSource: configMap: kubeletConfigKey: kubeletConfigKeyValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue externalID: externalIDValue podCIDR: podCIDRValue podCIDRs: - podCIDRsValue providerID: providerIDValue taints: - effect: effectValue key: keyValue timeAdded: "2004-01-01T01:01:01Z" value: valueValue unschedulable: true status: addresses: - address: addressValue type: typeValue allocatable: allocatableKey: "0" capacity: capacityKey: "0" conditions: - lastHeartbeatTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue config: active: configMap: kubeletConfigKey: kubeletConfigKeyValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue assigned: configMap: kubeletConfigKey: kubeletConfigKeyValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue error: errorValue lastKnownGood: configMap: kubeletConfigKey: kubeletConfigKeyValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue daemonEndpoints: kubeletEndpoint: Port: 1 images: - names: - namesValue sizeBytes: 2 nodeInfo: architecture: architectureValue bootID: bootIDValue containerRuntimeVersion: containerRuntimeVersionValue kernelVersion: kernelVersionValue kubeProxyVersion: kubeProxyVersionValue kubeletVersion: kubeletVersionValue machineID: machineIDValue operatingSystem: operatingSystemValue osImage: osImageValue systemUUID: systemUUIDValue phase: phaseValue volumesAttached: - devicePath: devicePathValue name: nameValue volumesInUse: - volumesInUseValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.NodeProxyOptions.json000066400000000000000000000001151453636404600243170ustar00rootroot00000000000000{ "kind": "NodeProxyOptions", "apiVersion": "v1", "path": "pathValue" }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.NodeProxyOptions.pb000066400000000000000000000000551453636404600237520ustar00rootroot00000000000000k8s  v1NodeProxyOptions pathValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.NodeProxyOptions.yaml000066400000000000000000000000661453636404600243150ustar00rootroot00000000000000apiVersion: v1 kind: NodeProxyOptions path: pathValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PatchOptions.json000066400000000000000000000002741453636404600234350ustar00rootroot00000000000000{ "kind": "PatchOptions", "apiVersion": "v1", "dryRun": [ "dryRunValue" ], "force": true, "fieldManager": "fieldManagerValue", "fieldValidation": "fieldValidationValue" }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PatchOptions.pb000066400000000000000000000001261453636404600230610ustar00rootroot00000000000000k8s  v1 PatchOptions8 dryRunValuefieldManagerValue"fieldValidationValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PatchOptions.yaml000066400000000000000000000002121453636404600234160ustar00rootroot00000000000000apiVersion: v1 dryRun: - dryRunValue fieldManager: fieldManagerValue fieldValidation: fieldValidationValue force: true kind: PatchOptions golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PersistentVolume.json000066400000000000000000000172521453636404600243560ustar00rootroot00000000000000{ "kind": "PersistentVolume", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "capacity": { "capacityKey": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "hostPath": { "path": "pathValue", "type": "typeValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true, "endpointsNamespace": "endpointsNamespaceValue" }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "initiatorName": "initiatorNameValue" }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true, "secretNamespace": "secretNamespaceValue" }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "local": { "path": "pathValue", "fsType": "fsTypeValue" }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } }, "csi": { "driver": "driverValue", "volumeHandle": "volumeHandleValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "controllerPublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeStageSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodePublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "controllerExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "accessModes": [ "accessModesValue" ], "claimRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "persistentVolumeReclaimPolicy": "persistentVolumeReclaimPolicyValue", "storageClassName": "storageClassNameValue", "mountOptions": [ "mountOptionsValue" ], "volumeMode": "volumeModeValue", "nodeAffinity": { "required": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } }, "volumeAttributesClassName": "volumeAttributesClassNameValue" }, "status": { "phase": "phaseValue", "message": "messageValue", "reason": "reasonValue", "lastPhaseTransitionTime": "2004-01-01T01:01:01Z" } }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PersistentVolume.pb000066400000000000000000000046461453636404600240110ustar00rootroot00000000000000k8s  v1PersistentVolume  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue  capacityKey 0  pdNameValue fsTypeValue  volumeIDValue fsTypeValue  pathValue typeValue"6 endpointsValue pathValue"endpointsNamespaceValue* serverValue pathValue2k monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValuenamespaceValue@: targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValuenamespaceValueXbinitiatorNameValueB; volumeIDValue fsTypeValue" nameValuenamespaceValueJU monitorsValue pathValue userValue"secretFileValue* nameValuenamespaceValue0R. targetWWNsValue fsTypeValue * wwidsValueZ$ datasetNameValuedatasetUUIDValuebU driverValue fsTypeValue nameValuenamespaceValue * optionsKey optionsValuej9 secretNameValueshareNameValue"secretNamespaceValuerL volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValuezB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValuenamespaceValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP pathValue fsTypeValue volumeNameValuevolumeNamespaceValue fsTypeValue *g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue driverValuevolumeHandleValue" fsTypeValue*, volumeAttributesKeyvolumeAttributesValue2 nameValuenamespaceValue: nameValuenamespaceValueB nameValuenamespaceValueJ nameValuenamespaceValueR nameValuenamespaceValueaccessModesValue"g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue*"persistentVolumeReclaimPolicyValue2storageClassNameValue:mountOptionsValueBvolumeModeValueJT R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueRvolumeAttributesClassNameValue1 phaseValue messageValue reasonValue""golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PersistentVolume.yaml000066400000000000000000000131071453636404600243420ustar00rootroot00000000000000apiVersion: v1 kind: PersistentVolume metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue secretNamespace: secretNamespaceValue shareName: shareNameValue capacity: capacityKey: "0" cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue namespace: namespaceValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue namespace: namespaceValue volumeID: volumeIDValue claimRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue csi: controllerExpandSecretRef: name: nameValue namespace: namespaceValue controllerPublishSecretRef: name: nameValue namespace: namespaceValue driver: driverValue fsType: fsTypeValue nodeExpandSecretRef: name: nameValue namespace: namespaceValue nodePublishSecretRef: name: nameValue namespace: namespaceValue nodeStageSecretRef: name: nameValue namespace: namespaceValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue volumeHandle: volumeHandleValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true glusterfs: endpoints: endpointsValue endpointsNamespace: endpointsNamespaceValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue targetPortal: targetPortalValue local: fsType: fsTypeValue path: pathValue mountOptions: - mountOptionsValue nfs: path: pathValue readOnly: true server: serverValue nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicyValue photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue namespace: namespaceValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue namespace: namespaceValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue storageClassName: storageClassNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: lastPhaseTransitionTime: "2004-01-01T01:01:01Z" message: messageValue phase: phaseValue reason: reasonValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PersistentVolumeClaim.json000066400000000000000000000056001453636404600253160ustar00rootroot00000000000000{ "kind": "PersistentVolumeClaim", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" }, "allocatedResourceStatuses": { "allocatedResourceStatusesKey": "allocatedResourceStatusesValue" }, "currentVolumeAttributesClassName": "currentVolumeAttributesClassNameValue", "modifyVolumeStatus": { "targetVolumeAttributesClassName": "targetVolumeAttributesClassNameValue", "status": "statusValue" } } }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PersistentVolumeClaim.pb000066400000000000000000000020051453636404600247420ustar00rootroot00000000000000k8s  v1PersistentVolumeClaim  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 0:> allocatedResourceStatusesKeyallocatedResourceStatusesValueB%currentVolumeAttributesClassNameValueJ3 $targetVolumeAttributesClassNameValue statusValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PersistentVolumeClaim.yaml000066400000000000000000000041441453636404600253110ustar00rootroot00000000000000apiVersion: v1 kind: PersistentVolumeClaim metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResourceStatuses: allocatedResourceStatusesKey: allocatedResourceStatusesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentVolumeAttributesClassName: currentVolumeAttributesClassNameValue modifyVolumeStatus: status: statusValue targetVolumeAttributesClassName: targetVolumeAttributesClassNameValue phase: phaseValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Pod.json000066400000000000000000001453021453636404600215460ustar00rootroot00000000000000{ "kind": "Pod", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" }, "clusterTrustBundle": { "name": "nameValue", "signerName": "signerNameValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "optional": true, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] }, "status": { "phase": "phaseValue", "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "message": "messageValue", "reason": "reasonValue", "nominatedNodeName": "nominatedNodeNameValue", "hostIP": "hostIPValue", "hostIPs": [ { "ip": "ipValue" } ], "podIP": "podIPValue", "podIPs": [ { "ip": "ipValue" } ], "startTime": "2007-01-01T01:01:01Z", "initContainerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "containerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "qosClass": "qosClassValue", "ephemeralContainerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "resize": "resizeValue", "resourceClaimStatuses": [ { "name": "nameValue", "resourceClaimName": "resourceClaimNameValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Pod.pb000066400000000000000000000261601453636404600211760ustar00rootroot00000000000000k8s v1PodX  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValue*w nameValuesignerNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" pathValue(C volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue phaseValueG typeValue statusValue"* reasonValue2 messageValue messageValue" reasonValue* hostIPValue2 podIPValue:ͺB nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValueJ qosClassValueR nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValueZnominatedNodeNameValueb ipValuej nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValuer resizeValuez# nameValueresourceClaimNameValue ipValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Pod.yaml000066400000000000000000001005111453636404600215300ustar00rootroot00000000000000apiVersion: v1 kind: Pod metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - clusterTrustBundle: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue name: nameValue optional: true path: pathValue signerName: signerNameValue configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue containerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue ephemeralContainerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue hostIP: hostIPValue hostIPs: - ip: ipValue initContainerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue message: messageValue nominatedNodeName: nominatedNodeNameValue phase: phaseValue podIP: podIPValue podIPs: - ip: ipValue qosClass: qosClassValue reason: reasonValue resize: resizeValue resourceClaimStatuses: - name: nameValue resourceClaimName: resourceClaimNameValue startTime: "2007-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodAttachOptions.json000066400000000000000000000002331453636404600242400ustar00rootroot00000000000000{ "kind": "PodAttachOptions", "apiVersion": "v1", "stdin": true, "stdout": true, "stderr": true, "tty": true, "container": "containerValue" }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodAttachOptions.pb000066400000000000000000000000721453636404600236710ustar00rootroot00000000000000k8s  v1PodAttachOptions *containerValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodAttachOptions.yaml000066400000000000000000000001601453636404600242300ustar00rootroot00000000000000apiVersion: v1 container: containerValue kind: PodAttachOptions stderr: true stdin: true stdout: true tty: true golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodExecOptions.json000066400000000000000000000003001453636404600237130ustar00rootroot00000000000000{ "kind": "PodExecOptions", "apiVersion": "v1", "stdin": true, "stdout": true, "stderr": true, "tty": true, "container": "containerValue", "command": [ "commandValue" ] }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodExecOptions.pb000066400000000000000000000001061453636404600233470ustar00rootroot00000000000000k8s  v1PodExecOptions& *containerValue2 commandValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodExecOptions.yaml000066400000000000000000000002061453636404600237110ustar00rootroot00000000000000apiVersion: v1 command: - commandValue container: containerValue kind: PodExecOptions stderr: true stdin: true stdout: true tty: true golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodLogOptions.json000066400000000000000000000004311453636404600235550ustar00rootroot00000000000000{ "kind": "PodLogOptions", "apiVersion": "v1", "container": "containerValue", "follow": true, "previous": true, "sinceSeconds": 4, "sinceTime": "2005-01-01T01:01:01Z", "timestamps": true, "tailLines": 7, "limitBytes": 8, "insecureSkipTLSVerifyBackend": true }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodLogOptions.pb000066400000000000000000000001071453636404600232050ustar00rootroot00000000000000k8s  v1 PodLogOptions( containerValue *׎08@H"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodLogOptions.yaml000066400000000000000000000003321453636404600235460ustar00rootroot00000000000000apiVersion: v1 container: containerValue follow: true insecureSkipTLSVerifyBackend: true kind: PodLogOptions limitBytes: 8 previous: true sinceSeconds: 4 sinceTime: "2005-01-01T01:01:01Z" tailLines: 7 timestamps: true golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodPortForwardOptions.json000066400000000000000000000001231453636404600253030ustar00rootroot00000000000000{ "kind": "PodPortForwardOptions", "apiVersion": "v1", "ports": [ 1 ] }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodPortForwardOptions.pb000066400000000000000000000000511453636404600247330ustar00rootroot00000000000000k8s  v1PodPortForwardOptions"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodPortForwardOptions.yaml000066400000000000000000000000661453636404600253020ustar00rootroot00000000000000apiVersion: v1 kind: PodPortForwardOptions ports: - 1 golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodProxyOptions.json000066400000000000000000000001141453636404600241530ustar00rootroot00000000000000{ "kind": "PodProxyOptions", "apiVersion": "v1", "path": "pathValue" }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodProxyOptions.pb000066400000000000000000000000541453636404600236060ustar00rootroot00000000000000k8s  v1PodProxyOptions pathValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodProxyOptions.yaml000066400000000000000000000000651453636404600241510ustar00rootroot00000000000000apiVersion: v1 kind: PodProxyOptions path: pathValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodStatusResult.json000066400000000000000000000156361453636404600241570ustar00rootroot00000000000000{ "kind": "PodStatusResult", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "status": { "phase": "phaseValue", "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "message": "messageValue", "reason": "reasonValue", "nominatedNodeName": "nominatedNodeNameValue", "hostIP": "hostIPValue", "hostIPs": [ { "ip": "ipValue" } ], "podIP": "podIPValue", "podIPs": [ { "ip": "ipValue" } ], "startTime": "2007-01-01T01:01:01Z", "initContainerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "containerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "qosClass": "qosClassValue", "ephemeralContainerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "resize": "resizeValue", "resourceClaimStatuses": [ { "name": "nameValue", "resourceClaimName": "resourceClaimNameValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodStatusResult.pb000066400000000000000000000033601453636404600235760ustar00rootroot00000000000000k8s  v1PodStatusResult  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue phaseValueG typeValue statusValue"* reasonValue2 messageValue messageValue" reasonValue* hostIPValue2 podIPValue:ͺB nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValueJ qosClassValueR nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValueZnominatedNodeNameValueb ipValuej nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValuer resizeValuez# nameValueresourceClaimNameValue ipValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodStatusResult.yaml000066400000000000000000000113261453636404600241400ustar00rootroot00000000000000apiVersion: v1 kind: PodStatusResult metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue status: conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue containerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue ephemeralContainerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue hostIP: hostIPValue hostIPs: - ip: ipValue initContainerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue message: messageValue nominatedNodeName: nominatedNodeNameValue phase: phaseValue podIP: podIPValue podIPs: - ip: ipValue qosClass: qosClassValue reason: reasonValue resize: resizeValue resourceClaimStatuses: - name: nameValue resourceClaimName: resourceClaimNameValue startTime: "2007-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodTemplate.json000066400000000000000000001424731453636404600232500ustar00rootroot00000000000000{ "kind": "PodTemplate", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" }, "clusterTrustBundle": { "name": "nameValue", "signerName": "signerNameValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "optional": true, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodTemplate.pb000066400000000000000000000241631453636404600226730ustar00rootroot00000000000000k8s  v1 PodTemplateP  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueM  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValue*w nameValuesignerNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" pathValue(C volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.PodTemplate.yaml000066400000000000000000000767741453636404600232530ustar00rootroot00000000000000apiVersion: v1 kind: PodTemplate metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - clusterTrustBundle: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue name: nameValue optional: true path: pathValue signerName: signerNameValue configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.RangeAllocation.json000066400000000000000000000022601453636404600240610ustar00rootroot00000000000000{ "kind": "RangeAllocation", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "range": "rangeValue", "data": "Aw==" }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.RangeAllocation.pb000066400000000000000000000006241453636404600235130ustar00rootroot00000000000000k8s  v1RangeAllocation  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue rangeValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.RangeAllocation.yaml000066400000000000000000000015561453636404600240610ustar00rootroot00000000000000apiVersion: v1 data: Aw== kind: RangeAllocation metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue range: rangeValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ReplicationController.json000066400000000000000000001521411453636404600253400ustar00rootroot00000000000000{ "kind": "ReplicationController", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "selectorKey": "selectorValue" }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" }, "clusterTrustBundle": { "name": "nameValue", "signerName": "signerNameValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "optional": true, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ReplicationController.pb000066400000000000000000000243551453636404600247750ustar00rootroot00000000000000k8s  v1ReplicationControllerQ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueN selectorKey selectorValueM  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValue*w nameValuesignerNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" pathValue(C volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ReplicationController.yaml000066400000000000000000001041431453636404600253300ustar00rootroot00000000000000apiVersion: v1 kind: ReplicationController metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: selectorKey: selectorValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - clusterTrustBundle: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue name: nameValue optional: true path: pathValue signerName: signerNameValue configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ResourceQuota.json000066400000000000000000000030601453636404600236170ustar00rootroot00000000000000{ "kind": "ResourceQuota", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "hard": { "hardKey": "0" }, "scopes": [ "scopesValue" ], "scopeSelector": { "matchExpressions": [ { "scopeName": "scopeNameValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "status": { "hard": { "hardKey": "0" }, "used": { "usedKey": "0" } } }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ResourceQuota.pb000066400000000000000000000007641453636404600232570ustar00rootroot00000000000000k8s  v1 ResourceQuota  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueM  hardKey 0 scopesValue. , scopeNameValue operatorValue valuesValue  hardKey 0 usedKey 0"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ResourceQuota.yaml000066400000000000000000000021111453636404600236040ustar00rootroot00000000000000apiVersion: v1 kind: ResourceQuota metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: hard: hardKey: "0" scopeSelector: matchExpressions: - operator: operatorValue scopeName: scopeNameValue values: - valuesValue scopes: - scopesValue status: hard: hardKey: "0" used: usedKey: "0" golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Secret.json000066400000000000000000000024151453636404600222460ustar00rootroot00000000000000{ "kind": "Secret", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "immutable": true, "data": { "dataKey": "Ag==" }, "stringData": { "stringDataKey": "stringDataValue" }, "type": "typeValue" }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Secret.pb000066400000000000000000000006711453636404600217000ustar00rootroot00000000000000k8s v1Secret  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue dataKey typeValue" stringDataKeystringDataValue("golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Secret.yaml000066400000000000000000000016531453636404600222420ustar00rootroot00000000000000apiVersion: v1 data: dataKey: Ag== immutable: true kind: Secret metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue stringData: stringDataKey: stringDataValue type: typeValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.SerializedReference.json000066400000000000000000000004611453636404600247320ustar00rootroot00000000000000{ "kind": "SerializedReference", "apiVersion": "v1", "reference": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.SerializedReference.pb000066400000000000000000000002161453636404600243600ustar00rootroot00000000000000k8s  v1SerializedReferencei g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.SerializedReference.yaml000066400000000000000000000003461453636404600247250ustar00rootroot00000000000000apiVersion: v1 kind: SerializedReference reference: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Service.json000066400000000000000000000055521453636404600224260ustar00rootroot00000000000000{ "kind": "Service", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "ports": [ { "name": "nameValue", "protocol": "protocolValue", "appProtocol": "appProtocolValue", "port": 3, "targetPort": "targetPortValue", "nodePort": 5 } ], "selector": { "selectorKey": "selectorValue" }, "clusterIP": "clusterIPValue", "clusterIPs": [ "clusterIPsValue" ], "type": "typeValue", "externalIPs": [ "externalIPsValue" ], "sessionAffinity": "sessionAffinityValue", "loadBalancerIP": "loadBalancerIPValue", "loadBalancerSourceRanges": [ "loadBalancerSourceRangesValue" ], "externalName": "externalNameValue", "externalTrafficPolicy": "externalTrafficPolicyValue", "healthCheckNodePort": 12, "publishNotReadyAddresses": true, "sessionAffinityConfig": { "clientIP": { "timeoutSeconds": 1 } }, "ipFamilies": [ "ipFamiliesValue" ], "ipFamilyPolicy": "ipFamilyPolicyValue", "allocateLoadBalancerNodePorts": true, "loadBalancerClass": "loadBalancerClassValue", "internalTrafficPolicy": "internalTrafficPolicyValue" }, "status": { "loadBalancer": { "ingress": [ { "ip": "ipValue", "hostname": "hostnameValue", "ipMode": "ipModeValue", "ports": [ { "port": 1, "protocol": "protocolValue", "error": "errorValue" } ] } ] }, "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Service.pb000066400000000000000000000016261453636404600220540ustar00rootroot00000000000000k8s v1Service  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue G nameValue protocolValue"targetPortValue(2appProtocolValue selectorKey selectorValueclusterIPValue" typeValue*externalIPsValue:sessionAffinityValueBloadBalancerIPValueJloadBalancerSourceRangesValueRexternalNameValueZexternalTrafficPolicyValue` hr ipFamilyPolicyValueclusterIPsValueipFamiliesValueloadBalancerClassValueinternalTrafficPolicyValue F D ipValue hostnameValue ipModeValue" protocolValue errorValue? typeValue statusValue"* reasonValue2 messageValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Service.yaml000066400000000000000000000040521453636404600224110ustar00rootroot00000000000000apiVersion: v1 kind: Service metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: allocateLoadBalancerNodePorts: true clusterIP: clusterIPValue clusterIPs: - clusterIPsValue externalIPs: - externalIPsValue externalName: externalNameValue externalTrafficPolicy: externalTrafficPolicyValue healthCheckNodePort: 12 internalTrafficPolicy: internalTrafficPolicyValue ipFamilies: - ipFamiliesValue ipFamilyPolicy: ipFamilyPolicyValue loadBalancerClass: loadBalancerClassValue loadBalancerIP: loadBalancerIPValue loadBalancerSourceRanges: - loadBalancerSourceRangesValue ports: - appProtocol: appProtocolValue name: nameValue nodePort: 5 port: 3 protocol: protocolValue targetPort: targetPortValue publishNotReadyAddresses: true selector: selectorKey: selectorValue sessionAffinity: sessionAffinityValue sessionAffinityConfig: clientIP: timeoutSeconds: 1 type: typeValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue loadBalancer: ingress: - hostname: hostnameValue ip: ipValue ipMode: ipModeValue ports: - error: errorValue port: 1 protocol: protocolValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ServiceAccount.json000066400000000000000000000027771453636404600237510ustar00rootroot00000000000000{ "kind": "ServiceAccount", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "secrets": [ { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } ], "imagePullSecrets": [ { "name": "nameValue" } ], "automountServiceAccountToken": true }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ServiceAccount.pb000066400000000000000000000007741453636404600233740ustar00rootroot00000000000000k8s  v1ServiceAccount  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue nameValue "golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ServiceAccount.yaml000066400000000000000000000021221453636404600237220ustar00rootroot00000000000000apiVersion: v1 automountServiceAccountToken: true imagePullSecrets: - name: nameValue kind: ServiceAccount metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue secrets: - apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ServiceProxyOptions.json000066400000000000000000000001201453636404600250260ustar00rootroot00000000000000{ "kind": "ServiceProxyOptions", "apiVersion": "v1", "path": "pathValue" }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ServiceProxyOptions.pb000066400000000000000000000000601453636404600244610ustar00rootroot00000000000000k8s  v1ServiceProxyOptions pathValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.ServiceProxyOptions.yaml000066400000000000000000000000711453636404600250240ustar00rootroot00000000000000apiVersion: v1 kind: ServiceProxyOptions path: pathValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Status.json000066400000000000000000000011121453636404600222750ustar00rootroot00000000000000{ "kind": "Status", "apiVersion": "v1", "metadata": { "selfLink": "selfLinkValue", "resourceVersion": "resourceVersionValue", "continue": "continueValue", "remainingItemCount": 4 }, "status": "statusValue", "message": "messageValue", "reason": "reasonValue", "details": { "name": "nameValue", "group": "groupValue", "kind": "kindValue", "uid": "uidValue", "causes": [ { "reason": "reasonValue", "message": "messageValue", "field": "fieldValue" } ], "retryAfterSeconds": 5 }, "code": 6 }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Status.pb000066400000000000000000000003241453636404600217310ustar00rootroot00000000000000k8s v1Status 6 selfLinkValueresourceVersionValue continueValue  statusValue messageValue" reasonValue*W nameValue groupValue kindValue"' reasonValue messageValue fieldValue(2uidValue0"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.Status.yaml000066400000000000000000000006321453636404600222740ustar00rootroot00000000000000apiVersion: v1 code: 6 details: causes: - field: fieldValue message: messageValue reason: reasonValue group: groupValue kind: kindValue name: nameValue retryAfterSeconds: 5 uid: uidValue kind: Status message: messageValue metadata: continue: continueValue remainingItemCount: 4 resourceVersion: resourceVersionValue selfLink: selfLinkValue reason: reasonValue status: statusValue golang-k8s-api-0.29.0/testdata/HEAD/core.v1.UpdateOptions.json000066400000000000000000000002541453636404600236160ustar00rootroot00000000000000{ "kind": "UpdateOptions", "apiVersion": "v1", "dryRun": [ "dryRunValue" ], "fieldManager": "fieldManagerValue", "fieldValidation": "fieldValidationValue" }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.UpdateOptions.pb000066400000000000000000000001251453636404600232430ustar00rootroot00000000000000k8s  v1 UpdateOptions6 dryRunValuefieldManagerValuefieldValidationValue"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.UpdateOptions.yaml000066400000000000000000000001771453636404600236130ustar00rootroot00000000000000apiVersion: v1 dryRun: - dryRunValue fieldManager: fieldManagerValue fieldValidation: fieldValidationValue kind: UpdateOptions golang-k8s-api-0.29.0/testdata/HEAD/core.v1.WatchEvent.json000066400000000000000000000002761453636404600230740ustar00rootroot00000000000000{ "type": "typeValue", "object": { "apiVersion": "example.com/v1", "kind": "CustomType", "spec": { "replicas": 1 }, "status": { "available": 1 } } }golang-k8s-api-0.29.0/testdata/HEAD/core.v1.WatchEvent.pb000066400000000000000000000002011453636404600225100ustar00rootroot00000000000000k8s  q typeValued b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}"golang-k8s-api-0.29.0/testdata/HEAD/core.v1.WatchEvent.yaml000066400000000000000000000001731453636404600230610ustar00rootroot00000000000000object: apiVersion: example.com/v1 kind: CustomType spec: replicas: 1 status: available: 1 type: typeValue golang-k8s-api-0.29.0/testdata/HEAD/discovery.k8s.io.v1.EndpointSlice.json000066400000000000000000000041421453636404600257510ustar00rootroot00000000000000{ "kind": "EndpointSlice", "apiVersion": "discovery.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "addressType": "addressTypeValue", "endpoints": [ { "addresses": [ "addressesValue" ], "conditions": { "ready": true, "serving": true, "terminating": true }, "hostname": "hostnameValue", "targetRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "deprecatedTopology": { "deprecatedTopologyKey": "deprecatedTopologyValue" }, "nodeName": "nodeNameValue", "zone": "zoneValue", "hints": { "forZones": [ { "name": "nameValue" } ] } } ], "ports": [ { "name": "nameValue", "protocol": "protocolValue", "port": 3, "appProtocol": "appProtocolValue" } ] }golang-k8s-api-0.29.0/testdata/HEAD/discovery.k8s.io.v1.EndpointSlice.pb000066400000000000000000000013041453636404600253760ustar00rootroot00000000000000k8s $ discovery.k8s.io/v1 EndpointSlice  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue addressesValue hostnameValue"g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue*0 deprecatedTopologyKeydeprecatedTopologyValue2 nodeNameValue: zoneValueB nameValue. nameValue protocolValue"appProtocolValue"addressTypeValue"golang-k8s-api-0.29.0/testdata/HEAD/discovery.k8s.io.v1.EndpointSlice.yaml000066400000000000000000000027251453636404600257470ustar00rootroot00000000000000addressType: addressTypeValue apiVersion: discovery.k8s.io/v1 endpoints: - addresses: - addressesValue conditions: ready: true serving: true terminating: true deprecatedTopology: deprecatedTopologyKey: deprecatedTopologyValue hints: forZones: - name: nameValue hostname: hostnameValue nodeName: nodeNameValue targetRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue zone: zoneValue kind: EndpointSlice metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue ports: - appProtocol: appProtocolValue name: nameValue port: 3 protocol: protocolValue golang-k8s-api-0.29.0/testdata/HEAD/discovery.k8s.io.v1beta1.EndpointSlice.json000066400000000000000000000040561453636404600266720ustar00rootroot00000000000000{ "kind": "EndpointSlice", "apiVersion": "discovery.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "addressType": "addressTypeValue", "endpoints": [ { "addresses": [ "addressesValue" ], "conditions": { "ready": true, "serving": true, "terminating": true }, "hostname": "hostnameValue", "targetRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "topology": { "topologyKey": "topologyValue" }, "nodeName": "nodeNameValue", "hints": { "forZones": [ { "name": "nameValue" } ] } } ], "ports": [ { "name": "nameValue", "protocol": "protocolValue", "port": 3, "appProtocol": "appProtocolValue" } ] }golang-k8s-api-0.29.0/testdata/HEAD/discovery.k8s.io.v1beta1.EndpointSlice.pb000066400000000000000000000012521453636404600263150ustar00rootroot00000000000000k8s ) discovery.k8s.io/v1beta1 EndpointSlice  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue addressesValue hostnameValue"g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue* topologyKey topologyValue2 nodeNameValue: nameValue. nameValue protocolValue"appProtocolValue"addressTypeValue"golang-k8s-api-0.29.0/testdata/HEAD/discovery.k8s.io.v1beta1.EndpointSlice.yaml000066400000000000000000000026521453636404600266630ustar00rootroot00000000000000addressType: addressTypeValue apiVersion: discovery.k8s.io/v1beta1 endpoints: - addresses: - addressesValue conditions: ready: true serving: true terminating: true hints: forZones: - name: nameValue hostname: hostnameValue nodeName: nodeNameValue targetRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue topology: topologyKey: topologyValue kind: EndpointSlice metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue ports: - appProtocol: appProtocolValue name: nameValue port: 3 protocol: protocolValue golang-k8s-api-0.29.0/testdata/HEAD/events.k8s.io.v1.Event.json000066400000000000000000000042441453636404600235720ustar00rootroot00000000000000{ "kind": "Event", "apiVersion": "events.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "eventTime": "2002-01-01T01:01:01.000002Z", "series": { "count": 1, "lastObservedTime": "2002-01-01T01:01:01.000002Z" }, "reportingController": "reportingControllerValue", "reportingInstance": "reportingInstanceValue", "action": "actionValue", "reason": "reasonValue", "regarding": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "related": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "note": "noteValue", "type": "typeValue", "deprecatedSource": { "component": "componentValue", "host": "hostValue" }, "deprecatedFirstTimestamp": "2013-01-01T01:01:01Z", "deprecatedLastTimestamp": "2014-01-01T01:01:01Z", "deprecatedCount": 15 }golang-k8s-api-0.29.0/testdata/HEAD/events.k8s.io.v1.Event.pb000066400000000000000000000014121453636404600232140ustar00rootroot00000000000000k8s  events.k8s.io/v1Event  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue ͔  ͔"reportingControllerValue*reportingInstanceValue2 actionValue: reasonValueBg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValueJg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValueR noteValueZ typeValueb componentValue hostValuejꈇrэx"golang-k8s-api-0.29.0/testdata/HEAD/events.k8s.io.v1.Event.yaml000066400000000000000000000032201453636404600235540ustar00rootroot00000000000000action: actionValue apiVersion: events.k8s.io/v1 deprecatedCount: 15 deprecatedFirstTimestamp: "2013-01-01T01:01:01Z" deprecatedLastTimestamp: "2014-01-01T01:01:01Z" deprecatedSource: component: componentValue host: hostValue eventTime: "2002-01-01T01:01:01.000002Z" kind: Event metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue note: noteValue reason: reasonValue regarding: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue related: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue reportingController: reportingControllerValue reportingInstance: reportingInstanceValue series: count: 1 lastObservedTime: "2002-01-01T01:01:01.000002Z" type: typeValue golang-k8s-api-0.29.0/testdata/HEAD/events.k8s.io.v1beta1.Event.json000066400000000000000000000042511453636404600245050ustar00rootroot00000000000000{ "kind": "Event", "apiVersion": "events.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "eventTime": "2002-01-01T01:01:01.000002Z", "series": { "count": 1, "lastObservedTime": "2002-01-01T01:01:01.000002Z" }, "reportingController": "reportingControllerValue", "reportingInstance": "reportingInstanceValue", "action": "actionValue", "reason": "reasonValue", "regarding": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "related": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "note": "noteValue", "type": "typeValue", "deprecatedSource": { "component": "componentValue", "host": "hostValue" }, "deprecatedFirstTimestamp": "2013-01-01T01:01:01Z", "deprecatedLastTimestamp": "2014-01-01T01:01:01Z", "deprecatedCount": 15 }golang-k8s-api-0.29.0/testdata/HEAD/events.k8s.io.v1beta1.Event.pb000066400000000000000000000014171453636404600241360ustar00rootroot00000000000000k8s  events.k8s.io/v1beta1Event  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue ͔  ͔"reportingControllerValue*reportingInstanceValue2 actionValue: reasonValueBg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValueJg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValueR noteValueZ typeValueb componentValue hostValuejꈇrэx"golang-k8s-api-0.29.0/testdata/HEAD/events.k8s.io.v1beta1.Event.yaml000066400000000000000000000032251453636404600244760ustar00rootroot00000000000000action: actionValue apiVersion: events.k8s.io/v1beta1 deprecatedCount: 15 deprecatedFirstTimestamp: "2013-01-01T01:01:01Z" deprecatedLastTimestamp: "2014-01-01T01:01:01Z" deprecatedSource: component: componentValue host: hostValue eventTime: "2002-01-01T01:01:01.000002Z" kind: Event metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue note: noteValue reason: reasonValue regarding: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue related: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue reportingController: reportingControllerValue reportingInstance: reportingInstanceValue series: count: 1 lastObservedTime: "2002-01-01T01:01:01.000002Z" type: typeValue golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.DaemonSet.json000066400000000000000000001532351453636404600250730ustar00rootroot00000000000000{ "kind": "DaemonSet", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" }, "clusterTrustBundle": { "name": "nameValue", "signerName": "signerNameValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "optional": true, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "updateStrategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 4, "templateGeneration": 5, "revisionHistoryLimit": 6 }, "status": { "currentNumberScheduled": 1, "numberMisscheduled": 2, "desiredNumberScheduled": 3, "numberReady": 4, "observedGeneration": 5, "updatedNumberScheduled": 6, "numberAvailable": 7, "numberUnavailable": 8, "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.DaemonSet.pb000066400000000000000000000245521453636404600245220ustar00rootroot00000000000000k8s  extensions/v1beta1 DaemonSetR  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueO L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueM  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValue*w nameValuesignerNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" pathValue(C volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue= typeValue0 maxUnavailableValue maxSurgeValue (0Q (08@H R= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.DaemonSet.yaml000066400000000000000000001047721453636404600250660ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: DaemonSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - clusterTrustBundle: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue name: nameValue optional: true path: pathValue signerName: signerNameValue configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue templateGeneration: 5 updateStrategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue status: collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentNumberScheduled: 1 desiredNumberScheduled: 3 numberAvailable: 7 numberMisscheduled: 2 numberReady: 4 numberUnavailable: 8 observedGeneration: 5 updatedNumberScheduled: 6 golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.Deployment.json000066400000000000000000001533301453636404600253300ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" }, "clusterTrustBundle": { "name": "nameValue", "signerName": "signerNameValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "optional": true, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "rollbackTo": { "revision": 1 }, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.Deployment.pb000066400000000000000000000245711453636404600247640ustar00rootroot00000000000000k8s extensions/v1beta1 DeploymentR  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueOL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueM  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValue*w nameValuesignerNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" pathValue(C volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08BH W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.Deployment.yaml000066400000000000000000001050351453636404600253200ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 rollbackTo: revision: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - clusterTrustBundle: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue name: nameValue optional: true path: pathValue signerName: signerNameValue configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.DeploymentRollback.json000066400000000000000000000003361453636404600267770ustar00rootroot00000000000000{ "kind": "DeploymentRollback", "apiVersion": "extensions/v1beta1", "name": "nameValue", "updatedAnnotations": { "updatedAnnotationsKey": "updatedAnnotationsValue" }, "rollbackTo": { "revision": 1 } }golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.DeploymentRollback.pb000066400000000000000000000001651453636404600264270ustar00rootroot00000000000000k8s ( extensions/v1beta1DeploymentRollbackA nameValue0 updatedAnnotationsKeyupdatedAnnotationsValue"golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.DeploymentRollback.yaml000066400000000000000000000002471453636404600267710ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: DeploymentRollback name: nameValue rollbackTo: revision: 1 updatedAnnotations: updatedAnnotationsKey: updatedAnnotationsValue golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.Ingress.json000066400000000000000000000046371453636404600246270ustar00rootroot00000000000000{ "kind": "Ingress", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "ingressClassName": "ingressClassNameValue", "backend": { "serviceName": "serviceNameValue", "servicePort": "servicePortValue", "resource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }, "tls": [ { "hosts": [ "hostsValue" ], "secretName": "secretNameValue" } ], "rules": [ { "host": "hostValue", "http": { "paths": [ { "path": "pathValue", "pathType": "pathTypeValue", "backend": { "serviceName": "serviceNameValue", "servicePort": "servicePortValue", "resource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } } } ] } } ] }, "status": { "loadBalancer": { "ingress": [ { "ip": "ipValue", "hostname": "hostnameValue", "ports": [ { "port": 1, "protocol": "protocolValue", "error": "errorValue" } ] } ] } } }golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.Ingress.pb000066400000000000000000000013261453636404600242470ustar00rootroot00000000000000k8s  extensions/v1beta1Ingress  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue Q serviceNameValueservicePortValue% apiGroupValue kindValue nameValue hostsValuesecretNameValue~ hostValueq o m pathValueQ serviceNameValueservicePortValue% apiGroupValue kindValue nameValue pathTypeValue"ingressClassNameValue; 9 7 ipValue hostnameValue" protocolValue errorValue"golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.Ingress.yaml000066400000000000000000000031341453636404600246070ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: backend: resource: apiGroup: apiGroupValue kind: kindValue name: nameValue serviceName: serviceNameValue servicePort: servicePortValue ingressClassName: ingressClassNameValue rules: - host: hostValue http: paths: - backend: resource: apiGroup: apiGroupValue kind: kindValue name: nameValue serviceName: serviceNameValue servicePort: servicePortValue path: pathValue pathType: pathTypeValue tls: - hosts: - hostsValue secretName: secretNameValue status: loadBalancer: ingress: - hostname: hostnameValue ip: ipValue ports: - error: errorValue port: 1 protocol: protocolValue golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.NetworkPolicy.json000066400000000000000000000075241453636404600260240ustar00rootroot00000000000000{ "kind": "NetworkPolicy", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ingress": [ { "ports": [ { "protocol": "protocolValue", "port": "portValue", "endPort": 3 } ], "from": [ { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ipBlock": { "cidr": "cidrValue", "except": [ "exceptValue" ] } } ] } ], "egress": [ { "ports": [ { "protocol": "protocolValue", "port": "portValue", "endPort": 3 } ], "to": [ { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ipBlock": { "cidr": "cidrValue", "except": [ "exceptValue" ] } } ] } ], "policyTypes": [ "policyTypesValue" ] } }golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.NetworkPolicy.pb000066400000000000000000000016661453636404600254550ustar00rootroot00000000000000k8s # extensions/v1beta1 NetworkPolicy  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue " protocolValue portValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue cidrValue exceptValue " protocolValue portValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue cidrValue exceptValue"policyTypesValue"golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.NetworkPolicy.yaml000066400000000000000000000043531453636404600260120ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: NetworkPolicy metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: egress: - ports: - endPort: 3 port: portValue protocol: protocolValue to: - ipBlock: cidr: cidrValue except: - exceptValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue ingress: - from: - ipBlock: cidr: cidrValue except: - exceptValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue ports: - endPort: 3 port: portValue protocol: protocolValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue policyTypes: - policyTypesValue golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.ReplicaSet.json000066400000000000000000001525061453636404600252470ustar00rootroot00000000000000{ "kind": "ReplicaSet", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" }, "clusterTrustBundle": { "name": "nameValue", "signerName": "signerNameValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "optional": true, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "sleep": { "seconds": 1 } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "matchLabelKeys": [ "matchLabelKeysValue" ], "mismatchLabelKeys": [ "mismatchLabelKeysValue" ] } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.ReplicaSet.pb000066400000000000000000000244421453636404600246740ustar00rootroot00000000000000k8s extensions/v1beta1 ReplicaSetQ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueNL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueM  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValue*w nameValuesignerNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" pathValue(C volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValueJvolumeAttributesClassNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*matchLabelKeysValue2mismatchLabelKeysValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue"jterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.ReplicaSet.yaml000066400000000000000000001043531453636404600252350ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: ReplicaSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue mismatchLabelKeys: - mismatchLabelKeysValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue sleep: seconds: 1 tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - clusterTrustBundle: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue name: nameValue optional: true path: pathValue signerName: signerNameValue configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.Scale.json000066400000000000000000000024761453636404600242430ustar00rootroot00000000000000{ "kind": "Scale", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1 }, "status": { "replicas": 1, "selector": { "selectorKey": "selectorValue" }, "targetSelector": "targetSelectorValue" } }golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.Scale.pb000066400000000000000000000007061453636404600236650ustar00rootroot00000000000000k8s  extensions/v1beta1Scale  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 selectorKey selectorValuetargetSelectorValue"golang-k8s-api-0.29.0/testdata/HEAD/extensions.v1beta1.Scale.yaml000066400000000000000000000017221453636404600242250ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: Scale metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: replicas: 1 status: replicas: 1 selector: selectorKey: selectorValue targetSelector: targetSelectorValue golang-k8s-api-0.29.0/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1.FlowSchema.json000066400000000000000000000050371453636404600276050ustar00rootroot00000000000000{ "kind": "FlowSchema", "apiVersion": "flowcontrol.apiserver.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "priorityLevelConfiguration": { "name": "nameValue" }, "matchingPrecedence": 2, "distinguisherMethod": { "type": "typeValue" }, "rules": [ { "subjects": [ { "kind": "kindValue", "user": { "name": "nameValue" }, "group": { "name": "nameValue" }, "serviceAccount": { "namespace": "namespaceValue", "name": "nameValue" } } ], "resourceRules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "clusterScope": true, "namespaces": [ "namespacesValue" ] } ], "nonResourceRules": [ { "verbs": [ "verbsValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] } ] }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1.FlowSchema.pb000066400000000000000000000012511453636404600272270ustar00rootroot00000000000000k8s - flowcontrol.apiserver.k8s.io/v1 FlowSchema  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue typeValue" B kindValue nameValue nameValue" namespaceValue nameValue? verbsValueapiGroupsValueresourcesValue *namespacesValue" verbsValue2nonResourceURLsValue? = typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1.FlowSchema.yaml000066400000000000000000000031751453636404600275770ustar00rootroot00000000000000apiVersion: flowcontrol.apiserver.k8s.io/v1 kind: FlowSchema metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: distinguisherMethod: type: typeValue matchingPrecedence: 2 priorityLevelConfiguration: name: nameValue rules: - nonResourceRules: - nonResourceURLs: - nonResourceURLsValue verbs: - verbsValue resourceRules: - apiGroups: - apiGroupsValue clusterScope: true namespaces: - namespacesValue resources: - resourcesValue verbs: - verbsValue subjects: - group: name: nameValue kind: kindValue serviceAccount: name: nameValue namespace: namespaceValue user: name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1.PriorityLevelConfiguration.json000066400000000000000000000035111453636404600331110ustar00rootroot00000000000000{ "kind": "PriorityLevelConfiguration", "apiVersion": "flowcontrol.apiserver.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "type": "typeValue", "limited": { "nominalConcurrencyShares": 1, "limitResponse": { "type": "typeValue", "queuing": { "queues": 1, "handSize": 2, "queueLengthLimit": 3 } }, "lendablePercent": 3, "borrowingLimitPercent": 4 }, "exempt": { "nominalConcurrencyShares": 1, "lendablePercent": 2 } }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1.PriorityLevelConfiguration.pb000066400000000000000000000010361453636404600325410ustar00rootroot00000000000000k8s = flowcontrol.apiserver.k8s.io/v1PriorityLevelConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue. typeValue typeValue ? = typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1.PriorityLevelConfiguration.yaml000066400000000000000000000025161453636404600331060ustar00rootroot00000000000000apiVersion: flowcontrol.apiserver.k8s.io/v1 kind: PriorityLevelConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: exempt: lendablePercent: 2 nominalConcurrencyShares: 1 limited: borrowingLimitPercent: 4 lendablePercent: 3 limitResponse: queuing: handSize: 2 queueLengthLimit: 3 queues: 1 type: typeValue nominalConcurrencyShares: 1 type: typeValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta1.FlowSchema.json000066400000000000000000000050441453636404600305200ustar00rootroot00000000000000{ "kind": "FlowSchema", "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "priorityLevelConfiguration": { "name": "nameValue" }, "matchingPrecedence": 2, "distinguisherMethod": { "type": "typeValue" }, "rules": [ { "subjects": [ { "kind": "kindValue", "user": { "name": "nameValue" }, "group": { "name": "nameValue" }, "serviceAccount": { "namespace": "namespaceValue", "name": "nameValue" } } ], "resourceRules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "clusterScope": true, "namespaces": [ "namespacesValue" ] } ], "nonResourceRules": [ { "verbs": [ "verbsValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] } ] }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta1.FlowSchema.pb000066400000000000000000000012561453636404600301510ustar00rootroot00000000000000k8s 2 $flowcontrol.apiserver.k8s.io/v1beta1 FlowSchema  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue typeValue" B kindValue nameValue nameValue" namespaceValue nameValue? verbsValueapiGroupsValueresourcesValue *namespacesValue" verbsValue2nonResourceURLsValue? = typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta1.FlowSchema.yaml000066400000000000000000000032021453636404600305030ustar00rootroot00000000000000apiVersion: flowcontrol.apiserver.k8s.io/v1beta1 kind: FlowSchema metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: distinguisherMethod: type: typeValue matchingPrecedence: 2 priorityLevelConfiguration: name: nameValue rules: - nonResourceRules: - nonResourceURLs: - nonResourceURLsValue verbs: - verbsValue resourceRules: - apiGroups: - apiGroupsValue clusterScope: true namespaces: - namespacesValue resources: - resourcesValue verbs: - verbsValue subjects: - group: name: nameValue kind: kindValue serviceAccount: name: nameValue namespace: namespaceValue user: name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue flowcontrol.apiserver.k8s.io.v1beta1.PriorityLevelConfiguration.json000066400000000000000000000035161453636404600337540ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEAD{ "kind": "PriorityLevelConfiguration", "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "type": "typeValue", "limited": { "assuredConcurrencyShares": 1, "limitResponse": { "type": "typeValue", "queuing": { "queues": 1, "handSize": 2, "queueLengthLimit": 3 } }, "lendablePercent": 3, "borrowingLimitPercent": 4 }, "exempt": { "nominalConcurrencyShares": 1, "lendablePercent": 2 } }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }flowcontrol.apiserver.k8s.io.v1beta1.PriorityLevelConfiguration.pb000066400000000000000000000010431453636404600333750ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADk8s B $flowcontrol.apiserver.k8s.io/v1beta1PriorityLevelConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue. typeValue typeValue ? = typeValue statusValue" reasonValue* messageValue"flowcontrol.apiserver.k8s.io.v1beta1.PriorityLevelConfiguration.yaml000066400000000000000000000025231453636404600337420ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADapiVersion: flowcontrol.apiserver.k8s.io/v1beta1 kind: PriorityLevelConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: exempt: lendablePercent: 2 nominalConcurrencyShares: 1 limited: assuredConcurrencyShares: 1 borrowingLimitPercent: 4 lendablePercent: 3 limitResponse: queuing: handSize: 2 queueLengthLimit: 3 queues: 1 type: typeValue type: typeValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta2.FlowSchema.json000066400000000000000000000050441453636404600305210ustar00rootroot00000000000000{ "kind": "FlowSchema", "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "priorityLevelConfiguration": { "name": "nameValue" }, "matchingPrecedence": 2, "distinguisherMethod": { "type": "typeValue" }, "rules": [ { "subjects": [ { "kind": "kindValue", "user": { "name": "nameValue" }, "group": { "name": "nameValue" }, "serviceAccount": { "namespace": "namespaceValue", "name": "nameValue" } } ], "resourceRules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "clusterScope": true, "namespaces": [ "namespacesValue" ] } ], "nonResourceRules": [ { "verbs": [ "verbsValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] } ] }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta2.FlowSchema.pb000066400000000000000000000012561453636404600301520ustar00rootroot00000000000000k8s 2 $flowcontrol.apiserver.k8s.io/v1beta2 FlowSchema  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue typeValue" B kindValue nameValue nameValue" namespaceValue nameValue? verbsValueapiGroupsValueresourcesValue *namespacesValue" verbsValue2nonResourceURLsValue? = typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta2.FlowSchema.yaml000066400000000000000000000032021453636404600305040ustar00rootroot00000000000000apiVersion: flowcontrol.apiserver.k8s.io/v1beta2 kind: FlowSchema metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: distinguisherMethod: type: typeValue matchingPrecedence: 2 priorityLevelConfiguration: name: nameValue rules: - nonResourceRules: - nonResourceURLs: - nonResourceURLsValue verbs: - verbsValue resourceRules: - apiGroups: - apiGroupsValue clusterScope: true namespaces: - namespacesValue resources: - resourcesValue verbs: - verbsValue subjects: - group: name: nameValue kind: kindValue serviceAccount: name: nameValue namespace: namespaceValue user: name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue flowcontrol.apiserver.k8s.io.v1beta2.PriorityLevelConfiguration.json000066400000000000000000000035161453636404600337550ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEAD{ "kind": "PriorityLevelConfiguration", "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "type": "typeValue", "limited": { "assuredConcurrencyShares": 1, "limitResponse": { "type": "typeValue", "queuing": { "queues": 1, "handSize": 2, "queueLengthLimit": 3 } }, "lendablePercent": 3, "borrowingLimitPercent": 4 }, "exempt": { "nominalConcurrencyShares": 1, "lendablePercent": 2 } }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }flowcontrol.apiserver.k8s.io.v1beta2.PriorityLevelConfiguration.pb000066400000000000000000000010431453636404600333760ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADk8s B $flowcontrol.apiserver.k8s.io/v1beta2PriorityLevelConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue. typeValue typeValue ? = typeValue statusValue" reasonValue* messageValue"flowcontrol.apiserver.k8s.io.v1beta2.PriorityLevelConfiguration.yaml000066400000000000000000000025231453636404600337430ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADapiVersion: flowcontrol.apiserver.k8s.io/v1beta2 kind: PriorityLevelConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: exempt: lendablePercent: 2 nominalConcurrencyShares: 1 limited: assuredConcurrencyShares: 1 borrowingLimitPercent: 4 lendablePercent: 3 limitResponse: queuing: handSize: 2 queueLengthLimit: 3 queues: 1 type: typeValue type: typeValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.json000066400000000000000000000050441453636404600305220ustar00rootroot00000000000000{ "kind": "FlowSchema", "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta3", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "priorityLevelConfiguration": { "name": "nameValue" }, "matchingPrecedence": 2, "distinguisherMethod": { "type": "typeValue" }, "rules": [ { "subjects": [ { "kind": "kindValue", "user": { "name": "nameValue" }, "group": { "name": "nameValue" }, "serviceAccount": { "namespace": "namespaceValue", "name": "nameValue" } } ], "resourceRules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "clusterScope": true, "namespaces": [ "namespacesValue" ] } ], "nonResourceRules": [ { "verbs": [ "verbsValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] } ] }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.pb000066400000000000000000000012561453636404600301530ustar00rootroot00000000000000k8s 2 $flowcontrol.apiserver.k8s.io/v1beta3 FlowSchema  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue typeValue" B kindValue nameValue nameValue" namespaceValue nameValue? verbsValueapiGroupsValueresourcesValue *namespacesValue" verbsValue2nonResourceURLsValue? = typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.yaml000066400000000000000000000032021453636404600305050ustar00rootroot00000000000000apiVersion: flowcontrol.apiserver.k8s.io/v1beta3 kind: FlowSchema metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: distinguisherMethod: type: typeValue matchingPrecedence: 2 priorityLevelConfiguration: name: nameValue rules: - nonResourceRules: - nonResourceURLs: - nonResourceURLsValue verbs: - verbsValue resourceRules: - apiGroups: - apiGroupsValue clusterScope: true namespaces: - namespacesValue resources: - resourcesValue verbs: - verbsValue subjects: - group: name: nameValue kind: kindValue serviceAccount: name: nameValue namespace: namespaceValue user: name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue flowcontrol.apiserver.k8s.io.v1beta3.PriorityLevelConfiguration.json000066400000000000000000000035161453636404600337560ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEAD{ "kind": "PriorityLevelConfiguration", "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta3", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "type": "typeValue", "limited": { "nominalConcurrencyShares": 1, "limitResponse": { "type": "typeValue", "queuing": { "queues": 1, "handSize": 2, "queueLengthLimit": 3 } }, "lendablePercent": 3, "borrowingLimitPercent": 4 }, "exempt": { "nominalConcurrencyShares": 1, "lendablePercent": 2 } }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }flowcontrol.apiserver.k8s.io.v1beta3.PriorityLevelConfiguration.pb000066400000000000000000000010431453636404600333770ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADk8s B $flowcontrol.apiserver.k8s.io/v1beta3PriorityLevelConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue. typeValue typeValue ? = typeValue statusValue" reasonValue* messageValue"flowcontrol.apiserver.k8s.io.v1beta3.PriorityLevelConfiguration.yaml000066400000000000000000000025231453636404600337440ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/HEADapiVersion: flowcontrol.apiserver.k8s.io/v1beta3 kind: PriorityLevelConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: exempt: lendablePercent: 2 nominalConcurrencyShares: 1 limited: borrowingLimitPercent: 4 lendablePercent: 3 limitResponse: queuing: handSize: 2 queueLengthLimit: 3 queues: 1 type: typeValue nominalConcurrencyShares: 1 type: typeValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/HEAD/imagepolicy.k8s.io.v1alpha1.ImageReview.json000066400000000000000000000027671453636404600270120ustar00rootroot00000000000000{ "kind": "ImageReview", "apiVersion": "imagepolicy.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "containers": [ { "image": "imageValue" } ], "annotations": { "annotationsKey": "annotationsValue" }, "namespace": "namespaceValue" }, "status": { "allowed": true, "reason": "reasonValue", "auditAnnotations": { "auditAnnotationsKey": "auditAnnotationsValue" } } }golang-k8s-api-0.29.0/testdata/HEAD/imagepolicy.k8s.io.v1alpha1.ImageReview.pb000066400000000000000000000010351453636404600264250ustar00rootroot00000000000000k8s * imagepolicy.k8s.io/v1alpha1 ImageReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueB imageValue" annotationsKeyannotationsValuenamespaceValue= reasonValue, auditAnnotationsKeyauditAnnotationsValue"golang-k8s-api-0.29.0/testdata/HEAD/imagepolicy.k8s.io.v1alpha1.ImageReview.yaml000066400000000000000000000021211453636404600267630ustar00rootroot00000000000000apiVersion: imagepolicy.k8s.io/v1alpha1 kind: ImageReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: annotations: annotationsKey: annotationsValue containers: - image: imageValue namespace: namespaceValue status: allowed: true auditAnnotations: auditAnnotationsKey: auditAnnotationsValue reason: reasonValue golang-k8s-api-0.29.0/testdata/HEAD/internal.apiserver.k8s.io.v1alpha1.StorageVersion.json000066400000000000000000000034431453636404600310610ustar00rootroot00000000000000{ "kind": "StorageVersion", "apiVersion": "internal.apiserver.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": {}, "status": { "storageVersions": [ { "apiServerID": "apiServerIDValue", "encodingVersion": "encodingVersionValue", "decodableVersions": [ "decodableVersionsValue" ], "servedVersions": [ "servedVersionsValue" ] } ], "commonEncodingVersion": "commonEncodingVersionValue", "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/internal.apiserver.k8s.io.v1alpha1.StorageVersion.pb000066400000000000000000000011351453636404600305050ustar00rootroot00000000000000k8s 4 "internal.apiserver.k8s.io/v1alpha1StorageVersion  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue U apiServerIDValueencodingVersionValuedecodableVersionsValue"servedVersionsValuecommonEncodingVersionValue? typeValue statusValue"* reasonValue2 messageValue"golang-k8s-api-0.29.0/testdata/HEAD/internal.apiserver.k8s.io.v1alpha1.StorageVersion.yaml000066400000000000000000000024531453636404600310520ustar00rootroot00000000000000apiVersion: internal.apiserver.k8s.io/v1alpha1 kind: StorageVersion metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: {} status: commonEncodingVersion: commonEncodingVersionValue conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue storageVersions: - apiServerID: apiServerIDValue decodableVersions: - decodableVersionsValue encodingVersion: encodingVersionValue servedVersions: - servedVersionsValue golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1.Ingress.json000066400000000000000000000051121453636404600250010ustar00rootroot00000000000000{ "kind": "Ingress", "apiVersion": "networking.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "ingressClassName": "ingressClassNameValue", "defaultBackend": { "service": { "name": "nameValue", "port": { "name": "nameValue", "number": 2 } }, "resource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }, "tls": [ { "hosts": [ "hostsValue" ], "secretName": "secretNameValue" } ], "rules": [ { "host": "hostValue", "http": { "paths": [ { "path": "pathValue", "pathType": "pathTypeValue", "backend": { "service": { "name": "nameValue", "port": { "name": "nameValue", "number": 2 } }, "resource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } } } ] } } ] }, "status": { "loadBalancer": { "ingress": [ { "ip": "ipValue", "hostname": "hostnameValue", "ports": [ { "port": 1, "protocol": "protocolValue", "error": "errorValue" } ] } ] } } }golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1.Ingress.pb000066400000000000000000000012741453636404600244360ustar00rootroot00000000000000k8s  networking.k8s.io/v1Ingress  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue C% apiGroupValue kindValue nameValue" nameValue nameValue hostsValuesecretNameValuep hostValuec a _ pathValueC% apiGroupValue kindValue nameValue" nameValue nameValue pathTypeValue"ingressClassNameValue; 9 7 ipValue hostnameValue" protocolValue errorValue"golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1.Ingress.yaml000066400000000000000000000032411453636404600247730ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: defaultBackend: resource: apiGroup: apiGroupValue kind: kindValue name: nameValue service: name: nameValue port: name: nameValue number: 2 ingressClassName: ingressClassNameValue rules: - host: hostValue http: paths: - backend: resource: apiGroup: apiGroupValue kind: kindValue name: nameValue service: name: nameValue port: name: nameValue number: 2 path: pathValue pathType: pathTypeValue tls: - hosts: - hostsValue secretName: secretNameValue status: loadBalancer: ingress: - hostname: hostnameValue ip: ipValue ports: - error: errorValue port: 1 protocol: protocolValue golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1.IngressClass.json000066400000000000000000000025761453636404600260020ustar00rootroot00000000000000{ "kind": "IngressClass", "apiVersion": "networking.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "controller": "controllerValue", "parameters": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "scope": "scopeValue", "namespace": "namespaceValue" } } }golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1.IngressClass.pb000066400000000000000000000007521453636404600254240ustar00rootroot00000000000000k8s $ networking.k8s.io/v1 IngressClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueT controllerValueA apiGroupValue kindValue nameValue" scopeValue*namespaceValue"golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1.IngressClass.yaml000066400000000000000000000020121453636404600257540ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1 kind: IngressClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: controller: controllerValue parameters: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue scope: scopeValue golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1.NetworkPolicy.json000066400000000000000000000075261453636404600262130ustar00rootroot00000000000000{ "kind": "NetworkPolicy", "apiVersion": "networking.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ingress": [ { "ports": [ { "protocol": "protocolValue", "port": "portValue", "endPort": 3 } ], "from": [ { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ipBlock": { "cidr": "cidrValue", "except": [ "exceptValue" ] } } ] } ], "egress": [ { "ports": [ { "protocol": "protocolValue", "port": "portValue", "endPort": 3 } ], "to": [ { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ipBlock": { "cidr": "cidrValue", "except": [ "exceptValue" ] } } ] } ], "policyTypes": [ "policyTypesValue" ] } }golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1.NetworkPolicy.pb000066400000000000000000000016701453636404600256350ustar00rootroot00000000000000k8s % networking.k8s.io/v1 NetworkPolicy  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue " protocolValue portValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue cidrValue exceptValue " protocolValue portValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue cidrValue exceptValue"policyTypesValue"golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1.NetworkPolicy.yaml000066400000000000000000000043551453636404600262010ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: egress: - ports: - endPort: 3 port: portValue protocol: protocolValue to: - ipBlock: cidr: cidrValue except: - exceptValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue ingress: - from: - ipBlock: cidr: cidrValue except: - exceptValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue ports: - endPort: 3 port: portValue protocol: protocolValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue policyTypes: - policyTypesValue golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1alpha1.IPAddress.json000066400000000000000000000025001453636404600262720ustar00rootroot00000000000000{ "kind": "IPAddress", "apiVersion": "networking.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parentRef": { "group": "groupValue", "resource": "resourceValue", "namespace": "namespaceValue", "name": "nameValue" } } }golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1alpha1.IPAddress.pb000066400000000000000000000007211453636404600257250ustar00rootroot00000000000000k8s ' networking.k8s.io/v1alpha1 IPAddress  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue8 6 groupValue resourceValuenamespaceValue" nameValue"golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1alpha1.IPAddress.yaml000066400000000000000000000017321453636404600262710ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1alpha1 kind: IPAddress metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: parentRef: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1alpha1.ServiceCIDR.json000066400000000000000000000027471453636404600265330ustar00rootroot00000000000000{ "kind": "ServiceCIDR", "apiVersion": "networking.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "cidrs": [ "cidrsValue" ] }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1alpha1.ServiceCIDR.pb000066400000000000000000000007521453636404600261550ustar00rootroot00000000000000k8s ) networking.k8s.io/v1alpha1 ServiceCIDR  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue cidrsValueA ? typeValue statusValue"* reasonValue2 messageValue"golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1alpha1.ServiceCIDR.yaml000066400000000000000000000021001453636404600265030ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1alpha1 kind: ServiceCIDR metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: cidrs: - cidrsValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1beta1.Ingress.json000066400000000000000000000046461453636404600257310ustar00rootroot00000000000000{ "kind": "Ingress", "apiVersion": "networking.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "ingressClassName": "ingressClassNameValue", "backend": { "serviceName": "serviceNameValue", "servicePort": "servicePortValue", "resource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }, "tls": [ { "hosts": [ "hostsValue" ], "secretName": "secretNameValue" } ], "rules": [ { "host": "hostValue", "http": { "paths": [ { "path": "pathValue", "pathType": "pathTypeValue", "backend": { "serviceName": "serviceNameValue", "servicePort": "servicePortValue", "resource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } } } ] } } ] }, "status": { "loadBalancer": { "ingress": [ { "ip": "ipValue", "hostname": "hostnameValue", "ports": [ { "port": 1, "protocol": "protocolValue", "error": "errorValue" } ] } ] } } }golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1beta1.Ingress.pb000066400000000000000000000013351453636404600253510ustar00rootroot00000000000000k8s $ networking.k8s.io/v1beta1Ingress  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue Q serviceNameValueservicePortValue% apiGroupValue kindValue nameValue hostsValuesecretNameValue~ hostValueq o m pathValueQ serviceNameValueservicePortValue% apiGroupValue kindValue nameValue pathTypeValue"ingressClassNameValue; 9 7 ipValue hostnameValue" protocolValue errorValue"golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1beta1.Ingress.yaml000066400000000000000000000031431453636404600257110ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: backend: resource: apiGroup: apiGroupValue kind: kindValue name: nameValue serviceName: serviceNameValue servicePort: servicePortValue ingressClassName: ingressClassNameValue rules: - host: hostValue http: paths: - backend: resource: apiGroup: apiGroupValue kind: kindValue name: nameValue serviceName: serviceNameValue servicePort: servicePortValue path: pathValue pathType: pathTypeValue tls: - hosts: - hostsValue secretName: secretNameValue status: loadBalancer: ingress: - hostname: hostnameValue ip: ipValue ports: - error: errorValue port: 1 protocol: protocolValue golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1beta1.IngressClass.json000066400000000000000000000026031453636404600267060ustar00rootroot00000000000000{ "kind": "IngressClass", "apiVersion": "networking.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "controller": "controllerValue", "parameters": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "scope": "scopeValue", "namespace": "namespaceValue" } } }golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1beta1.IngressClass.pb000066400000000000000000000007571453636404600263460ustar00rootroot00000000000000k8s ) networking.k8s.io/v1beta1 IngressClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueT controllerValueA apiGroupValue kindValue nameValue" scopeValue*namespaceValue"golang-k8s-api-0.29.0/testdata/HEAD/networking.k8s.io.v1beta1.IngressClass.yaml000066400000000000000000000020171453636404600266760ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1beta1 kind: IngressClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: controller: controllerValue parameters: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue scope: scopeValue golang-k8s-api-0.29.0/testdata/HEAD/node.k8s.io.v1.RuntimeClass.json000066400000000000000000000030341453636404600245370ustar00rootroot00000000000000{ "kind": "RuntimeClass", "apiVersion": "node.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "handler": "handlerValue", "overhead": { "podFixed": { "podFixedKey": "0" } }, "scheduling": { "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ] } }golang-k8s-api-0.29.0/testdata/HEAD/node.k8s.io.v1.RuntimeClass.pb000066400000000000000000000010201453636404600241600ustar00rootroot00000000000000k8s  node.k8s.io/v1 RuntimeClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue handlerValue  podFixedKey 0"\ $ nodeSelectorKeynodeSelectorValue4 keyValue operatorValue valueValue" effectValue("golang-k8s-api-0.29.0/testdata/HEAD/node.k8s.io.v1.RuntimeClass.yaml000066400000000000000000000021421453636404600245270ustar00rootroot00000000000000apiVersion: node.k8s.io/v1 handler: handlerValue kind: RuntimeClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue overhead: podFixed: podFixedKey: "0" scheduling: nodeSelector: nodeSelectorKey: nodeSelectorValue tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue golang-k8s-api-0.29.0/testdata/HEAD/node.k8s.io.v1alpha1.RuntimeClass.json000066400000000000000000000031501453636404600256250ustar00rootroot00000000000000{ "kind": "RuntimeClass", "apiVersion": "node.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "runtimeHandler": "runtimeHandlerValue", "overhead": { "podFixed": { "podFixedKey": "0" } }, "scheduling": { "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ] } } }golang-k8s-api-0.29.0/testdata/HEAD/node.k8s.io.v1alpha1.RuntimeClass.pb000066400000000000000000000010401453636404600252510ustar00rootroot00000000000000k8s $ node.k8s.io/v1alpha1 RuntimeClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue runtimeHandlerValue  podFixedKey 0\ $ nodeSelectorKeynodeSelectorValue4 keyValue operatorValue valueValue" effectValue("golang-k8s-api-0.29.0/testdata/HEAD/node.k8s.io.v1alpha1.RuntimeClass.yaml000066400000000000000000000022261453636404600256210ustar00rootroot00000000000000apiVersion: node.k8s.io/v1alpha1 kind: RuntimeClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: overhead: podFixed: podFixedKey: "0" runtimeHandler: runtimeHandlerValue scheduling: nodeSelector: nodeSelectorKey: nodeSelectorValue tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue golang-k8s-api-0.29.0/testdata/HEAD/node.k8s.io.v1beta1.RuntimeClass.json000066400000000000000000000030411453636404600254520ustar00rootroot00000000000000{ "kind": "RuntimeClass", "apiVersion": "node.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "handler": "handlerValue", "overhead": { "podFixed": { "podFixedKey": "0" } }, "scheduling": { "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ] } }golang-k8s-api-0.29.0/testdata/HEAD/node.k8s.io.v1beta1.RuntimeClass.pb000066400000000000000000000010251453636404600251020ustar00rootroot00000000000000k8s # node.k8s.io/v1beta1 RuntimeClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue handlerValue  podFixedKey 0"\ $ nodeSelectorKeynodeSelectorValue4 keyValue operatorValue valueValue" effectValue("golang-k8s-api-0.29.0/testdata/HEAD/node.k8s.io.v1beta1.RuntimeClass.yaml000066400000000000000000000021471453636404600254510ustar00rootroot00000000000000apiVersion: node.k8s.io/v1beta1 handler: handlerValue kind: RuntimeClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue overhead: podFixed: podFixedKey: "0" scheduling: nodeSelector: nodeSelectorKey: nodeSelectorValue tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue golang-k8s-api-0.29.0/testdata/HEAD/policy.v1.Eviction.json000066400000000000000000000026361453636404600231550ustar00rootroot00000000000000{ "kind": "Eviction", "apiVersion": "policy/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "deleteOptions": { "gracePeriodSeconds": 1, "preconditions": { "uid": "uidValue", "resourceVersion": "resourceVersionValue" }, "orphanDependents": true, "propagationPolicy": "propagationPolicyValue", "dryRun": [ "dryRunValue" ] } }golang-k8s-api-0.29.0/testdata/HEAD/policy.v1.Eviction.pb000066400000000000000000000007221453636404600225770ustar00rootroot00000000000000k8s  policy/v1Eviction  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK uidValueresourceVersionValue"propagationPolicyValue* dryRunValue"golang-k8s-api-0.29.0/testdata/HEAD/policy.v1.Eviction.yaml000066400000000000000000000020441453636404600231370ustar00rootroot00000000000000apiVersion: policy/v1 deleteOptions: dryRun: - dryRunValue gracePeriodSeconds: 1 orphanDependents: true preconditions: resourceVersion: resourceVersionValue uid: uidValue propagationPolicy: propagationPolicyValue kind: Eviction metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue golang-k8s-api-0.29.0/testdata/HEAD/policy.v1.PodDisruptionBudget.json000066400000000000000000000040561453636404600253310ustar00rootroot00000000000000{ "kind": "PodDisruptionBudget", "apiVersion": "policy/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "minAvailable": "minAvailableValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "maxUnavailable": "maxUnavailableValue", "unhealthyPodEvictionPolicy": "unhealthyPodEvictionPolicyValue" }, "status": { "observedGeneration": 1, "disruptedPods": { "disruptedPodsKey": null }, "disruptionsAllowed": 3, "currentHealthy": 4, "desiredHealthy": 5, "expectedPods": 6, "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/policy.v1.PodDisruptionBudget.pb000066400000000000000000000012311453636404600247510ustar00rootroot00000000000000k8s policy/v1PodDisruptionBudget  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue minAvailableValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuemaxUnavailableValue"unhealthyPodEvictionPolicyValuea disruptedPodsKey (0:? typeValue statusValue"* reasonValue2 messageValue"golang-k8s-api-0.29.0/testdata/HEAD/policy.v1.PodDisruptionBudget.yaml000066400000000000000000000027511453636404600253220ustar00rootroot00000000000000apiVersion: policy/v1 kind: PodDisruptionBudget metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: maxUnavailable: maxUnavailableValue minAvailable: minAvailableValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicyValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue currentHealthy: 4 desiredHealthy: 5 disruptedPods: disruptedPodsKey: null disruptionsAllowed: 3 expectedPods: 6 observedGeneration: 1 golang-k8s-api-0.29.0/testdata/HEAD/policy.v1beta1.Eviction.json000066400000000000000000000026431453636404600240700ustar00rootroot00000000000000{ "kind": "Eviction", "apiVersion": "policy/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "deleteOptions": { "gracePeriodSeconds": 1, "preconditions": { "uid": "uidValue", "resourceVersion": "resourceVersionValue" }, "orphanDependents": true, "propagationPolicy": "propagationPolicyValue", "dryRun": [ "dryRunValue" ] } }golang-k8s-api-0.29.0/testdata/HEAD/policy.v1beta1.Eviction.pb000066400000000000000000000007271453636404600235210ustar00rootroot00000000000000k8s  policy/v1beta1Eviction  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK uidValueresourceVersionValue"propagationPolicyValue* dryRunValue"golang-k8s-api-0.29.0/testdata/HEAD/policy.v1beta1.Eviction.yaml000066400000000000000000000020511453636404600240520ustar00rootroot00000000000000apiVersion: policy/v1beta1 deleteOptions: dryRun: - dryRunValue gracePeriodSeconds: 1 orphanDependents: true preconditions: resourceVersion: resourceVersionValue uid: uidValue propagationPolicy: propagationPolicyValue kind: Eviction metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue golang-k8s-api-0.29.0/testdata/HEAD/policy.v1beta1.PodDisruptionBudget.json000066400000000000000000000040631453636404600262440ustar00rootroot00000000000000{ "kind": "PodDisruptionBudget", "apiVersion": "policy/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "minAvailable": "minAvailableValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "maxUnavailable": "maxUnavailableValue", "unhealthyPodEvictionPolicy": "unhealthyPodEvictionPolicyValue" }, "status": { "observedGeneration": 1, "disruptedPods": { "disruptedPodsKey": null }, "disruptionsAllowed": 3, "currentHealthy": 4, "desiredHealthy": 5, "expectedPods": 6, "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/HEAD/policy.v1beta1.PodDisruptionBudget.pb000066400000000000000000000012361453636404600256730ustar00rootroot00000000000000k8s % policy/v1beta1PodDisruptionBudget  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue minAvailableValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuemaxUnavailableValue"unhealthyPodEvictionPolicyValuea disruptedPodsKey (0:? typeValue statusValue"* reasonValue2 messageValue"golang-k8s-api-0.29.0/testdata/HEAD/policy.v1beta1.PodDisruptionBudget.yaml000066400000000000000000000027561453636404600262440ustar00rootroot00000000000000apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: maxUnavailable: maxUnavailableValue minAvailable: minAvailableValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicyValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue currentHealthy: 4 desiredHealthy: 5 disruptedPods: disruptedPodsKey: null disruptionsAllowed: 3 expectedPods: 6 observedGeneration: 1 golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRole.json000066400000000000000000000035041453636404600272540ustar00rootroot00000000000000{ "kind": "ClusterRole", "apiVersion": "rbac.authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "rules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ], "aggregationRule": { "clusterRoleSelectors": [ { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } }golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRole.pb000066400000000000000000000011031453636404600266750ustar00rootroot00000000000000k8s + rbac.authorization.k8s.io/v1 ClusterRole  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueV verbsValueapiGroupsValueresourcesValue"resourceNamesValue*nonResourceURLsValueN L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue"golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRole.yaml000066400000000000000000000023451453636404600272470ustar00rootroot00000000000000aggregationRule: clusterRoleSelectors: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue rules: - apiGroups: - apiGroupsValue nonResourceURLs: - nonResourceURLsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRoleBinding.json000066400000000000000000000026461453636404600305550ustar00rootroot00000000000000{ "kind": "ClusterRoleBinding", "apiVersion": "rbac.authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subjects": [ { "kind": "kindValue", "apiGroup": "apiGroupValue", "name": "nameValue", "namespace": "namespaceValue" } ], "roleRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRoleBinding.pb000066400000000000000000000010001453636404600301640ustar00rootroot00000000000000k8s 2 rbac.authorization.k8s.io/v1ClusterRoleBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 kindValue apiGroupValue nameValue"namespaceValue% apiGroupValue kindValue nameValue"golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRoleBinding.yaml000066400000000000000000000020311453636404600305320ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue roleRef: apiGroup: apiGroupValue kind: kindValue name: nameValue subjects: - apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1.Role.json000066400000000000000000000027201453636404600257110ustar00rootroot00000000000000{ "kind": "Role", "apiVersion": "rbac.authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "rules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] }golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1.Role.pb000066400000000000000000000007541453636404600253460ustar00rootroot00000000000000k8s $ rbac.authorization.k8s.io/v1Role  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueV verbsValueapiGroupsValueresourcesValue"resourceNamesValue*nonResourceURLsValue"golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1.Role.yaml000066400000000000000000000020231453636404600256760ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue rules: - apiGroups: - apiGroupsValue nonResourceURLs: - nonResourceURLsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1.RoleBinding.json000066400000000000000000000026371453636404600272130ustar00rootroot00000000000000{ "kind": "RoleBinding", "apiVersion": "rbac.authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subjects": [ { "kind": "kindValue", "apiGroup": "apiGroupValue", "name": "nameValue", "namespace": "namespaceValue" } ], "roleRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1.RoleBinding.pb000066400000000000000000000007711453636404600266400ustar00rootroot00000000000000k8s + rbac.authorization.k8s.io/v1 RoleBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 kindValue apiGroupValue nameValue"namespaceValue% apiGroupValue kindValue nameValue"golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1.RoleBinding.yaml000066400000000000000000000020221453636404600271700ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue roleRef: apiGroup: apiGroupValue kind: kindValue name: nameValue subjects: - apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRole.json000066400000000000000000000035121453636404600303420ustar00rootroot00000000000000{ "kind": "ClusterRole", "apiVersion": "rbac.authorization.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "rules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ], "aggregationRule": { "clusterRoleSelectors": [ { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } }golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRole.pb000066400000000000000000000011111453636404600277630ustar00rootroot00000000000000k8s 1 "rbac.authorization.k8s.io/v1alpha1 ClusterRole  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueV verbsValueapiGroupsValue"resourcesValue*resourceNamesValue2nonResourceURLsValueN L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue"golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRole.yaml000066400000000000000000000023531453636404600303350ustar00rootroot00000000000000aggregationRule: clusterRoleSelectors: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue apiVersion: rbac.authorization.k8s.io/v1alpha1 kind: ClusterRole metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue rules: - apiGroups: - apiGroupsValue nonResourceURLs: - nonResourceURLsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.json000066400000000000000000000026601453636404600316400ustar00rootroot00000000000000{ "kind": "ClusterRoleBinding", "apiVersion": "rbac.authorization.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subjects": [ { "kind": "kindValue", "apiVersion": "apiVersionValue", "name": "nameValue", "namespace": "namespaceValue" } ], "roleRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.pb000066400000000000000000000010101453636404600312540ustar00rootroot00000000000000k8s 8 "rbac.authorization.k8s.io/v1alpha1ClusterRoleBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue7 kindValueapiVersionValue nameValue"namespaceValue% apiGroupValue kindValue nameValue"golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.yaml000066400000000000000000000020431453636404600316240ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1alpha1 kind: ClusterRoleBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue roleRef: apiGroup: apiGroupValue kind: kindValue name: nameValue subjects: - apiVersion: apiVersionValue kind: kindValue name: nameValue namespace: namespaceValue golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.Role.json000066400000000000000000000027261453636404600270060ustar00rootroot00000000000000{ "kind": "Role", "apiVersion": "rbac.authorization.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "rules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] }golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.Role.pb000066400000000000000000000007621453636404600264340ustar00rootroot00000000000000k8s * "rbac.authorization.k8s.io/v1alpha1Role  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueV verbsValueapiGroupsValue"resourcesValue*resourceNamesValue2nonResourceURLsValue"golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.Role.yaml000066400000000000000000000020311453636404600267640ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1alpha1 kind: Role metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue rules: - apiGroups: - apiGroupsValue nonResourceURLs: - nonResourceURLsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.RoleBinding.json000066400000000000000000000026511453636404600302760ustar00rootroot00000000000000{ "kind": "RoleBinding", "apiVersion": "rbac.authorization.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subjects": [ { "kind": "kindValue", "apiVersion": "apiVersionValue", "name": "nameValue", "namespace": "namespaceValue" } ], "roleRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.RoleBinding.pb000066400000000000000000000010011453636404600277120ustar00rootroot00000000000000k8s 1 "rbac.authorization.k8s.io/v1alpha1 RoleBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue7 kindValueapiVersionValue nameValue"namespaceValue% apiGroupValue kindValue nameValue"golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.RoleBinding.yaml000066400000000000000000000020341453636404600302620ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1alpha1 kind: RoleBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue roleRef: apiGroup: apiGroupValue kind: kindValue name: nameValue subjects: - apiVersion: apiVersionValue kind: kindValue name: nameValue namespace: namespaceValue golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.ClusterRole.json000066400000000000000000000035111453636404600301670ustar00rootroot00000000000000{ "kind": "ClusterRole", "apiVersion": "rbac.authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "rules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ], "aggregationRule": { "clusterRoleSelectors": [ { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } }golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.ClusterRole.pb000066400000000000000000000011101453636404600276100ustar00rootroot00000000000000k8s 0 !rbac.authorization.k8s.io/v1beta1 ClusterRole  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueV verbsValueapiGroupsValueresourcesValue"resourceNamesValue*nonResourceURLsValueN L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue"golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.ClusterRole.yaml000066400000000000000000000023521453636404600301620ustar00rootroot00000000000000aggregationRule: clusterRoleSelectors: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRole metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue rules: - apiGroups: - apiGroupsValue nonResourceURLs: - nonResourceURLsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.json000066400000000000000000000026531453636404600314700ustar00rootroot00000000000000{ "kind": "ClusterRoleBinding", "apiVersion": "rbac.authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subjects": [ { "kind": "kindValue", "apiGroup": "apiGroupValue", "name": "nameValue", "namespace": "namespaceValue" } ], "roleRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.pb000066400000000000000000000010051453636404600311060ustar00rootroot00000000000000k8s 7 !rbac.authorization.k8s.io/v1beta1ClusterRoleBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 kindValue apiGroupValue nameValue"namespaceValue% apiGroupValue kindValue nameValue"golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.yaml000066400000000000000000000020361453636404600314540ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRoleBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue roleRef: apiGroup: apiGroupValue kind: kindValue name: nameValue subjects: - apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.Role.json000066400000000000000000000027251453636404600266330ustar00rootroot00000000000000{ "kind": "Role", "apiVersion": "rbac.authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "rules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] }golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.Role.pb000066400000000000000000000007611453636404600262610ustar00rootroot00000000000000k8s ) !rbac.authorization.k8s.io/v1beta1Role  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueV verbsValueapiGroupsValueresourcesValue"resourceNamesValue*nonResourceURLsValue"golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.Role.yaml000066400000000000000000000020301453636404600266110ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1beta1 kind: Role metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue rules: - apiGroups: - apiGroupsValue nonResourceURLs: - nonResourceURLsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.RoleBinding.json000066400000000000000000000026441453636404600301260ustar00rootroot00000000000000{ "kind": "RoleBinding", "apiVersion": "rbac.authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subjects": [ { "kind": "kindValue", "apiGroup": "apiGroupValue", "name": "nameValue", "namespace": "namespaceValue" } ], "roleRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.RoleBinding.pb000066400000000000000000000007761453636404600275620ustar00rootroot00000000000000k8s 0 !rbac.authorization.k8s.io/v1beta1 RoleBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 kindValue apiGroupValue nameValue"namespaceValue% apiGroupValue kindValue nameValue"golang-k8s-api-0.29.0/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.RoleBinding.yaml000066400000000000000000000020271453636404600301120ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1beta1 kind: RoleBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue roleRef: apiGroup: apiGroupValue kind: kindValue name: nameValue subjects: - apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue golang-k8s-api-0.29.0/testdata/HEAD/resource.k8s.io.v1alpha2.PodSchedulingContext.json000066400000000000000000000026721453636404600302240ustar00rootroot00000000000000{ "kind": "PodSchedulingContext", "apiVersion": "resource.k8s.io/v1alpha2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "selectedNode": "selectedNodeValue", "potentialNodes": [ "potentialNodesValue" ] }, "status": { "resourceClaims": [ { "name": "nameValue", "unsuitableNodes": [ "unsuitableNodesValue" ] } ] } }golang-k8s-api-0.29.0/testdata/HEAD/resource.k8s.io.v1alpha2.PodSchedulingContext.pb000066400000000000000000000007571453636404600276560ustar00rootroot00000000000000k8s 0 resource.k8s.io/v1alpha2PodSchedulingContext  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue( selectedNodeValuepotentialNodesValue# ! nameValueunsuitableNodesValue"golang-k8s-api-0.29.0/testdata/HEAD/resource.k8s.io.v1alpha2.PodSchedulingContext.yaml000066400000000000000000000020341453636404600302050ustar00rootroot00000000000000apiVersion: resource.k8s.io/v1alpha2 kind: PodSchedulingContext metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: potentialNodes: - potentialNodesValue selectedNode: selectedNodeValue status: resourceClaims: - name: nameValue unsuitableNodes: - unsuitableNodesValue golang-k8s-api-0.29.0/testdata/HEAD/resource.k8s.io.v1alpha2.ResourceClaim.json000066400000000000000000000045701453636404600266630ustar00rootroot00000000000000{ "kind": "ResourceClaim", "apiVersion": "resource.k8s.io/v1alpha2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceClassName": "resourceClassNameValue", "parametersRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "allocationMode": "allocationModeValue" }, "status": { "driverName": "driverNameValue", "allocation": { "resourceHandles": [ { "driverName": "driverNameValue", "data": "dataValue" } ], "availableOnNodes": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "shareable": true }, "reservedFor": [ { "apiGroup": "apiGroupValue", "resource": "resourceValue", "name": "nameValue", "uid": "uidValue" } ], "deallocationRequested": true } }golang-k8s-api-0.29.0/testdata/HEAD/resource.k8s.io.v1alpha2.ResourceClaim.pb000066400000000000000000000012601453636404600263040ustar00rootroot00000000000000k8s ) resource.k8s.io/v1alpha2 ResourceClaim  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueT resourceClassNameValue% apiGroupValue kindValue nameValueallocationModeValue driverNameValuet  driverNameValue dataValueR P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue3 apiGroupValue resourceValue" nameValue*uidValue "golang-k8s-api-0.29.0/testdata/HEAD/resource.k8s.io.v1alpha2.ResourceClaim.yaml000066400000000000000000000031301453636404600266430ustar00rootroot00000000000000apiVersion: resource.k8s.io/v1alpha2 kind: ResourceClaim metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: allocationMode: allocationModeValue parametersRef: apiGroup: apiGroupValue kind: kindValue name: nameValue resourceClassName: resourceClassNameValue status: allocation: availableOnNodes: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue resourceHandles: - data: dataValue driverName: driverNameValue shareable: true deallocationRequested: true driverName: driverNameValue reservedFor: - apiGroup: apiGroupValue name: nameValue resource: resourceValue uid: uidValue golang-k8s-api-0.29.0/testdata/HEAD/resource.k8s.io.v1alpha2.ResourceClaimTemplate.json000066400000000000000000000051151453636404600303530ustar00rootroot00000000000000{ "kind": "ResourceClaimTemplate", "apiVersion": "resource.k8s.io/v1alpha2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceClassName": "resourceClassNameValue", "parametersRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "allocationMode": "allocationModeValue" } } }golang-k8s-api-0.29.0/testdata/HEAD/resource.k8s.io.v1alpha2.ResourceClaimTemplate.pb000066400000000000000000000015351453636404600300050ustar00rootroot00000000000000k8s 1 resource.k8s.io/v1alpha2ResourceClaimTemplate  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueT resourceClassNameValue% apiGroupValue kindValue nameValueallocationModeValue"golang-k8s-api-0.29.0/testdata/HEAD/resource.k8s.io.v1alpha2.ResourceClaimTemplate.yaml000066400000000000000000000036321453636404600303460ustar00rootroot00000000000000apiVersion: resource.k8s.io/v1alpha2 kind: ResourceClaimTemplate metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: allocationMode: allocationModeValue parametersRef: apiGroup: apiGroupValue kind: kindValue name: nameValue resourceClassName: resourceClassNameValue golang-k8s-api-0.29.0/testdata/HEAD/resource.k8s.io.v1alpha2.ResourceClass.json000066400000000000000000000034461453636404600267040ustar00rootroot00000000000000{ "kind": "ResourceClass", "apiVersion": "resource.k8s.io/v1alpha2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "driverName": "driverNameValue", "parametersRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "suitableNodes": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } }golang-k8s-api-0.29.0/testdata/HEAD/resource.k8s.io.v1alpha2.ResourceClass.pb000066400000000000000000000010651453636404600263270ustar00rootroot00000000000000k8s ) resource.k8s.io/v1alpha2 ResourceClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValuedriverNameValue5 apiGroupValue kindValue nameValue"namespaceValue"R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue"golang-k8s-api-0.29.0/testdata/HEAD/resource.k8s.io.v1alpha2.ResourceClass.yaml000066400000000000000000000023351453636404600266710ustar00rootroot00000000000000apiVersion: resource.k8s.io/v1alpha2 driverName: driverNameValue kind: ResourceClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue parametersRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue suitableNodes: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue golang-k8s-api-0.29.0/testdata/HEAD/resource.k8s.io.v1alpha2.Status.json000066400000000000000000000011401453636404600253770ustar00rootroot00000000000000{ "kind": "Status", "apiVersion": "resource.k8s.io/v1alpha2", "metadata": { "selfLink": "selfLinkValue", "resourceVersion": "resourceVersionValue", "continue": "continueValue", "remainingItemCount": 4 }, "status": "statusValue", "message": "messageValue", "reason": "reasonValue", "details": { "name": "nameValue", "group": "groupValue", "kind": "kindValue", "uid": "uidValue", "causes": [ { "reason": "reasonValue", "message": "messageValue", "field": "fieldValue" } ], "retryAfterSeconds": 5 }, "code": 6 }golang-k8s-api-0.29.0/testdata/HEAD/resource.k8s.io.v1alpha2.Status.pb000066400000000000000000000003521453636404600250330ustar00rootroot00000000000000k8s " resource.k8s.io/v1alpha2Status 6 selfLinkValueresourceVersionValue continueValue  statusValue messageValue" reasonValue*W nameValue groupValue kindValue"' reasonValue messageValue fieldValue(2uidValue0"golang-k8s-api-0.29.0/testdata/HEAD/resource.k8s.io.v1alpha2.Status.yaml000066400000000000000000000006601453636404600253760ustar00rootroot00000000000000apiVersion: resource.k8s.io/v1alpha2 code: 6 details: causes: - field: fieldValue message: messageValue reason: reasonValue group: groupValue kind: kindValue name: nameValue retryAfterSeconds: 5 uid: uidValue kind: Status message: messageValue metadata: continue: continueValue remainingItemCount: 4 resourceVersion: resourceVersionValue selfLink: selfLinkValue reason: reasonValue status: statusValue golang-k8s-api-0.29.0/testdata/HEAD/scheduling.k8s.io.v1.PriorityClass.json000066400000000000000000000024201453636404600261330ustar00rootroot00000000000000{ "kind": "PriorityClass", "apiVersion": "scheduling.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "value": 2, "globalDefault": true, "description": "descriptionValue", "preemptionPolicy": "preemptionPolicyValue" }golang-k8s-api-0.29.0/testdata/HEAD/scheduling.k8s.io.v1.PriorityClass.pb000066400000000000000000000007021453636404600255640ustar00rootroot00000000000000k8s % scheduling.k8s.io/v1 PriorityClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue"descriptionValue*preemptionPolicyValue"golang-k8s-api-0.29.0/testdata/HEAD/scheduling.k8s.io.v1.PriorityClass.yaml000066400000000000000000000017041453636404600261300ustar00rootroot00000000000000apiVersion: scheduling.k8s.io/v1 description: descriptionValue globalDefault: true kind: PriorityClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue preemptionPolicy: preemptionPolicyValue value: 2 golang-k8s-api-0.29.0/testdata/HEAD/scheduling.k8s.io.v1alpha1.PriorityClass.json000066400000000000000000000024261453636404600272300ustar00rootroot00000000000000{ "kind": "PriorityClass", "apiVersion": "scheduling.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "value": 2, "globalDefault": true, "description": "descriptionValue", "preemptionPolicy": "preemptionPolicyValue" }golang-k8s-api-0.29.0/testdata/HEAD/scheduling.k8s.io.v1alpha1.PriorityClass.pb000066400000000000000000000007101453636404600266520ustar00rootroot00000000000000k8s + scheduling.k8s.io/v1alpha1 PriorityClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue"descriptionValue*preemptionPolicyValue"golang-k8s-api-0.29.0/testdata/HEAD/scheduling.k8s.io.v1alpha1.PriorityClass.yaml000066400000000000000000000017121453636404600272160ustar00rootroot00000000000000apiVersion: scheduling.k8s.io/v1alpha1 description: descriptionValue globalDefault: true kind: PriorityClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue preemptionPolicy: preemptionPolicyValue value: 2 golang-k8s-api-0.29.0/testdata/HEAD/scheduling.k8s.io.v1beta1.PriorityClass.json000066400000000000000000000024251453636404600270550ustar00rootroot00000000000000{ "kind": "PriorityClass", "apiVersion": "scheduling.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "value": 2, "globalDefault": true, "description": "descriptionValue", "preemptionPolicy": "preemptionPolicyValue" }golang-k8s-api-0.29.0/testdata/HEAD/scheduling.k8s.io.v1beta1.PriorityClass.pb000066400000000000000000000007071453636404600265060ustar00rootroot00000000000000k8s * scheduling.k8s.io/v1beta1 PriorityClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue"descriptionValue*preemptionPolicyValue"golang-k8s-api-0.29.0/testdata/HEAD/scheduling.k8s.io.v1beta1.PriorityClass.yaml000066400000000000000000000017111453636404600270430ustar00rootroot00000000000000apiVersion: scheduling.k8s.io/v1beta1 description: descriptionValue globalDefault: true kind: PriorityClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue preemptionPolicy: preemptionPolicyValue value: 2 golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1.CSIDriver.json000066400000000000000000000030201453636404600244320ustar00rootroot00000000000000{ "kind": "CSIDriver", "apiVersion": "storage.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "attachRequired": true, "podInfoOnMount": true, "volumeLifecycleModes": [ "volumeLifecycleModesValue" ], "storageCapacity": true, "fsGroupPolicy": "fsGroupPolicyValue", "tokenRequests": [ { "audience": "audienceValue", "expirationSeconds": 2 } ], "requiresRepublish": true, "seLinuxMount": true } }golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1.CSIDriver.pb000066400000000000000000000007341453636404600240730ustar00rootroot00000000000000k8s  storage.k8s.io/v1 CSIDriver  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueLvolumeLifecycleModesValue *fsGroupPolicyValue2 audienceValue8@"golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1.CSIDriver.yaml000066400000000000000000000021651453636404600244340ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1 kind: CSIDriver metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: attachRequired: true fsGroupPolicy: fsGroupPolicyValue podInfoOnMount: true requiresRepublish: true seLinuxMount: true storageCapacity: true tokenRequests: - audience: audienceValue expirationSeconds: 2 volumeLifecycleModes: - volumeLifecycleModesValue golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1.CSINode.json000066400000000000000000000025751453636404600241020ustar00rootroot00000000000000{ "kind": "CSINode", "apiVersion": "storage.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "drivers": [ { "name": "nameValue", "nodeID": "nodeIDValue", "topologyKeys": [ "topologyKeysValue" ], "allocatable": { "count": 1 } } ] } }golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1.CSINode.pb000066400000000000000000000006771453636404600235330ustar00rootroot00000000000000k8s  storage.k8s.io/v1CSINode  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue1 / nameValue nodeIDValuetopologyKeysValue""golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1.CSINode.yaml000066400000000000000000000017371453636404600240720ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1 kind: CSINode metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: drivers: - allocatable: count: 1 name: nameValue nodeID: nodeIDValue topologyKeys: - topologyKeysValue golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1.CSIStorageCapacity.json000066400000000000000000000027731453636404600262770ustar00rootroot00000000000000{ "kind": "CSIStorageCapacity", "apiVersion": "storage.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "nodeTopology": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "storageClassName": "storageClassNameValue", "capacity": "0", "maximumVolumeSize": "0" }golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1.CSIStorageCapacity.pb000066400000000000000000000010061453636404600257130ustar00rootroot00000000000000k8s ' storage.k8s.io/v1CSIStorageCapacity  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuestorageClassNameValue" 0* 0"golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1.CSIStorageCapacity.yaml000066400000000000000000000021221453636404600262540ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1 capacity: "0" kind: CSIStorageCapacity maximumVolumeSize: "0" metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue nodeTopology: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1.StorageClass.json000066400000000000000000000031371453636404600252430ustar00rootroot00000000000000{ "kind": "StorageClass", "apiVersion": "storage.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "provisioner": "provisionerValue", "parameters": { "parametersKey": "parametersValue" }, "reclaimPolicy": "reclaimPolicyValue", "mountOptions": [ "mountOptionsValue" ], "allowVolumeExpansion": true, "volumeBindingMode": "volumeBindingModeValue", "allowedTopologies": [ { "matchLabelExpressions": [ { "key": "keyValue", "values": [ "valuesValue" ] } ] } ] }golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1.StorageClass.pb000066400000000000000000000010411453636404600246630ustar00rootroot00000000000000k8s ! storage.k8s.io/v1 StorageClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueprovisionerValue parametersKeyparametersValue"reclaimPolicyValue*mountOptionsValue0:volumeBindingModeValueB  keyValue valuesValue"golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1.StorageClass.yaml000066400000000000000000000022151453636404600252300ustar00rootroot00000000000000allowVolumeExpansion: true allowedTopologies: - matchLabelExpressions: - key: keyValue values: - valuesValue apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue mountOptions: - mountOptionsValue parameters: parametersKey: parametersValue provisioner: provisionerValue reclaimPolicy: reclaimPolicyValue volumeBindingMode: volumeBindingModeValue golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1.VolumeAttachment.json000066400000000000000000000220341453636404600261260ustar00rootroot00000000000000{ "kind": "VolumeAttachment", "apiVersion": "storage.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "attacher": "attacherValue", "source": { "persistentVolumeName": "persistentVolumeNameValue", "inlineVolumeSpec": { "capacity": { "capacityKey": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "hostPath": { "path": "pathValue", "type": "typeValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true, "endpointsNamespace": "endpointsNamespaceValue" }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "initiatorName": "initiatorNameValue" }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true, "secretNamespace": "secretNamespaceValue" }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "local": { "path": "pathValue", "fsType": "fsTypeValue" }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } }, "csi": { "driver": "driverValue", "volumeHandle": "volumeHandleValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "controllerPublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeStageSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodePublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "controllerExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "accessModes": [ "accessModesValue" ], "claimRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "persistentVolumeReclaimPolicy": "persistentVolumeReclaimPolicyValue", "storageClassName": "storageClassNameValue", "mountOptions": [ "mountOptionsValue" ], "volumeMode": "volumeModeValue", "nodeAffinity": { "required": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } }, "nodeName": "nodeNameValue" }, "status": { "attached": true, "attachmentMetadata": { "attachmentMetadataKey": "attachmentMetadataValue" }, "attachError": { "time": "2001-01-01T01:01:01Z", "message": "messageValue" }, "detachError": { "time": "2001-01-01T01:01:01Z", "message": "messageValue" } } }golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1.VolumeAttachment.pb000066400000000000000000000050531453636404600255600ustar00rootroot00000000000000k8s % storage.k8s.io/v1VolumeAttachment  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue attacherValue persistentVolumeNameValue  capacityKey 0  pdNameValue fsTypeValue  volumeIDValue fsTypeValue  pathValue typeValue"6 endpointsValue pathValue"endpointsNamespaceValue* serverValue pathValue2k monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValuenamespaceValue@: targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValuenamespaceValueXbinitiatorNameValueB; volumeIDValue fsTypeValue" nameValuenamespaceValueJU monitorsValue pathValue userValue"secretFileValue* nameValuenamespaceValue0R. targetWWNsValue fsTypeValue * wwidsValueZ$ datasetNameValuedatasetUUIDValuebU driverValue fsTypeValue nameValuenamespaceValue * optionsKey optionsValuej9 secretNameValueshareNameValue"secretNamespaceValuerL volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValuezB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValuenamespaceValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP pathValue fsTypeValue volumeNameValuevolumeNamespaceValue fsTypeValue *g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue driverValuevolumeHandleValue" fsTypeValue*, volumeAttributesKeyvolumeAttributesValue2 nameValuenamespaceValue: nameValuenamespaceValueB nameValuenamespaceValueJ nameValuenamespaceValueR nameValuenamespaceValueaccessModesValue"g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue*"persistentVolumeReclaimPolicyValue2storageClassNameValue:mountOptionsValueBvolumeModeValueJT R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueRvolumeAttributesClassNameValue nodeNameValueh0 attachmentMetadataKeyattachmentMetadataValue ͭ messageValue" ͭ messageValue"golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1.VolumeAttachment.yaml000066400000000000000000000151641453636404600261250ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1 kind: VolumeAttachment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: attacher: attacherValue nodeName: nodeNameValue source: inlineVolumeSpec: accessModes: - accessModesValue awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue secretNamespace: secretNamespaceValue shareName: shareNameValue capacity: capacityKey: "0" cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue namespace: namespaceValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue namespace: namespaceValue volumeID: volumeIDValue claimRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue csi: controllerExpandSecretRef: name: nameValue namespace: namespaceValue controllerPublishSecretRef: name: nameValue namespace: namespaceValue driver: driverValue fsType: fsTypeValue nodeExpandSecretRef: name: nameValue namespace: namespaceValue nodePublishSecretRef: name: nameValue namespace: namespaceValue nodeStageSecretRef: name: nameValue namespace: namespaceValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue volumeHandle: volumeHandleValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true glusterfs: endpoints: endpointsValue endpointsNamespace: endpointsNamespaceValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue targetPortal: targetPortalValue local: fsType: fsTypeValue path: pathValue mountOptions: - mountOptionsValue nfs: path: pathValue readOnly: true server: serverValue nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicyValue photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue namespace: namespaceValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue namespace: namespaceValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue storageClassName: storageClassNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue persistentVolumeName: persistentVolumeNameValue status: attachError: message: messageValue time: "2001-01-01T01:01:01Z" attached: true attachmentMetadata: attachmentMetadataKey: attachmentMetadataValue detachError: message: messageValue time: "2001-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1alpha1.CSIStorageCapacity.json000066400000000000000000000030011453636404600273470ustar00rootroot00000000000000{ "kind": "CSIStorageCapacity", "apiVersion": "storage.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "nodeTopology": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "storageClassName": "storageClassNameValue", "capacity": "0", "maximumVolumeSize": "0" }golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1alpha1.CSIStorageCapacity.pb000066400000000000000000000010141453636404600270010ustar00rootroot00000000000000k8s - storage.k8s.io/v1alpha1CSIStorageCapacity  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuestorageClassNameValue" 0* 0"golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1alpha1.CSIStorageCapacity.yaml000066400000000000000000000021301453636404600273420ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1alpha1 capacity: "0" kind: CSIStorageCapacity maximumVolumeSize: "0" metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue nodeTopology: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1alpha1.VolumeAttachment.json000066400000000000000000000220421453636404600272140ustar00rootroot00000000000000{ "kind": "VolumeAttachment", "apiVersion": "storage.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "attacher": "attacherValue", "source": { "persistentVolumeName": "persistentVolumeNameValue", "inlineVolumeSpec": { "capacity": { "capacityKey": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "hostPath": { "path": "pathValue", "type": "typeValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true, "endpointsNamespace": "endpointsNamespaceValue" }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "initiatorName": "initiatorNameValue" }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true, "secretNamespace": "secretNamespaceValue" }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "local": { "path": "pathValue", "fsType": "fsTypeValue" }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } }, "csi": { "driver": "driverValue", "volumeHandle": "volumeHandleValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "controllerPublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeStageSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodePublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "controllerExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "accessModes": [ "accessModesValue" ], "claimRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "persistentVolumeReclaimPolicy": "persistentVolumeReclaimPolicyValue", "storageClassName": "storageClassNameValue", "mountOptions": [ "mountOptionsValue" ], "volumeMode": "volumeModeValue", "nodeAffinity": { "required": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } }, "nodeName": "nodeNameValue" }, "status": { "attached": true, "attachmentMetadata": { "attachmentMetadataKey": "attachmentMetadataValue" }, "attachError": { "time": "2001-01-01T01:01:01Z", "message": "messageValue" }, "detachError": { "time": "2001-01-01T01:01:01Z", "message": "messageValue" } } }golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1alpha1.VolumeAttachment.pb000066400000000000000000000050611453636404600266460ustar00rootroot00000000000000k8s + storage.k8s.io/v1alpha1VolumeAttachment  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue attacherValue persistentVolumeNameValue  capacityKey 0  pdNameValue fsTypeValue  volumeIDValue fsTypeValue  pathValue typeValue"6 endpointsValue pathValue"endpointsNamespaceValue* serverValue pathValue2k monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValuenamespaceValue@: targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValuenamespaceValueXbinitiatorNameValueB; volumeIDValue fsTypeValue" nameValuenamespaceValueJU monitorsValue pathValue userValue"secretFileValue* nameValuenamespaceValue0R. targetWWNsValue fsTypeValue * wwidsValueZ$ datasetNameValuedatasetUUIDValuebU driverValue fsTypeValue nameValuenamespaceValue * optionsKey optionsValuej9 secretNameValueshareNameValue"secretNamespaceValuerL volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValuezB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValuenamespaceValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP pathValue fsTypeValue volumeNameValuevolumeNamespaceValue fsTypeValue *g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue driverValuevolumeHandleValue" fsTypeValue*, volumeAttributesKeyvolumeAttributesValue2 nameValuenamespaceValue: nameValuenamespaceValueB nameValuenamespaceValueJ nameValuenamespaceValueR nameValuenamespaceValueaccessModesValue"g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue*"persistentVolumeReclaimPolicyValue2storageClassNameValue:mountOptionsValueBvolumeModeValueJT R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueRvolumeAttributesClassNameValue nodeNameValueh0 attachmentMetadataKeyattachmentMetadataValue ͭ messageValue" ͭ messageValue"golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1alpha1.VolumeAttachment.yaml000066400000000000000000000151721453636404600272130ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1alpha1 kind: VolumeAttachment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: attacher: attacherValue nodeName: nodeNameValue source: inlineVolumeSpec: accessModes: - accessModesValue awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue secretNamespace: secretNamespaceValue shareName: shareNameValue capacity: capacityKey: "0" cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue namespace: namespaceValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue namespace: namespaceValue volumeID: volumeIDValue claimRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue csi: controllerExpandSecretRef: name: nameValue namespace: namespaceValue controllerPublishSecretRef: name: nameValue namespace: namespaceValue driver: driverValue fsType: fsTypeValue nodeExpandSecretRef: name: nameValue namespace: namespaceValue nodePublishSecretRef: name: nameValue namespace: namespaceValue nodeStageSecretRef: name: nameValue namespace: namespaceValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue volumeHandle: volumeHandleValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true glusterfs: endpoints: endpointsValue endpointsNamespace: endpointsNamespaceValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue targetPortal: targetPortalValue local: fsType: fsTypeValue path: pathValue mountOptions: - mountOptionsValue nfs: path: pathValue readOnly: true server: serverValue nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicyValue photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue namespace: namespaceValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue namespace: namespaceValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue storageClassName: storageClassNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue persistentVolumeName: persistentVolumeNameValue status: attachError: message: messageValue time: "2001-01-01T01:01:01Z" attached: true attachmentMetadata: attachmentMetadataKey: attachmentMetadataValue detachError: message: messageValue time: "2001-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1alpha1.VolumeAttributesClass.json000066400000000000000000000024011453636404600302350ustar00rootroot00000000000000{ "kind": "VolumeAttributesClass", "apiVersion": "storage.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "driverName": "driverNameValue", "parameters": { "parametersKey": "parametersValue" } }golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1alpha1.VolumeAttributesClass.pb000066400000000000000000000007231453636404600276720ustar00rootroot00000000000000k8s 0 storage.k8s.io/v1alpha1VolumeAttributesClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValuedriverNameValue parametersKeyparametersValue"golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1alpha1.VolumeAttributesClass.yaml000066400000000000000000000016651453636404600302410ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1alpha1 driverName: driverNameValue kind: VolumeAttributesClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue parameters: parametersKey: parametersValue golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1beta1.CSIDriver.json000066400000000000000000000030251453636404600253540ustar00rootroot00000000000000{ "kind": "CSIDriver", "apiVersion": "storage.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "attachRequired": true, "podInfoOnMount": true, "volumeLifecycleModes": [ "volumeLifecycleModesValue" ], "storageCapacity": true, "fsGroupPolicy": "fsGroupPolicyValue", "tokenRequests": [ { "audience": "audienceValue", "expirationSeconds": 2 } ], "requiresRepublish": true, "seLinuxMount": true } }golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1beta1.CSIDriver.pb000066400000000000000000000007411453636404600250060ustar00rootroot00000000000000k8s # storage.k8s.io/v1beta1 CSIDriver  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueLvolumeLifecycleModesValue *fsGroupPolicyValue2 audienceValue8@"golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1beta1.CSIDriver.yaml000066400000000000000000000021721453636404600253470ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1beta1 kind: CSIDriver metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: attachRequired: true fsGroupPolicy: fsGroupPolicyValue podInfoOnMount: true requiresRepublish: true seLinuxMount: true storageCapacity: true tokenRequests: - audience: audienceValue expirationSeconds: 2 volumeLifecycleModes: - volumeLifecycleModesValue golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1beta1.CSINode.json000066400000000000000000000026021453636404600250060ustar00rootroot00000000000000{ "kind": "CSINode", "apiVersion": "storage.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "drivers": [ { "name": "nameValue", "nodeID": "nodeIDValue", "topologyKeys": [ "topologyKeysValue" ], "allocatable": { "count": 1 } } ] } }golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1beta1.CSINode.pb000066400000000000000000000007041453636404600244370ustar00rootroot00000000000000k8s ! storage.k8s.io/v1beta1CSINode  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue1 / nameValue nodeIDValuetopologyKeysValue""golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1beta1.CSINode.yaml000066400000000000000000000017441453636404600250050ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1beta1 kind: CSINode metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: drivers: - allocatable: count: 1 name: nameValue nodeID: nodeIDValue topologyKeys: - topologyKeysValue golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1beta1.CSIStorageCapacity.json000066400000000000000000000030001453636404600271740ustar00rootroot00000000000000{ "kind": "CSIStorageCapacity", "apiVersion": "storage.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "nodeTopology": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "storageClassName": "storageClassNameValue", "capacity": "0", "maximumVolumeSize": "0" }golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1beta1.CSIStorageCapacity.pb000066400000000000000000000010131453636404600266260ustar00rootroot00000000000000k8s , storage.k8s.io/v1beta1CSIStorageCapacity  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuestorageClassNameValue" 0* 0"golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1beta1.CSIStorageCapacity.yaml000066400000000000000000000021271453636404600271760ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1beta1 capacity: "0" kind: CSIStorageCapacity maximumVolumeSize: "0" metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue nodeTopology: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1beta1.StorageClass.json000066400000000000000000000031441453636404600261560ustar00rootroot00000000000000{ "kind": "StorageClass", "apiVersion": "storage.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "provisioner": "provisionerValue", "parameters": { "parametersKey": "parametersValue" }, "reclaimPolicy": "reclaimPolicyValue", "mountOptions": [ "mountOptionsValue" ], "allowVolumeExpansion": true, "volumeBindingMode": "volumeBindingModeValue", "allowedTopologies": [ { "matchLabelExpressions": [ { "key": "keyValue", "values": [ "valuesValue" ] } ] } ] }golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1beta1.StorageClass.pb000066400000000000000000000010461453636404600256050ustar00rootroot00000000000000k8s & storage.k8s.io/v1beta1 StorageClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueprovisionerValue parametersKeyparametersValue"reclaimPolicyValue*mountOptionsValue0:volumeBindingModeValueB  keyValue valuesValue"golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1beta1.StorageClass.yaml000066400000000000000000000022221453636404600261430ustar00rootroot00000000000000allowVolumeExpansion: true allowedTopologies: - matchLabelExpressions: - key: keyValue values: - valuesValue apiVersion: storage.k8s.io/v1beta1 kind: StorageClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue mountOptions: - mountOptionsValue parameters: parametersKey: parametersValue provisioner: provisionerValue reclaimPolicy: reclaimPolicyValue volumeBindingMode: volumeBindingModeValue golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1beta1.VolumeAttachment.json000066400000000000000000000220411453636404600270410ustar00rootroot00000000000000{ "kind": "VolumeAttachment", "apiVersion": "storage.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "attacher": "attacherValue", "source": { "persistentVolumeName": "persistentVolumeNameValue", "inlineVolumeSpec": { "capacity": { "capacityKey": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "hostPath": { "path": "pathValue", "type": "typeValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true, "endpointsNamespace": "endpointsNamespaceValue" }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "initiatorName": "initiatorNameValue" }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true, "secretNamespace": "secretNamespaceValue" }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "local": { "path": "pathValue", "fsType": "fsTypeValue" }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } }, "csi": { "driver": "driverValue", "volumeHandle": "volumeHandleValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "controllerPublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeStageSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodePublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "controllerExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "accessModes": [ "accessModesValue" ], "claimRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "persistentVolumeReclaimPolicy": "persistentVolumeReclaimPolicyValue", "storageClassName": "storageClassNameValue", "mountOptions": [ "mountOptionsValue" ], "volumeMode": "volumeModeValue", "nodeAffinity": { "required": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } }, "volumeAttributesClassName": "volumeAttributesClassNameValue" } }, "nodeName": "nodeNameValue" }, "status": { "attached": true, "attachmentMetadata": { "attachmentMetadataKey": "attachmentMetadataValue" }, "attachError": { "time": "2001-01-01T01:01:01Z", "message": "messageValue" }, "detachError": { "time": "2001-01-01T01:01:01Z", "message": "messageValue" } } }golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1beta1.VolumeAttachment.pb000066400000000000000000000050601453636404600264730ustar00rootroot00000000000000k8s * storage.k8s.io/v1beta1VolumeAttachment  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue attacherValue persistentVolumeNameValue  capacityKey 0  pdNameValue fsTypeValue  volumeIDValue fsTypeValue  pathValue typeValue"6 endpointsValue pathValue"endpointsNamespaceValue* serverValue pathValue2k monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValuenamespaceValue@: targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValuenamespaceValueXbinitiatorNameValueB; volumeIDValue fsTypeValue" nameValuenamespaceValueJU monitorsValue pathValue userValue"secretFileValue* nameValuenamespaceValue0R. targetWWNsValue fsTypeValue * wwidsValueZ$ datasetNameValuedatasetUUIDValuebU driverValue fsTypeValue nameValuenamespaceValue * optionsKey optionsValuej9 secretNameValueshareNameValue"secretNamespaceValuerL volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValuezB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValuenamespaceValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP pathValue fsTypeValue volumeNameValuevolumeNamespaceValue fsTypeValue *g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue driverValuevolumeHandleValue" fsTypeValue*, volumeAttributesKeyvolumeAttributesValue2 nameValuenamespaceValue: nameValuenamespaceValueB nameValuenamespaceValueJ nameValuenamespaceValueR nameValuenamespaceValueaccessModesValue"g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue*"persistentVolumeReclaimPolicyValue2storageClassNameValue:mountOptionsValueBvolumeModeValueJT R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueRvolumeAttributesClassNameValue nodeNameValueh0 attachmentMetadataKeyattachmentMetadataValue ͭ messageValue" ͭ messageValue"golang-k8s-api-0.29.0/testdata/HEAD/storage.k8s.io.v1beta1.VolumeAttachment.yaml000066400000000000000000000151711453636404600270400ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1beta1 kind: VolumeAttachment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: attacher: attacherValue nodeName: nodeNameValue source: inlineVolumeSpec: accessModes: - accessModesValue awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue secretNamespace: secretNamespaceValue shareName: shareNameValue capacity: capacityKey: "0" cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue namespace: namespaceValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue namespace: namespaceValue volumeID: volumeIDValue claimRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue csi: controllerExpandSecretRef: name: nameValue namespace: namespaceValue controllerPublishSecretRef: name: nameValue namespace: namespaceValue driver: driverValue fsType: fsTypeValue nodeExpandSecretRef: name: nameValue namespace: namespaceValue nodePublishSecretRef: name: nameValue namespace: namespaceValue nodeStageSecretRef: name: nameValue namespace: namespaceValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue volumeHandle: volumeHandleValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true glusterfs: endpoints: endpointsValue endpointsNamespace: endpointsNamespaceValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue targetPortal: targetPortalValue local: fsType: fsTypeValue path: pathValue mountOptions: - mountOptionsValue nfs: path: pathValue readOnly: true server: serverValue nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicyValue photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue namespace: namespaceValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue namespace: namespaceValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue storageClassName: storageClassNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue volumeAttributesClassName: volumeAttributesClassNameValue volumeMode: volumeModeValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue persistentVolumeName: persistentVolumeNameValue status: attachError: message: messageValue time: "2001-01-01T01:01:01Z" attached: true attachmentMetadata: attachmentMetadataKey: attachmentMetadataValue detachError: message: messageValue time: "2001-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/README.md000066400000000000000000000123201453636404600174240ustar00rootroot00000000000000# API serialization compatibility tests This directory tree contains serialized API objects in json, yaml, and protobuf formats. ## Populating data for each release After every v1.x.0 release, snapshot compatibility data. For example, to capture compatibility data for `v1.20.0`: ```sh export VERSION=v1.20.0 git checkout ${VERSION} cp -fr staging/src/k8s.io/api/testdata/{HEAD,${VERSION}} git checkout -b ${VERSION}-api-testdata master git add . git commit -m "Add ${VERSION} API testdata" ``` ## Current version The `HEAD` subdirectory contains serialized API objects generated from the current commit: ``` HEAD/ ...[json|yaml|pb] ``` To run serialization tests just for the current version: ```sh go test 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 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 k8s.io/api -run //v1.14.0 ``` To run serialization tests for a particular group/version/kind, like `apps/v1` `Deployment`: ```sh go test 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" > ```golang-k8s-api-0.29.0/testdata/v1.27.0/000077500000000000000000000000001453636404600170625ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0/admission.k8s.io.v1.AdmissionReview.json000066400000000000000000000046571453636404600265250ustar00rootroot00000000000000{ "kind": "AdmissionReview", "apiVersion": "admission.k8s.io/v1", "request": { "uid": "uidValue", "kind": { "group": "groupValue", "version": "versionValue", "kind": "kindValue" }, "resource": { "group": "groupValue", "version": "versionValue", "resource": "resourceValue" }, "subResource": "subResourceValue", "requestKind": { "group": "groupValue", "version": "versionValue", "kind": "kindValue" }, "requestResource": { "group": "groupValue", "version": "versionValue", "resource": "resourceValue" }, "requestSubResource": "requestSubResourceValue", "name": "nameValue", "namespace": "namespaceValue", "operation": "operationValue", "userInfo": { "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } }, "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": { "apiVersion": "example.com/v1", "kind": "CustomType", "spec": { "replicas": 1 }, "status": { "available": 1 } } }, "response": { "uid": "uidValue", "allowed": true, "status": { "metadata": { "selfLink": "selfLinkValue", "resourceVersion": "resourceVersionValue", "continue": "continueValue", "remainingItemCount": 4 }, "status": "statusValue", "message": "messageValue", "reason": "reasonValue", "details": { "name": "nameValue", "group": "groupValue", "kind": "kindValue", "uid": "uidValue", "causes": [ { "reason": "reasonValue", "message": "messageValue", "field": "fieldValue" } ], "retryAfterSeconds": 5 }, "code": 6 }, "patch": "BA==", "patchType": "patchTypeValue", "auditAnnotations": { "auditAnnotationsKey": "auditAnnotationsValue" }, "warnings": [ "warningsValue" ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/admission.k8s.io.v1.AdmissionReview.pb000066400000000000000000000017151453636404600261450ustar00rootroot00000000000000k8s & admission.k8s.io/v1AdmissionReview  uidValue% groupValue versionValue kindValue) groupValue versionValue resourceValue"subResourceValue* nameValue2namespaceValue:operationValueB@ usernameValueuidValue groupsValue" extraKey extraValueJd b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}Rd b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}Xbd b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}j% groupValue versionValue kindValuer) groupValue versionValue resourceValuezrequestSubResourceValue uidValue 6 selfLinkValueresourceVersionValue continueValue  statusValue messageValue" reasonValue*W nameValue groupValue kindValue"' reasonValue messageValue fieldValue(2uidValue0"*patchTypeValue2, auditAnnotationsKeyauditAnnotationsValue: warningsValue"golang-k8s-api-0.29.0/testdata/v1.27.0/admission.k8s.io.v1.AdmissionReview.yaml000066400000000000000000000033121453636404600265010ustar00rootroot00000000000000apiVersion: admission.k8s.io/v1 kind: AdmissionReview request: dryRun: true kind: group: groupValue kind: kindValue version: versionValue name: nameValue namespace: namespaceValue 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: operationValue options: apiVersion: example.com/v1 kind: CustomType spec: replicas: 1 status: available: 1 requestKind: group: groupValue kind: kindValue version: versionValue requestResource: group: groupValue resource: resourceValue version: versionValue requestSubResource: requestSubResourceValue resource: group: groupValue resource: resourceValue version: versionValue subResource: subResourceValue uid: uidValue userInfo: extra: extraKey: - extraValue groups: - groupsValue uid: uidValue username: usernameValue response: allowed: true auditAnnotations: auditAnnotationsKey: auditAnnotationsValue patch: BA== patchType: patchTypeValue status: code: 6 details: causes: - field: fieldValue message: messageValue reason: reasonValue group: groupValue kind: kindValue name: nameValue retryAfterSeconds: 5 uid: uidValue message: messageValue metadata: continue: continueValue remainingItemCount: 4 resourceVersion: resourceVersionValue selfLink: selfLinkValue reason: reasonValue status: statusValue uid: uidValue warnings: - warningsValue golang-k8s-api-0.29.0/testdata/v1.27.0/admission.k8s.io.v1beta1.AdmissionReview.json000066400000000000000000000046641453636404600274400ustar00rootroot00000000000000{ "kind": "AdmissionReview", "apiVersion": "admission.k8s.io/v1beta1", "request": { "uid": "uidValue", "kind": { "group": "groupValue", "version": "versionValue", "kind": "kindValue" }, "resource": { "group": "groupValue", "version": "versionValue", "resource": "resourceValue" }, "subResource": "subResourceValue", "requestKind": { "group": "groupValue", "version": "versionValue", "kind": "kindValue" }, "requestResource": { "group": "groupValue", "version": "versionValue", "resource": "resourceValue" }, "requestSubResource": "requestSubResourceValue", "name": "nameValue", "namespace": "namespaceValue", "operation": "operationValue", "userInfo": { "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } }, "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": { "apiVersion": "example.com/v1", "kind": "CustomType", "spec": { "replicas": 1 }, "status": { "available": 1 } } }, "response": { "uid": "uidValue", "allowed": true, "status": { "metadata": { "selfLink": "selfLinkValue", "resourceVersion": "resourceVersionValue", "continue": "continueValue", "remainingItemCount": 4 }, "status": "statusValue", "message": "messageValue", "reason": "reasonValue", "details": { "name": "nameValue", "group": "groupValue", "kind": "kindValue", "uid": "uidValue", "causes": [ { "reason": "reasonValue", "message": "messageValue", "field": "fieldValue" } ], "retryAfterSeconds": 5 }, "code": 6 }, "patch": "BA==", "patchType": "patchTypeValue", "auditAnnotations": { "auditAnnotationsKey": "auditAnnotationsValue" }, "warnings": [ "warningsValue" ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/admission.k8s.io.v1beta1.AdmissionReview.pb000066400000000000000000000017221453636404600270600ustar00rootroot00000000000000k8s + admission.k8s.io/v1beta1AdmissionReview  uidValue% groupValue versionValue kindValue) groupValue versionValue resourceValue"subResourceValue* nameValue2namespaceValue:operationValueB@ usernameValueuidValue groupsValue" extraKey extraValueJd b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}Rd b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}Xbd b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}j% groupValue versionValue kindValuer) groupValue versionValue resourceValuezrequestSubResourceValue uidValue 6 selfLinkValueresourceVersionValue continueValue  statusValue messageValue" reasonValue*W nameValue groupValue kindValue"' reasonValue messageValue fieldValue(2uidValue0"*patchTypeValue2, auditAnnotationsKeyauditAnnotationsValue: warningsValue"golang-k8s-api-0.29.0/testdata/v1.27.0/admission.k8s.io.v1beta1.AdmissionReview.yaml000066400000000000000000000033171453636404600274230ustar00rootroot00000000000000apiVersion: admission.k8s.io/v1beta1 kind: AdmissionReview request: dryRun: true kind: group: groupValue kind: kindValue version: versionValue name: nameValue namespace: namespaceValue 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: operationValue options: apiVersion: example.com/v1 kind: CustomType spec: replicas: 1 status: available: 1 requestKind: group: groupValue kind: kindValue version: versionValue requestResource: group: groupValue resource: resourceValue version: versionValue requestSubResource: requestSubResourceValue resource: group: groupValue resource: resourceValue version: versionValue subResource: subResourceValue uid: uidValue userInfo: extra: extraKey: - extraValue groups: - groupsValue uid: uidValue username: usernameValue response: allowed: true auditAnnotations: auditAnnotationsKey: auditAnnotationsValue patch: BA== patchType: patchTypeValue status: code: 6 details: causes: - field: fieldValue message: messageValue reason: reasonValue group: groupValue kind: kindValue name: nameValue retryAfterSeconds: 5 uid: uidValue message: messageValue metadata: continue: continueValue remainingItemCount: 4 resourceVersion: resourceVersionValue selfLink: selfLinkValue reason: reasonValue status: statusValue uid: uidValue warnings: - warningsValue admissionregistration.k8s.io.v1.MutatingWebhookConfiguration.json000066400000000000000000000055441453636404600336240ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0{ "kind": "MutatingWebhookConfiguration", "apiVersion": "admissionregistration.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "webhooks": [ { "name": "nameValue", "clientConfig": { "url": "urlValue", "service": { "namespace": "namespaceValue", "name": "nameValue", "path": "pathValue", "port": 4 }, "caBundle": "Ag==" }, "rules": [ { "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "failurePolicy": "failurePolicyValue", "matchPolicy": "matchPolicyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "sideEffects": "sideEffectsValue", "timeoutSeconds": 7, "admissionReviewVersions": [ "admissionReviewVersionsValue" ], "reinvocationPolicy": "reinvocationPolicyValue", "matchConditions": [ { "name": "nameValue", "expression": "expressionValue" } ] } ] }admissionregistration.k8s.io.v1.MutatingWebhookConfiguration.pb000066400000000000000000000015641453636404600332520ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0k8s ? admissionregistration.k8s.io/v1MutatingWebhookConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue7 ( namespaceValue nameValue pathValue urlValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"failurePolicyValue*L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue2sideEffectsValue8BadmissionReviewVersionsValueJmatchPolicyValueRreinvocationPolicyValueZL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueb nameValueexpressionValue"admissionregistration.k8s.io.v1.MutatingWebhookConfiguration.yaml000066400000000000000000000035741453636404600336160ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue webhooks: - admissionReviewVersions: - admissionReviewVersionsValue clientConfig: caBundle: Ag== service: name: nameValue namespace: namespaceValue path: pathValue port: 4 url: urlValue failurePolicy: failurePolicyValue matchConditions: - expression: expressionValue name: nameValue matchPolicy: matchPolicyValue name: nameValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue reinvocationPolicy: reinvocationPolicyValue rules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resources: - resourcesValue scope: scopeValue sideEffects: sideEffectsValue timeoutSeconds: 7 admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.json000066400000000000000000000054571453636404600341210ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0{ "kind": "ValidatingWebhookConfiguration", "apiVersion": "admissionregistration.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "webhooks": [ { "name": "nameValue", "clientConfig": { "url": "urlValue", "service": { "namespace": "namespaceValue", "name": "nameValue", "path": "pathValue", "port": 4 }, "caBundle": "Ag==" }, "rules": [ { "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "failurePolicy": "failurePolicyValue", "matchPolicy": "matchPolicyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "sideEffects": "sideEffectsValue", "timeoutSeconds": 7, "admissionReviewVersions": [ "admissionReviewVersionsValue" ], "matchConditions": [ { "name": "nameValue", "expression": "expressionValue" } ] } ] }admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.pb000066400000000000000000000015351453636404600335420ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0k8s A admissionregistration.k8s.io/v1ValidatingWebhookConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue7 ( namespaceValue nameValue pathValue urlValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"failurePolicyValue*L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue2sideEffectsValue8BadmissionReviewVersionsValueJmatchPolicyValueRL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueZ nameValueexpressionValue"admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.yaml000066400000000000000000000035201453636404600340770ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue webhooks: - admissionReviewVersions: - admissionReviewVersionsValue clientConfig: caBundle: Ag== service: name: nameValue namespace: namespaceValue path: pathValue port: 4 url: urlValue failurePolicy: failurePolicyValue matchConditions: - expression: expressionValue name: nameValue matchPolicy: matchPolicyValue name: nameValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue rules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resources: - resourcesValue scope: scopeValue sideEffects: sideEffectsValue timeoutSeconds: 7 admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicy.json000066400000000000000000000074271453636404600341670ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0{ "kind": "ValidatingAdmissionPolicy", "apiVersion": "admissionregistration.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "paramKind": { "apiVersion": "apiVersionValue", "kind": "kindValue" }, "matchConstraints": { "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "excludeResourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "matchPolicy": "matchPolicyValue" }, "validations": [ { "expression": "expressionValue", "message": "messageValue", "reason": "reasonValue", "messageExpression": "messageExpressionValue" } ], "failurePolicy": "failurePolicyValue", "auditAnnotations": [ { "key": "keyValue", "valueExpression": "valueExpressionValue" } ], "matchConditions": [ { "name": "nameValue", "expression": "expressionValue" } ] }, "status": { "observedGeneration": 1, "typeChecking": { "expressionWarnings": [ { "fieldRef": "fieldRefValue", "warning": "warningValue" } ] }, "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicy.pb000066400000000000000000000021261453636404600336060ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0k8s B %admissionregistration.k8s.io/v1alpha1ValidatingAdmissionPolicy  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue  apiVersionValue kindValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueg resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"g resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue:matchPolicyValueD expressionValue messageValue reasonValue"messageExpressionValue"failurePolicyValue* keyValuevalueExpressionValue2 nameValueexpressionValued  fieldRefValue warningValue? typeValue statusValue"* reasonValue2 messageValue"admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicy.yaml000066400000000000000000000050201453636404600341430ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0apiVersion: admissionregistration.k8s.io/v1alpha1 kind: ValidatingAdmissionPolicy metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: auditAnnotations: - key: keyValue valueExpression: valueExpressionValue failurePolicy: failurePolicyValue matchConditions: - expression: expressionValue name: nameValue matchConstraints: excludeResourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue matchPolicy: matchPolicyValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue resourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue paramKind: apiVersion: apiVersionValue kind: kindValue validations: - expression: expressionValue message: messageValue messageExpression: messageExpressionValue reason: reasonValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 typeChecking: expressionWarnings: - fieldRef: fieldRefValue warning: warningValue admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicyBinding.json000066400000000000000000000056761453636404600354660ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0{ "kind": "ValidatingAdmissionPolicyBinding", "apiVersion": "admissionregistration.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "policyName": "policyNameValue", "paramRef": { "name": "nameValue", "namespace": "namespaceValue" }, "matchResources": { "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "excludeResourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "matchPolicy": "matchPolicyValue" }, "validationActions": [ "validationActionsValue" ] } }admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicyBinding.pb000066400000000000000000000016051453636404600351020ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0k8s I %admissionregistration.k8s.io/v1alpha1 ValidatingAdmissionPolicyBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue policyNameValue nameValuenamespaceValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueg resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"g resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue:matchPolicyValue"validationActionsValue"admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicyBinding.yaml000066400000000000000000000037371453636404600354530ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0apiVersion: admissionregistration.k8s.io/v1alpha1 kind: ValidatingAdmissionPolicyBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: matchResources: excludeResourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue matchPolicy: matchPolicyValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue resourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue paramRef: name: nameValue namespace: namespaceValue policyName: policyNameValue validationActions: - validationActionsValue admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.json000066400000000000000000000055511453636404600345370ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0{ "kind": "MutatingWebhookConfiguration", "apiVersion": "admissionregistration.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "webhooks": [ { "name": "nameValue", "clientConfig": { "url": "urlValue", "service": { "namespace": "namespaceValue", "name": "nameValue", "path": "pathValue", "port": 4 }, "caBundle": "Ag==" }, "rules": [ { "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "failurePolicy": "failurePolicyValue", "matchPolicy": "matchPolicyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "sideEffects": "sideEffectsValue", "timeoutSeconds": 7, "admissionReviewVersions": [ "admissionReviewVersionsValue" ], "reinvocationPolicy": "reinvocationPolicyValue", "matchConditions": [ { "name": "nameValue", "expression": "expressionValue" } ] } ] }admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.pb000066400000000000000000000015711453636404600341650ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0k8s D $admissionregistration.k8s.io/v1beta1MutatingWebhookConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue7 ( namespaceValue nameValue pathValue urlValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"failurePolicyValue*L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue2sideEffectsValue8BadmissionReviewVersionsValueJmatchPolicyValueRreinvocationPolicyValueZL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueb nameValueexpressionValue"admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.yaml000066400000000000000000000036011453636404600345220ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0apiVersion: admissionregistration.k8s.io/v1beta1 kind: MutatingWebhookConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue webhooks: - admissionReviewVersions: - admissionReviewVersionsValue clientConfig: caBundle: Ag== service: name: nameValue namespace: namespaceValue path: pathValue port: 4 url: urlValue failurePolicy: failurePolicyValue matchConditions: - expression: expressionValue name: nameValue matchPolicy: matchPolicyValue name: nameValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue reinvocationPolicy: reinvocationPolicyValue rules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resources: - resourcesValue scope: scopeValue sideEffects: sideEffectsValue timeoutSeconds: 7 admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.json000066400000000000000000000054641453636404600350340ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0{ "kind": "ValidatingWebhookConfiguration", "apiVersion": "admissionregistration.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "webhooks": [ { "name": "nameValue", "clientConfig": { "url": "urlValue", "service": { "namespace": "namespaceValue", "name": "nameValue", "path": "pathValue", "port": 4 }, "caBundle": "Ag==" }, "rules": [ { "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "failurePolicy": "failurePolicyValue", "matchPolicy": "matchPolicyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "sideEffects": "sideEffectsValue", "timeoutSeconds": 7, "admissionReviewVersions": [ "admissionReviewVersionsValue" ], "matchConditions": [ { "name": "nameValue", "expression": "expressionValue" } ] } ] }admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.pb000066400000000000000000000015421453636404600344550ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0k8s F $admissionregistration.k8s.io/v1beta1ValidatingWebhookConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue7 ( namespaceValue nameValue pathValue urlValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"failurePolicyValue*L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue2sideEffectsValue8BadmissionReviewVersionsValueJmatchPolicyValueRL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueZ nameValueexpressionValue"admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.yaml000066400000000000000000000035251453636404600350210ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0apiVersion: admissionregistration.k8s.io/v1beta1 kind: ValidatingWebhookConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue webhooks: - admissionReviewVersions: - admissionReviewVersionsValue clientConfig: caBundle: Ag== service: name: nameValue namespace: namespaceValue path: pathValue port: 4 url: urlValue failurePolicy: failurePolicyValue matchConditions: - expression: expressionValue name: nameValue matchPolicy: matchPolicyValue name: nameValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue rules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resources: - resourcesValue scope: scopeValue sideEffects: sideEffectsValue timeoutSeconds: 7 golang-k8s-api-0.29.0/testdata/v1.27.0/apidiscovery.k8s.io.v2beta1.APIGroupDiscovery.json000066400000000000000000000045031453636404600303520ustar00rootroot00000000000000{ "kind": "APIGroupDiscovery", "apiVersion": "apidiscovery.k8s.io/v2beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "versions": [ { "version": "versionValue", "resources": [ { "resource": "resourceValue", "responseKind": { "group": "groupValue", "version": "versionValue", "kind": "kindValue" }, "scope": "scopeValue", "singularResource": "singularResourceValue", "verbs": [ "verbsValue" ], "shortNames": [ "shortNamesValue" ], "categories": [ "categoriesValue" ], "subresources": [ { "subresource": "subresourceValue", "responseKind": { "group": "groupValue", "version": "versionValue", "kind": "kindValue" }, "acceptedTypes": [ { "group": "groupValue", "version": "versionValue", "kind": "kindValue" } ], "verbs": [ "verbsValue" ] } ] } ], "freshness": "freshnessValue" } ] }golang-k8s-api-0.29.0/testdata/v1.27.0/apidiscovery.k8s.io.v2beta1.APIGroupDiscovery.pb000066400000000000000000000012711453636404600300010ustar00rootroot00000000000000k8s 0 apidiscovery.k8s.io/v2beta1APIGroupDiscovery  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue versionValue resourceValue% groupValue versionValue kindValue scopeValue"singularResourceValue* verbsValue2shortNamesValue:categoriesValueBl subresourceValue% groupValue versionValue kindValue% groupValue versionValue kindValue" verbsValuefreshnessValue"golang-k8s-api-0.29.0/testdata/v1.27.0/apidiscovery.k8s.io.v2beta1.APIGroupDiscovery.yaml000066400000000000000000000027701453636404600303470ustar00rootroot00000000000000apiVersion: apidiscovery.k8s.io/v2beta1 kind: APIGroupDiscovery metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue versions: - freshness: freshnessValue resources: - categories: - categoriesValue resource: resourceValue responseKind: group: groupValue kind: kindValue version: versionValue scope: scopeValue shortNames: - shortNamesValue singularResource: singularResourceValue subresources: - acceptedTypes: - group: groupValue kind: kindValue version: versionValue responseKind: group: groupValue kind: kindValue version: versionValue subresource: subresourceValue verbs: - verbsValue verbs: - verbsValue version: versionValue golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.ControllerRevision.json000066400000000000000000000025011453636404600251040ustar00rootroot00000000000000{ "kind": "ControllerRevision", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "data": { "apiVersion": "example.com/v1", "kind": "CustomType", "spec": { "replicas": 1 }, "status": { "available": 1 } }, "revision": 3 }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.ControllerRevision.pb000066400000000000000000000007651453636404600245460ustar00rootroot00000000000000k8s  apps/v1ControllerRevision  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValued b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.ControllerRevision.yaml000066400000000000000000000017161453636404600251040ustar00rootroot00000000000000apiVersion: apps/v1 data: apiVersion: example.com/v1 kind: CustomType spec: replicas: 1 status: available: 1 kind: ControllerRevision metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue revision: 3 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.DaemonSet.after_roundtrip.json000066400000000000000000001466471453636404600263530ustar00rootroot00000000000000{ "kind": "DaemonSet", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "updateStrategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 4, "revisionHistoryLimit": 6 }, "status": { "currentNumberScheduled": 1, "numberMisscheduled": 2, "desiredNumberScheduled": 3, "numberReady": 4, "observedGeneration": 5, "updatedNumberScheduled": 6, "numberAvailable": 7, "numberUnavailable": 8, "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.DaemonSet.after_roundtrip.pb000066400000000000000000000236631453636404600257730ustar00rootroot00000000000000k8s  apps/v1 DaemonSetO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue= typeValue0 maxUnavailableValue maxSurgeValue 0Q (08@H R= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.DaemonSet.after_roundtrip.yaml000066400000000000000000001020731453636404600263250ustar00rootroot00000000000000apiVersion: apps/v1 kind: DaemonSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue status: collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentNumberScheduled: 1 desiredNumberScheduled: 3 numberAvailable: 7 numberMisscheduled: 2 numberReady: 4 numberUnavailable: 8 observedGeneration: 5 updatedNumberScheduled: 6 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.DaemonSet.json000066400000000000000000001470721453636404600231360ustar00rootroot00000000000000{ "kind": "DaemonSet", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "updateStrategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 4, "revisionHistoryLimit": 6 }, "status": { "currentNumberScheduled": 1, "numberMisscheduled": 2, "desiredNumberScheduled": 3, "numberReady": 4, "observedGeneration": 5, "updatedNumberScheduled": 6, "numberAvailable": 7, "numberUnavailable": 8, "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.DaemonSet.pb000066400000000000000000000237001453636404600225550ustar00rootroot00000000000000k8s  apps/v1 DaemonSetO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue= typeValue0 maxUnavailableValue maxSurgeValue 0Q (08@H R= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.DaemonSet.yaml000066400000000000000000001021651453636404600231210ustar00rootroot00000000000000apiVersion: apps/v1 kind: DaemonSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue status: collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentNumberScheduled: 1 desiredNumberScheduled: 3 numberAvailable: 7 numberMisscheduled: 2 numberReady: 4 numberUnavailable: 8 observedGeneration: 5 updatedNumberScheduled: 6 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.Deployment.after_roundtrip.json000066400000000000000000001467201453636404600266040ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.Deployment.after_roundtrip.pb000066400000000000000000000237001453636404600262240ustar00rootroot00000000000000k8s  apps/v1 DeploymentO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08H W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.Deployment.after_roundtrip.yaml000066400000000000000000001021301453636404600265600ustar00rootroot00000000000000apiVersion: apps/v1 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.Deployment.json000066400000000000000000001471431453636404600233760ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.Deployment.pb000066400000000000000000000237151453636404600230240ustar00rootroot00000000000000k8s  apps/v1 DeploymentO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08H W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.Deployment.yaml000066400000000000000000001022221453636404600233540ustar00rootroot00000000000000apiVersion: apps/v1 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.ReplicaSet.after_roundtrip.json000066400000000000000000001461551453636404600265210ustar00rootroot00000000000000{ "kind": "ReplicaSet", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.ReplicaSet.after_roundtrip.pb000066400000000000000000000235551453636404600261470ustar00rootroot00000000000000k8s  apps/v1 ReplicaSetN  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.ReplicaSet.after_roundtrip.yaml000066400000000000000000001015041453636404600264770ustar00rootroot00000000000000apiVersion: apps/v1 kind: ReplicaSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.ReplicaSet.json000066400000000000000000001464001453636404600233040ustar00rootroot00000000000000{ "kind": "ReplicaSet", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.ReplicaSet.pb000066400000000000000000000235721453636404600227400ustar00rootroot00000000000000k8s  apps/v1 ReplicaSetN  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.ReplicaSet.yaml000066400000000000000000001015761453636404600233020ustar00rootroot00000000000000apiVersion: apps/v1 kind: ReplicaSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.StatefulSet.after_roundtrip.json000066400000000000000000001554371453636404600267340ustar00rootroot00000000000000{ "kind": "StatefulSet", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "volumeClaimTemplates": [ { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" } } } ], "serviceName": "serviceNameValue", "podManagementPolicy": "podManagementPolicyValue", "updateStrategy": { "type": "typeValue", "rollingUpdate": { "partition": 1, "maxUnavailable": "maxUnavailableValue" } }, "revisionHistoryLimit": 8, "minReadySeconds": 9, "persistentVolumeClaimRetentionPolicy": { "whenDeleted": "whenDeletedValue", "whenScaled": "whenScaledValue" }, "ordinals": { "start": 1 } }, "status": { "observedGeneration": 1, "replicas": 2, "readyReplicas": 3, "currentReplicas": 4, "updatedReplicas": 5, "currentRevision": "currentRevisionValue", "updateRevision": "updateRevisionValue", "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "availableReplicas": 11 } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.StatefulSet.after_roundtrip.pb000066400000000000000000000255041453636404600263530ustar00rootroot00000000000000k8s  apps/v1 StatefulSetV  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueRL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 0*serviceNameValue2podManagementPolicyValue:* typeValuemaxUnavailableValue@H R# whenDeletedValuewhenScaledValueZx (2currentRevisionValue:updateRevisionValueH R= typeValue statusValue" reasonValue* messageValueX "golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.StatefulSet.after_roundtrip.yaml000066400000000000000000001064741453636404600267220ustar00rootroot00000000000000apiVersion: apps/v1 kind: StatefulSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 9 ordinals: start: 1 persistentVolumeClaimRetentionPolicy: whenDeleted: whenDeletedValue whenScaled: whenScaledValue podManagementPolicy: podManagementPolicyValue replicas: 1 revisionHistoryLimit: 8 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue serviceName: serviceNameValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxUnavailable: maxUnavailableValue partition: 1 type: typeValue volumeClaimTemplates: - metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue phase: phaseValue status: availableReplicas: 11 collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentReplicas: 4 currentRevision: currentRevisionValue observedGeneration: 1 readyReplicas: 3 replicas: 2 updateRevision: updateRevisionValue updatedReplicas: 5 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.StatefulSet.json000066400000000000000000001561141453636404600235170ustar00rootroot00000000000000{ "kind": "StatefulSet", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "volumeClaimTemplates": [ { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" }, "resizeStatus": "resizeStatusValue" } } ], "serviceName": "serviceNameValue", "podManagementPolicy": "podManagementPolicyValue", "updateStrategy": { "type": "typeValue", "rollingUpdate": { "partition": 1, "maxUnavailable": "maxUnavailableValue" } }, "revisionHistoryLimit": 8, "minReadySeconds": 9, "persistentVolumeClaimRetentionPolicy": { "whenDeleted": "whenDeletedValue", "whenScaled": "whenScaledValue" }, "ordinals": { "start": 1 } }, "status": { "observedGeneration": 1, "replicas": 2, "readyReplicas": 3, "currentReplicas": 4, "updatedReplicas": 5, "currentRevision": "currentRevisionValue", "updateRevision": "updateRevisionValue", "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "availableReplicas": 11 } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.StatefulSet.pb000066400000000000000000000255611453636404600231500ustar00rootroot00000000000000k8s  apps/v1 StatefulSetV  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueRL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 02resizeStatusValue*serviceNameValue2podManagementPolicyValue:* typeValuemaxUnavailableValue@H R# whenDeletedValuewhenScaledValueZx (2currentRevisionValue:updateRevisionValueH R= typeValue statusValue" reasonValue* messageValueX "golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1.StatefulSet.yaml000066400000000000000000001067061453636404600235120ustar00rootroot00000000000000apiVersion: apps/v1 kind: StatefulSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 9 ordinals: start: 1 persistentVolumeClaimRetentionPolicy: whenDeleted: whenDeletedValue whenScaled: whenScaledValue podManagementPolicy: podManagementPolicyValue replicas: 1 revisionHistoryLimit: 8 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue serviceName: serviceNameValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxUnavailable: maxUnavailableValue partition: 1 type: typeValue volumeClaimTemplates: - metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue phase: phaseValue resizeStatus: resizeStatusValue status: availableReplicas: 11 collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentReplicas: 4 currentRevision: currentRevisionValue observedGeneration: 1 readyReplicas: 3 replicas: 2 updateRevision: updateRevisionValue updatedReplicas: 5 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.ControllerRevision.json000066400000000000000000000025061453636404600260260ustar00rootroot00000000000000{ "kind": "ControllerRevision", "apiVersion": "apps/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "data": { "apiVersion": "example.com/v1", "kind": "CustomType", "spec": { "replicas": 1 }, "status": { "available": 1 } }, "revision": 3 }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.ControllerRevision.pb000066400000000000000000000007721453636404600254610ustar00rootroot00000000000000k8s " apps/v1beta1ControllerRevision  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValued b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.ControllerRevision.yaml000066400000000000000000000017231453636404600260170ustar00rootroot00000000000000apiVersion: apps/v1beta1 data: apiVersion: example.com/v1 kind: CustomType spec: replicas: 1 status: available: 1 kind: ControllerRevision metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue revision: 3 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.Deployment.after_roundtrip.json000066400000000000000000001470041453636404600275150ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "apps/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "rollbackTo": { "revision": 1 }, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.Deployment.after_roundtrip.pb000066400000000000000000000237111453636404600271430ustar00rootroot00000000000000k8s  apps/v1beta1 DeploymentO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08BH W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.Deployment.after_roundtrip.yaml000066400000000000000000001021731453636404600275040ustar00rootroot00000000000000apiVersion: apps/v1beta1 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 rollbackTo: revision: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.Deployment.json000066400000000000000000001472271453636404600243160ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "apps/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "rollbackTo": { "revision": 1 }, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.Deployment.pb000066400000000000000000000237261453636404600237430ustar00rootroot00000000000000k8s  apps/v1beta1 DeploymentO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08BH W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.Deployment.yaml000066400000000000000000001022651453636404600243000ustar00rootroot00000000000000apiVersion: apps/v1beta1 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 rollbackTo: revision: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.DeploymentRollback.json000066400000000000000000000003301453636404600257470ustar00rootroot00000000000000{ "kind": "DeploymentRollback", "apiVersion": "apps/v1beta1", "name": "nameValue", "updatedAnnotations": { "updatedAnnotationsKey": "updatedAnnotationsValue" }, "rollbackTo": { "revision": 1 } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.DeploymentRollback.pb000066400000000000000000000001571453636404600254060ustar00rootroot00000000000000k8s " apps/v1beta1DeploymentRollbackA nameValue0 updatedAnnotationsKeyupdatedAnnotationsValue"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.DeploymentRollback.yaml000066400000000000000000000002411453636404600257410ustar00rootroot00000000000000apiVersion: apps/v1beta1 kind: DeploymentRollback name: nameValue rollbackTo: revision: 1 updatedAnnotations: updatedAnnotationsKey: updatedAnnotationsValue golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.Scale.json000066400000000000000000000024701453636404600232130ustar00rootroot00000000000000{ "kind": "Scale", "apiVersion": "apps/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1 }, "status": { "replicas": 1, "selector": { "selectorKey": "selectorValue" }, "targetSelector": "targetSelectorValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.Scale.pb000066400000000000000000000007001453636404600226350ustar00rootroot00000000000000k8s  apps/v1beta1Scale  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 selectorKey selectorValuetargetSelectorValue"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.Scale.yaml000066400000000000000000000017141453636404600232040ustar00rootroot00000000000000apiVersion: apps/v1beta1 kind: Scale metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: replicas: 1 status: replicas: 1 selector: selectorKey: selectorValue targetSelector: targetSelectorValue golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.StatefulSet.after_roundtrip.json000066400000000000000000001554441453636404600276470ustar00rootroot00000000000000{ "kind": "StatefulSet", "apiVersion": "apps/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "volumeClaimTemplates": [ { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" } } } ], "serviceName": "serviceNameValue", "podManagementPolicy": "podManagementPolicyValue", "updateStrategy": { "type": "typeValue", "rollingUpdate": { "partition": 1, "maxUnavailable": "maxUnavailableValue" } }, "revisionHistoryLimit": 8, "minReadySeconds": 9, "persistentVolumeClaimRetentionPolicy": { "whenDeleted": "whenDeletedValue", "whenScaled": "whenScaledValue" }, "ordinals": { "start": 1 } }, "status": { "observedGeneration": 1, "replicas": 2, "readyReplicas": 3, "currentReplicas": 4, "updatedReplicas": 5, "currentRevision": "currentRevisionValue", "updateRevision": "updateRevisionValue", "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "availableReplicas": 11 } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.StatefulSet.after_roundtrip.pb000066400000000000000000000255111453636404600272660ustar00rootroot00000000000000k8s  apps/v1beta1 StatefulSetV  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueRL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 0*serviceNameValue2podManagementPolicyValue:* typeValuemaxUnavailableValue@H R# whenDeletedValuewhenScaledValueZx (2currentRevisionValue:updateRevisionValueH R= typeValue statusValue" reasonValue* messageValueX "golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.StatefulSet.after_roundtrip.yaml000066400000000000000000001065011453636404600276260ustar00rootroot00000000000000apiVersion: apps/v1beta1 kind: StatefulSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 9 ordinals: start: 1 persistentVolumeClaimRetentionPolicy: whenDeleted: whenDeletedValue whenScaled: whenScaledValue podManagementPolicy: podManagementPolicyValue replicas: 1 revisionHistoryLimit: 8 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue serviceName: serviceNameValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxUnavailable: maxUnavailableValue partition: 1 type: typeValue volumeClaimTemplates: - metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue phase: phaseValue status: availableReplicas: 11 collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentReplicas: 4 currentRevision: currentRevisionValue observedGeneration: 1 readyReplicas: 3 replicas: 2 updateRevision: updateRevisionValue updatedReplicas: 5 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.StatefulSet.json000066400000000000000000001561211453636404600244320ustar00rootroot00000000000000{ "kind": "StatefulSet", "apiVersion": "apps/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "volumeClaimTemplates": [ { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" }, "resizeStatus": "resizeStatusValue" } } ], "serviceName": "serviceNameValue", "podManagementPolicy": "podManagementPolicyValue", "updateStrategy": { "type": "typeValue", "rollingUpdate": { "partition": 1, "maxUnavailable": "maxUnavailableValue" } }, "revisionHistoryLimit": 8, "minReadySeconds": 9, "persistentVolumeClaimRetentionPolicy": { "whenDeleted": "whenDeletedValue", "whenScaled": "whenScaledValue" }, "ordinals": { "start": 1 } }, "status": { "observedGeneration": 1, "replicas": 2, "readyReplicas": 3, "currentReplicas": 4, "updatedReplicas": 5, "currentRevision": "currentRevisionValue", "updateRevision": "updateRevisionValue", "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "availableReplicas": 11 } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.StatefulSet.pb000066400000000000000000000255661453636404600240720ustar00rootroot00000000000000k8s  apps/v1beta1 StatefulSetV  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueRL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 02resizeStatusValue*serviceNameValue2podManagementPolicyValue:* typeValuemaxUnavailableValue@H R# whenDeletedValuewhenScaledValueZx (2currentRevisionValue:updateRevisionValueH R= typeValue statusValue" reasonValue* messageValueX "golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta1.StatefulSet.yaml000066400000000000000000001067131453636404600244250ustar00rootroot00000000000000apiVersion: apps/v1beta1 kind: StatefulSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 9 ordinals: start: 1 persistentVolumeClaimRetentionPolicy: whenDeleted: whenDeletedValue whenScaled: whenScaledValue podManagementPolicy: podManagementPolicyValue replicas: 1 revisionHistoryLimit: 8 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue serviceName: serviceNameValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxUnavailable: maxUnavailableValue partition: 1 type: typeValue volumeClaimTemplates: - metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue phase: phaseValue resizeStatus: resizeStatusValue status: availableReplicas: 11 collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentReplicas: 4 currentRevision: currentRevisionValue observedGeneration: 1 readyReplicas: 3 replicas: 2 updateRevision: updateRevisionValue updatedReplicas: 5 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.ControllerRevision.json000066400000000000000000000025061453636404600260270ustar00rootroot00000000000000{ "kind": "ControllerRevision", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "data": { "apiVersion": "example.com/v1", "kind": "CustomType", "spec": { "replicas": 1 }, "status": { "available": 1 } }, "revision": 3 }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.ControllerRevision.pb000066400000000000000000000007721453636404600254620ustar00rootroot00000000000000k8s " apps/v1beta2ControllerRevision  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValued b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.ControllerRevision.yaml000066400000000000000000000017231453636404600260200ustar00rootroot00000000000000apiVersion: apps/v1beta2 data: apiVersion: example.com/v1 kind: CustomType spec: replicas: 1 status: available: 1 kind: ControllerRevision metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue revision: 3 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.DaemonSet.after_roundtrip.json000066400000000000000000001466541453636404600272670ustar00rootroot00000000000000{ "kind": "DaemonSet", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "updateStrategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 4, "revisionHistoryLimit": 6 }, "status": { "currentNumberScheduled": 1, "numberMisscheduled": 2, "desiredNumberScheduled": 3, "numberReady": 4, "observedGeneration": 5, "updatedNumberScheduled": 6, "numberAvailable": 7, "numberUnavailable": 8, "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.DaemonSet.after_roundtrip.pb000066400000000000000000000236701453636404600267070ustar00rootroot00000000000000k8s  apps/v1beta2 DaemonSetO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue= typeValue0 maxUnavailableValue maxSurgeValue 0Q (08@H R= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.DaemonSet.after_roundtrip.yaml000066400000000000000000001021001453636404600272320ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: DaemonSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue status: collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentNumberScheduled: 1 desiredNumberScheduled: 3 numberAvailable: 7 numberMisscheduled: 2 numberReady: 4 numberUnavailable: 8 observedGeneration: 5 updatedNumberScheduled: 6 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.DaemonSet.json000066400000000000000000001470771453636404600240610ustar00rootroot00000000000000{ "kind": "DaemonSet", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "updateStrategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 4, "revisionHistoryLimit": 6 }, "status": { "currentNumberScheduled": 1, "numberMisscheduled": 2, "desiredNumberScheduled": 3, "numberReady": 4, "observedGeneration": 5, "updatedNumberScheduled": 6, "numberAvailable": 7, "numberUnavailable": 8, "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.DaemonSet.pb000066400000000000000000000237051453636404600235000ustar00rootroot00000000000000k8s  apps/v1beta2 DaemonSetO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue= typeValue0 maxUnavailableValue maxSurgeValue 0Q (08@H R= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.DaemonSet.yaml000066400000000000000000001021721453636404600240350ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: DaemonSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue status: collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentNumberScheduled: 1 desiredNumberScheduled: 3 numberAvailable: 7 numberMisscheduled: 2 numberReady: 4 numberUnavailable: 8 observedGeneration: 5 updatedNumberScheduled: 6 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.Deployment.after_roundtrip.json000066400000000000000000001467251453636404600275270ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.Deployment.after_roundtrip.pb000066400000000000000000000237051453636404600271470ustar00rootroot00000000000000k8s  apps/v1beta2 DeploymentO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08H W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.Deployment.after_roundtrip.yaml000066400000000000000000001021351453636404600275030ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.Deployment.json000066400000000000000000001471501453636404600243120ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.Deployment.pb000066400000000000000000000237221453636404600237400ustar00rootroot00000000000000k8s  apps/v1beta2 DeploymentO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08H W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.Deployment.yaml000066400000000000000000001022271453636404600242770ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.ReplicaSet.after_roundtrip.json000066400000000000000000001461621453636404600274350ustar00rootroot00000000000000{ "kind": "ReplicaSet", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.ReplicaSet.after_roundtrip.pb000066400000000000000000000235621453636404600270630ustar00rootroot00000000000000k8s  apps/v1beta2 ReplicaSetN  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.ReplicaSet.after_roundtrip.yaml000066400000000000000000001015111453636404600274130ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: ReplicaSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.ReplicaSet.json000066400000000000000000001464051453636404600242270ustar00rootroot00000000000000{ "kind": "ReplicaSet", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.ReplicaSet.pb000066400000000000000000000235771453636404600236630ustar00rootroot00000000000000k8s  apps/v1beta2 ReplicaSetN  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.ReplicaSet.yaml000066400000000000000000001016031453636404600242070ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: ReplicaSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.Scale.json000066400000000000000000000024701453636404600232140ustar00rootroot00000000000000{ "kind": "Scale", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1 }, "status": { "replicas": 1, "selector": { "selectorKey": "selectorValue" }, "targetSelector": "targetSelectorValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.Scale.pb000066400000000000000000000007001453636404600226360ustar00rootroot00000000000000k8s  apps/v1beta2Scale  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 selectorKey selectorValuetargetSelectorValue"golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.Scale.yaml000066400000000000000000000017141453636404600232050ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: Scale metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: replicas: 1 status: replicas: 1 selector: selectorKey: selectorValue targetSelector: targetSelectorValue golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.StatefulSet.after_roundtrip.json000066400000000000000000001554441453636404600276500ustar00rootroot00000000000000{ "kind": "StatefulSet", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "volumeClaimTemplates": [ { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" } } } ], "serviceName": "serviceNameValue", "podManagementPolicy": "podManagementPolicyValue", "updateStrategy": { "type": "typeValue", "rollingUpdate": { "partition": 1, "maxUnavailable": "maxUnavailableValue" } }, "revisionHistoryLimit": 8, "minReadySeconds": 9, "persistentVolumeClaimRetentionPolicy": { "whenDeleted": "whenDeletedValue", "whenScaled": "whenScaledValue" }, "ordinals": { "start": 1 } }, "status": { "observedGeneration": 1, "replicas": 2, "readyReplicas": 3, "currentReplicas": 4, "updatedReplicas": 5, "currentRevision": "currentRevisionValue", "updateRevision": "updateRevisionValue", "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "availableReplicas": 11 } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.StatefulSet.after_roundtrip.pb000066400000000000000000000255111453636404600272670ustar00rootroot00000000000000k8s  apps/v1beta2 StatefulSetV  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueRL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 0*serviceNameValue2podManagementPolicyValue:* typeValuemaxUnavailableValue@H R# whenDeletedValuewhenScaledValueZx (2currentRevisionValue:updateRevisionValueH R= typeValue statusValue" reasonValue* messageValueX "golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.StatefulSet.after_roundtrip.yaml000066400000000000000000001065011453636404600276270ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: StatefulSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 9 ordinals: start: 1 persistentVolumeClaimRetentionPolicy: whenDeleted: whenDeletedValue whenScaled: whenScaledValue podManagementPolicy: podManagementPolicyValue replicas: 1 revisionHistoryLimit: 8 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue serviceName: serviceNameValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxUnavailable: maxUnavailableValue partition: 1 type: typeValue volumeClaimTemplates: - metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue phase: phaseValue status: availableReplicas: 11 collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentReplicas: 4 currentRevision: currentRevisionValue observedGeneration: 1 readyReplicas: 3 replicas: 2 updateRevision: updateRevisionValue updatedReplicas: 5 golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.StatefulSet.json000066400000000000000000001561211453636404600244330ustar00rootroot00000000000000{ "kind": "StatefulSet", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "volumeClaimTemplates": [ { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" }, "resizeStatus": "resizeStatusValue" } } ], "serviceName": "serviceNameValue", "podManagementPolicy": "podManagementPolicyValue", "updateStrategy": { "type": "typeValue", "rollingUpdate": { "partition": 1, "maxUnavailable": "maxUnavailableValue" } }, "revisionHistoryLimit": 8, "minReadySeconds": 9, "persistentVolumeClaimRetentionPolicy": { "whenDeleted": "whenDeletedValue", "whenScaled": "whenScaledValue" }, "ordinals": { "start": 1 } }, "status": { "observedGeneration": 1, "replicas": 2, "readyReplicas": 3, "currentReplicas": 4, "updatedReplicas": 5, "currentRevision": "currentRevisionValue", "updateRevision": "updateRevisionValue", "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "availableReplicas": 11 } }golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.StatefulSet.pb000066400000000000000000000255661453636404600240730ustar00rootroot00000000000000k8s  apps/v1beta2 StatefulSetV  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueRL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 02resizeStatusValue*serviceNameValue2podManagementPolicyValue:* typeValuemaxUnavailableValue@H R# whenDeletedValuewhenScaledValueZx (2currentRevisionValue:updateRevisionValueH R= typeValue statusValue" reasonValue* messageValueX "golang-k8s-api-0.29.0/testdata/v1.27.0/apps.v1beta2.StatefulSet.yaml000066400000000000000000001067131453636404600244260ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: StatefulSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 9 ordinals: start: 1 persistentVolumeClaimRetentionPolicy: whenDeleted: whenDeletedValue whenScaled: whenScaledValue podManagementPolicy: podManagementPolicyValue replicas: 1 revisionHistoryLimit: 8 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue serviceName: serviceNameValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxUnavailable: maxUnavailableValue partition: 1 type: typeValue volumeClaimTemplates: - metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue phase: phaseValue resizeStatus: resizeStatusValue status: availableReplicas: 11 collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentReplicas: 4 currentRevision: currentRevisionValue observedGeneration: 1 readyReplicas: 3 replicas: 2 updateRevision: updateRevisionValue updatedReplicas: 5 golang-k8s-api-0.29.0/testdata/v1.27.0/authentication.k8s.io.v1.TokenRequest.json000066400000000000000000000027511453636404600270700ustar00rootroot00000000000000{ "kind": "TokenRequest", "apiVersion": "authentication.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "audiences": [ "audiencesValue" ], "expirationSeconds": 4, "boundObjectRef": { "kind": "kindValue", "apiVersion": "apiVersionValue", "name": "nameValue", "uid": "uidValue" } }, "status": { "token": "tokenValue", "expirationTimestamp": "2002-01-01T01:01:01Z" } }golang-k8s-api-0.29.0/testdata/v1.27.0/authentication.k8s.io.v1.TokenRequest.pb000066400000000000000000000007671453636404600265250ustar00rootroot00000000000000k8s ( authentication.k8s.io/v1 TokenRequest  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueE audiencesValue1 kindValueapiVersionValue nameValue"uidValue  tokenValue͔"golang-k8s-api-0.29.0/testdata/v1.27.0/authentication.k8s.io.v1.TokenRequest.yaml000066400000000000000000000021271453636404600270560ustar00rootroot00000000000000apiVersion: authentication.k8s.io/v1 kind: TokenRequest metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: audiences: - audiencesValue boundObjectRef: apiVersion: apiVersionValue kind: kindValue name: nameValue uid: uidValue expirationSeconds: 4 status: expirationTimestamp: "2002-01-01T01:01:01Z" token: tokenValue golang-k8s-api-0.29.0/testdata/v1.27.0/authentication.k8s.io.v1.TokenReview.json000066400000000000000000000030761453636404600267020ustar00rootroot00000000000000{ "kind": "TokenReview", "apiVersion": "authentication.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "token": "tokenValue", "audiences": [ "audiencesValue" ] }, "status": { "authenticated": true, "user": { "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } }, "audiences": [ "audiencesValue" ], "error": "errorValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/authentication.k8s.io.v1.TokenReview.pb000066400000000000000000000010271453636404600263240ustar00rootroot00000000000000k8s ' authentication.k8s.io/v1 TokenReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue tokenValueaudiencesValue`@ usernameValueuidValue groupsValue" extraKey extraValue errorValue"audiencesValue"golang-k8s-api-0.29.0/testdata/v1.27.0/authentication.k8s.io.v1.TokenReview.yaml000066400000000000000000000021611453636404600266650ustar00rootroot00000000000000apiVersion: authentication.k8s.io/v1 kind: TokenReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: audiences: - audiencesValue token: tokenValue status: audiences: - audiencesValue authenticated: true error: errorValue user: extra: extraKey: - extraValue groups: - groupsValue uid: uidValue username: usernameValue golang-k8s-api-0.29.0/testdata/v1.27.0/authentication.k8s.io.v1beta1.SelfSubjectReview.json000066400000000000000000000026121453636404600307430ustar00rootroot00000000000000{ "kind": "SelfSubjectReview", "apiVersion": "authentication.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "status": { "userInfo": { "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } } } }golang-k8s-api-0.29.0/testdata/v1.27.0/authentication.k8s.io.v1beta1.SelfSubjectReview.pb000066400000000000000000000007461453636404600304010ustar00rootroot00000000000000k8s 2 authentication.k8s.io/v1beta1SelfSubjectReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueB @ usernameValueuidValue groupsValue" extraKey extraValue"golang-k8s-api-0.29.0/testdata/v1.27.0/authentication.k8s.io.v1beta1.SelfSubjectReview.yaml000066400000000000000000000017741453636404600307440ustar00rootroot00000000000000apiVersion: authentication.k8s.io/v1beta1 kind: SelfSubjectReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue status: userInfo: extra: extraKey: - extraValue groups: - groupsValue uid: uidValue username: usernameValue golang-k8s-api-0.29.0/testdata/v1.27.0/authentication.k8s.io.v1beta1.TokenReview.json000066400000000000000000000031031453636404600276060ustar00rootroot00000000000000{ "kind": "TokenReview", "apiVersion": "authentication.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "token": "tokenValue", "audiences": [ "audiencesValue" ] }, "status": { "authenticated": true, "user": { "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } }, "audiences": [ "audiencesValue" ], "error": "errorValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/authentication.k8s.io.v1beta1.TokenReview.pb000066400000000000000000000010341453636404600272370ustar00rootroot00000000000000k8s , authentication.k8s.io/v1beta1 TokenReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue tokenValueaudiencesValue`@ usernameValueuidValue groupsValue" extraKey extraValue errorValue"audiencesValue"golang-k8s-api-0.29.0/testdata/v1.27.0/authentication.k8s.io.v1beta1.TokenReview.yaml000066400000000000000000000021661453636404600276070ustar00rootroot00000000000000apiVersion: authentication.k8s.io/v1beta1 kind: TokenReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: audiences: - audiencesValue token: tokenValue status: audiences: - audiencesValue authenticated: true error: errorValue user: extra: extraKey: - extraValue groups: - groupsValue uid: uidValue username: usernameValue golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1.LocalSubjectAccessReview.json000066400000000000000000000034761453636404600312030ustar00rootroot00000000000000{ "kind": "LocalSubjectAccessReview", "apiVersion": "authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceAttributes": { "namespace": "namespaceValue", "verb": "verbValue", "group": "groupValue", "version": "versionValue", "resource": "resourceValue", "subresource": "subresourceValue", "name": "nameValue" }, "nonResourceAttributes": { "path": "pathValue", "verb": "verbValue" }, "user": "userValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] }, "uid": "uidValue" }, "status": { "allowed": true, "denied": true, "reason": "reasonValue", "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1.LocalSubjectAccessReview.pb000066400000000000000000000012061453636404600306200ustar00rootroot00000000000000k8s 3 authorization.k8s.io/v1LocalSubjectAccessReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue a namespaceValue verbValue groupValue" versionValue* resourceValue2subresourceValue: nameValue pathValue verbValue userValue" groupsValue* extraKey extraValue2uidValue' reasonValueevaluationErrorValue "golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1.LocalSubjectAccessReview.yaml000066400000000000000000000025111453636404600311610ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1 kind: LocalSubjectAccessReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: extra: extraKey: - extraValue groups: - groupsValue nonResourceAttributes: path: pathValue verb: verbValue resourceAttributes: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue subresource: subresourceValue verb: verbValue version: versionValue uid: uidValue user: userValue status: allowed: true denied: true evaluationError: evaluationErrorValue reason: reasonValue golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1.SelfSubjectAccessReview.json000066400000000000000000000032331453636404600310310ustar00rootroot00000000000000{ "kind": "SelfSubjectAccessReview", "apiVersion": "authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceAttributes": { "namespace": "namespaceValue", "verb": "verbValue", "group": "groupValue", "version": "versionValue", "resource": "resourceValue", "subresource": "subresourceValue", "name": "nameValue" }, "nonResourceAttributes": { "path": "pathValue", "verb": "verbValue" } }, "status": { "allowed": true, "denied": true, "reason": "reasonValue", "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1.SelfSubjectAccessReview.pb000066400000000000000000000011101453636404600304510ustar00rootroot00000000000000k8s 2 authorization.k8s.io/v1SelfSubjectAccessReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue{ a namespaceValue verbValue groupValue" versionValue* resourceValue2subresourceValue: nameValue pathValue verbValue' reasonValueevaluationErrorValue "golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1.SelfSubjectAccessReview.yaml000066400000000000000000000023441453636404600310240ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1 kind: SelfSubjectAccessReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: nonResourceAttributes: path: pathValue verb: verbValue resourceAttributes: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue subresource: subresourceValue verb: verbValue version: versionValue status: allowed: true denied: true evaluationError: evaluationErrorValue reason: reasonValue golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1.SelfSubjectRulesReview.json000066400000000000000000000033741453636404600307300ustar00rootroot00000000000000{ "kind": "SelfSubjectRulesReview", "apiVersion": "authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "namespace": "namespaceValue" }, "status": { "resourceRules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ] } ], "nonResourceRules": [ { "verbs": [ "verbsValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ], "incomplete": true, "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1.SelfSubjectRulesReview.pb000066400000000000000000000010631453636404600303510ustar00rootroot00000000000000k8s 1 authorization.k8s.io/v1SelfSubjectRulesReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue namespaceValue~ @ verbsValueapiGroupsValueresourcesValue"resourceNamesValue" verbsValuenonResourceURLsValue"evaluationErrorValue"golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1.SelfSubjectRulesReview.yaml000066400000000000000000000023231453636404600307120ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1 kind: SelfSubjectRulesReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: namespace: namespaceValue status: evaluationError: evaluationErrorValue incomplete: true nonResourceRules: - nonResourceURLs: - nonResourceURLsValue verbs: - verbsValue resourceRules: - apiGroups: - apiGroupsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1.SubjectAccessReview.json000066400000000000000000000034711453636404600302230ustar00rootroot00000000000000{ "kind": "SubjectAccessReview", "apiVersion": "authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceAttributes": { "namespace": "namespaceValue", "verb": "verbValue", "group": "groupValue", "version": "versionValue", "resource": "resourceValue", "subresource": "subresourceValue", "name": "nameValue" }, "nonResourceAttributes": { "path": "pathValue", "verb": "verbValue" }, "user": "userValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] }, "uid": "uidValue" }, "status": { "allowed": true, "denied": true, "reason": "reasonValue", "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1.SubjectAccessReview.pb000066400000000000000000000012011453636404600276400ustar00rootroot00000000000000k8s . authorization.k8s.io/v1SubjectAccessReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue a namespaceValue verbValue groupValue" versionValue* resourceValue2subresourceValue: nameValue pathValue verbValue userValue" groupsValue* extraKey extraValue2uidValue' reasonValueevaluationErrorValue "golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1.SubjectAccessReview.yaml000066400000000000000000000025041453636404600302100ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1 kind: SubjectAccessReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: extra: extraKey: - extraValue groups: - groupsValue nonResourceAttributes: path: pathValue verb: verbValue resourceAttributes: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue subresource: subresourceValue verb: verbValue version: versionValue uid: uidValue user: userValue status: allowed: true denied: true evaluationError: evaluationErrorValue reason: reasonValue golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.json000066400000000000000000000035011453636404600321050ustar00rootroot00000000000000{ "kind": "LocalSubjectAccessReview", "apiVersion": "authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceAttributes": { "namespace": "namespaceValue", "verb": "verbValue", "group": "groupValue", "version": "versionValue", "resource": "resourceValue", "subresource": "subresourceValue", "name": "nameValue" }, "nonResourceAttributes": { "path": "pathValue", "verb": "verbValue" }, "user": "userValue", "group": [ "groupValue" ], "extra": { "extraKey": [ "extraValue" ] }, "uid": "uidValue" }, "status": { "allowed": true, "denied": true, "reason": "reasonValue", "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.pb000066400000000000000000000012121453636404600315320ustar00rootroot00000000000000k8s 8 authorization.k8s.io/v1beta1LocalSubjectAccessReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue a namespaceValue verbValue groupValue" versionValue* resourceValue2subresourceValue: nameValue pathValue verbValue userValue" groupValue* extraKey extraValue2uidValue' reasonValueevaluationErrorValue "golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.yaml000066400000000000000000000025141453636404600321010ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1beta1 kind: LocalSubjectAccessReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: extra: extraKey: - extraValue group: - groupValue nonResourceAttributes: path: pathValue verb: verbValue resourceAttributes: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue subresource: subresourceValue verb: verbValue version: versionValue uid: uidValue user: userValue status: allowed: true denied: true evaluationError: evaluationErrorValue reason: reasonValue golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.json000066400000000000000000000032401453636404600317440ustar00rootroot00000000000000{ "kind": "SelfSubjectAccessReview", "apiVersion": "authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceAttributes": { "namespace": "namespaceValue", "verb": "verbValue", "group": "groupValue", "version": "versionValue", "resource": "resourceValue", "subresource": "subresourceValue", "name": "nameValue" }, "nonResourceAttributes": { "path": "pathValue", "verb": "verbValue" } }, "status": { "allowed": true, "denied": true, "reason": "reasonValue", "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.pb000066400000000000000000000011151453636404600313730ustar00rootroot00000000000000k8s 7 authorization.k8s.io/v1beta1SelfSubjectAccessReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue{ a namespaceValue verbValue groupValue" versionValue* resourceValue2subresourceValue: nameValue pathValue verbValue' reasonValueevaluationErrorValue "golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.yaml000066400000000000000000000023511453636404600317370ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1beta1 kind: SelfSubjectAccessReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: nonResourceAttributes: path: pathValue verb: verbValue resourceAttributes: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue subresource: subresourceValue verb: verbValue version: versionValue status: allowed: true denied: true evaluationError: evaluationErrorValue reason: reasonValue golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.json000066400000000000000000000034011453636404600316340ustar00rootroot00000000000000{ "kind": "SelfSubjectRulesReview", "apiVersion": "authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "namespace": "namespaceValue" }, "status": { "resourceRules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ] } ], "nonResourceRules": [ { "verbs": [ "verbsValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ], "incomplete": true, "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.pb000066400000000000000000000010701453636404600312640ustar00rootroot00000000000000k8s 6 authorization.k8s.io/v1beta1SelfSubjectRulesReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue namespaceValue~ @ verbsValueapiGroupsValueresourcesValue"resourceNamesValue" verbsValuenonResourceURLsValue"evaluationErrorValue"golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.yaml000066400000000000000000000023301453636404600316250ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1beta1 kind: SelfSubjectRulesReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: namespace: namespaceValue status: evaluationError: evaluationErrorValue incomplete: true nonResourceRules: - nonResourceURLs: - nonResourceURLsValue verbs: - verbsValue resourceRules: - apiGroups: - apiGroupsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1beta1.SubjectAccessReview.json000066400000000000000000000034741453636404600311430ustar00rootroot00000000000000{ "kind": "SubjectAccessReview", "apiVersion": "authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceAttributes": { "namespace": "namespaceValue", "verb": "verbValue", "group": "groupValue", "version": "versionValue", "resource": "resourceValue", "subresource": "subresourceValue", "name": "nameValue" }, "nonResourceAttributes": { "path": "pathValue", "verb": "verbValue" }, "user": "userValue", "group": [ "groupValue" ], "extra": { "extraKey": [ "extraValue" ] }, "uid": "uidValue" }, "status": { "allowed": true, "denied": true, "reason": "reasonValue", "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1beta1.SubjectAccessReview.pb000066400000000000000000000012051453636404600305610ustar00rootroot00000000000000k8s 3 authorization.k8s.io/v1beta1SubjectAccessReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue a namespaceValue verbValue groupValue" versionValue* resourceValue2subresourceValue: nameValue pathValue verbValue userValue" groupValue* extraKey extraValue2uidValue' reasonValueevaluationErrorValue "golang-k8s-api-0.29.0/testdata/v1.27.0/authorization.k8s.io.v1beta1.SubjectAccessReview.yaml000066400000000000000000000025071453636404600311300ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1beta1 kind: SubjectAccessReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: extra: extraKey: - extraValue group: - groupValue nonResourceAttributes: path: pathValue verb: verbValue resourceAttributes: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue subresource: subresourceValue verb: verbValue version: versionValue uid: uidValue user: userValue status: allowed: true denied: true evaluationError: evaluationErrorValue reason: reasonValue golang-k8s-api-0.29.0/testdata/v1.27.0/autoscaling.v1.HorizontalPodAutoscaler.json000066400000000000000000000030631453636404600274330ustar00rootroot00000000000000{ "kind": "HorizontalPodAutoscaler", "apiVersion": "autoscaling/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "scaleTargetRef": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "minReplicas": 2, "maxReplicas": 3, "targetCPUUtilizationPercentage": 4 }, "status": { "observedGeneration": 1, "lastScaleTime": "2002-01-01T01:01:01Z", "currentReplicas": 3, "desiredReplicas": 4, "currentCPUUtilizationPercentage": 5 } }golang-k8s-api-0.29.0/testdata/v1.27.0/autoscaling.v1.HorizontalPodAutoscaler.pb000066400000000000000000000007361453636404600270670ustar00rootroot00000000000000k8s ) autoscaling/v1HorizontalPodAutoscaler  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue/ ' kindValue nameValueapiVersionValue ͔ ("golang-k8s-api-0.29.0/testdata/v1.27.0/autoscaling.v1.HorizontalPodAutoscaler.yaml000066400000000000000000000022421453636404600274220ustar00rootroot00000000000000apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: maxReplicas: 3 minReplicas: 2 scaleTargetRef: apiVersion: apiVersionValue kind: kindValue name: nameValue targetCPUUtilizationPercentage: 4 status: currentCPUUtilizationPercentage: 5 currentReplicas: 3 desiredReplicas: 4 lastScaleTime: "2002-01-01T01:01:01Z" observedGeneration: 1 golang-k8s-api-0.29.0/testdata/v1.27.0/autoscaling.v1.Scale.json000066400000000000000000000023601453636404600236420ustar00rootroot00000000000000{ "kind": "Scale", "apiVersion": "autoscaling/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1 }, "status": { "replicas": 1, "selector": "selectorValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/autoscaling.v1.Scale.pb000066400000000000000000000006361453636404600232760ustar00rootroot00000000000000k8s  autoscaling/v1Scale  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue selectorValue"golang-k8s-api-0.29.0/testdata/v1.27.0/autoscaling.v1.Scale.yaml000066400000000000000000000016271453636404600236400ustar00rootroot00000000000000apiVersion: autoscaling/v1 kind: Scale metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: replicas: 1 status: replicas: 1 selector: selectorValue golang-k8s-api-0.29.0/testdata/v1.27.0/autoscaling.v2.HorizontalPodAutoscaler.json000066400000000000000000000165331453636404600274420ustar00rootroot00000000000000{ "kind": "HorizontalPodAutoscaler", "apiVersion": "autoscaling/v2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "scaleTargetRef": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "minReplicas": 2, "maxReplicas": 3, "metrics": [ { "type": "typeValue", "object": { "describedObject": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 }, "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } }, "pods": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 } }, "resource": { "name": "nameValue", "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 } }, "containerResource": { "name": "nameValue", "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 }, "container": "containerValue" }, "external": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 } } } ], "behavior": { "scaleUp": { "stabilizationWindowSeconds": 3, "selectPolicy": "selectPolicyValue", "policies": [ { "type": "typeValue", "value": 2, "periodSeconds": 3 } ] }, "scaleDown": { "stabilizationWindowSeconds": 3, "selectPolicy": "selectPolicyValue", "policies": [ { "type": "typeValue", "value": 2, "periodSeconds": 3 } ] } } }, "status": { "observedGeneration": 1, "lastScaleTime": "2002-01-01T01:01:01Z", "currentReplicas": 3, "desiredReplicas": 4, "currentMetrics": [ { "type": "typeValue", "object": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 }, "describedObject": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" } }, "pods": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 } }, "resource": { "name": "nameValue", "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 } }, "containerResource": { "name": "nameValue", "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 }, "container": "containerValue" }, "external": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 } } } ], "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/autoscaling.v2.HorizontalPodAutoscaler.pb000066400000000000000000000030421453636404600270610ustar00rootroot00000000000000k8s ) autoscaling/v2HorizontalPodAutoscaler  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue ' kindValue nameValueapiVersionValue" typeValue ' kindValue nameValueapiVersionValue typeValue 0 0 Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuet Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue typeValue 0 0 "$ nameValue typeValue 0 0 *t Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue typeValue 0 0 :4 nameValue typeValue 0 0 containerValue*P & selectPolicyValue typeValue& selectPolicyValue typeValue͔ * typeValue Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  0 0' kindValue nameValueapiVersionValuei Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  0 0" nameValue  0 0*i Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  0 0:) nameValue  0 0containerValue2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/autoscaling.v2.HorizontalPodAutoscaler.yaml000066400000000000000000000112501453636404600274220ustar00rootroot00000000000000apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: behavior: scaleDown: policies: - periodSeconds: 3 type: typeValue value: 2 selectPolicy: selectPolicyValue stabilizationWindowSeconds: 3 scaleUp: policies: - periodSeconds: 3 type: typeValue value: 2 selectPolicy: selectPolicyValue stabilizationWindowSeconds: 3 maxReplicas: 3 metrics: - containerResource: container: containerValue name: nameValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" external: metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" object: describedObject: apiVersion: apiVersionValue kind: kindValue name: nameValue metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" pods: metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" resource: name: nameValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" type: typeValue minReplicas: 2 scaleTargetRef: apiVersion: apiVersionValue kind: kindValue name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentMetrics: - containerResource: container: containerValue current: averageUtilization: 3 averageValue: "0" value: "0" name: nameValue external: current: averageUtilization: 3 averageValue: "0" value: "0" metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue object: current: averageUtilization: 3 averageValue: "0" value: "0" describedObject: apiVersion: apiVersionValue kind: kindValue name: nameValue metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue pods: current: averageUtilization: 3 averageValue: "0" value: "0" metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue resource: current: averageUtilization: 3 averageValue: "0" value: "0" name: nameValue type: typeValue currentReplicas: 3 desiredReplicas: 4 lastScaleTime: "2002-01-01T01:01:01Z" observedGeneration: 1 golang-k8s-api-0.29.0/testdata/v1.27.0/autoscaling.v2beta1.HorizontalPodAutoscaler.json000066400000000000000000000133201453636404600303460ustar00rootroot00000000000000{ "kind": "HorizontalPodAutoscaler", "apiVersion": "autoscaling/v2beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "scaleTargetRef": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "minReplicas": 2, "maxReplicas": 3, "metrics": [ { "type": "typeValue", "object": { "target": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "metricName": "metricNameValue", "targetValue": "0", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "averageValue": "0" }, "pods": { "metricName": "metricNameValue", "targetAverageValue": "0", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "resource": { "name": "nameValue", "targetAverageUtilization": 2, "targetAverageValue": "0" }, "containerResource": { "name": "nameValue", "targetAverageUtilization": 2, "targetAverageValue": "0", "container": "containerValue" }, "external": { "metricName": "metricNameValue", "metricSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "targetValue": "0", "targetAverageValue": "0" } } ] }, "status": { "observedGeneration": 1, "lastScaleTime": "2002-01-01T01:01:01Z", "currentReplicas": 3, "desiredReplicas": 4, "currentMetrics": [ { "type": "typeValue", "object": { "target": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "metricName": "metricNameValue", "currentValue": "0", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "averageValue": "0" }, "pods": { "metricName": "metricNameValue", "currentAverageValue": "0", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "resource": { "name": "nameValue", "currentAverageUtilization": 2, "currentAverageValue": "0" }, "containerResource": { "name": "nameValue", "currentAverageUtilization": 2, "currentAverageValue": "0", "container": "containerValue" }, "external": { "metricName": "metricNameValue", "metricSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "currentValue": "0", "currentAverageValue": "0" } } ], "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/autoscaling.v2beta1.HorizontalPodAutoscaler.pb000066400000000000000000000025701453636404600300030ustar00rootroot00000000000000k8s . autoscaling/v2beta1HorizontalPodAutoscaler  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue ' kindValue nameValueapiVersionValue" typeValue ' kindValue nameValueapiVersionValuemetricNameValue 0"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue* 0d metricNameValue 0L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" nameValue 0*i metricNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue 0" 0:" nameValue 0"containerValue͔ * typeValue ' kindValue nameValueapiVersionValuemetricNameValue 0"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue* 0d metricNameValue 0L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" nameValue 0*i metricNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue 0" 0:" nameValue 0"containerValue2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/autoscaling.v2beta1.HorizontalPodAutoscaler.yaml000066400000000000000000000073441453636404600303500ustar00rootroot00000000000000apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: maxReplicas: 3 metrics: - containerResource: container: containerValue name: nameValue targetAverageUtilization: 2 targetAverageValue: "0" external: metricName: metricNameValue metricSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue targetAverageValue: "0" targetValue: "0" object: averageValue: "0" metricName: metricNameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: apiVersion: apiVersionValue kind: kindValue name: nameValue targetValue: "0" pods: metricName: metricNameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue targetAverageValue: "0" resource: name: nameValue targetAverageUtilization: 2 targetAverageValue: "0" type: typeValue minReplicas: 2 scaleTargetRef: apiVersion: apiVersionValue kind: kindValue name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentMetrics: - containerResource: container: containerValue currentAverageUtilization: 2 currentAverageValue: "0" name: nameValue external: currentAverageValue: "0" currentValue: "0" metricName: metricNameValue metricSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue object: averageValue: "0" currentValue: "0" metricName: metricNameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: apiVersion: apiVersionValue kind: kindValue name: nameValue pods: currentAverageValue: "0" metricName: metricNameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue resource: currentAverageUtilization: 2 currentAverageValue: "0" name: nameValue type: typeValue currentReplicas: 3 desiredReplicas: 4 lastScaleTime: "2002-01-01T01:01:01Z" observedGeneration: 1 golang-k8s-api-0.29.0/testdata/v1.27.0/autoscaling.v2beta2.HorizontalPodAutoscaler.json000066400000000000000000000165401453636404600303560ustar00rootroot00000000000000{ "kind": "HorizontalPodAutoscaler", "apiVersion": "autoscaling/v2beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "scaleTargetRef": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "minReplicas": 2, "maxReplicas": 3, "metrics": [ { "type": "typeValue", "object": { "describedObject": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 }, "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } }, "pods": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 } }, "resource": { "name": "nameValue", "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 } }, "containerResource": { "name": "nameValue", "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 }, "container": "containerValue" }, "external": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 } } } ], "behavior": { "scaleUp": { "stabilizationWindowSeconds": 3, "selectPolicy": "selectPolicyValue", "policies": [ { "type": "typeValue", "value": 2, "periodSeconds": 3 } ] }, "scaleDown": { "stabilizationWindowSeconds": 3, "selectPolicy": "selectPolicyValue", "policies": [ { "type": "typeValue", "value": 2, "periodSeconds": 3 } ] } } }, "status": { "observedGeneration": 1, "lastScaleTime": "2002-01-01T01:01:01Z", "currentReplicas": 3, "desiredReplicas": 4, "currentMetrics": [ { "type": "typeValue", "object": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 }, "describedObject": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" } }, "pods": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 } }, "resource": { "name": "nameValue", "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 } }, "containerResource": { "name": "nameValue", "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 }, "container": "containerValue" }, "external": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 } } } ], "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/autoscaling.v2beta2.HorizontalPodAutoscaler.pb000066400000000000000000000030471453636404600300040ustar00rootroot00000000000000k8s . autoscaling/v2beta2HorizontalPodAutoscaler  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue ' kindValue nameValueapiVersionValue" typeValue ' kindValue nameValueapiVersionValue typeValue 0 0 Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuet Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue typeValue 0 0 "$ nameValue typeValue 0 0 *t Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue typeValue 0 0 :4 nameValue typeValue 0 0 containerValue*P & selectPolicyValue typeValue& selectPolicyValue typeValue͔ * typeValue Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  0 0' kindValue nameValueapiVersionValuei Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  0 0" nameValue  0 0*i Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  0 0:) nameValue  0 0containerValue2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/autoscaling.v2beta2.HorizontalPodAutoscaler.yaml000066400000000000000000000112551453636404600303450ustar00rootroot00000000000000apiVersion: autoscaling/v2beta2 kind: HorizontalPodAutoscaler metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: behavior: scaleDown: policies: - periodSeconds: 3 type: typeValue value: 2 selectPolicy: selectPolicyValue stabilizationWindowSeconds: 3 scaleUp: policies: - periodSeconds: 3 type: typeValue value: 2 selectPolicy: selectPolicyValue stabilizationWindowSeconds: 3 maxReplicas: 3 metrics: - containerResource: container: containerValue name: nameValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" external: metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" object: describedObject: apiVersion: apiVersionValue kind: kindValue name: nameValue metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" pods: metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" resource: name: nameValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" type: typeValue minReplicas: 2 scaleTargetRef: apiVersion: apiVersionValue kind: kindValue name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentMetrics: - containerResource: container: containerValue current: averageUtilization: 3 averageValue: "0" value: "0" name: nameValue external: current: averageUtilization: 3 averageValue: "0" value: "0" metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue object: current: averageUtilization: 3 averageValue: "0" value: "0" describedObject: apiVersion: apiVersionValue kind: kindValue name: nameValue metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue pods: current: averageUtilization: 3 averageValue: "0" value: "0" metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue resource: current: averageUtilization: 3 averageValue: "0" value: "0" name: nameValue type: typeValue currentReplicas: 3 desiredReplicas: 4 lastScaleTime: "2002-01-01T01:01:01Z" observedGeneration: 1 golang-k8s-api-0.29.0/testdata/v1.27.0/batch.v1.CronJob.after_roundtrip.json000066400000000000000000001674171453636404600261440ustar00rootroot00000000000000{ "kind": "CronJob", "apiVersion": "batch/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "schedule": "scheduleValue", "timeZone": "timeZoneValue", "startingDeadlineSeconds": 2, "concurrencyPolicy": "concurrencyPolicyValue", "suspend": true, "jobTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parallelism": 1, "completions": 2, "activeDeadlineSeconds": 3, "podFailurePolicy": { "rules": [ { "action": "actionValue", "onExitCodes": { "containerName": "containerNameValue", "operator": "operatorValue", "values": [ 3 ] }, "onPodConditions": [ { "type": "typeValue", "status": "statusValue" } ] } ] }, "backoffLimit": 7, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "manualSelector": true, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "ttlSecondsAfterFinished": 8, "completionMode": "completionModeValue", "suspend": true } }, "successfulJobsHistoryLimit": 6, "failedJobsHistoryLimit": 7 }, "status": { "active": [ { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } ], "lastScheduleTime": "2004-01-01T01:01:01Z", "lastSuccessfulTime": "2005-01-01T01:01:01Z" } }golang-k8s-api-0.29.0/testdata/v1.27.0/batch.v1.CronJob.after_roundtrip.pb000066400000000000000000000246671453636404600255730ustar00rootroot00000000000000k8s  batch/v1CronJobS  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueO scheduleValueconcurrencyPolicyValue *N  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2J  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue8@JcompletionModeValuePZP N actionValue% containerNameValue operatorValue typeValue statusValue08B timeZoneValue} g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue"*׎"golang-k8s-api-0.29.0/testdata/v1.27.0/batch.v1.CronJob.after_roundtrip.yaml000066400000000000000000001154601453636404600261240ustar00rootroot00000000000000apiVersion: batch/v1 kind: CronJob metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: concurrencyPolicy: concurrencyPolicyValue failedJobsHistoryLimit: 7 jobTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 3 backoffLimit: 7 completionMode: completionModeValue completions: 2 manualSelector: true parallelism: 1 podFailurePolicy: rules: - action: actionValue onExitCodes: containerName: containerNameValue operator: operatorValue values: - 3 onPodConditions: - status: statusValue type: typeValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue suspend: true template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue ttlSecondsAfterFinished: 8 schedule: scheduleValue startingDeadlineSeconds: 2 successfulJobsHistoryLimit: 6 suspend: true timeZone: timeZoneValue status: active: - apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue lastScheduleTime: "2004-01-01T01:01:01Z" lastSuccessfulTime: "2005-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/v1.27.0/batch.v1.CronJob.json000066400000000000000000001676661453636404600227440ustar00rootroot00000000000000{ "kind": "CronJob", "apiVersion": "batch/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "schedule": "scheduleValue", "timeZone": "timeZoneValue", "startingDeadlineSeconds": 2, "concurrencyPolicy": "concurrencyPolicyValue", "suspend": true, "jobTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parallelism": 1, "completions": 2, "activeDeadlineSeconds": 3, "podFailurePolicy": { "rules": [ { "action": "actionValue", "onExitCodes": { "containerName": "containerNameValue", "operator": "operatorValue", "values": [ 3 ] }, "onPodConditions": [ { "type": "typeValue", "status": "statusValue" } ] } ] }, "backoffLimit": 7, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "manualSelector": true, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "ttlSecondsAfterFinished": 8, "completionMode": "completionModeValue", "suspend": true } }, "successfulJobsHistoryLimit": 6, "failedJobsHistoryLimit": 7 }, "status": { "active": [ { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } ], "lastScheduleTime": "2004-01-01T01:01:01Z", "lastSuccessfulTime": "2005-01-01T01:01:01Z" } }golang-k8s-api-0.29.0/testdata/v1.27.0/batch.v1.CronJob.pb000066400000000000000000000247041453636404600223550ustar00rootroot00000000000000k8s  batch/v1CronJobS  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueO scheduleValueconcurrencyPolicyValue *N  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2J  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue8@JcompletionModeValuePZP N actionValue% containerNameValue operatorValue typeValue statusValue08B timeZoneValue} g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue"*׎"golang-k8s-api-0.29.0/testdata/v1.27.0/batch.v1.CronJob.yaml000066400000000000000000001155621453636404600227210ustar00rootroot00000000000000apiVersion: batch/v1 kind: CronJob metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: concurrencyPolicy: concurrencyPolicyValue failedJobsHistoryLimit: 7 jobTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 3 backoffLimit: 7 completionMode: completionModeValue completions: 2 manualSelector: true parallelism: 1 podFailurePolicy: rules: - action: actionValue onExitCodes: containerName: containerNameValue operator: operatorValue values: - 3 onPodConditions: - status: statusValue type: typeValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue suspend: true template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue ttlSecondsAfterFinished: 8 schedule: scheduleValue startingDeadlineSeconds: 2 successfulJobsHistoryLimit: 6 suspend: true timeZone: timeZoneValue status: active: - apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue lastScheduleTime: "2004-01-01T01:01:01Z" lastSuccessfulTime: "2005-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/v1.27.0/batch.v1.Job.after_roundtrip.json000066400000000000000000001477431453636404600253220ustar00rootroot00000000000000{ "kind": "Job", "apiVersion": "batch/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parallelism": 1, "completions": 2, "activeDeadlineSeconds": 3, "podFailurePolicy": { "rules": [ { "action": "actionValue", "onExitCodes": { "containerName": "containerNameValue", "operator": "operatorValue", "values": [ 3 ] }, "onPodConditions": [ { "type": "typeValue", "status": "statusValue" } ] } ] }, "backoffLimit": 7, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "manualSelector": true, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "ttlSecondsAfterFinished": 8, "completionMode": "completionModeValue", "suspend": true }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "startTime": "2002-01-01T01:01:01Z", "completionTime": "2003-01-01T01:01:01Z", "active": 4, "succeeded": 5, "failed": 6, "completedIndexes": "completedIndexesValue", "uncountedTerminatedPods": { "succeeded": [ "succeededValue" ], "failed": [ "failedValue" ] }, "ready": 9 } }golang-k8s-api-0.29.0/testdata/v1.27.0/batch.v1.Job.after_roundtrip.pb000066400000000000000000000240531453636404600247360ustar00rootroot00000000000000k8s  batch/v1JobP  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2J  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue8@JcompletionModeValuePZP N actionValue% containerNameValue operatorValue typeValue statusValue G typeValue statusValue"* reasonValue2 messageValue͔ (0:completedIndexesValueB succeededValue failedValueH "golang-k8s-api-0.29.0/testdata/v1.27.0/batch.v1.Job.after_roundtrip.yaml000066400000000000000000001026271453636404600253030ustar00rootroot00000000000000apiVersion: batch/v1 kind: Job metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 3 backoffLimit: 7 completionMode: completionModeValue completions: 2 manualSelector: true parallelism: 1 podFailurePolicy: rules: - action: actionValue onExitCodes: containerName: containerNameValue operator: operatorValue values: - 3 onPodConditions: - status: statusValue type: typeValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue suspend: true template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue ttlSecondsAfterFinished: 8 status: active: 4 completedIndexes: completedIndexesValue completionTime: "2003-01-01T01:01:01Z" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue failed: 6 ready: 9 startTime: "2002-01-01T01:01:01Z" succeeded: 5 uncountedTerminatedPods: failed: - failedValue succeeded: - succeededValue golang-k8s-api-0.29.0/testdata/v1.27.0/batch.v1.Job.json000066400000000000000000001501661453636404600221050ustar00rootroot00000000000000{ "kind": "Job", "apiVersion": "batch/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parallelism": 1, "completions": 2, "activeDeadlineSeconds": 3, "podFailurePolicy": { "rules": [ { "action": "actionValue", "onExitCodes": { "containerName": "containerNameValue", "operator": "operatorValue", "values": [ 3 ] }, "onPodConditions": [ { "type": "typeValue", "status": "statusValue" } ] } ] }, "backoffLimit": 7, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "manualSelector": true, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "ttlSecondsAfterFinished": 8, "completionMode": "completionModeValue", "suspend": true }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "startTime": "2002-01-01T01:01:01Z", "completionTime": "2003-01-01T01:01:01Z", "active": 4, "succeeded": 5, "failed": 6, "completedIndexes": "completedIndexesValue", "uncountedTerminatedPods": { "succeeded": [ "succeededValue" ], "failed": [ "failedValue" ] }, "ready": 9 } }golang-k8s-api-0.29.0/testdata/v1.27.0/batch.v1.Job.pb000066400000000000000000000240701453636404600215270ustar00rootroot00000000000000k8s  batch/v1JobP  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2J  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue8@JcompletionModeValuePZP N actionValue% containerNameValue operatorValue typeValue statusValue G typeValue statusValue"* reasonValue2 messageValue͔ (0:completedIndexesValueB succeededValue failedValueH "golang-k8s-api-0.29.0/testdata/v1.27.0/batch.v1.Job.yaml000066400000000000000000001027211453636404600220700ustar00rootroot00000000000000apiVersion: batch/v1 kind: Job metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 3 backoffLimit: 7 completionMode: completionModeValue completions: 2 manualSelector: true parallelism: 1 podFailurePolicy: rules: - action: actionValue onExitCodes: containerName: containerNameValue operator: operatorValue values: - 3 onPodConditions: - status: statusValue type: typeValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue suspend: true template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue ttlSecondsAfterFinished: 8 status: active: 4 completedIndexes: completedIndexesValue completionTime: "2003-01-01T01:01:01Z" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue failed: 6 ready: 9 startTime: "2002-01-01T01:01:01Z" succeeded: 5 uncountedTerminatedPods: failed: - failedValue succeeded: - succeededValue golang-k8s-api-0.29.0/testdata/v1.27.0/batch.v1beta1.CronJob.after_roundtrip.json000066400000000000000000001674241453636404600270570ustar00rootroot00000000000000{ "kind": "CronJob", "apiVersion": "batch/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "schedule": "scheduleValue", "timeZone": "timeZoneValue", "startingDeadlineSeconds": 2, "concurrencyPolicy": "concurrencyPolicyValue", "suspend": true, "jobTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parallelism": 1, "completions": 2, "activeDeadlineSeconds": 3, "podFailurePolicy": { "rules": [ { "action": "actionValue", "onExitCodes": { "containerName": "containerNameValue", "operator": "operatorValue", "values": [ 3 ] }, "onPodConditions": [ { "type": "typeValue", "status": "statusValue" } ] } ] }, "backoffLimit": 7, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "manualSelector": true, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "ttlSecondsAfterFinished": 8, "completionMode": "completionModeValue", "suspend": true } }, "successfulJobsHistoryLimit": 6, "failedJobsHistoryLimit": 7 }, "status": { "active": [ { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } ], "lastScheduleTime": "2004-01-01T01:01:01Z", "lastSuccessfulTime": "2005-01-01T01:01:01Z" } }golang-k8s-api-0.29.0/testdata/v1.27.0/batch.v1beta1.CronJob.after_roundtrip.pb000066400000000000000000000246741453636404600265060ustar00rootroot00000000000000k8s  batch/v1beta1CronJobS  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueO scheduleValueconcurrencyPolicyValue *N  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2J  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue8@JcompletionModeValuePZP N actionValue% containerNameValue operatorValue typeValue statusValue08B timeZoneValue} g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue"*׎"golang-k8s-api-0.29.0/testdata/v1.27.0/batch.v1beta1.CronJob.after_roundtrip.yaml000066400000000000000000001154651453636404600270460ustar00rootroot00000000000000apiVersion: batch/v1beta1 kind: CronJob metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: concurrencyPolicy: concurrencyPolicyValue failedJobsHistoryLimit: 7 jobTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 3 backoffLimit: 7 completionMode: completionModeValue completions: 2 manualSelector: true parallelism: 1 podFailurePolicy: rules: - action: actionValue onExitCodes: containerName: containerNameValue operator: operatorValue values: - 3 onPodConditions: - status: statusValue type: typeValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue suspend: true template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue ttlSecondsAfterFinished: 8 schedule: scheduleValue startingDeadlineSeconds: 2 successfulJobsHistoryLimit: 6 suspend: true timeZone: timeZoneValue status: active: - apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue lastScheduleTime: "2004-01-01T01:01:01Z" lastSuccessfulTime: "2005-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/v1.27.0/batch.v1beta1.CronJob.json000066400000000000000000001676731453636404600236570ustar00rootroot00000000000000{ "kind": "CronJob", "apiVersion": "batch/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "schedule": "scheduleValue", "timeZone": "timeZoneValue", "startingDeadlineSeconds": 2, "concurrencyPolicy": "concurrencyPolicyValue", "suspend": true, "jobTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parallelism": 1, "completions": 2, "activeDeadlineSeconds": 3, "podFailurePolicy": { "rules": [ { "action": "actionValue", "onExitCodes": { "containerName": "containerNameValue", "operator": "operatorValue", "values": [ 3 ] }, "onPodConditions": [ { "type": "typeValue", "status": "statusValue" } ] } ] }, "backoffLimit": 7, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "manualSelector": true, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "ttlSecondsAfterFinished": 8, "completionMode": "completionModeValue", "suspend": true } }, "successfulJobsHistoryLimit": 6, "failedJobsHistoryLimit": 7 }, "status": { "active": [ { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } ], "lastScheduleTime": "2004-01-01T01:01:01Z", "lastSuccessfulTime": "2005-01-01T01:01:01Z" } }golang-k8s-api-0.29.0/testdata/v1.27.0/batch.v1beta1.CronJob.pb000066400000000000000000000247111453636404600232700ustar00rootroot00000000000000k8s  batch/v1beta1CronJobS  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueO scheduleValueconcurrencyPolicyValue *N  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2J  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue8@JcompletionModeValuePZP N actionValue% containerNameValue operatorValue typeValue statusValue08B timeZoneValue} g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue"*׎"golang-k8s-api-0.29.0/testdata/v1.27.0/batch.v1beta1.CronJob.yaml000066400000000000000000001155671453636404600236430ustar00rootroot00000000000000apiVersion: batch/v1beta1 kind: CronJob metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: concurrencyPolicy: concurrencyPolicyValue failedJobsHistoryLimit: 7 jobTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 3 backoffLimit: 7 completionMode: completionModeValue completions: 2 manualSelector: true parallelism: 1 podFailurePolicy: rules: - action: actionValue onExitCodes: containerName: containerNameValue operator: operatorValue values: - 3 onPodConditions: - status: statusValue type: typeValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue suspend: true template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue ttlSecondsAfterFinished: 8 schedule: scheduleValue startingDeadlineSeconds: 2 successfulJobsHistoryLimit: 6 suspend: true timeZone: timeZoneValue status: active: - apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue lastScheduleTime: "2004-01-01T01:01:01Z" lastSuccessfulTime: "2005-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/v1.27.0/certificates.k8s.io.v1.CertificateSigningRequest.json000066400000000000000000000034411453636404600311740ustar00rootroot00000000000000{ "kind": "CertificateSigningRequest", "apiVersion": "certificates.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "request": "AQ==", "signerName": "signerNameValue", "expirationSeconds": 8, "usages": [ "usagesValue" ], "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "reason": "reasonValue", "message": "messageValue", "lastUpdateTime": "2004-01-01T01:01:01Z", "lastTransitionTime": "2005-01-01T01:01:01Z" } ], "certificate": "Ag==" } }golang-k8s-api-0.29.0/testdata/v1.27.0/certificates.k8s.io.v1.CertificateSigningRequest.pb000066400000000000000000000011261453636404600306220ustar00rootroot00000000000000k8s 3 certificates.k8s.io/v1CertificateSigningRequest  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValuec  usernameValueuidValue" groupsValue* usagesValue2 extraKey extraValue:signerNameValue@L G typeValue reasonValue messageValue"*׎2 statusValue"golang-k8s-api-0.29.0/testdata/v1.27.0/certificates.k8s.io.v1.CertificateSigningRequest.yaml000066400000000000000000000024421453636404600311650ustar00rootroot00000000000000apiVersion: certificates.k8s.io/v1 kind: CertificateSigningRequest metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: expirationSeconds: 8 extra: extraKey: - extraValue groups: - groupsValue request: AQ== signerName: signerNameValue uid: uidValue usages: - usagesValue username: usernameValue status: certificate: Ag== conditions: - lastTransitionTime: "2005-01-01T01:01:01Z" lastUpdateTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/v1.27.0/certificates.k8s.io.v1alpha1.ClusterTrustBundle.json000066400000000000000000000023761453636404600307740ustar00rootroot00000000000000{ "kind": "ClusterTrustBundle", "apiVersion": "certificates.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "signerName": "signerNameValue", "trustBundle": "trustBundleValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/certificates.k8s.io.v1alpha1.ClusterTrustBundle.pb000066400000000000000000000007071453636404600304200ustar00rootroot00000000000000k8s 2 certificates.k8s.io/v1alpha1ClusterTrustBundle  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue# signerNameValuetrustBundleValue"golang-k8s-api-0.29.0/testdata/v1.27.0/certificates.k8s.io.v1alpha1.ClusterTrustBundle.yaml000066400000000000000000000016621453636404600307620ustar00rootroot00000000000000apiVersion: certificates.k8s.io/v1alpha1 kind: ClusterTrustBundle metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: signerName: signerNameValue trustBundle: trustBundleValue golang-k8s-api-0.29.0/testdata/v1.27.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.json000066400000000000000000000034461453636404600321160ustar00rootroot00000000000000{ "kind": "CertificateSigningRequest", "apiVersion": "certificates.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "request": "AQ==", "signerName": "signerNameValue", "expirationSeconds": 8, "usages": [ "usagesValue" ], "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "reason": "reasonValue", "message": "messageValue", "lastUpdateTime": "2004-01-01T01:01:01Z", "lastTransitionTime": "2005-01-01T01:01:01Z" } ], "certificate": "Ag==" } }golang-k8s-api-0.29.0/testdata/v1.27.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.pb000066400000000000000000000011331453636404600315350ustar00rootroot00000000000000k8s 8 certificates.k8s.io/v1beta1CertificateSigningRequest  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValuec  usernameValueuidValue" groupsValue* usagesValue2 extraKey extraValue:signerNameValue@L G typeValue reasonValue messageValue"*׎2 statusValue"golang-k8s-api-0.29.0/testdata/v1.27.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.yaml000066400000000000000000000024471453636404600321070ustar00rootroot00000000000000apiVersion: certificates.k8s.io/v1beta1 kind: CertificateSigningRequest metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: expirationSeconds: 8 extra: extraKey: - extraValue groups: - groupsValue request: AQ== signerName: signerNameValue uid: uidValue usages: - usagesValue username: usernameValue status: certificate: Ag== conditions: - lastTransitionTime: "2005-01-01T01:01:01Z" lastUpdateTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/v1.27.0/coordination.k8s.io.v1.Lease.json000066400000000000000000000025501453636404600251360ustar00rootroot00000000000000{ "kind": "Lease", "apiVersion": "coordination.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "holderIdentity": "holderIdentityValue", "leaseDurationSeconds": 2, "acquireTime": "2003-01-01T01:01:01.000003Z", "renewTime": "2004-01-01T01:01:01.000004Z", "leaseTransitions": 5 } }golang-k8s-api-0.29.0/testdata/v1.27.0/coordination.k8s.io.v1.Lease.pb000066400000000000000000000007001453636404600245610ustar00rootroot00000000000000k8s  coordination.k8s.io/v1Lease  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue/ holderIdentityValue " ("golang-k8s-api-0.29.0/testdata/v1.27.0/coordination.k8s.io.v1.Lease.yaml000066400000000000000000000020171453636404600251250ustar00rootroot00000000000000apiVersion: coordination.k8s.io/v1 kind: Lease metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: acquireTime: "2003-01-01T01:01:01.000003Z" holderIdentity: holderIdentityValue leaseDurationSeconds: 2 leaseTransitions: 5 renewTime: "2004-01-01T01:01:01.000004Z" golang-k8s-api-0.29.0/testdata/v1.27.0/coordination.k8s.io.v1beta1.Lease.json000066400000000000000000000025551453636404600260600ustar00rootroot00000000000000{ "kind": "Lease", "apiVersion": "coordination.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "holderIdentity": "holderIdentityValue", "leaseDurationSeconds": 2, "acquireTime": "2003-01-01T01:01:01.000003Z", "renewTime": "2004-01-01T01:01:01.000004Z", "leaseTransitions": 5 } }golang-k8s-api-0.29.0/testdata/v1.27.0/coordination.k8s.io.v1beta1.Lease.pb000066400000000000000000000007051453636404600255030ustar00rootroot00000000000000k8s $ coordination.k8s.io/v1beta1Lease  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue/ holderIdentityValue " ("golang-k8s-api-0.29.0/testdata/v1.27.0/coordination.k8s.io.v1beta1.Lease.yaml000066400000000000000000000020241453636404600260400ustar00rootroot00000000000000apiVersion: coordination.k8s.io/v1beta1 kind: Lease metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: acquireTime: "2003-01-01T01:01:01.000003Z" holderIdentity: holderIdentityValue leaseDurationSeconds: 2 leaseTransitions: 5 renewTime: "2004-01-01T01:01:01.000004Z" golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.APIGroup.json000066400000000000000000000006331453636404600226610ustar00rootroot00000000000000{ "kind": "APIGroup", "apiVersion": "v1", "name": "nameValue", "versions": [ { "groupVersion": "groupVersionValue", "version": "versionValue" } ], "preferredVersion": { "groupVersion": "groupVersionValue", "version": "versionValue" }, "serverAddressByClientCIDRs": [ { "clientCIDR": "clientCIDRValue", "serverAddress": "serverAddressValue" } ] }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.APIGroup.pb000066400000000000000000000002221453636404600223030ustar00rootroot00000000000000k8s  v1APIGroupx nameValue! groupVersionValue versionValue! groupVersionValue versionValue"% clientCIDRValueserverAddressValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.APIGroup.yaml000066400000000000000000000004341453636404600226510ustar00rootroot00000000000000apiVersion: v1 kind: APIGroup name: nameValue preferredVersion: groupVersion: groupVersionValue version: versionValue serverAddressByClientCIDRs: - clientCIDR: clientCIDRValue serverAddress: serverAddressValue versions: - groupVersion: groupVersionValue version: versionValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.APIVersions.json000066400000000000000000000003401453636404600233700ustar00rootroot00000000000000{ "kind": "APIVersions", "apiVersion": "v1", "versions": [ "versionsValue" ], "serverAddressByClientCIDRs": [ { "clientCIDR": "clientCIDRValue", "serverAddress": "serverAddressValue" } ] }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.APIVersions.pb000066400000000000000000000001231453636404600230170ustar00rootroot00000000000000k8s  v1 APIVersions6 versionsValue% clientCIDRValueserverAddressValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.APIVersions.yaml000066400000000000000000000002311453636404600233600ustar00rootroot00000000000000apiVersion: v1 kind: APIVersions serverAddressByClientCIDRs: - clientCIDR: clientCIDRValue serverAddress: serverAddressValue versions: - versionsValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Binding.json000066400000000000000000000025621453636404600226100ustar00rootroot00000000000000{ "kind": "Binding", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "target": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Binding.pb000066400000000000000000000007461453636404600222420ustar00rootroot00000000000000k8s v1Binding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Binding.yaml000066400000000000000000000020031453636404600225670ustar00rootroot00000000000000apiVersion: v1 kind: Binding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue target: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ComponentStatus.json000066400000000000000000000024371453636404600244050ustar00rootroot00000000000000{ "kind": "ComponentStatus", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "conditions": [ { "type": "typeValue", "status": "statusValue", "message": "messageValue", "error": "errorValue" } ] }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ComponentStatus.pb000066400000000000000000000006711453636404600240330ustar00rootroot00000000000000k8s  v1ComponentStatus  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue2 typeValue statusValue messageValue" errorValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ComponentStatus.yaml000066400000000000000000000016611453636404600243740ustar00rootroot00000000000000apiVersion: v1 conditions: - error: errorValue message: messageValue status: statusValue type: typeValue kind: ComponentStatus metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ConfigMap.json000066400000000000000000000023631453636404600231000ustar00rootroot00000000000000{ "kind": "ConfigMap", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "immutable": true, "data": { "dataKey": "dataValue" }, "binaryData": { "binaryDataKey": "Aw==" } }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ConfigMap.pb000066400000000000000000000006531453636404600225300ustar00rootroot00000000000000k8s  v1 ConfigMap  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue dataKey dataValue binaryDataKey "golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ConfigMap.yaml000066400000000000000000000016301453636404600230650ustar00rootroot00000000000000apiVersion: v1 binaryData: binaryDataKey: Aw== data: dataKey: dataValue immutable: true kind: ConfigMap metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.CreateOptions.json000066400000000000000000000002541453636404600240110ustar00rootroot00000000000000{ "kind": "CreateOptions", "apiVersion": "v1", "dryRun": [ "dryRunValue" ], "fieldManager": "fieldManagerValue", "fieldValidation": "fieldValidationValue" }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.CreateOptions.pb000066400000000000000000000001251453636404600234360ustar00rootroot00000000000000k8s  v1 CreateOptions6 dryRunValuefieldManagerValue"fieldValidationValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.CreateOptions.yaml000066400000000000000000000001771453636404600240060ustar00rootroot00000000000000apiVersion: v1 dryRun: - dryRunValue fieldManager: fieldManagerValue fieldValidation: fieldValidationValue kind: CreateOptions golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.DeleteOptions.json000066400000000000000000000004371453636404600240130ustar00rootroot00000000000000{ "kind": "DeleteOptions", "apiVersion": "v1", "gracePeriodSeconds": 1, "preconditions": { "uid": "uidValue", "resourceVersion": "resourceVersionValue" }, "orphanDependents": true, "propagationPolicy": "propagationPolicyValue", "dryRun": [ "dryRunValue" ] }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.DeleteOptions.pb000066400000000000000000000001521453636404600234350ustar00rootroot00000000000000k8s  v1 DeleteOptionsK uidValueresourceVersionValue"propagationPolicyValue* dryRunValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.DeleteOptions.yaml000066400000000000000000000003271453636404600240020ustar00rootroot00000000000000apiVersion: v1 dryRun: - dryRunValue gracePeriodSeconds: 1 kind: DeleteOptions orphanDependents: true preconditions: resourceVersion: resourceVersionValue uid: uidValue propagationPolicy: propagationPolicyValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Endpoints.json000066400000000000000000000044171453636404600232020ustar00rootroot00000000000000{ "kind": "Endpoints", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subsets": [ { "addresses": [ { "ip": "ipValue", "hostname": "hostnameValue", "nodeName": "nodeNameValue", "targetRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } } ], "notReadyAddresses": [ { "ip": "ipValue", "hostname": "hostnameValue", "nodeName": "nodeNameValue", "targetRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } } ], "ports": [ { "name": "nameValue", "port": 2, "protocol": "protocolValue", "appProtocol": "appProtocolValue" } ] } ] }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Endpoints.pb000066400000000000000000000013301453636404600226210ustar00rootroot00000000000000k8s  v1 Endpoints  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue  ipValueg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue hostnameValue" nodeNameValue ipValueg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue hostnameValue" nodeNameValue. nameValue protocolValue"appProtocolValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Endpoints.yaml000066400000000000000000000030471453636404600231710ustar00rootroot00000000000000apiVersion: v1 kind: Endpoints metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue subsets: - addresses: - hostname: hostnameValue ip: ipValue nodeName: nodeNameValue targetRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue notReadyAddresses: - hostname: hostnameValue ip: ipValue nodeName: nodeNameValue targetRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue ports: - appProtocol: appProtocolValue name: nameValue port: 2 protocol: protocolValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Event.json000066400000000000000000000041661453636404600223210ustar00rootroot00000000000000{ "kind": "Event", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "involvedObject": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "reason": "reasonValue", "message": "messageValue", "source": { "component": "componentValue", "host": "hostValue" }, "firstTimestamp": "2006-01-01T01:01:01Z", "lastTimestamp": "2007-01-01T01:01:01Z", "count": 8, "type": "typeValue", "eventTime": "2010-01-01T01:01:01.000010Z", "series": { "count": 1, "lastObservedTime": "2002-01-01T01:01:01.000002Z" }, "action": "actionValue", "related": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "reportingComponent": "reportingComponentValue", "reportingInstance": "reportingInstanceValue" }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Event.pb000066400000000000000000000013761453636404600217510ustar00rootroot00000000000000k8s v1Event  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue reasonValue" messageValue* componentValue hostValue2ܝ:ͺ@J typeValueR ͒NZ  ͔b actionValuejg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValuerreportingComponentValuezreportingInstanceValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Event.yaml000066400000000000000000000031421453636404600223030ustar00rootroot00000000000000action: actionValue apiVersion: v1 count: 8 eventTime: "2010-01-01T01:01:01.000010Z" firstTimestamp: "2006-01-01T01:01:01Z" involvedObject: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue kind: Event lastTimestamp: "2007-01-01T01:01:01Z" message: messageValue metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue reason: reasonValue related: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue reportingComponent: reportingComponentValue reportingInstance: reportingInstanceValue series: count: 1 lastObservedTime: "2002-01-01T01:01:01.000002Z" source: component: componentValue host: hostValue type: typeValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.GetOptions.json000066400000000000000000000001351453636404600233230ustar00rootroot00000000000000{ "kind": "GetOptions", "apiVersion": "v1", "resourceVersion": "resourceVersionValue" }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.GetOptions.pb000066400000000000000000000000621453636404600227520ustar00rootroot00000000000000k8s  v1 GetOptions resourceVersionValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.GetOptions.yaml000066400000000000000000000001061453636404600233120ustar00rootroot00000000000000apiVersion: v1 kind: GetOptions resourceVersion: resourceVersionValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.LimitRange.json000066400000000000000000000030271453636404600232660ustar00rootroot00000000000000{ "kind": "LimitRange", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "limits": [ { "type": "typeValue", "max": { "maxKey": "0" }, "min": { "minKey": "0" }, "default": { "defaultKey": "0" }, "defaultRequest": { "defaultRequestKey": "0" }, "maxLimitRequestRatio": { "maxLimitRequestRatioKey": "0" } } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.LimitRange.pb000066400000000000000000000007721453636404600227220ustar00rootroot00000000000000k8s  v1 LimitRange  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValuex v typeValue maxKey 0 minKey 0" defaultKey 0* defaultRequestKey 02 maxLimitRequestRatioKey 0"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.LimitRange.yaml000066400000000000000000000020671453636404600232620ustar00rootroot00000000000000apiVersion: v1 kind: LimitRange metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: limits: - default: defaultKey: "0" defaultRequest: defaultRequestKey: "0" max: maxKey: "0" maxLimitRequestRatio: maxLimitRequestRatioKey: "0" min: minKey: "0" type: typeValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ListOptions.json000066400000000000000000000005701453636404600235220ustar00rootroot00000000000000{ "kind": "ListOptions", "apiVersion": "v1", "labelSelector": "labelSelectorValue", "fieldSelector": "fieldSelectorValue", "watch": true, "allowWatchBookmarks": true, "resourceVersion": "resourceVersionValue", "resourceVersionMatch": "resourceVersionMatchValue", "timeoutSeconds": 5, "limit": 7, "continue": "continueValue", "sendInitialEvents": true }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ListOptions.pb000066400000000000000000000002171453636404600231500ustar00rootroot00000000000000k8s  v1 ListOptionsr labelSelectorValuefieldSelectorValue"resourceVersionValue(8B continueValueHRresourceVersionMatchValueX"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ListOptions.yaml000066400000000000000000000004541453636404600235140ustar00rootroot00000000000000allowWatchBookmarks: true apiVersion: v1 continue: continueValue fieldSelector: fieldSelectorValue kind: ListOptions labelSelector: labelSelectorValue limit: 7 resourceVersion: resourceVersionValue resourceVersionMatch: resourceVersionMatchValue sendInitialEvents: true timeoutSeconds: 5 watch: true golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Namespace.json000066400000000000000000000027211453636404600231270ustar00rootroot00000000000000{ "kind": "Namespace", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "finalizers": [ "finalizersValue" ] }, "status": { "phase": "phaseValue", "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Namespace.pb000066400000000000000000000007371453636404600225640ustar00rootroot00000000000000k8s  v1 Namespace  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue finalizersValueK phaseValue= typeValue statusValue"* reasonValue2 messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Namespace.yaml000066400000000000000000000020521453636404600231150ustar00rootroot00000000000000apiVersion: v1 kind: Namespace metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: finalizers: - finalizersValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue phase: phaseValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Node.json000066400000000000000000000076461453636404600221330ustar00rootroot00000000000000{ "kind": "Node", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "podCIDR": "podCIDRValue", "podCIDRs": [ "podCIDRsValue" ], "providerID": "providerIDValue", "unschedulable": true, "taints": [ { "key": "keyValue", "value": "valueValue", "effect": "effectValue", "timeAdded": "2004-01-01T01:01:01Z" } ], "configSource": { "configMap": { "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "kubeletConfigKey": "kubeletConfigKeyValue" } }, "externalID": "externalIDValue" }, "status": { "capacity": { "capacityKey": "0" }, "allocatable": { "allocatableKey": "0" }, "phase": "phaseValue", "conditions": [ { "type": "typeValue", "status": "statusValue", "lastHeartbeatTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "addresses": [ { "type": "typeValue", "address": "addressValue" } ], "daemonEndpoints": { "kubeletEndpoint": { "Port": 1 } }, "nodeInfo": { "machineID": "machineIDValue", "systemUUID": "systemUUIDValue", "bootID": "bootIDValue", "kernelVersion": "kernelVersionValue", "osImage": "osImageValue", "containerRuntimeVersion": "containerRuntimeVersionValue", "kubeletVersion": "kubeletVersionValue", "kubeProxyVersion": "kubeProxyVersionValue", "operatingSystem": "operatingSystemValue", "architecture": "architectureValue" }, "images": [ { "names": [ "namesValue" ], "sizeBytes": 2 } ], "volumesInUse": [ "volumesInUseValue" ], "volumesAttached": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "config": { "assigned": { "configMap": { "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "kubeletConfigKey": "kubeletConfigKeyValue" } }, "active": { "configMap": { "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "kubeletConfigKey": "kubeletConfigKeyValue" } }, "lastKnownGood": { "configMap": { "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "kubeletConfigKey": "kubeletConfigKeyValue" } }, "error": "errorValue" } } }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Node.pb000066400000000000000000000023771453636404600215570ustar00rootroot00000000000000k8s v1Node  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue podCIDRValueexternalIDValueproviderIDValue *- keyValue valueValue effectValue"2TR namespaceValue nameValueuidValue"resourceVersionValue*kubeletConfigKeyValue: podCIDRsValue  capacityKey 0 allocatableKey 0 phaseValue"G typeValue statusValue"* reasonValue2 messageValue* typeValue addressValue2 : machineIDValuesystemUUIDValue bootIDValue"kernelVersionValue* osImageValue2containerRuntimeVersionValue:kubeletVersionValueBkubeProxyVersionValueJoperatingSystemValueRarchitectureValueB namesValueJvolumesInUseValueR nameValuedevicePathValueZ TR namespaceValue nameValueuidValue"resourceVersionValue*kubeletConfigKeyValueTR namespaceValue nameValueuidValue"resourceVersionValue*kubeletConfigKeyValueTR namespaceValue nameValueuidValue"resourceVersionValue*kubeletConfigKeyValue" errorValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Node.yaml000066400000000000000000000055211453636404600221120ustar00rootroot00000000000000apiVersion: v1 kind: Node metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: configSource: configMap: kubeletConfigKey: kubeletConfigKeyValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue externalID: externalIDValue podCIDR: podCIDRValue podCIDRs: - podCIDRsValue providerID: providerIDValue taints: - effect: effectValue key: keyValue timeAdded: "2004-01-01T01:01:01Z" value: valueValue unschedulable: true status: addresses: - address: addressValue type: typeValue allocatable: allocatableKey: "0" capacity: capacityKey: "0" conditions: - lastHeartbeatTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue config: active: configMap: kubeletConfigKey: kubeletConfigKeyValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue assigned: configMap: kubeletConfigKey: kubeletConfigKeyValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue error: errorValue lastKnownGood: configMap: kubeletConfigKey: kubeletConfigKeyValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue daemonEndpoints: kubeletEndpoint: Port: 1 images: - names: - namesValue sizeBytes: 2 nodeInfo: architecture: architectureValue bootID: bootIDValue containerRuntimeVersion: containerRuntimeVersionValue kernelVersion: kernelVersionValue kubeProxyVersion: kubeProxyVersionValue kubeletVersion: kubeletVersionValue machineID: machineIDValue operatingSystem: operatingSystemValue osImage: osImageValue systemUUID: systemUUIDValue phase: phaseValue volumesAttached: - devicePath: devicePathValue name: nameValue volumesInUse: - volumesInUseValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.NodeProxyOptions.json000066400000000000000000000001151453636404600245310ustar00rootroot00000000000000{ "kind": "NodeProxyOptions", "apiVersion": "v1", "path": "pathValue" }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.NodeProxyOptions.pb000066400000000000000000000000551453636404600241640ustar00rootroot00000000000000k8s  v1NodeProxyOptions pathValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.NodeProxyOptions.yaml000066400000000000000000000000661453636404600245270ustar00rootroot00000000000000apiVersion: v1 kind: NodeProxyOptions path: pathValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PatchOptions.json000066400000000000000000000002741453636404600236470ustar00rootroot00000000000000{ "kind": "PatchOptions", "apiVersion": "v1", "dryRun": [ "dryRunValue" ], "force": true, "fieldManager": "fieldManagerValue", "fieldValidation": "fieldValidationValue" }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PatchOptions.pb000066400000000000000000000001261453636404600232730ustar00rootroot00000000000000k8s  v1 PatchOptions8 dryRunValuefieldManagerValue"fieldValidationValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PatchOptions.yaml000066400000000000000000000002121453636404600236300ustar00rootroot00000000000000apiVersion: v1 dryRun: - dryRunValue fieldManager: fieldManagerValue fieldValidation: fieldValidationValue force: true kind: PatchOptions golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PersistentVolume.json000066400000000000000000000170601453636404600245650ustar00rootroot00000000000000{ "kind": "PersistentVolume", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "capacity": { "capacityKey": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "hostPath": { "path": "pathValue", "type": "typeValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true, "endpointsNamespace": "endpointsNamespaceValue" }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "initiatorName": "initiatorNameValue" }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true, "secretNamespace": "secretNamespaceValue" }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "local": { "path": "pathValue", "fsType": "fsTypeValue" }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } }, "csi": { "driver": "driverValue", "volumeHandle": "volumeHandleValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "controllerPublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeStageSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodePublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "controllerExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "accessModes": [ "accessModesValue" ], "claimRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "persistentVolumeReclaimPolicy": "persistentVolumeReclaimPolicyValue", "storageClassName": "storageClassNameValue", "mountOptions": [ "mountOptionsValue" ], "volumeMode": "volumeModeValue", "nodeAffinity": { "required": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } } }, "status": { "phase": "phaseValue", "message": "messageValue", "reason": "reasonValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PersistentVolume.pb000066400000000000000000000045741453636404600242230ustar00rootroot00000000000000k8s  v1PersistentVolume  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue  capacityKey 0  pdNameValue fsTypeValue  volumeIDValue fsTypeValue  pathValue typeValue"6 endpointsValue pathValue"endpointsNamespaceValue* serverValue pathValue2k monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValuenamespaceValue@: targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValuenamespaceValueXbinitiatorNameValueB; volumeIDValue fsTypeValue" nameValuenamespaceValueJU monitorsValue pathValue userValue"secretFileValue* nameValuenamespaceValue0R. targetWWNsValue fsTypeValue * wwidsValueZ$ datasetNameValuedatasetUUIDValuebU driverValue fsTypeValue nameValuenamespaceValue * optionsKey optionsValuej9 secretNameValueshareNameValue"secretNamespaceValuerL volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValuezB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValuenamespaceValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP pathValue fsTypeValue volumeNameValuevolumeNamespaceValue fsTypeValue *g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue driverValuevolumeHandleValue" fsTypeValue*, volumeAttributesKeyvolumeAttributesValue2 nameValuenamespaceValue: nameValuenamespaceValueB nameValuenamespaceValueJ nameValuenamespaceValueR nameValuenamespaceValueaccessModesValue"g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue*"persistentVolumeReclaimPolicyValue2storageClassNameValue:mountOptionsValueBvolumeModeValueJT R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue' phaseValue messageValue reasonValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PersistentVolume.yaml000066400000000000000000000127311453636404600245560ustar00rootroot00000000000000apiVersion: v1 kind: PersistentVolume metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue secretNamespace: secretNamespaceValue shareName: shareNameValue capacity: capacityKey: "0" cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue namespace: namespaceValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue namespace: namespaceValue volumeID: volumeIDValue claimRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue csi: controllerExpandSecretRef: name: nameValue namespace: namespaceValue controllerPublishSecretRef: name: nameValue namespace: namespaceValue driver: driverValue fsType: fsTypeValue nodeExpandSecretRef: name: nameValue namespace: namespaceValue nodePublishSecretRef: name: nameValue namespace: namespaceValue nodeStageSecretRef: name: nameValue namespace: namespaceValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue volumeHandle: volumeHandleValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true glusterfs: endpoints: endpointsValue endpointsNamespace: endpointsNamespaceValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue targetPortal: targetPortalValue local: fsType: fsTypeValue path: pathValue mountOptions: - mountOptionsValue nfs: path: pathValue readOnly: true server: serverValue nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicyValue photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue namespace: namespaceValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue namespace: namespaceValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue storageClassName: storageClassNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue volumeMode: volumeModeValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: message: messageValue phase: phaseValue reason: reasonValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PersistentVolumeClaim.after_roundtrip.json000066400000000000000000000047511453636404600307440ustar00rootroot00000000000000{ "kind": "PersistentVolumeClaim", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" } } }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PersistentVolumeClaim.after_roundtrip.pb000066400000000000000000000015111453636404600303630ustar00rootroot00000000000000k8s  v1PersistentVolumeClaim  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 0"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PersistentVolumeClaim.after_roundtrip.yaml000066400000000000000000000034101453636404600307240ustar00rootroot00000000000000apiVersion: v1 kind: PersistentVolumeClaim metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue phase: phaseValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PersistentVolumeClaim.json000066400000000000000000000051371453636404600255350ustar00rootroot00000000000000{ "kind": "PersistentVolumeClaim", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" }, "resizeStatus": "resizeStatusValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PersistentVolumeClaim.pb000066400000000000000000000015511453636404600251610ustar00rootroot00000000000000k8s  v1PersistentVolumeClaim  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 02resizeStatusValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PersistentVolumeClaim.yaml000066400000000000000000000035141453636404600255230ustar00rootroot00000000000000apiVersion: v1 kind: PersistentVolumeClaim metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue phase: phaseValue resizeStatus: resizeStatusValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Pod.after_roundtrip.json000066400000000000000000001410631453636404600251660ustar00rootroot00000000000000{ "kind": "Pod", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] }, "status": { "phase": "phaseValue", "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "message": "messageValue", "reason": "reasonValue", "nominatedNodeName": "nominatedNodeNameValue", "hostIP": "hostIPValue", "podIP": "podIPValue", "podIPs": [ { "ip": "ipValue" } ], "startTime": "2007-01-01T01:01:01Z", "initContainerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "containerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "qosClass": "qosClassValue", "ephemeralContainerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "resize": "resizeValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Pod.after_roundtrip.pb000066400000000000000000000252251453636404600246170ustar00rootroot00000000000000k8s v1PodT  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue phaseValueG typeValue statusValue"* reasonValue2 messageValue messageValue" reasonValue* hostIPValue2 podIPValue:ͺB nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValueJ qosClassValueR nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValueZnominatedNodeNameValueb ipValuej nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValuer resizeValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Pod.after_roundtrip.yaml000066400000000000000000000757531453636404600251730ustar00rootroot00000000000000apiVersion: v1 kind: Pod metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue containerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue ephemeralContainerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue hostIP: hostIPValue initContainerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue message: messageValue nominatedNodeName: nominatedNodeNameValue phase: phaseValue podIP: podIPValue podIPs: - ip: ipValue qosClass: qosClassValue reason: reasonValue resize: resizeValue startTime: "2007-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Pod.json000066400000000000000000001412621453636404600217610ustar00rootroot00000000000000{ "kind": "Pod", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] }, "status": { "phase": "phaseValue", "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "message": "messageValue", "reason": "reasonValue", "nominatedNodeName": "nominatedNodeNameValue", "hostIP": "hostIPValue", "podIP": "podIPValue", "podIPs": [ { "ip": "ipValue" } ], "startTime": "2007-01-01T01:01:01Z", "initContainerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "containerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "qosClass": "qosClassValue", "ephemeralContainerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "resize": "resizeValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Pod.pb000066400000000000000000000252421453636404600214100ustar00rootroot00000000000000k8s v1PodU  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue phaseValueG typeValue statusValue"* reasonValue2 messageValue messageValue" reasonValue* hostIPValue2 podIPValue:ͺB nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValueJ qosClassValueR nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValueZnominatedNodeNameValueb ipValuej nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValuer resizeValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Pod.yaml000066400000000000000000000760351453636404600217570ustar00rootroot00000000000000apiVersion: v1 kind: Pod metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue containerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue ephemeralContainerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue hostIP: hostIPValue initContainerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue message: messageValue nominatedNodeName: nominatedNodeNameValue phase: phaseValue podIP: podIPValue podIPs: - ip: ipValue qosClass: qosClassValue reason: reasonValue resize: resizeValue startTime: "2007-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodAttachOptions.json000066400000000000000000000002331453636404600244520ustar00rootroot00000000000000{ "kind": "PodAttachOptions", "apiVersion": "v1", "stdin": true, "stdout": true, "stderr": true, "tty": true, "container": "containerValue" }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodAttachOptions.pb000066400000000000000000000000721453636404600241030ustar00rootroot00000000000000k8s  v1PodAttachOptions *containerValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodAttachOptions.yaml000066400000000000000000000001601453636404600244420ustar00rootroot00000000000000apiVersion: v1 container: containerValue kind: PodAttachOptions stderr: true stdin: true stdout: true tty: true golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodExecOptions.json000066400000000000000000000003001453636404600241250ustar00rootroot00000000000000{ "kind": "PodExecOptions", "apiVersion": "v1", "stdin": true, "stdout": true, "stderr": true, "tty": true, "container": "containerValue", "command": [ "commandValue" ] }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodExecOptions.pb000066400000000000000000000001061453636404600235610ustar00rootroot00000000000000k8s  v1PodExecOptions& *containerValue2 commandValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodExecOptions.yaml000066400000000000000000000002061453636404600241230ustar00rootroot00000000000000apiVersion: v1 command: - commandValue container: containerValue kind: PodExecOptions stderr: true stdin: true stdout: true tty: true golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodLogOptions.json000066400000000000000000000004311453636404600237670ustar00rootroot00000000000000{ "kind": "PodLogOptions", "apiVersion": "v1", "container": "containerValue", "follow": true, "previous": true, "sinceSeconds": 4, "sinceTime": "2005-01-01T01:01:01Z", "timestamps": true, "tailLines": 7, "limitBytes": 8, "insecureSkipTLSVerifyBackend": true }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodLogOptions.pb000066400000000000000000000001071453636404600234170ustar00rootroot00000000000000k8s  v1 PodLogOptions( containerValue *׎08@H"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodLogOptions.yaml000066400000000000000000000003321453636404600237600ustar00rootroot00000000000000apiVersion: v1 container: containerValue follow: true insecureSkipTLSVerifyBackend: true kind: PodLogOptions limitBytes: 8 previous: true sinceSeconds: 4 sinceTime: "2005-01-01T01:01:01Z" tailLines: 7 timestamps: true golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodPortForwardOptions.json000066400000000000000000000001231453636404600255150ustar00rootroot00000000000000{ "kind": "PodPortForwardOptions", "apiVersion": "v1", "ports": [ 1 ] }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodPortForwardOptions.pb000066400000000000000000000000511453636404600251450ustar00rootroot00000000000000k8s  v1PodPortForwardOptions"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodPortForwardOptions.yaml000066400000000000000000000000661453636404600255140ustar00rootroot00000000000000apiVersion: v1 kind: PodPortForwardOptions ports: - 1 golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodProxyOptions.json000066400000000000000000000001141453636404600243650ustar00rootroot00000000000000{ "kind": "PodProxyOptions", "apiVersion": "v1", "path": "pathValue" }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodProxyOptions.pb000066400000000000000000000000541453636404600240200ustar00rootroot00000000000000k8s  v1PodProxyOptions pathValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodProxyOptions.yaml000066400000000000000000000000651453636404600243630ustar00rootroot00000000000000apiVersion: v1 kind: PodProxyOptions path: pathValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodStatusResult.json000066400000000000000000000153251453636404600243640ustar00rootroot00000000000000{ "kind": "PodStatusResult", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "status": { "phase": "phaseValue", "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "message": "messageValue", "reason": "reasonValue", "nominatedNodeName": "nominatedNodeNameValue", "hostIP": "hostIPValue", "podIP": "podIPValue", "podIPs": [ { "ip": "ipValue" } ], "startTime": "2007-01-01T01:01:01Z", "initContainerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "containerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "qosClass": "qosClassValue", "ephemeralContainerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "resize": "resizeValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodStatusResult.pb000066400000000000000000000032771453636404600240170ustar00rootroot00000000000000k8s  v1PodStatusResult  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue phaseValueG typeValue statusValue"* reasonValue2 messageValue messageValue" reasonValue* hostIPValue2 podIPValue:ͺB nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValueJ qosClassValueR nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValueZnominatedNodeNameValueb ipValuej nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValuer resizeValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodStatusResult.yaml000066400000000000000000000111401453636404600243440ustar00rootroot00000000000000apiVersion: v1 kind: PodStatusResult metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue status: conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue containerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue ephemeralContainerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue hostIP: hostIPValue initContainerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue message: messageValue nominatedNodeName: nominatedNodeNameValue phase: phaseValue podIP: podIPValue podIPs: - ip: ipValue qosClass: qosClassValue reason: reasonValue resize: resizeValue startTime: "2007-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodTemplate.after_roundtrip.json000066400000000000000000001363611453636404600266670ustar00rootroot00000000000000{ "kind": "PodTemplate", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodTemplate.after_roundtrip.pb000066400000000000000000000233111453636404600263050ustar00rootroot00000000000000k8s  v1 PodTemplateM  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodTemplate.after_roundtrip.yaml000066400000000000000000000742721453636404600266620ustar00rootroot00000000000000apiVersion: v1 kind: PodTemplate metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodTemplate.json000066400000000000000000001365721453636404600234650ustar00rootroot00000000000000{ "kind": "PodTemplate", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodTemplate.pb000066400000000000000000000233261453636404600231050ustar00rootroot00000000000000k8s  v1 PodTemplateM  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.PodTemplate.yaml000066400000000000000000000743601453636404600234520ustar00rootroot00000000000000apiVersion: v1 kind: PodTemplate metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.RangeAllocation.json000066400000000000000000000022601453636404600242730ustar00rootroot00000000000000{ "kind": "RangeAllocation", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "range": "rangeValue", "data": "Aw==" }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.RangeAllocation.pb000066400000000000000000000006241453636404600237250ustar00rootroot00000000000000k8s  v1RangeAllocation  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue rangeValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.RangeAllocation.yaml000066400000000000000000000015561453636404600242730ustar00rootroot00000000000000apiVersion: v1 data: Aw== kind: RangeAllocation metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue range: rangeValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ReplicationController.after_roundtrip.json000066400000000000000000001456231453636404600307670ustar00rootroot00000000000000{ "kind": "ReplicationController", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "selectorKey": "selectorValue" }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ReplicationController.after_roundtrip.pb000066400000000000000000000235031453636404600304070ustar00rootroot00000000000000k8s  v1ReplicationControllerN  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueJ selectorKey selectorValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ReplicationController.after_roundtrip.yaml000066400000000000000000001013071453636404600307470ustar00rootroot00000000000000apiVersion: v1 kind: ReplicationController metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: selectorKey: selectorValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ReplicationController.json000066400000000000000000001460461453636404600255610ustar00rootroot00000000000000{ "kind": "ReplicationController", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "selectorKey": "selectorValue" }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ReplicationController.pb000066400000000000000000000235201453636404600252000ustar00rootroot00000000000000k8s  v1ReplicationControllerN  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueJ selectorKey selectorValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ReplicationController.yaml000066400000000000000000001014011453636404600255340ustar00rootroot00000000000000apiVersion: v1 kind: ReplicationController metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: selectorKey: selectorValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ResourceQuota.json000066400000000000000000000030601453636404600240310ustar00rootroot00000000000000{ "kind": "ResourceQuota", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "hard": { "hardKey": "0" }, "scopes": [ "scopesValue" ], "scopeSelector": { "matchExpressions": [ { "scopeName": "scopeNameValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "status": { "hard": { "hardKey": "0" }, "used": { "usedKey": "0" } } }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ResourceQuota.pb000066400000000000000000000007641453636404600234710ustar00rootroot00000000000000k8s  v1 ResourceQuota  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueM  hardKey 0 scopesValue. , scopeNameValue operatorValue valuesValue  hardKey 0 usedKey 0"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ResourceQuota.yaml000066400000000000000000000021111453636404600240160ustar00rootroot00000000000000apiVersion: v1 kind: ResourceQuota metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: hard: hardKey: "0" scopeSelector: matchExpressions: - operator: operatorValue scopeName: scopeNameValue values: - valuesValue scopes: - scopesValue status: hard: hardKey: "0" used: usedKey: "0" golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Secret.json000066400000000000000000000024151453636404600224600ustar00rootroot00000000000000{ "kind": "Secret", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "immutable": true, "data": { "dataKey": "Ag==" }, "stringData": { "stringDataKey": "stringDataValue" }, "type": "typeValue" }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Secret.pb000066400000000000000000000006711453636404600221120ustar00rootroot00000000000000k8s v1Secret  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue dataKey typeValue" stringDataKeystringDataValue("golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Secret.yaml000066400000000000000000000016531453636404600224540ustar00rootroot00000000000000apiVersion: v1 data: dataKey: Ag== immutable: true kind: Secret metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue stringData: stringDataKey: stringDataValue type: typeValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.SerializedReference.json000066400000000000000000000004611453636404600251440ustar00rootroot00000000000000{ "kind": "SerializedReference", "apiVersion": "v1", "reference": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.SerializedReference.pb000066400000000000000000000002161453636404600245720ustar00rootroot00000000000000k8s  v1SerializedReferencei g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.SerializedReference.yaml000066400000000000000000000003461453636404600251370ustar00rootroot00000000000000apiVersion: v1 kind: SerializedReference reference: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Service.json000066400000000000000000000055071453636404600226400ustar00rootroot00000000000000{ "kind": "Service", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "ports": [ { "name": "nameValue", "protocol": "protocolValue", "appProtocol": "appProtocolValue", "port": 3, "targetPort": "targetPortValue", "nodePort": 5 } ], "selector": { "selectorKey": "selectorValue" }, "clusterIP": "clusterIPValue", "clusterIPs": [ "clusterIPsValue" ], "type": "typeValue", "externalIPs": [ "externalIPsValue" ], "sessionAffinity": "sessionAffinityValue", "loadBalancerIP": "loadBalancerIPValue", "loadBalancerSourceRanges": [ "loadBalancerSourceRangesValue" ], "externalName": "externalNameValue", "externalTrafficPolicy": "externalTrafficPolicyValue", "healthCheckNodePort": 12, "publishNotReadyAddresses": true, "sessionAffinityConfig": { "clientIP": { "timeoutSeconds": 1 } }, "ipFamilies": [ "ipFamiliesValue" ], "ipFamilyPolicy": "ipFamilyPolicyValue", "allocateLoadBalancerNodePorts": true, "loadBalancerClass": "loadBalancerClassValue", "internalTrafficPolicy": "internalTrafficPolicyValue" }, "status": { "loadBalancer": { "ingress": [ { "ip": "ipValue", "hostname": "hostnameValue", "ports": [ { "port": 1, "protocol": "protocolValue", "error": "errorValue" } ] } ] }, "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Service.pb000066400000000000000000000016101453636404600222570ustar00rootroot00000000000000k8s v1Service  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue G nameValue protocolValue"targetPortValue(2appProtocolValue selectorKey selectorValueclusterIPValue" typeValue*externalIPsValue:sessionAffinityValueBloadBalancerIPValueJloadBalancerSourceRangesValueRexternalNameValueZexternalTrafficPolicyValue` hr ipFamilyPolicyValueclusterIPsValueipFamiliesValueloadBalancerClassValueinternalTrafficPolicyValue| 9 7 ipValue hostnameValue" protocolValue errorValue? typeValue statusValue"* reasonValue2 messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Service.yaml000066400000000000000000000040201453636404600226160ustar00rootroot00000000000000apiVersion: v1 kind: Service metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: allocateLoadBalancerNodePorts: true clusterIP: clusterIPValue clusterIPs: - clusterIPsValue externalIPs: - externalIPsValue externalName: externalNameValue externalTrafficPolicy: externalTrafficPolicyValue healthCheckNodePort: 12 internalTrafficPolicy: internalTrafficPolicyValue ipFamilies: - ipFamiliesValue ipFamilyPolicy: ipFamilyPolicyValue loadBalancerClass: loadBalancerClassValue loadBalancerIP: loadBalancerIPValue loadBalancerSourceRanges: - loadBalancerSourceRangesValue ports: - appProtocol: appProtocolValue name: nameValue nodePort: 5 port: 3 protocol: protocolValue targetPort: targetPortValue publishNotReadyAddresses: true selector: selectorKey: selectorValue sessionAffinity: sessionAffinityValue sessionAffinityConfig: clientIP: timeoutSeconds: 1 type: typeValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue loadBalancer: ingress: - hostname: hostnameValue ip: ipValue ports: - error: errorValue port: 1 protocol: protocolValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ServiceAccount.json000066400000000000000000000027771453636404600241630ustar00rootroot00000000000000{ "kind": "ServiceAccount", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "secrets": [ { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } ], "imagePullSecrets": [ { "name": "nameValue" } ], "automountServiceAccountToken": true }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ServiceAccount.pb000066400000000000000000000007741453636404600236060ustar00rootroot00000000000000k8s  v1ServiceAccount  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue nameValue "golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ServiceAccount.yaml000066400000000000000000000021221453636404600241340ustar00rootroot00000000000000apiVersion: v1 automountServiceAccountToken: true imagePullSecrets: - name: nameValue kind: ServiceAccount metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue secrets: - apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ServiceProxyOptions.json000066400000000000000000000001201453636404600252400ustar00rootroot00000000000000{ "kind": "ServiceProxyOptions", "apiVersion": "v1", "path": "pathValue" }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ServiceProxyOptions.pb000066400000000000000000000000601453636404600246730ustar00rootroot00000000000000k8s  v1ServiceProxyOptions pathValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.ServiceProxyOptions.yaml000066400000000000000000000000711453636404600252360ustar00rootroot00000000000000apiVersion: v1 kind: ServiceProxyOptions path: pathValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Status.json000066400000000000000000000011121453636404600225070ustar00rootroot00000000000000{ "kind": "Status", "apiVersion": "v1", "metadata": { "selfLink": "selfLinkValue", "resourceVersion": "resourceVersionValue", "continue": "continueValue", "remainingItemCount": 4 }, "status": "statusValue", "message": "messageValue", "reason": "reasonValue", "details": { "name": "nameValue", "group": "groupValue", "kind": "kindValue", "uid": "uidValue", "causes": [ { "reason": "reasonValue", "message": "messageValue", "field": "fieldValue" } ], "retryAfterSeconds": 5 }, "code": 6 }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Status.pb000066400000000000000000000003241453636404600221430ustar00rootroot00000000000000k8s v1Status 6 selfLinkValueresourceVersionValue continueValue  statusValue messageValue" reasonValue*W nameValue groupValue kindValue"' reasonValue messageValue fieldValue(2uidValue0"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.Status.yaml000066400000000000000000000006321453636404600225060ustar00rootroot00000000000000apiVersion: v1 code: 6 details: causes: - field: fieldValue message: messageValue reason: reasonValue group: groupValue kind: kindValue name: nameValue retryAfterSeconds: 5 uid: uidValue kind: Status message: messageValue metadata: continue: continueValue remainingItemCount: 4 resourceVersion: resourceVersionValue selfLink: selfLinkValue reason: reasonValue status: statusValue golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.UpdateOptions.json000066400000000000000000000002541453636404600240300ustar00rootroot00000000000000{ "kind": "UpdateOptions", "apiVersion": "v1", "dryRun": [ "dryRunValue" ], "fieldManager": "fieldManagerValue", "fieldValidation": "fieldValidationValue" }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.UpdateOptions.pb000066400000000000000000000001251453636404600234550ustar00rootroot00000000000000k8s  v1 UpdateOptions6 dryRunValuefieldManagerValuefieldValidationValue"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.UpdateOptions.yaml000066400000000000000000000001771453636404600240250ustar00rootroot00000000000000apiVersion: v1 dryRun: - dryRunValue fieldManager: fieldManagerValue fieldValidation: fieldValidationValue kind: UpdateOptions golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.WatchEvent.json000066400000000000000000000002761453636404600233060ustar00rootroot00000000000000{ "type": "typeValue", "object": { "apiVersion": "example.com/v1", "kind": "CustomType", "spec": { "replicas": 1 }, "status": { "available": 1 } } }golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.WatchEvent.pb000066400000000000000000000002011453636404600227220ustar00rootroot00000000000000k8s  q typeValued b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}"golang-k8s-api-0.29.0/testdata/v1.27.0/core.v1.WatchEvent.yaml000066400000000000000000000001731453636404600232730ustar00rootroot00000000000000object: apiVersion: example.com/v1 kind: CustomType spec: replicas: 1 status: available: 1 type: typeValue golang-k8s-api-0.29.0/testdata/v1.27.0/discovery.k8s.io.v1.EndpointSlice.json000066400000000000000000000041421453636404600261630ustar00rootroot00000000000000{ "kind": "EndpointSlice", "apiVersion": "discovery.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "addressType": "addressTypeValue", "endpoints": [ { "addresses": [ "addressesValue" ], "conditions": { "ready": true, "serving": true, "terminating": true }, "hostname": "hostnameValue", "targetRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "deprecatedTopology": { "deprecatedTopologyKey": "deprecatedTopologyValue" }, "nodeName": "nodeNameValue", "zone": "zoneValue", "hints": { "forZones": [ { "name": "nameValue" } ] } } ], "ports": [ { "name": "nameValue", "protocol": "protocolValue", "port": 3, "appProtocol": "appProtocolValue" } ] }golang-k8s-api-0.29.0/testdata/v1.27.0/discovery.k8s.io.v1.EndpointSlice.pb000066400000000000000000000013041453636404600256100ustar00rootroot00000000000000k8s $ discovery.k8s.io/v1 EndpointSlice  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue addressesValue hostnameValue"g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue*0 deprecatedTopologyKeydeprecatedTopologyValue2 nodeNameValue: zoneValueB nameValue. nameValue protocolValue"appProtocolValue"addressTypeValue"golang-k8s-api-0.29.0/testdata/v1.27.0/discovery.k8s.io.v1.EndpointSlice.yaml000066400000000000000000000027251453636404600261610ustar00rootroot00000000000000addressType: addressTypeValue apiVersion: discovery.k8s.io/v1 endpoints: - addresses: - addressesValue conditions: ready: true serving: true terminating: true deprecatedTopology: deprecatedTopologyKey: deprecatedTopologyValue hints: forZones: - name: nameValue hostname: hostnameValue nodeName: nodeNameValue targetRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue zone: zoneValue kind: EndpointSlice metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue ports: - appProtocol: appProtocolValue name: nameValue port: 3 protocol: protocolValue golang-k8s-api-0.29.0/testdata/v1.27.0/discovery.k8s.io.v1beta1.EndpointSlice.json000066400000000000000000000040561453636404600271040ustar00rootroot00000000000000{ "kind": "EndpointSlice", "apiVersion": "discovery.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "addressType": "addressTypeValue", "endpoints": [ { "addresses": [ "addressesValue" ], "conditions": { "ready": true, "serving": true, "terminating": true }, "hostname": "hostnameValue", "targetRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "topology": { "topologyKey": "topologyValue" }, "nodeName": "nodeNameValue", "hints": { "forZones": [ { "name": "nameValue" } ] } } ], "ports": [ { "name": "nameValue", "protocol": "protocolValue", "port": 3, "appProtocol": "appProtocolValue" } ] }golang-k8s-api-0.29.0/testdata/v1.27.0/discovery.k8s.io.v1beta1.EndpointSlice.pb000066400000000000000000000012521453636404600265270ustar00rootroot00000000000000k8s ) discovery.k8s.io/v1beta1 EndpointSlice  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue addressesValue hostnameValue"g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue* topologyKey topologyValue2 nodeNameValue: nameValue. nameValue protocolValue"appProtocolValue"addressTypeValue"golang-k8s-api-0.29.0/testdata/v1.27.0/discovery.k8s.io.v1beta1.EndpointSlice.yaml000066400000000000000000000026521453636404600270750ustar00rootroot00000000000000addressType: addressTypeValue apiVersion: discovery.k8s.io/v1beta1 endpoints: - addresses: - addressesValue conditions: ready: true serving: true terminating: true hints: forZones: - name: nameValue hostname: hostnameValue nodeName: nodeNameValue targetRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue topology: topologyKey: topologyValue kind: EndpointSlice metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue ports: - appProtocol: appProtocolValue name: nameValue port: 3 protocol: protocolValue golang-k8s-api-0.29.0/testdata/v1.27.0/events.k8s.io.v1.Event.json000066400000000000000000000042441453636404600240040ustar00rootroot00000000000000{ "kind": "Event", "apiVersion": "events.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "eventTime": "2002-01-01T01:01:01.000002Z", "series": { "count": 1, "lastObservedTime": "2002-01-01T01:01:01.000002Z" }, "reportingController": "reportingControllerValue", "reportingInstance": "reportingInstanceValue", "action": "actionValue", "reason": "reasonValue", "regarding": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "related": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "note": "noteValue", "type": "typeValue", "deprecatedSource": { "component": "componentValue", "host": "hostValue" }, "deprecatedFirstTimestamp": "2013-01-01T01:01:01Z", "deprecatedLastTimestamp": "2014-01-01T01:01:01Z", "deprecatedCount": 15 }golang-k8s-api-0.29.0/testdata/v1.27.0/events.k8s.io.v1.Event.pb000066400000000000000000000014121453636404600234260ustar00rootroot00000000000000k8s  events.k8s.io/v1Event  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue ͔  ͔"reportingControllerValue*reportingInstanceValue2 actionValue: reasonValueBg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValueJg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValueR noteValueZ typeValueb componentValue hostValuejꈇrэx"golang-k8s-api-0.29.0/testdata/v1.27.0/events.k8s.io.v1.Event.yaml000066400000000000000000000032201453636404600237660ustar00rootroot00000000000000action: actionValue apiVersion: events.k8s.io/v1 deprecatedCount: 15 deprecatedFirstTimestamp: "2013-01-01T01:01:01Z" deprecatedLastTimestamp: "2014-01-01T01:01:01Z" deprecatedSource: component: componentValue host: hostValue eventTime: "2002-01-01T01:01:01.000002Z" kind: Event metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue note: noteValue reason: reasonValue regarding: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue related: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue reportingController: reportingControllerValue reportingInstance: reportingInstanceValue series: count: 1 lastObservedTime: "2002-01-01T01:01:01.000002Z" type: typeValue golang-k8s-api-0.29.0/testdata/v1.27.0/events.k8s.io.v1beta1.Event.json000066400000000000000000000042511453636404600247170ustar00rootroot00000000000000{ "kind": "Event", "apiVersion": "events.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "eventTime": "2002-01-01T01:01:01.000002Z", "series": { "count": 1, "lastObservedTime": "2002-01-01T01:01:01.000002Z" }, "reportingController": "reportingControllerValue", "reportingInstance": "reportingInstanceValue", "action": "actionValue", "reason": "reasonValue", "regarding": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "related": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "note": "noteValue", "type": "typeValue", "deprecatedSource": { "component": "componentValue", "host": "hostValue" }, "deprecatedFirstTimestamp": "2013-01-01T01:01:01Z", "deprecatedLastTimestamp": "2014-01-01T01:01:01Z", "deprecatedCount": 15 }golang-k8s-api-0.29.0/testdata/v1.27.0/events.k8s.io.v1beta1.Event.pb000066400000000000000000000014171453636404600243500ustar00rootroot00000000000000k8s  events.k8s.io/v1beta1Event  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue ͔  ͔"reportingControllerValue*reportingInstanceValue2 actionValue: reasonValueBg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValueJg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValueR noteValueZ typeValueb componentValue hostValuejꈇrэx"golang-k8s-api-0.29.0/testdata/v1.27.0/events.k8s.io.v1beta1.Event.yaml000066400000000000000000000032251453636404600247100ustar00rootroot00000000000000action: actionValue apiVersion: events.k8s.io/v1beta1 deprecatedCount: 15 deprecatedFirstTimestamp: "2013-01-01T01:01:01Z" deprecatedLastTimestamp: "2014-01-01T01:01:01Z" deprecatedSource: component: componentValue host: hostValue eventTime: "2002-01-01T01:01:01.000002Z" kind: Event metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue note: noteValue reason: reasonValue regarding: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue related: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue reportingController: reportingControllerValue reportingInstance: reportingInstanceValue series: count: 1 lastObservedTime: "2002-01-01T01:01:01.000002Z" type: typeValue golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.DaemonSet.after_roundtrip.json000066400000000000000000001467171453636404600305220ustar00rootroot00000000000000{ "kind": "DaemonSet", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "updateStrategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 4, "templateGeneration": 5, "revisionHistoryLimit": 6 }, "status": { "currentNumberScheduled": 1, "numberMisscheduled": 2, "desiredNumberScheduled": 3, "numberReady": 4, "observedGeneration": 5, "updatedNumberScheduled": 6, "numberAvailable": 7, "numberUnavailable": 8, "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.DaemonSet.after_roundtrip.pb000066400000000000000000000237001453636404600301340ustar00rootroot00000000000000k8s  extensions/v1beta1 DaemonSetO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue= typeValue0 maxUnavailableValue maxSurgeValue (0Q (08@H R= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.DaemonSet.after_roundtrip.yaml000066400000000000000000001021361453636404600304760ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: DaemonSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue templateGeneration: 5 updateStrategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue status: collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentNumberScheduled: 1 desiredNumberScheduled: 3 numberAvailable: 7 numberMisscheduled: 2 numberReady: 4 numberUnavailable: 8 observedGeneration: 5 updatedNumberScheduled: 6 golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.DaemonSet.json000066400000000000000000001471421453636404600253050ustar00rootroot00000000000000{ "kind": "DaemonSet", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "updateStrategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 4, "templateGeneration": 5, "revisionHistoryLimit": 6 }, "status": { "currentNumberScheduled": 1, "numberMisscheduled": 2, "desiredNumberScheduled": 3, "numberReady": 4, "observedGeneration": 5, "updatedNumberScheduled": 6, "numberAvailable": 7, "numberUnavailable": 8, "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.DaemonSet.pb000066400000000000000000000237151453636404600247340ustar00rootroot00000000000000k8s  extensions/v1beta1 DaemonSetO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue= typeValue0 maxUnavailableValue maxSurgeValue (0Q (08@H R= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.DaemonSet.yaml000066400000000000000000001022301453636404600252630ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: DaemonSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue templateGeneration: 5 updateStrategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue status: collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentNumberScheduled: 1 desiredNumberScheduled: 3 numberAvailable: 7 numberMisscheduled: 2 numberReady: 4 numberUnavailable: 8 observedGeneration: 5 updatedNumberScheduled: 6 golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.Deployment.after_roundtrip.json000066400000000000000000001470121453636404600307500ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "rollbackTo": { "revision": 1 }, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.Deployment.after_roundtrip.pb000066400000000000000000000237171453636404600304050ustar00rootroot00000000000000k8s extensions/v1beta1 DeploymentO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08BH W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.Deployment.after_roundtrip.yaml000066400000000000000000001022011453636404600307300ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 rollbackTo: revision: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.Deployment.json000066400000000000000000001472351453636404600255510ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "rollbackTo": { "revision": 1 }, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.Deployment.pb000066400000000000000000000237341453636404600251760ustar00rootroot00000000000000k8s extensions/v1beta1 DeploymentO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08BH W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.Deployment.yaml000066400000000000000000001022731453636404600255330ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 rollbackTo: revision: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.DeploymentRollback.json000066400000000000000000000003361453636404600272110ustar00rootroot00000000000000{ "kind": "DeploymentRollback", "apiVersion": "extensions/v1beta1", "name": "nameValue", "updatedAnnotations": { "updatedAnnotationsKey": "updatedAnnotationsValue" }, "rollbackTo": { "revision": 1 } }golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.DeploymentRollback.pb000066400000000000000000000001651453636404600266410ustar00rootroot00000000000000k8s ( extensions/v1beta1DeploymentRollbackA nameValue0 updatedAnnotationsKeyupdatedAnnotationsValue"golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.DeploymentRollback.yaml000066400000000000000000000002471453636404600272030ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: DeploymentRollback name: nameValue rollbackTo: revision: 1 updatedAnnotations: updatedAnnotationsKey: updatedAnnotationsValue golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.Ingress.json000066400000000000000000000046371453636404600250410ustar00rootroot00000000000000{ "kind": "Ingress", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "ingressClassName": "ingressClassNameValue", "backend": { "serviceName": "serviceNameValue", "servicePort": "servicePortValue", "resource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }, "tls": [ { "hosts": [ "hostsValue" ], "secretName": "secretNameValue" } ], "rules": [ { "host": "hostValue", "http": { "paths": [ { "path": "pathValue", "pathType": "pathTypeValue", "backend": { "serviceName": "serviceNameValue", "servicePort": "servicePortValue", "resource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } } } ] } } ] }, "status": { "loadBalancer": { "ingress": [ { "ip": "ipValue", "hostname": "hostnameValue", "ports": [ { "port": 1, "protocol": "protocolValue", "error": "errorValue" } ] } ] } } }golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.Ingress.pb000066400000000000000000000013261453636404600244610ustar00rootroot00000000000000k8s  extensions/v1beta1Ingress  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue Q serviceNameValueservicePortValue% apiGroupValue kindValue nameValue hostsValuesecretNameValue~ hostValueq o m pathValueQ serviceNameValueservicePortValue% apiGroupValue kindValue nameValue pathTypeValue"ingressClassNameValue; 9 7 ipValue hostnameValue" protocolValue errorValue"golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.Ingress.yaml000066400000000000000000000031341453636404600250210ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: backend: resource: apiGroup: apiGroupValue kind: kindValue name: nameValue serviceName: serviceNameValue servicePort: servicePortValue ingressClassName: ingressClassNameValue rules: - host: hostValue http: paths: - backend: resource: apiGroup: apiGroupValue kind: kindValue name: nameValue serviceName: serviceNameValue servicePort: servicePortValue path: pathValue pathType: pathTypeValue tls: - hosts: - hostsValue secretName: secretNameValue status: loadBalancer: ingress: - hostname: hostnameValue ip: ipValue ports: - error: errorValue port: 1 protocol: protocolValue golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.json000066400000000000000000000075241453636404600314440ustar00rootroot00000000000000{ "kind": "NetworkPolicy", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ingress": [ { "ports": [ { "protocol": "protocolValue", "port": "portValue", "endPort": 3 } ], "from": [ { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ipBlock": { "cidr": "cidrValue", "except": [ "exceptValue" ] } } ] } ], "egress": [ { "ports": [ { "protocol": "protocolValue", "port": "portValue", "endPort": 3 } ], "to": [ { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ipBlock": { "cidr": "cidrValue", "except": [ "exceptValue" ] } } ] } ], "policyTypes": [ "policyTypesValue" ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.pb000066400000000000000000000016661453636404600310750ustar00rootroot00000000000000k8s # extensions/v1beta1 NetworkPolicy  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue " protocolValue portValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue cidrValue exceptValue " protocolValue portValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue cidrValue exceptValue"policyTypesValue"golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.yaml000066400000000000000000000043531453636404600314320ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: NetworkPolicy metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: egress: - ports: - endPort: 3 port: portValue protocol: protocolValue to: - ipBlock: cidr: cidrValue except: - exceptValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue ingress: - from: - ipBlock: cidr: cidrValue except: - exceptValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue ports: - endPort: 3 port: portValue protocol: protocolValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue policyTypes: - policyTypesValue golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.json000066400000000000000000000101511453636404600262240ustar00rootroot00000000000000{ "kind": "NetworkPolicy", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ingress": [ { "ports": [ { "protocol": "protocolValue", "port": "portValue", "endPort": 3 } ], "from": [ { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ipBlock": { "cidr": "cidrValue", "except": [ "exceptValue" ] } } ] } ], "egress": [ { "ports": [ { "protocol": "protocolValue", "port": "portValue", "endPort": 3 } ], "to": [ { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ipBlock": { "cidr": "cidrValue", "except": [ "exceptValue" ] } } ] } ], "policyTypes": [ "policyTypesValue" ] }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.pb000066400000000000000000000017711453636404600256640ustar00rootroot00000000000000k8s # extensions/v1beta1 NetworkPolicy  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue " protocolValue portValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue cidrValue exceptValue " protocolValue portValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue cidrValue exceptValue"policyTypesValueA ? typeValue statusValue"* reasonValue2 messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.yaml000066400000000000000000000046501453636404600262240ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: NetworkPolicy metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: egress: - ports: - endPort: 3 port: portValue protocol: protocolValue to: - ipBlock: cidr: cidrValue except: - exceptValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue ingress: - from: - ipBlock: cidr: cidrValue except: - exceptValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue ports: - endPort: 3 port: portValue protocol: protocolValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue policyTypes: - policyTypesValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.ReplicaSet.after_roundtrip.json000066400000000000000000001461701453636404600306670ustar00rootroot00000000000000{ "kind": "ReplicaSet", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.ReplicaSet.after_roundtrip.pb000066400000000000000000000235701453636404600303150ustar00rootroot00000000000000k8s extensions/v1beta1 ReplicaSetN  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.ReplicaSet.after_roundtrip.yaml000066400000000000000000001015171453636404600306540ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: ReplicaSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.ReplicaSet.json000066400000000000000000001464131453636404600254610ustar00rootroot00000000000000{ "kind": "ReplicaSet", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.ReplicaSet.pb000066400000000000000000000236051453636404600251060ustar00rootroot00000000000000k8s extensions/v1beta1 ReplicaSetN  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueJ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueG  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.ReplicaSet.yaml000066400000000000000000001016111453636404600254410ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: ReplicaSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.Scale.json000066400000000000000000000024761453636404600244550ustar00rootroot00000000000000{ "kind": "Scale", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1 }, "status": { "replicas": 1, "selector": { "selectorKey": "selectorValue" }, "targetSelector": "targetSelectorValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.Scale.pb000066400000000000000000000007061453636404600240770ustar00rootroot00000000000000k8s  extensions/v1beta1Scale  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 selectorKey selectorValuetargetSelectorValue"golang-k8s-api-0.29.0/testdata/v1.27.0/extensions.v1beta1.Scale.yaml000066400000000000000000000017221453636404600244370ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: Scale metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: replicas: 1 status: replicas: 1 selector: selectorKey: selectorValue targetSelector: targetSelectorValue golang-k8s-api-0.29.0/testdata/v1.27.0/flowcontrol.apiserver.k8s.io.v1alpha1.FlowSchema.json000066400000000000000000000050451453636404600311050ustar00rootroot00000000000000{ "kind": "FlowSchema", "apiVersion": "flowcontrol.apiserver.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "priorityLevelConfiguration": { "name": "nameValue" }, "matchingPrecedence": 2, "distinguisherMethod": { "type": "typeValue" }, "rules": [ { "subjects": [ { "kind": "kindValue", "user": { "name": "nameValue" }, "group": { "name": "nameValue" }, "serviceAccount": { "namespace": "namespaceValue", "name": "nameValue" } } ], "resourceRules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "clusterScope": true, "namespaces": [ "namespacesValue" ] } ], "nonResourceRules": [ { "verbs": [ "verbsValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] } ] }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/flowcontrol.apiserver.k8s.io.v1alpha1.FlowSchema.pb000066400000000000000000000012571453636404600305360ustar00rootroot00000000000000k8s 3 %flowcontrol.apiserver.k8s.io/v1alpha1 FlowSchema  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue typeValue" B kindValue nameValue nameValue" namespaceValue nameValue? verbsValueapiGroupsValueresourcesValue *namespacesValue" verbsValue2nonResourceURLsValue? = typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/flowcontrol.apiserver.k8s.io.v1alpha1.FlowSchema.yaml000066400000000000000000000032031453636404600310700ustar00rootroot00000000000000apiVersion: flowcontrol.apiserver.k8s.io/v1alpha1 kind: FlowSchema metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: distinguisherMethod: type: typeValue matchingPrecedence: 2 priorityLevelConfiguration: name: nameValue rules: - nonResourceRules: - nonResourceURLs: - nonResourceURLsValue verbs: - verbsValue resourceRules: - apiGroups: - apiGroupsValue clusterScope: true namespaces: - namespacesValue resources: - resourcesValue verbs: - verbsValue subjects: - group: name: nameValue kind: kindValue serviceAccount: name: nameValue namespace: namespaceValue user: name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue flowcontrol.apiserver.k8s.io.v1alpha1.PriorityLevelConfiguration.json000066400000000000000000000033701453636404600343360ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0{ "kind": "PriorityLevelConfiguration", "apiVersion": "flowcontrol.apiserver.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "type": "typeValue", "limited": { "assuredConcurrencyShares": 1, "limitResponse": { "type": "typeValue", "queuing": { "queues": 1, "handSize": 2, "queueLengthLimit": 3 } }, "lendablePercent": 3, "borrowingLimitPercent": 4 } }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }flowcontrol.apiserver.k8s.io.v1alpha1.PriorityLevelConfiguration.pb000066400000000000000000000010361453636404600337630ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0k8s C %flowcontrol.apiserver.k8s.io/v1alpha1PriorityLevelConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue( typeValue typeValue ? = typeValue statusValue" reasonValue* messageValue"flowcontrol.apiserver.k8s.io.v1alpha1.PriorityLevelConfiguration.yaml000066400000000000000000000024231453636404600343250ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0apiVersion: flowcontrol.apiserver.k8s.io/v1alpha1 kind: PriorityLevelConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: limited: assuredConcurrencyShares: 1 borrowingLimitPercent: 4 lendablePercent: 3 limitResponse: queuing: handSize: 2 queueLengthLimit: 3 queues: 1 type: typeValue type: typeValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/v1.27.0/flowcontrol.apiserver.k8s.io.v1beta1.FlowSchema.json000066400000000000000000000050441453636404600307320ustar00rootroot00000000000000{ "kind": "FlowSchema", "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "priorityLevelConfiguration": { "name": "nameValue" }, "matchingPrecedence": 2, "distinguisherMethod": { "type": "typeValue" }, "rules": [ { "subjects": [ { "kind": "kindValue", "user": { "name": "nameValue" }, "group": { "name": "nameValue" }, "serviceAccount": { "namespace": "namespaceValue", "name": "nameValue" } } ], "resourceRules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "clusterScope": true, "namespaces": [ "namespacesValue" ] } ], "nonResourceRules": [ { "verbs": [ "verbsValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] } ] }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/flowcontrol.apiserver.k8s.io.v1beta1.FlowSchema.pb000066400000000000000000000012561453636404600303630ustar00rootroot00000000000000k8s 2 $flowcontrol.apiserver.k8s.io/v1beta1 FlowSchema  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue typeValue" B kindValue nameValue nameValue" namespaceValue nameValue? verbsValueapiGroupsValueresourcesValue *namespacesValue" verbsValue2nonResourceURLsValue? = typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/flowcontrol.apiserver.k8s.io.v1beta1.FlowSchema.yaml000066400000000000000000000032021453636404600307150ustar00rootroot00000000000000apiVersion: flowcontrol.apiserver.k8s.io/v1beta1 kind: FlowSchema metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: distinguisherMethod: type: typeValue matchingPrecedence: 2 priorityLevelConfiguration: name: nameValue rules: - nonResourceRules: - nonResourceURLs: - nonResourceURLsValue verbs: - verbsValue resourceRules: - apiGroups: - apiGroupsValue clusterScope: true namespaces: - namespacesValue resources: - resourcesValue verbs: - verbsValue subjects: - group: name: nameValue kind: kindValue serviceAccount: name: nameValue namespace: namespaceValue user: name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue flowcontrol.apiserver.k8s.io.v1beta1.PriorityLevelConfiguration.json000066400000000000000000000033671453636404600341720ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0{ "kind": "PriorityLevelConfiguration", "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "type": "typeValue", "limited": { "assuredConcurrencyShares": 1, "limitResponse": { "type": "typeValue", "queuing": { "queues": 1, "handSize": 2, "queueLengthLimit": 3 } }, "lendablePercent": 3, "borrowingLimitPercent": 4 } }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }flowcontrol.apiserver.k8s.io.v1beta1.PriorityLevelConfiguration.pb000066400000000000000000000010351453636404600336100ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0k8s B $flowcontrol.apiserver.k8s.io/v1beta1PriorityLevelConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue( typeValue typeValue ? = typeValue statusValue" reasonValue* messageValue"flowcontrol.apiserver.k8s.io.v1beta1.PriorityLevelConfiguration.yaml000066400000000000000000000024221453636404600341520ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0apiVersion: flowcontrol.apiserver.k8s.io/v1beta1 kind: PriorityLevelConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: limited: assuredConcurrencyShares: 1 borrowingLimitPercent: 4 lendablePercent: 3 limitResponse: queuing: handSize: 2 queueLengthLimit: 3 queues: 1 type: typeValue type: typeValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/v1.27.0/flowcontrol.apiserver.k8s.io.v1beta2.FlowSchema.json000066400000000000000000000050441453636404600307330ustar00rootroot00000000000000{ "kind": "FlowSchema", "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "priorityLevelConfiguration": { "name": "nameValue" }, "matchingPrecedence": 2, "distinguisherMethod": { "type": "typeValue" }, "rules": [ { "subjects": [ { "kind": "kindValue", "user": { "name": "nameValue" }, "group": { "name": "nameValue" }, "serviceAccount": { "namespace": "namespaceValue", "name": "nameValue" } } ], "resourceRules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "clusterScope": true, "namespaces": [ "namespacesValue" ] } ], "nonResourceRules": [ { "verbs": [ "verbsValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] } ] }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/flowcontrol.apiserver.k8s.io.v1beta2.FlowSchema.pb000066400000000000000000000012561453636404600303640ustar00rootroot00000000000000k8s 2 $flowcontrol.apiserver.k8s.io/v1beta2 FlowSchema  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue typeValue" B kindValue nameValue nameValue" namespaceValue nameValue? verbsValueapiGroupsValueresourcesValue *namespacesValue" verbsValue2nonResourceURLsValue? = typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/flowcontrol.apiserver.k8s.io.v1beta2.FlowSchema.yaml000066400000000000000000000032021453636404600307160ustar00rootroot00000000000000apiVersion: flowcontrol.apiserver.k8s.io/v1beta2 kind: FlowSchema metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: distinguisherMethod: type: typeValue matchingPrecedence: 2 priorityLevelConfiguration: name: nameValue rules: - nonResourceRules: - nonResourceURLs: - nonResourceURLsValue verbs: - verbsValue resourceRules: - apiGroups: - apiGroupsValue clusterScope: true namespaces: - namespacesValue resources: - resourcesValue verbs: - verbsValue subjects: - group: name: nameValue kind: kindValue serviceAccount: name: nameValue namespace: namespaceValue user: name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue flowcontrol.apiserver.k8s.io.v1beta2.PriorityLevelConfiguration.json000066400000000000000000000033671453636404600341730ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0{ "kind": "PriorityLevelConfiguration", "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "type": "typeValue", "limited": { "assuredConcurrencyShares": 1, "limitResponse": { "type": "typeValue", "queuing": { "queues": 1, "handSize": 2, "queueLengthLimit": 3 } }, "lendablePercent": 3, "borrowingLimitPercent": 4 } }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }flowcontrol.apiserver.k8s.io.v1beta2.PriorityLevelConfiguration.pb000066400000000000000000000010351453636404600336110ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0k8s B $flowcontrol.apiserver.k8s.io/v1beta2PriorityLevelConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue( typeValue typeValue ? = typeValue statusValue" reasonValue* messageValue"flowcontrol.apiserver.k8s.io.v1beta2.PriorityLevelConfiguration.yaml000066400000000000000000000024221453636404600341530ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0apiVersion: flowcontrol.apiserver.k8s.io/v1beta2 kind: PriorityLevelConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: limited: assuredConcurrencyShares: 1 borrowingLimitPercent: 4 lendablePercent: 3 limitResponse: queuing: handSize: 2 queueLengthLimit: 3 queues: 1 type: typeValue type: typeValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/v1.27.0/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.json000066400000000000000000000050441453636404600307340ustar00rootroot00000000000000{ "kind": "FlowSchema", "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta3", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "priorityLevelConfiguration": { "name": "nameValue" }, "matchingPrecedence": 2, "distinguisherMethod": { "type": "typeValue" }, "rules": [ { "subjects": [ { "kind": "kindValue", "user": { "name": "nameValue" }, "group": { "name": "nameValue" }, "serviceAccount": { "namespace": "namespaceValue", "name": "nameValue" } } ], "resourceRules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "clusterScope": true, "namespaces": [ "namespacesValue" ] } ], "nonResourceRules": [ { "verbs": [ "verbsValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] } ] }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.pb000066400000000000000000000012561453636404600303650ustar00rootroot00000000000000k8s 2 $flowcontrol.apiserver.k8s.io/v1beta3 FlowSchema  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue typeValue" B kindValue nameValue nameValue" namespaceValue nameValue? verbsValueapiGroupsValueresourcesValue *namespacesValue" verbsValue2nonResourceURLsValue? = typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.yaml000066400000000000000000000032021453636404600307170ustar00rootroot00000000000000apiVersion: flowcontrol.apiserver.k8s.io/v1beta3 kind: FlowSchema metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: distinguisherMethod: type: typeValue matchingPrecedence: 2 priorityLevelConfiguration: name: nameValue rules: - nonResourceRules: - nonResourceURLs: - nonResourceURLsValue verbs: - verbsValue resourceRules: - apiGroups: - apiGroupsValue clusterScope: true namespaces: - namespacesValue resources: - resourcesValue verbs: - verbsValue subjects: - group: name: nameValue kind: kindValue serviceAccount: name: nameValue namespace: namespaceValue user: name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue flowcontrol.apiserver.k8s.io.v1beta3.PriorityLevelConfiguration.json000066400000000000000000000033671453636404600341740ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0{ "kind": "PriorityLevelConfiguration", "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta3", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "type": "typeValue", "limited": { "nominalConcurrencyShares": 1, "limitResponse": { "type": "typeValue", "queuing": { "queues": 1, "handSize": 2, "queueLengthLimit": 3 } }, "lendablePercent": 3, "borrowingLimitPercent": 4 } }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }flowcontrol.apiserver.k8s.io.v1beta3.PriorityLevelConfiguration.pb000066400000000000000000000010351453636404600336120ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0k8s B $flowcontrol.apiserver.k8s.io/v1beta3PriorityLevelConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue( typeValue typeValue ? = typeValue statusValue" reasonValue* messageValue"flowcontrol.apiserver.k8s.io.v1beta3.PriorityLevelConfiguration.yaml000066400000000000000000000024221453636404600341540ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.27.0apiVersion: flowcontrol.apiserver.k8s.io/v1beta3 kind: PriorityLevelConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: limited: borrowingLimitPercent: 4 lendablePercent: 3 limitResponse: queuing: handSize: 2 queueLengthLimit: 3 queues: 1 type: typeValue nominalConcurrencyShares: 1 type: typeValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/v1.27.0/imagepolicy.k8s.io.v1alpha1.ImageReview.json000066400000000000000000000027671453636404600272240ustar00rootroot00000000000000{ "kind": "ImageReview", "apiVersion": "imagepolicy.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "containers": [ { "image": "imageValue" } ], "annotations": { "annotationsKey": "annotationsValue" }, "namespace": "namespaceValue" }, "status": { "allowed": true, "reason": "reasonValue", "auditAnnotations": { "auditAnnotationsKey": "auditAnnotationsValue" } } }golang-k8s-api-0.29.0/testdata/v1.27.0/imagepolicy.k8s.io.v1alpha1.ImageReview.pb000066400000000000000000000010351453636404600266370ustar00rootroot00000000000000k8s * imagepolicy.k8s.io/v1alpha1 ImageReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueB imageValue" annotationsKeyannotationsValuenamespaceValue= reasonValue, auditAnnotationsKeyauditAnnotationsValue"golang-k8s-api-0.29.0/testdata/v1.27.0/imagepolicy.k8s.io.v1alpha1.ImageReview.yaml000066400000000000000000000021211453636404600271750ustar00rootroot00000000000000apiVersion: imagepolicy.k8s.io/v1alpha1 kind: ImageReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: annotations: annotationsKey: annotationsValue containers: - image: imageValue namespace: namespaceValue status: allowed: true auditAnnotations: auditAnnotationsKey: auditAnnotationsValue reason: reasonValue golang-k8s-api-0.29.0/testdata/v1.27.0/internal.apiserver.k8s.io.v1alpha1.StorageVersion.json000066400000000000000000000033341453636404600312720ustar00rootroot00000000000000{ "kind": "StorageVersion", "apiVersion": "internal.apiserver.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": {}, "status": { "storageVersions": [ { "apiServerID": "apiServerIDValue", "encodingVersion": "encodingVersionValue", "decodableVersions": [ "decodableVersionsValue" ] } ], "commonEncodingVersion": "commonEncodingVersionValue", "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/internal.apiserver.k8s.io.v1alpha1.StorageVersion.pb000066400000000000000000000011101453636404600307100ustar00rootroot00000000000000k8s 4 "internal.apiserver.k8s.io/v1alpha1StorageVersion  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue @ apiServerIDValueencodingVersionValuedecodableVersionsValuecommonEncodingVersionValue? typeValue statusValue"* reasonValue2 messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/internal.apiserver.k8s.io.v1alpha1.StorageVersion.yaml000066400000000000000000000023751453636404600312670ustar00rootroot00000000000000apiVersion: internal.apiserver.k8s.io/v1alpha1 kind: StorageVersion metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: {} status: commonEncodingVersion: commonEncodingVersionValue conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue storageVersions: - apiServerID: apiServerIDValue decodableVersions: - decodableVersionsValue encodingVersion: encodingVersionValue golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1.Ingress.json000066400000000000000000000051121453636404600252130ustar00rootroot00000000000000{ "kind": "Ingress", "apiVersion": "networking.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "ingressClassName": "ingressClassNameValue", "defaultBackend": { "service": { "name": "nameValue", "port": { "name": "nameValue", "number": 2 } }, "resource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }, "tls": [ { "hosts": [ "hostsValue" ], "secretName": "secretNameValue" } ], "rules": [ { "host": "hostValue", "http": { "paths": [ { "path": "pathValue", "pathType": "pathTypeValue", "backend": { "service": { "name": "nameValue", "port": { "name": "nameValue", "number": 2 } }, "resource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } } } ] } } ] }, "status": { "loadBalancer": { "ingress": [ { "ip": "ipValue", "hostname": "hostnameValue", "ports": [ { "port": 1, "protocol": "protocolValue", "error": "errorValue" } ] } ] } } }golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1.Ingress.pb000066400000000000000000000012741453636404600246500ustar00rootroot00000000000000k8s  networking.k8s.io/v1Ingress  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue C% apiGroupValue kindValue nameValue" nameValue nameValue hostsValuesecretNameValuep hostValuec a _ pathValueC% apiGroupValue kindValue nameValue" nameValue nameValue pathTypeValue"ingressClassNameValue; 9 7 ipValue hostnameValue" protocolValue errorValue"golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1.Ingress.yaml000066400000000000000000000032411453636404600252050ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: defaultBackend: resource: apiGroup: apiGroupValue kind: kindValue name: nameValue service: name: nameValue port: name: nameValue number: 2 ingressClassName: ingressClassNameValue rules: - host: hostValue http: paths: - backend: resource: apiGroup: apiGroupValue kind: kindValue name: nameValue service: name: nameValue port: name: nameValue number: 2 path: pathValue pathType: pathTypeValue tls: - hosts: - hostsValue secretName: secretNameValue status: loadBalancer: ingress: - hostname: hostnameValue ip: ipValue ports: - error: errorValue port: 1 protocol: protocolValue golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1.IngressClass.json000066400000000000000000000025761453636404600262140ustar00rootroot00000000000000{ "kind": "IngressClass", "apiVersion": "networking.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "controller": "controllerValue", "parameters": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "scope": "scopeValue", "namespace": "namespaceValue" } } }golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1.IngressClass.pb000066400000000000000000000007521453636404600256360ustar00rootroot00000000000000k8s $ networking.k8s.io/v1 IngressClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueT controllerValueA apiGroupValue kindValue nameValue" scopeValue*namespaceValue"golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1.IngressClass.yaml000066400000000000000000000020121453636404600261660ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1 kind: IngressClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: controller: controllerValue parameters: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue scope: scopeValue golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.json000066400000000000000000000075261453636404600316330ustar00rootroot00000000000000{ "kind": "NetworkPolicy", "apiVersion": "networking.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ingress": [ { "ports": [ { "protocol": "protocolValue", "port": "portValue", "endPort": 3 } ], "from": [ { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ipBlock": { "cidr": "cidrValue", "except": [ "exceptValue" ] } } ] } ], "egress": [ { "ports": [ { "protocol": "protocolValue", "port": "portValue", "endPort": 3 } ], "to": [ { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ipBlock": { "cidr": "cidrValue", "except": [ "exceptValue" ] } } ] } ], "policyTypes": [ "policyTypesValue" ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.pb000066400000000000000000000016701453636404600312550ustar00rootroot00000000000000k8s % networking.k8s.io/v1 NetworkPolicy  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue " protocolValue portValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue cidrValue exceptValue " protocolValue portValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue cidrValue exceptValue"policyTypesValue"golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.yaml000066400000000000000000000043551453636404600316210ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: egress: - ports: - endPort: 3 port: portValue protocol: protocolValue to: - ipBlock: cidr: cidrValue except: - exceptValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue ingress: - from: - ipBlock: cidr: cidrValue except: - exceptValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue ports: - endPort: 3 port: portValue protocol: protocolValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue policyTypes: - policyTypesValue golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.json000066400000000000000000000101531453636404600264130ustar00rootroot00000000000000{ "kind": "NetworkPolicy", "apiVersion": "networking.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ingress": [ { "ports": [ { "protocol": "protocolValue", "port": "portValue", "endPort": 3 } ], "from": [ { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ipBlock": { "cidr": "cidrValue", "except": [ "exceptValue" ] } } ] } ], "egress": [ { "ports": [ { "protocol": "protocolValue", "port": "portValue", "endPort": 3 } ], "to": [ { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ipBlock": { "cidr": "cidrValue", "except": [ "exceptValue" ] } } ] } ], "policyTypes": [ "policyTypesValue" ] }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.pb000066400000000000000000000017731453636404600260530ustar00rootroot00000000000000k8s % networking.k8s.io/v1 NetworkPolicy  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue " protocolValue portValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue cidrValue exceptValue " protocolValue portValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue cidrValue exceptValue"policyTypesValueA ? typeValue statusValue"* reasonValue2 messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.yaml000066400000000000000000000046521453636404600264130ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: egress: - ports: - endPort: 3 port: portValue protocol: protocolValue to: - ipBlock: cidr: cidrValue except: - exceptValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue ingress: - from: - ipBlock: cidr: cidrValue except: - exceptValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue ports: - endPort: 3 port: portValue protocol: protocolValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue policyTypes: - policyTypesValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1alpha1.IPAddress.after_roundtrip.json000066400000000000000000000025001453636404600317120ustar00rootroot00000000000000{ "kind": "IPAddress", "apiVersion": "networking.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parentRef": { "group": "groupValue", "resource": "resourceValue", "namespace": "namespaceValue", "name": "nameValue" } } }golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1alpha1.IPAddress.after_roundtrip.pb000066400000000000000000000007211453636404600313450ustar00rootroot00000000000000k8s ' networking.k8s.io/v1alpha1 IPAddress  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue8 6 groupValue resourceValuenamespaceValue" nameValue"golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1alpha1.IPAddress.after_roundtrip.yaml000066400000000000000000000017321453636404600317110ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1alpha1 kind: IPAddress metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: parentRef: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1alpha1.IPAddress.json000066400000000000000000000025311453636404600265100ustar00rootroot00000000000000{ "kind": "IPAddress", "apiVersion": "networking.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parentRef": { "group": "groupValue", "resource": "resourceValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue" } } }golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1alpha1.IPAddress.pb000066400000000000000000000007331453636404600261420ustar00rootroot00000000000000k8s ' networking.k8s.io/v1alpha1 IPAddress  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueB @ groupValue resourceValuenamespaceValue" nameValue*uidValue"golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1alpha1.IPAddress.yaml000066400000000000000000000017541453636404600265070ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1alpha1 kind: IPAddress metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: parentRef: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue uid: uidValue golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1beta1.Ingress.json000066400000000000000000000046461453636404600261430ustar00rootroot00000000000000{ "kind": "Ingress", "apiVersion": "networking.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "ingressClassName": "ingressClassNameValue", "backend": { "serviceName": "serviceNameValue", "servicePort": "servicePortValue", "resource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }, "tls": [ { "hosts": [ "hostsValue" ], "secretName": "secretNameValue" } ], "rules": [ { "host": "hostValue", "http": { "paths": [ { "path": "pathValue", "pathType": "pathTypeValue", "backend": { "serviceName": "serviceNameValue", "servicePort": "servicePortValue", "resource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } } } ] } } ] }, "status": { "loadBalancer": { "ingress": [ { "ip": "ipValue", "hostname": "hostnameValue", "ports": [ { "port": 1, "protocol": "protocolValue", "error": "errorValue" } ] } ] } } }golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1beta1.Ingress.pb000066400000000000000000000013351453636404600255630ustar00rootroot00000000000000k8s $ networking.k8s.io/v1beta1Ingress  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue Q serviceNameValueservicePortValue% apiGroupValue kindValue nameValue hostsValuesecretNameValue~ hostValueq o m pathValueQ serviceNameValueservicePortValue% apiGroupValue kindValue nameValue pathTypeValue"ingressClassNameValue; 9 7 ipValue hostnameValue" protocolValue errorValue"golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1beta1.Ingress.yaml000066400000000000000000000031431453636404600261230ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: backend: resource: apiGroup: apiGroupValue kind: kindValue name: nameValue serviceName: serviceNameValue servicePort: servicePortValue ingressClassName: ingressClassNameValue rules: - host: hostValue http: paths: - backend: resource: apiGroup: apiGroupValue kind: kindValue name: nameValue serviceName: serviceNameValue servicePort: servicePortValue path: pathValue pathType: pathTypeValue tls: - hosts: - hostsValue secretName: secretNameValue status: loadBalancer: ingress: - hostname: hostnameValue ip: ipValue ports: - error: errorValue port: 1 protocol: protocolValue golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1beta1.IngressClass.json000066400000000000000000000026031453636404600271200ustar00rootroot00000000000000{ "kind": "IngressClass", "apiVersion": "networking.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "controller": "controllerValue", "parameters": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "scope": "scopeValue", "namespace": "namespaceValue" } } }golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1beta1.IngressClass.pb000066400000000000000000000007571453636404600265600ustar00rootroot00000000000000k8s ) networking.k8s.io/v1beta1 IngressClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueT controllerValueA apiGroupValue kindValue nameValue" scopeValue*namespaceValue"golang-k8s-api-0.29.0/testdata/v1.27.0/networking.k8s.io.v1beta1.IngressClass.yaml000066400000000000000000000020171453636404600271100ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1beta1 kind: IngressClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: controller: controllerValue parameters: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue scope: scopeValue golang-k8s-api-0.29.0/testdata/v1.27.0/node.k8s.io.v1.RuntimeClass.json000066400000000000000000000030341453636404600247510ustar00rootroot00000000000000{ "kind": "RuntimeClass", "apiVersion": "node.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "handler": "handlerValue", "overhead": { "podFixed": { "podFixedKey": "0" } }, "scheduling": { "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/node.k8s.io.v1.RuntimeClass.pb000066400000000000000000000010201453636404600243720ustar00rootroot00000000000000k8s  node.k8s.io/v1 RuntimeClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue handlerValue  podFixedKey 0"\ $ nodeSelectorKeynodeSelectorValue4 keyValue operatorValue valueValue" effectValue("golang-k8s-api-0.29.0/testdata/v1.27.0/node.k8s.io.v1.RuntimeClass.yaml000066400000000000000000000021421453636404600247410ustar00rootroot00000000000000apiVersion: node.k8s.io/v1 handler: handlerValue kind: RuntimeClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue overhead: podFixed: podFixedKey: "0" scheduling: nodeSelector: nodeSelectorKey: nodeSelectorValue tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue golang-k8s-api-0.29.0/testdata/v1.27.0/node.k8s.io.v1alpha1.RuntimeClass.json000066400000000000000000000031501453636404600260370ustar00rootroot00000000000000{ "kind": "RuntimeClass", "apiVersion": "node.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "runtimeHandler": "runtimeHandlerValue", "overhead": { "podFixed": { "podFixedKey": "0" } }, "scheduling": { "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ] } } }golang-k8s-api-0.29.0/testdata/v1.27.0/node.k8s.io.v1alpha1.RuntimeClass.pb000066400000000000000000000010401453636404600254630ustar00rootroot00000000000000k8s $ node.k8s.io/v1alpha1 RuntimeClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue runtimeHandlerValue  podFixedKey 0\ $ nodeSelectorKeynodeSelectorValue4 keyValue operatorValue valueValue" effectValue("golang-k8s-api-0.29.0/testdata/v1.27.0/node.k8s.io.v1alpha1.RuntimeClass.yaml000066400000000000000000000022261453636404600260330ustar00rootroot00000000000000apiVersion: node.k8s.io/v1alpha1 kind: RuntimeClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: overhead: podFixed: podFixedKey: "0" runtimeHandler: runtimeHandlerValue scheduling: nodeSelector: nodeSelectorKey: nodeSelectorValue tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue golang-k8s-api-0.29.0/testdata/v1.27.0/node.k8s.io.v1beta1.RuntimeClass.json000066400000000000000000000030411453636404600256640ustar00rootroot00000000000000{ "kind": "RuntimeClass", "apiVersion": "node.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "handler": "handlerValue", "overhead": { "podFixed": { "podFixedKey": "0" } }, "scheduling": { "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/node.k8s.io.v1beta1.RuntimeClass.pb000066400000000000000000000010251453636404600253140ustar00rootroot00000000000000k8s # node.k8s.io/v1beta1 RuntimeClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue handlerValue  podFixedKey 0"\ $ nodeSelectorKeynodeSelectorValue4 keyValue operatorValue valueValue" effectValue("golang-k8s-api-0.29.0/testdata/v1.27.0/node.k8s.io.v1beta1.RuntimeClass.yaml000066400000000000000000000021471453636404600256630ustar00rootroot00000000000000apiVersion: node.k8s.io/v1beta1 handler: handlerValue kind: RuntimeClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue overhead: podFixed: podFixedKey: "0" scheduling: nodeSelector: nodeSelectorKey: nodeSelectorValue tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue golang-k8s-api-0.29.0/testdata/v1.27.0/policy.v1.Eviction.json000066400000000000000000000026361453636404600233670ustar00rootroot00000000000000{ "kind": "Eviction", "apiVersion": "policy/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "deleteOptions": { "gracePeriodSeconds": 1, "preconditions": { "uid": "uidValue", "resourceVersion": "resourceVersionValue" }, "orphanDependents": true, "propagationPolicy": "propagationPolicyValue", "dryRun": [ "dryRunValue" ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/policy.v1.Eviction.pb000066400000000000000000000007221453636404600230110ustar00rootroot00000000000000k8s  policy/v1Eviction  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK uidValueresourceVersionValue"propagationPolicyValue* dryRunValue"golang-k8s-api-0.29.0/testdata/v1.27.0/policy.v1.Eviction.yaml000066400000000000000000000020441453636404600233510ustar00rootroot00000000000000apiVersion: policy/v1 deleteOptions: dryRun: - dryRunValue gracePeriodSeconds: 1 orphanDependents: true preconditions: resourceVersion: resourceVersionValue uid: uidValue propagationPolicy: propagationPolicyValue kind: Eviction metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue golang-k8s-api-0.29.0/testdata/v1.27.0/policy.v1.PodDisruptionBudget.json000066400000000000000000000040561453636404600255430ustar00rootroot00000000000000{ "kind": "PodDisruptionBudget", "apiVersion": "policy/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "minAvailable": "minAvailableValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "maxUnavailable": "maxUnavailableValue", "unhealthyPodEvictionPolicy": "unhealthyPodEvictionPolicyValue" }, "status": { "observedGeneration": 1, "disruptedPods": { "disruptedPodsKey": null }, "disruptionsAllowed": 3, "currentHealthy": 4, "desiredHealthy": 5, "expectedPods": 6, "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/policy.v1.PodDisruptionBudget.pb000066400000000000000000000012311453636404600251630ustar00rootroot00000000000000k8s policy/v1PodDisruptionBudget  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue minAvailableValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuemaxUnavailableValue"unhealthyPodEvictionPolicyValuea disruptedPodsKey (0:? typeValue statusValue"* reasonValue2 messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/policy.v1.PodDisruptionBudget.yaml000066400000000000000000000027511453636404600255340ustar00rootroot00000000000000apiVersion: policy/v1 kind: PodDisruptionBudget metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: maxUnavailable: maxUnavailableValue minAvailable: minAvailableValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicyValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue currentHealthy: 4 desiredHealthy: 5 disruptedPods: disruptedPodsKey: null disruptionsAllowed: 3 expectedPods: 6 observedGeneration: 1 golang-k8s-api-0.29.0/testdata/v1.27.0/policy.v1beta1.Eviction.json000066400000000000000000000026431453636404600243020ustar00rootroot00000000000000{ "kind": "Eviction", "apiVersion": "policy/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "deleteOptions": { "gracePeriodSeconds": 1, "preconditions": { "uid": "uidValue", "resourceVersion": "resourceVersionValue" }, "orphanDependents": true, "propagationPolicy": "propagationPolicyValue", "dryRun": [ "dryRunValue" ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/policy.v1beta1.Eviction.pb000066400000000000000000000007271453636404600237330ustar00rootroot00000000000000k8s  policy/v1beta1Eviction  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK uidValueresourceVersionValue"propagationPolicyValue* dryRunValue"golang-k8s-api-0.29.0/testdata/v1.27.0/policy.v1beta1.Eviction.yaml000066400000000000000000000020511453636404600242640ustar00rootroot00000000000000apiVersion: policy/v1beta1 deleteOptions: dryRun: - dryRunValue gracePeriodSeconds: 1 orphanDependents: true preconditions: resourceVersion: resourceVersionValue uid: uidValue propagationPolicy: propagationPolicyValue kind: Eviction metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue golang-k8s-api-0.29.0/testdata/v1.27.0/policy.v1beta1.PodDisruptionBudget.json000066400000000000000000000040631453636404600264560ustar00rootroot00000000000000{ "kind": "PodDisruptionBudget", "apiVersion": "policy/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "minAvailable": "minAvailableValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "maxUnavailable": "maxUnavailableValue", "unhealthyPodEvictionPolicy": "unhealthyPodEvictionPolicyValue" }, "status": { "observedGeneration": 1, "disruptedPods": { "disruptedPodsKey": null }, "disruptionsAllowed": 3, "currentHealthy": 4, "desiredHealthy": 5, "expectedPods": 6, "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/policy.v1beta1.PodDisruptionBudget.pb000066400000000000000000000012361453636404600261050ustar00rootroot00000000000000k8s % policy/v1beta1PodDisruptionBudget  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue minAvailableValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuemaxUnavailableValue"unhealthyPodEvictionPolicyValuea disruptedPodsKey (0:? typeValue statusValue"* reasonValue2 messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/policy.v1beta1.PodDisruptionBudget.yaml000066400000000000000000000027561453636404600264560ustar00rootroot00000000000000apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: maxUnavailable: maxUnavailableValue minAvailable: minAvailableValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicyValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue currentHealthy: 4 desiredHealthy: 5 disruptedPods: disruptedPodsKey: null disruptionsAllowed: 3 expectedPods: 6 observedGeneration: 1 golang-k8s-api-0.29.0/testdata/v1.27.0/policy.v1beta1.PodSecurityPolicy.json000066400000000000000000000061351453636404600261540ustar00rootroot00000000000000{ "kind": "PodSecurityPolicy", "apiVersion": "policy/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "privileged": true, "defaultAddCapabilities": [ "defaultAddCapabilitiesValue" ], "requiredDropCapabilities": [ "requiredDropCapabilitiesValue" ], "allowedCapabilities": [ "allowedCapabilitiesValue" ], "volumes": [ "volumesValue" ], "hostNetwork": true, "hostPorts": [ { "min": 1, "max": 2 } ], "hostPID": true, "hostIPC": true, "seLinux": { "rule": "ruleValue", "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" } }, "runAsUser": { "rule": "ruleValue", "ranges": [ { "min": 1, "max": 2 } ] }, "runAsGroup": { "rule": "ruleValue", "ranges": [ { "min": 1, "max": 2 } ] }, "supplementalGroups": { "rule": "ruleValue", "ranges": [ { "min": 1, "max": 2 } ] }, "fsGroup": { "rule": "ruleValue", "ranges": [ { "min": 1, "max": 2 } ] }, "readOnlyRootFilesystem": true, "defaultAllowPrivilegeEscalation": true, "allowPrivilegeEscalation": true, "allowedHostPaths": [ { "pathPrefix": "pathPrefixValue", "readOnly": true } ], "allowedFlexVolumes": [ { "driver": "driverValue" } ], "allowedCSIDrivers": [ { "name": "nameValue" } ], "allowedUnsafeSysctls": [ "allowedUnsafeSysctlsValue" ], "forbiddenSysctls": [ "forbiddenSysctlsValue" ], "allowedProcMountTypes": [ "allowedProcMountTypesValue" ], "runtimeClass": { "allowedRuntimeClassNames": [ "allowedRuntimeClassNamesValue" ], "defaultRuntimeClassName": "defaultRuntimeClassNameValue" } } }golang-k8s-api-0.29.0/testdata/v1.27.0/policy.v1beta1.PodSecurityPolicy.pb000066400000000000000000000015351453636404600256030ustar00rootroot00000000000000k8s # policy/v1beta1PodSecurityPolicy  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValuedefaultAddCapabilitiesValuerequiredDropCapabilitiesValue"allowedCapabilitiesValue* volumesValue0:@HR: ruleValue- userValue roleValue typeValue" levelValueZ ruleValueb ruleValuej ruleValuepx pathPrefixValue driverValueallowedUnsafeSysctlsValueforbiddenSysctlsValueallowedProcMountTypesValue ruleValue nameValue= allowedRuntimeClassNamesValuedefaultRuntimeClassNameValue"golang-k8s-api-0.29.0/testdata/v1.27.0/policy.v1beta1.PodSecurityPolicy.yaml000066400000000000000000000041661453636404600261470ustar00rootroot00000000000000apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: allowPrivilegeEscalation: true allowedCSIDrivers: - name: nameValue allowedCapabilities: - allowedCapabilitiesValue allowedFlexVolumes: - driver: driverValue allowedHostPaths: - pathPrefix: pathPrefixValue readOnly: true allowedProcMountTypes: - allowedProcMountTypesValue allowedUnsafeSysctls: - allowedUnsafeSysctlsValue defaultAddCapabilities: - defaultAddCapabilitiesValue defaultAllowPrivilegeEscalation: true forbiddenSysctls: - forbiddenSysctlsValue fsGroup: ranges: - max: 2 min: 1 rule: ruleValue hostIPC: true hostNetwork: true hostPID: true hostPorts: - max: 2 min: 1 privileged: true readOnlyRootFilesystem: true requiredDropCapabilities: - requiredDropCapabilitiesValue runAsGroup: ranges: - max: 2 min: 1 rule: ruleValue runAsUser: ranges: - max: 2 min: 1 rule: ruleValue runtimeClass: allowedRuntimeClassNames: - allowedRuntimeClassNamesValue defaultRuntimeClassName: defaultRuntimeClassNameValue seLinux: rule: ruleValue seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue supplementalGroups: ranges: - max: 2 min: 1 rule: ruleValue volumes: - volumesValue golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1.ClusterRole.json000066400000000000000000000035041453636404600274660ustar00rootroot00000000000000{ "kind": "ClusterRole", "apiVersion": "rbac.authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "rules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ], "aggregationRule": { "clusterRoleSelectors": [ { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1.ClusterRole.pb000066400000000000000000000011031453636404600271070ustar00rootroot00000000000000k8s + rbac.authorization.k8s.io/v1 ClusterRole  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueV verbsValueapiGroupsValueresourcesValue"resourceNamesValue*nonResourceURLsValueN L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue"golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1.ClusterRole.yaml000066400000000000000000000023451453636404600274610ustar00rootroot00000000000000aggregationRule: clusterRoleSelectors: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue rules: - apiGroups: - apiGroupsValue nonResourceURLs: - nonResourceURLsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1.ClusterRoleBinding.json000066400000000000000000000026461453636404600307670ustar00rootroot00000000000000{ "kind": "ClusterRoleBinding", "apiVersion": "rbac.authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subjects": [ { "kind": "kindValue", "apiGroup": "apiGroupValue", "name": "nameValue", "namespace": "namespaceValue" } ], "roleRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1.ClusterRoleBinding.pb000066400000000000000000000010001453636404600303760ustar00rootroot00000000000000k8s 2 rbac.authorization.k8s.io/v1ClusterRoleBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 kindValue apiGroupValue nameValue"namespaceValue% apiGroupValue kindValue nameValue"golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1.ClusterRoleBinding.yaml000066400000000000000000000020311453636404600307440ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue roleRef: apiGroup: apiGroupValue kind: kindValue name: nameValue subjects: - apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1.Role.json000066400000000000000000000027201453636404600261230ustar00rootroot00000000000000{ "kind": "Role", "apiVersion": "rbac.authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "rules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] }golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1.Role.pb000066400000000000000000000007541453636404600255600ustar00rootroot00000000000000k8s $ rbac.authorization.k8s.io/v1Role  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueV verbsValueapiGroupsValueresourcesValue"resourceNamesValue*nonResourceURLsValue"golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1.Role.yaml000066400000000000000000000020231453636404600261100ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue rules: - apiGroups: - apiGroupsValue nonResourceURLs: - nonResourceURLsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1.RoleBinding.json000066400000000000000000000026371453636404600274250ustar00rootroot00000000000000{ "kind": "RoleBinding", "apiVersion": "rbac.authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subjects": [ { "kind": "kindValue", "apiGroup": "apiGroupValue", "name": "nameValue", "namespace": "namespaceValue" } ], "roleRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1.RoleBinding.pb000066400000000000000000000007711453636404600270520ustar00rootroot00000000000000k8s + rbac.authorization.k8s.io/v1 RoleBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 kindValue apiGroupValue nameValue"namespaceValue% apiGroupValue kindValue nameValue"golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1.RoleBinding.yaml000066400000000000000000000020221453636404600274020ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue roleRef: apiGroup: apiGroupValue kind: kindValue name: nameValue subjects: - apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.json000066400000000000000000000035121453636404600305540ustar00rootroot00000000000000{ "kind": "ClusterRole", "apiVersion": "rbac.authorization.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "rules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ], "aggregationRule": { "clusterRoleSelectors": [ { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.pb000066400000000000000000000011111453636404600301750ustar00rootroot00000000000000k8s 1 "rbac.authorization.k8s.io/v1alpha1 ClusterRole  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueV verbsValueapiGroupsValue"resourcesValue*resourceNamesValue2nonResourceURLsValueN L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue"golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.yaml000066400000000000000000000023531453636404600305470ustar00rootroot00000000000000aggregationRule: clusterRoleSelectors: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue apiVersion: rbac.authorization.k8s.io/v1alpha1 kind: ClusterRole metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue rules: - apiGroups: - apiGroupsValue nonResourceURLs: - nonResourceURLsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.json000066400000000000000000000026601453636404600320520ustar00rootroot00000000000000{ "kind": "ClusterRoleBinding", "apiVersion": "rbac.authorization.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subjects": [ { "kind": "kindValue", "apiVersion": "apiVersionValue", "name": "nameValue", "namespace": "namespaceValue" } ], "roleRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.pb000066400000000000000000000010101453636404600314660ustar00rootroot00000000000000k8s 8 "rbac.authorization.k8s.io/v1alpha1ClusterRoleBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue7 kindValueapiVersionValue nameValue"namespaceValue% apiGroupValue kindValue nameValue"golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.yaml000066400000000000000000000020431453636404600320360ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1alpha1 kind: ClusterRoleBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue roleRef: apiGroup: apiGroupValue kind: kindValue name: nameValue subjects: - apiVersion: apiVersionValue kind: kindValue name: nameValue namespace: namespaceValue golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1alpha1.Role.json000066400000000000000000000027261453636404600272200ustar00rootroot00000000000000{ "kind": "Role", "apiVersion": "rbac.authorization.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "rules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] }golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1alpha1.Role.pb000066400000000000000000000007621453636404600266460ustar00rootroot00000000000000k8s * "rbac.authorization.k8s.io/v1alpha1Role  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueV verbsValueapiGroupsValue"resourcesValue*resourceNamesValue2nonResourceURLsValue"golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1alpha1.Role.yaml000066400000000000000000000020311453636404600271760ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1alpha1 kind: Role metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue rules: - apiGroups: - apiGroupsValue nonResourceURLs: - nonResourceURLsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.json000066400000000000000000000026511453636404600305100ustar00rootroot00000000000000{ "kind": "RoleBinding", "apiVersion": "rbac.authorization.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subjects": [ { "kind": "kindValue", "apiVersion": "apiVersionValue", "name": "nameValue", "namespace": "namespaceValue" } ], "roleRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.pb000066400000000000000000000010011453636404600301240ustar00rootroot00000000000000k8s 1 "rbac.authorization.k8s.io/v1alpha1 RoleBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue7 kindValueapiVersionValue nameValue"namespaceValue% apiGroupValue kindValue nameValue"golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.yaml000066400000000000000000000020341453636404600304740ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1alpha1 kind: RoleBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue roleRef: apiGroup: apiGroupValue kind: kindValue name: nameValue subjects: - apiVersion: apiVersionValue kind: kindValue name: nameValue namespace: namespaceValue golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.json000066400000000000000000000035111453636404600304010ustar00rootroot00000000000000{ "kind": "ClusterRole", "apiVersion": "rbac.authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "rules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ], "aggregationRule": { "clusterRoleSelectors": [ { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.pb000066400000000000000000000011101453636404600300220ustar00rootroot00000000000000k8s 0 !rbac.authorization.k8s.io/v1beta1 ClusterRole  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueV verbsValueapiGroupsValueresourcesValue"resourceNamesValue*nonResourceURLsValueN L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue"golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.yaml000066400000000000000000000023521453636404600303740ustar00rootroot00000000000000aggregationRule: clusterRoleSelectors: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRole metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue rules: - apiGroups: - apiGroupsValue nonResourceURLs: - nonResourceURLsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.json000066400000000000000000000026531453636404600317020ustar00rootroot00000000000000{ "kind": "ClusterRoleBinding", "apiVersion": "rbac.authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subjects": [ { "kind": "kindValue", "apiGroup": "apiGroupValue", "name": "nameValue", "namespace": "namespaceValue" } ], "roleRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.pb000066400000000000000000000010051453636404600313200ustar00rootroot00000000000000k8s 7 !rbac.authorization.k8s.io/v1beta1ClusterRoleBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 kindValue apiGroupValue nameValue"namespaceValue% apiGroupValue kindValue nameValue"golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.yaml000066400000000000000000000020361453636404600316660ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRoleBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue roleRef: apiGroup: apiGroupValue kind: kindValue name: nameValue subjects: - apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1beta1.Role.json000066400000000000000000000027251453636404600270450ustar00rootroot00000000000000{ "kind": "Role", "apiVersion": "rbac.authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "rules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] }golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1beta1.Role.pb000066400000000000000000000007611453636404600264730ustar00rootroot00000000000000k8s ) !rbac.authorization.k8s.io/v1beta1Role  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueV verbsValueapiGroupsValueresourcesValue"resourceNamesValue*nonResourceURLsValue"golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1beta1.Role.yaml000066400000000000000000000020301453636404600270230ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1beta1 kind: Role metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue rules: - apiGroups: - apiGroupsValue nonResourceURLs: - nonResourceURLsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1beta1.RoleBinding.json000066400000000000000000000026441453636404600303400ustar00rootroot00000000000000{ "kind": "RoleBinding", "apiVersion": "rbac.authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subjects": [ { "kind": "kindValue", "apiGroup": "apiGroupValue", "name": "nameValue", "namespace": "namespaceValue" } ], "roleRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1beta1.RoleBinding.pb000066400000000000000000000007761453636404600277740ustar00rootroot00000000000000k8s 0 !rbac.authorization.k8s.io/v1beta1 RoleBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 kindValue apiGroupValue nameValue"namespaceValue% apiGroupValue kindValue nameValue"golang-k8s-api-0.29.0/testdata/v1.27.0/rbac.authorization.k8s.io.v1beta1.RoleBinding.yaml000066400000000000000000000020271453636404600303240ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1beta1 kind: RoleBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue roleRef: apiGroup: apiGroupValue kind: kindValue name: nameValue subjects: - apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue golang-k8s-api-0.29.0/testdata/v1.27.0/resource.k8s.io.v1alpha2.PodSchedulingContext.json000066400000000000000000000026721453636404600304360ustar00rootroot00000000000000{ "kind": "PodSchedulingContext", "apiVersion": "resource.k8s.io/v1alpha2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "selectedNode": "selectedNodeValue", "potentialNodes": [ "potentialNodesValue" ] }, "status": { "resourceClaims": [ { "name": "nameValue", "unsuitableNodes": [ "unsuitableNodesValue" ] } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/resource.k8s.io.v1alpha2.PodSchedulingContext.pb000066400000000000000000000007571453636404600300700ustar00rootroot00000000000000k8s 0 resource.k8s.io/v1alpha2PodSchedulingContext  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue( selectedNodeValuepotentialNodesValue# ! nameValueunsuitableNodesValue"golang-k8s-api-0.29.0/testdata/v1.27.0/resource.k8s.io.v1alpha2.PodSchedulingContext.yaml000066400000000000000000000020341453636404600304170ustar00rootroot00000000000000apiVersion: resource.k8s.io/v1alpha2 kind: PodSchedulingContext metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: potentialNodes: - potentialNodesValue selectedNode: selectedNodeValue status: resourceClaims: - name: nameValue unsuitableNodes: - unsuitableNodesValue golang-k8s-api-0.29.0/testdata/v1.27.0/resource.k8s.io.v1alpha2.ResourceClaim.json000066400000000000000000000045701453636404600270750ustar00rootroot00000000000000{ "kind": "ResourceClaim", "apiVersion": "resource.k8s.io/v1alpha2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceClassName": "resourceClassNameValue", "parametersRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "allocationMode": "allocationModeValue" }, "status": { "driverName": "driverNameValue", "allocation": { "resourceHandles": [ { "driverName": "driverNameValue", "data": "dataValue" } ], "availableOnNodes": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "shareable": true }, "reservedFor": [ { "apiGroup": "apiGroupValue", "resource": "resourceValue", "name": "nameValue", "uid": "uidValue" } ], "deallocationRequested": true } }golang-k8s-api-0.29.0/testdata/v1.27.0/resource.k8s.io.v1alpha2.ResourceClaim.pb000066400000000000000000000012601453636404600265160ustar00rootroot00000000000000k8s ) resource.k8s.io/v1alpha2 ResourceClaim  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueT resourceClassNameValue% apiGroupValue kindValue nameValueallocationModeValue driverNameValuet  driverNameValue dataValueR P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue3 apiGroupValue resourceValue" nameValue*uidValue "golang-k8s-api-0.29.0/testdata/v1.27.0/resource.k8s.io.v1alpha2.ResourceClaim.yaml000066400000000000000000000031301453636404600270550ustar00rootroot00000000000000apiVersion: resource.k8s.io/v1alpha2 kind: ResourceClaim metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: allocationMode: allocationModeValue parametersRef: apiGroup: apiGroupValue kind: kindValue name: nameValue resourceClassName: resourceClassNameValue status: allocation: availableOnNodes: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue resourceHandles: - data: dataValue driverName: driverNameValue shareable: true deallocationRequested: true driverName: driverNameValue reservedFor: - apiGroup: apiGroupValue name: nameValue resource: resourceValue uid: uidValue golang-k8s-api-0.29.0/testdata/v1.27.0/resource.k8s.io.v1alpha2.ResourceClaimTemplate.json000066400000000000000000000051151453636404600305650ustar00rootroot00000000000000{ "kind": "ResourceClaimTemplate", "apiVersion": "resource.k8s.io/v1alpha2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceClassName": "resourceClassNameValue", "parametersRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "allocationMode": "allocationModeValue" } } }golang-k8s-api-0.29.0/testdata/v1.27.0/resource.k8s.io.v1alpha2.ResourceClaimTemplate.pb000066400000000000000000000015351453636404600302170ustar00rootroot00000000000000k8s 1 resource.k8s.io/v1alpha2ResourceClaimTemplate  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueT resourceClassNameValue% apiGroupValue kindValue nameValueallocationModeValue"golang-k8s-api-0.29.0/testdata/v1.27.0/resource.k8s.io.v1alpha2.ResourceClaimTemplate.yaml000066400000000000000000000036321453636404600305600ustar00rootroot00000000000000apiVersion: resource.k8s.io/v1alpha2 kind: ResourceClaimTemplate metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: allocationMode: allocationModeValue parametersRef: apiGroup: apiGroupValue kind: kindValue name: nameValue resourceClassName: resourceClassNameValue golang-k8s-api-0.29.0/testdata/v1.27.0/resource.k8s.io.v1alpha2.ResourceClass.json000066400000000000000000000034461453636404600271160ustar00rootroot00000000000000{ "kind": "ResourceClass", "apiVersion": "resource.k8s.io/v1alpha2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "driverName": "driverNameValue", "parametersRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "suitableNodes": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/resource.k8s.io.v1alpha2.ResourceClass.pb000066400000000000000000000010651453636404600265410ustar00rootroot00000000000000k8s ) resource.k8s.io/v1alpha2 ResourceClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValuedriverNameValue5 apiGroupValue kindValue nameValue"namespaceValue"R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue"golang-k8s-api-0.29.0/testdata/v1.27.0/resource.k8s.io.v1alpha2.ResourceClass.yaml000066400000000000000000000023351453636404600271030ustar00rootroot00000000000000apiVersion: resource.k8s.io/v1alpha2 driverName: driverNameValue kind: ResourceClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue parametersRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue suitableNodes: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue golang-k8s-api-0.29.0/testdata/v1.27.0/resource.k8s.io.v1alpha2.Status.json000066400000000000000000000011401453636404600256110ustar00rootroot00000000000000{ "kind": "Status", "apiVersion": "resource.k8s.io/v1alpha2", "metadata": { "selfLink": "selfLinkValue", "resourceVersion": "resourceVersionValue", "continue": "continueValue", "remainingItemCount": 4 }, "status": "statusValue", "message": "messageValue", "reason": "reasonValue", "details": { "name": "nameValue", "group": "groupValue", "kind": "kindValue", "uid": "uidValue", "causes": [ { "reason": "reasonValue", "message": "messageValue", "field": "fieldValue" } ], "retryAfterSeconds": 5 }, "code": 6 }golang-k8s-api-0.29.0/testdata/v1.27.0/resource.k8s.io.v1alpha2.Status.pb000066400000000000000000000003521453636404600252450ustar00rootroot00000000000000k8s " resource.k8s.io/v1alpha2Status 6 selfLinkValueresourceVersionValue continueValue  statusValue messageValue" reasonValue*W nameValue groupValue kindValue"' reasonValue messageValue fieldValue(2uidValue0"golang-k8s-api-0.29.0/testdata/v1.27.0/resource.k8s.io.v1alpha2.Status.yaml000066400000000000000000000006601453636404600256100ustar00rootroot00000000000000apiVersion: resource.k8s.io/v1alpha2 code: 6 details: causes: - field: fieldValue message: messageValue reason: reasonValue group: groupValue kind: kindValue name: nameValue retryAfterSeconds: 5 uid: uidValue kind: Status message: messageValue metadata: continue: continueValue remainingItemCount: 4 resourceVersion: resourceVersionValue selfLink: selfLinkValue reason: reasonValue status: statusValue golang-k8s-api-0.29.0/testdata/v1.27.0/scheduling.k8s.io.v1.PriorityClass.json000066400000000000000000000024201453636404600263450ustar00rootroot00000000000000{ "kind": "PriorityClass", "apiVersion": "scheduling.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "value": 2, "globalDefault": true, "description": "descriptionValue", "preemptionPolicy": "preemptionPolicyValue" }golang-k8s-api-0.29.0/testdata/v1.27.0/scheduling.k8s.io.v1.PriorityClass.pb000066400000000000000000000007021453636404600257760ustar00rootroot00000000000000k8s % scheduling.k8s.io/v1 PriorityClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue"descriptionValue*preemptionPolicyValue"golang-k8s-api-0.29.0/testdata/v1.27.0/scheduling.k8s.io.v1.PriorityClass.yaml000066400000000000000000000017041453636404600263420ustar00rootroot00000000000000apiVersion: scheduling.k8s.io/v1 description: descriptionValue globalDefault: true kind: PriorityClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue preemptionPolicy: preemptionPolicyValue value: 2 golang-k8s-api-0.29.0/testdata/v1.27.0/scheduling.k8s.io.v1alpha1.PriorityClass.json000066400000000000000000000024261453636404600274420ustar00rootroot00000000000000{ "kind": "PriorityClass", "apiVersion": "scheduling.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "value": 2, "globalDefault": true, "description": "descriptionValue", "preemptionPolicy": "preemptionPolicyValue" }golang-k8s-api-0.29.0/testdata/v1.27.0/scheduling.k8s.io.v1alpha1.PriorityClass.pb000066400000000000000000000007101453636404600270640ustar00rootroot00000000000000k8s + scheduling.k8s.io/v1alpha1 PriorityClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue"descriptionValue*preemptionPolicyValue"golang-k8s-api-0.29.0/testdata/v1.27.0/scheduling.k8s.io.v1alpha1.PriorityClass.yaml000066400000000000000000000017121453636404600274300ustar00rootroot00000000000000apiVersion: scheduling.k8s.io/v1alpha1 description: descriptionValue globalDefault: true kind: PriorityClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue preemptionPolicy: preemptionPolicyValue value: 2 golang-k8s-api-0.29.0/testdata/v1.27.0/scheduling.k8s.io.v1beta1.PriorityClass.json000066400000000000000000000024251453636404600272670ustar00rootroot00000000000000{ "kind": "PriorityClass", "apiVersion": "scheduling.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "value": 2, "globalDefault": true, "description": "descriptionValue", "preemptionPolicy": "preemptionPolicyValue" }golang-k8s-api-0.29.0/testdata/v1.27.0/scheduling.k8s.io.v1beta1.PriorityClass.pb000066400000000000000000000007071453636404600267200ustar00rootroot00000000000000k8s * scheduling.k8s.io/v1beta1 PriorityClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue"descriptionValue*preemptionPolicyValue"golang-k8s-api-0.29.0/testdata/v1.27.0/scheduling.k8s.io.v1beta1.PriorityClass.yaml000066400000000000000000000017111453636404600272550ustar00rootroot00000000000000apiVersion: scheduling.k8s.io/v1beta1 description: descriptionValue globalDefault: true kind: PriorityClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue preemptionPolicy: preemptionPolicyValue value: 2 golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1.CSIDriver.json000066400000000000000000000030201453636404600246440ustar00rootroot00000000000000{ "kind": "CSIDriver", "apiVersion": "storage.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "attachRequired": true, "podInfoOnMount": true, "volumeLifecycleModes": [ "volumeLifecycleModesValue" ], "storageCapacity": true, "fsGroupPolicy": "fsGroupPolicyValue", "tokenRequests": [ { "audience": "audienceValue", "expirationSeconds": 2 } ], "requiresRepublish": true, "seLinuxMount": true } }golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1.CSIDriver.pb000066400000000000000000000007341453636404600243050ustar00rootroot00000000000000k8s  storage.k8s.io/v1 CSIDriver  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueLvolumeLifecycleModesValue *fsGroupPolicyValue2 audienceValue8@"golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1.CSIDriver.yaml000066400000000000000000000021651453636404600246460ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1 kind: CSIDriver metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: attachRequired: true fsGroupPolicy: fsGroupPolicyValue podInfoOnMount: true requiresRepublish: true seLinuxMount: true storageCapacity: true tokenRequests: - audience: audienceValue expirationSeconds: 2 volumeLifecycleModes: - volumeLifecycleModesValue golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1.CSINode.json000066400000000000000000000025751453636404600243140ustar00rootroot00000000000000{ "kind": "CSINode", "apiVersion": "storage.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "drivers": [ { "name": "nameValue", "nodeID": "nodeIDValue", "topologyKeys": [ "topologyKeysValue" ], "allocatable": { "count": 1 } } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1.CSINode.pb000066400000000000000000000006771453636404600237450ustar00rootroot00000000000000k8s  storage.k8s.io/v1CSINode  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue1 / nameValue nodeIDValuetopologyKeysValue""golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1.CSINode.yaml000066400000000000000000000017371453636404600243040ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1 kind: CSINode metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: drivers: - allocatable: count: 1 name: nameValue nodeID: nodeIDValue topologyKeys: - topologyKeysValue golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1.CSIStorageCapacity.json000066400000000000000000000027731453636404600265110ustar00rootroot00000000000000{ "kind": "CSIStorageCapacity", "apiVersion": "storage.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "nodeTopology": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "storageClassName": "storageClassNameValue", "capacity": "0", "maximumVolumeSize": "0" }golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1.CSIStorageCapacity.pb000066400000000000000000000010061453636404600261250ustar00rootroot00000000000000k8s ' storage.k8s.io/v1CSIStorageCapacity  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuestorageClassNameValue" 0* 0"golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1.CSIStorageCapacity.yaml000066400000000000000000000021221453636404600264660ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1 capacity: "0" kind: CSIStorageCapacity maximumVolumeSize: "0" metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue nodeTopology: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1.StorageClass.json000066400000000000000000000031371453636404600254550ustar00rootroot00000000000000{ "kind": "StorageClass", "apiVersion": "storage.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "provisioner": "provisionerValue", "parameters": { "parametersKey": "parametersValue" }, "reclaimPolicy": "reclaimPolicyValue", "mountOptions": [ "mountOptionsValue" ], "allowVolumeExpansion": true, "volumeBindingMode": "volumeBindingModeValue", "allowedTopologies": [ { "matchLabelExpressions": [ { "key": "keyValue", "values": [ "valuesValue" ] } ] } ] }golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1.StorageClass.pb000066400000000000000000000010411453636404600250750ustar00rootroot00000000000000k8s ! storage.k8s.io/v1 StorageClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueprovisionerValue parametersKeyparametersValue"reclaimPolicyValue*mountOptionsValue0:volumeBindingModeValueB  keyValue valuesValue"golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1.StorageClass.yaml000066400000000000000000000022151453636404600254420ustar00rootroot00000000000000allowVolumeExpansion: true allowedTopologies: - matchLabelExpressions: - key: keyValue values: - valuesValue apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue mountOptions: - mountOptionsValue parameters: parametersKey: parametersValue provisioner: provisionerValue reclaimPolicy: reclaimPolicyValue volumeBindingMode: volumeBindingModeValue golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1.VolumeAttachment.json000066400000000000000000000217251453636404600263460ustar00rootroot00000000000000{ "kind": "VolumeAttachment", "apiVersion": "storage.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "attacher": "attacherValue", "source": { "persistentVolumeName": "persistentVolumeNameValue", "inlineVolumeSpec": { "capacity": { "capacityKey": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "hostPath": { "path": "pathValue", "type": "typeValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true, "endpointsNamespace": "endpointsNamespaceValue" }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "initiatorName": "initiatorNameValue" }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true, "secretNamespace": "secretNamespaceValue" }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "local": { "path": "pathValue", "fsType": "fsTypeValue" }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } }, "csi": { "driver": "driverValue", "volumeHandle": "volumeHandleValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "controllerPublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeStageSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodePublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "controllerExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "accessModes": [ "accessModesValue" ], "claimRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "persistentVolumeReclaimPolicy": "persistentVolumeReclaimPolicyValue", "storageClassName": "storageClassNameValue", "mountOptions": [ "mountOptionsValue" ], "volumeMode": "volumeModeValue", "nodeAffinity": { "required": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } } } }, "nodeName": "nodeNameValue" }, "status": { "attached": true, "attachmentMetadata": { "attachmentMetadataKey": "attachmentMetadataValue" }, "attachError": { "time": "2001-01-01T01:01:01Z", "message": "messageValue" }, "detachError": { "time": "2001-01-01T01:01:01Z", "message": "messageValue" } } }golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1.VolumeAttachment.pb000066400000000000000000000050131453636404600257660ustar00rootroot00000000000000k8s % storage.k8s.io/v1VolumeAttachment  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue attacherValue persistentVolumeNameValue  capacityKey 0  pdNameValue fsTypeValue  volumeIDValue fsTypeValue  pathValue typeValue"6 endpointsValue pathValue"endpointsNamespaceValue* serverValue pathValue2k monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValuenamespaceValue@: targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValuenamespaceValueXbinitiatorNameValueB; volumeIDValue fsTypeValue" nameValuenamespaceValueJU monitorsValue pathValue userValue"secretFileValue* nameValuenamespaceValue0R. targetWWNsValue fsTypeValue * wwidsValueZ$ datasetNameValuedatasetUUIDValuebU driverValue fsTypeValue nameValuenamespaceValue * optionsKey optionsValuej9 secretNameValueshareNameValue"secretNamespaceValuerL volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValuezB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValuenamespaceValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP pathValue fsTypeValue volumeNameValuevolumeNamespaceValue fsTypeValue *g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue driverValuevolumeHandleValue" fsTypeValue*, volumeAttributesKeyvolumeAttributesValue2 nameValuenamespaceValue: nameValuenamespaceValueB nameValuenamespaceValueJ nameValuenamespaceValueR nameValuenamespaceValueaccessModesValue"g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue*"persistentVolumeReclaimPolicyValue2storageClassNameValue:mountOptionsValueBvolumeModeValueJT R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue nodeNameValueh0 attachmentMetadataKeyattachmentMetadataValue ͭ messageValue" ͭ messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1.VolumeAttachment.yaml000066400000000000000000000150641453636404600263360ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1 kind: VolumeAttachment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: attacher: attacherValue nodeName: nodeNameValue source: inlineVolumeSpec: accessModes: - accessModesValue awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue secretNamespace: secretNamespaceValue shareName: shareNameValue capacity: capacityKey: "0" cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue namespace: namespaceValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue namespace: namespaceValue volumeID: volumeIDValue claimRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue csi: controllerExpandSecretRef: name: nameValue namespace: namespaceValue controllerPublishSecretRef: name: nameValue namespace: namespaceValue driver: driverValue fsType: fsTypeValue nodeExpandSecretRef: name: nameValue namespace: namespaceValue nodePublishSecretRef: name: nameValue namespace: namespaceValue nodeStageSecretRef: name: nameValue namespace: namespaceValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue volumeHandle: volumeHandleValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true glusterfs: endpoints: endpointsValue endpointsNamespace: endpointsNamespaceValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue targetPortal: targetPortalValue local: fsType: fsTypeValue path: pathValue mountOptions: - mountOptionsValue nfs: path: pathValue readOnly: true server: serverValue nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicyValue photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue namespace: namespaceValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue namespace: namespaceValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue storageClassName: storageClassNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue volumeMode: volumeModeValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue persistentVolumeName: persistentVolumeNameValue status: attachError: message: messageValue time: "2001-01-01T01:01:01Z" attached: true attachmentMetadata: attachmentMetadataKey: attachmentMetadataValue detachError: message: messageValue time: "2001-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1alpha1.CSIStorageCapacity.json000066400000000000000000000030011453636404600275610ustar00rootroot00000000000000{ "kind": "CSIStorageCapacity", "apiVersion": "storage.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "nodeTopology": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "storageClassName": "storageClassNameValue", "capacity": "0", "maximumVolumeSize": "0" }golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1alpha1.CSIStorageCapacity.pb000066400000000000000000000010141453636404600272130ustar00rootroot00000000000000k8s - storage.k8s.io/v1alpha1CSIStorageCapacity  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuestorageClassNameValue" 0* 0"golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1alpha1.CSIStorageCapacity.yaml000066400000000000000000000021301453636404600275540ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1alpha1 capacity: "0" kind: CSIStorageCapacity maximumVolumeSize: "0" metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue nodeTopology: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1alpha1.VolumeAttachment.json000066400000000000000000000217331453636404600274340ustar00rootroot00000000000000{ "kind": "VolumeAttachment", "apiVersion": "storage.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "attacher": "attacherValue", "source": { "persistentVolumeName": "persistentVolumeNameValue", "inlineVolumeSpec": { "capacity": { "capacityKey": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "hostPath": { "path": "pathValue", "type": "typeValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true, "endpointsNamespace": "endpointsNamespaceValue" }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "initiatorName": "initiatorNameValue" }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true, "secretNamespace": "secretNamespaceValue" }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "local": { "path": "pathValue", "fsType": "fsTypeValue" }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } }, "csi": { "driver": "driverValue", "volumeHandle": "volumeHandleValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "controllerPublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeStageSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodePublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "controllerExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "accessModes": [ "accessModesValue" ], "claimRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "persistentVolumeReclaimPolicy": "persistentVolumeReclaimPolicyValue", "storageClassName": "storageClassNameValue", "mountOptions": [ "mountOptionsValue" ], "volumeMode": "volumeModeValue", "nodeAffinity": { "required": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } } } }, "nodeName": "nodeNameValue" }, "status": { "attached": true, "attachmentMetadata": { "attachmentMetadataKey": "attachmentMetadataValue" }, "attachError": { "time": "2001-01-01T01:01:01Z", "message": "messageValue" }, "detachError": { "time": "2001-01-01T01:01:01Z", "message": "messageValue" } } }golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1alpha1.VolumeAttachment.pb000066400000000000000000000050211453636404600270540ustar00rootroot00000000000000k8s + storage.k8s.io/v1alpha1VolumeAttachment  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue attacherValue persistentVolumeNameValue  capacityKey 0  pdNameValue fsTypeValue  volumeIDValue fsTypeValue  pathValue typeValue"6 endpointsValue pathValue"endpointsNamespaceValue* serverValue pathValue2k monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValuenamespaceValue@: targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValuenamespaceValueXbinitiatorNameValueB; volumeIDValue fsTypeValue" nameValuenamespaceValueJU monitorsValue pathValue userValue"secretFileValue* nameValuenamespaceValue0R. targetWWNsValue fsTypeValue * wwidsValueZ$ datasetNameValuedatasetUUIDValuebU driverValue fsTypeValue nameValuenamespaceValue * optionsKey optionsValuej9 secretNameValueshareNameValue"secretNamespaceValuerL volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValuezB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValuenamespaceValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP pathValue fsTypeValue volumeNameValuevolumeNamespaceValue fsTypeValue *g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue driverValuevolumeHandleValue" fsTypeValue*, volumeAttributesKeyvolumeAttributesValue2 nameValuenamespaceValue: nameValuenamespaceValueB nameValuenamespaceValueJ nameValuenamespaceValueR nameValuenamespaceValueaccessModesValue"g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue*"persistentVolumeReclaimPolicyValue2storageClassNameValue:mountOptionsValueBvolumeModeValueJT R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue nodeNameValueh0 attachmentMetadataKeyattachmentMetadataValue ͭ messageValue" ͭ messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1alpha1.VolumeAttachment.yaml000066400000000000000000000150721453636404600274240ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1alpha1 kind: VolumeAttachment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: attacher: attacherValue nodeName: nodeNameValue source: inlineVolumeSpec: accessModes: - accessModesValue awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue secretNamespace: secretNamespaceValue shareName: shareNameValue capacity: capacityKey: "0" cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue namespace: namespaceValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue namespace: namespaceValue volumeID: volumeIDValue claimRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue csi: controllerExpandSecretRef: name: nameValue namespace: namespaceValue controllerPublishSecretRef: name: nameValue namespace: namespaceValue driver: driverValue fsType: fsTypeValue nodeExpandSecretRef: name: nameValue namespace: namespaceValue nodePublishSecretRef: name: nameValue namespace: namespaceValue nodeStageSecretRef: name: nameValue namespace: namespaceValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue volumeHandle: volumeHandleValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true glusterfs: endpoints: endpointsValue endpointsNamespace: endpointsNamespaceValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue targetPortal: targetPortalValue local: fsType: fsTypeValue path: pathValue mountOptions: - mountOptionsValue nfs: path: pathValue readOnly: true server: serverValue nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicyValue photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue namespace: namespaceValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue namespace: namespaceValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue storageClassName: storageClassNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue volumeMode: volumeModeValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue persistentVolumeName: persistentVolumeNameValue status: attachError: message: messageValue time: "2001-01-01T01:01:01Z" attached: true attachmentMetadata: attachmentMetadataKey: attachmentMetadataValue detachError: message: messageValue time: "2001-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1beta1.CSIDriver.json000066400000000000000000000030251453636404600255660ustar00rootroot00000000000000{ "kind": "CSIDriver", "apiVersion": "storage.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "attachRequired": true, "podInfoOnMount": true, "volumeLifecycleModes": [ "volumeLifecycleModesValue" ], "storageCapacity": true, "fsGroupPolicy": "fsGroupPolicyValue", "tokenRequests": [ { "audience": "audienceValue", "expirationSeconds": 2 } ], "requiresRepublish": true, "seLinuxMount": true } }golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1beta1.CSIDriver.pb000066400000000000000000000007411453636404600252200ustar00rootroot00000000000000k8s # storage.k8s.io/v1beta1 CSIDriver  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueLvolumeLifecycleModesValue *fsGroupPolicyValue2 audienceValue8@"golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1beta1.CSIDriver.yaml000066400000000000000000000021721453636404600255610ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1beta1 kind: CSIDriver metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: attachRequired: true fsGroupPolicy: fsGroupPolicyValue podInfoOnMount: true requiresRepublish: true seLinuxMount: true storageCapacity: true tokenRequests: - audience: audienceValue expirationSeconds: 2 volumeLifecycleModes: - volumeLifecycleModesValue golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1beta1.CSINode.json000066400000000000000000000026021453636404600252200ustar00rootroot00000000000000{ "kind": "CSINode", "apiVersion": "storage.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "drivers": [ { "name": "nameValue", "nodeID": "nodeIDValue", "topologyKeys": [ "topologyKeysValue" ], "allocatable": { "count": 1 } } ] } }golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1beta1.CSINode.pb000066400000000000000000000007041453636404600246510ustar00rootroot00000000000000k8s ! storage.k8s.io/v1beta1CSINode  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue1 / nameValue nodeIDValuetopologyKeysValue""golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1beta1.CSINode.yaml000066400000000000000000000017441453636404600252170ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1beta1 kind: CSINode metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: drivers: - allocatable: count: 1 name: nameValue nodeID: nodeIDValue topologyKeys: - topologyKeysValue golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1beta1.CSIStorageCapacity.json000066400000000000000000000030001453636404600274060ustar00rootroot00000000000000{ "kind": "CSIStorageCapacity", "apiVersion": "storage.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "nodeTopology": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "storageClassName": "storageClassNameValue", "capacity": "0", "maximumVolumeSize": "0" }golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1beta1.CSIStorageCapacity.pb000066400000000000000000000010131453636404600270400ustar00rootroot00000000000000k8s , storage.k8s.io/v1beta1CSIStorageCapacity  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuestorageClassNameValue" 0* 0"golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1beta1.CSIStorageCapacity.yaml000066400000000000000000000021271453636404600274100ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1beta1 capacity: "0" kind: CSIStorageCapacity maximumVolumeSize: "0" metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue nodeTopology: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1beta1.StorageClass.json000066400000000000000000000031441453636404600263700ustar00rootroot00000000000000{ "kind": "StorageClass", "apiVersion": "storage.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "provisioner": "provisionerValue", "parameters": { "parametersKey": "parametersValue" }, "reclaimPolicy": "reclaimPolicyValue", "mountOptions": [ "mountOptionsValue" ], "allowVolumeExpansion": true, "volumeBindingMode": "volumeBindingModeValue", "allowedTopologies": [ { "matchLabelExpressions": [ { "key": "keyValue", "values": [ "valuesValue" ] } ] } ] }golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1beta1.StorageClass.pb000066400000000000000000000010461453636404600260170ustar00rootroot00000000000000k8s & storage.k8s.io/v1beta1 StorageClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueprovisionerValue parametersKeyparametersValue"reclaimPolicyValue*mountOptionsValue0:volumeBindingModeValueB  keyValue valuesValue"golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1beta1.StorageClass.yaml000066400000000000000000000022221453636404600263550ustar00rootroot00000000000000allowVolumeExpansion: true allowedTopologies: - matchLabelExpressions: - key: keyValue values: - valuesValue apiVersion: storage.k8s.io/v1beta1 kind: StorageClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue mountOptions: - mountOptionsValue parameters: parametersKey: parametersValue provisioner: provisionerValue reclaimPolicy: reclaimPolicyValue volumeBindingMode: volumeBindingModeValue golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1beta1.VolumeAttachment.json000066400000000000000000000217321453636404600272610ustar00rootroot00000000000000{ "kind": "VolumeAttachment", "apiVersion": "storage.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "attacher": "attacherValue", "source": { "persistentVolumeName": "persistentVolumeNameValue", "inlineVolumeSpec": { "capacity": { "capacityKey": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "hostPath": { "path": "pathValue", "type": "typeValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true, "endpointsNamespace": "endpointsNamespaceValue" }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "initiatorName": "initiatorNameValue" }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true, "secretNamespace": "secretNamespaceValue" }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "local": { "path": "pathValue", "fsType": "fsTypeValue" }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } }, "csi": { "driver": "driverValue", "volumeHandle": "volumeHandleValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "controllerPublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeStageSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodePublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "controllerExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "accessModes": [ "accessModesValue" ], "claimRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "persistentVolumeReclaimPolicy": "persistentVolumeReclaimPolicyValue", "storageClassName": "storageClassNameValue", "mountOptions": [ "mountOptionsValue" ], "volumeMode": "volumeModeValue", "nodeAffinity": { "required": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } } } }, "nodeName": "nodeNameValue" }, "status": { "attached": true, "attachmentMetadata": { "attachmentMetadataKey": "attachmentMetadataValue" }, "attachError": { "time": "2001-01-01T01:01:01Z", "message": "messageValue" }, "detachError": { "time": "2001-01-01T01:01:01Z", "message": "messageValue" } } }golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1beta1.VolumeAttachment.pb000066400000000000000000000050201453636404600267010ustar00rootroot00000000000000k8s * storage.k8s.io/v1beta1VolumeAttachment  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue attacherValue persistentVolumeNameValue  capacityKey 0  pdNameValue fsTypeValue  volumeIDValue fsTypeValue  pathValue typeValue"6 endpointsValue pathValue"endpointsNamespaceValue* serverValue pathValue2k monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValuenamespaceValue@: targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValuenamespaceValueXbinitiatorNameValueB; volumeIDValue fsTypeValue" nameValuenamespaceValueJU monitorsValue pathValue userValue"secretFileValue* nameValuenamespaceValue0R. targetWWNsValue fsTypeValue * wwidsValueZ$ datasetNameValuedatasetUUIDValuebU driverValue fsTypeValue nameValuenamespaceValue * optionsKey optionsValuej9 secretNameValueshareNameValue"secretNamespaceValuerL volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValuezB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValuenamespaceValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP pathValue fsTypeValue volumeNameValuevolumeNamespaceValue fsTypeValue *g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue driverValuevolumeHandleValue" fsTypeValue*, volumeAttributesKeyvolumeAttributesValue2 nameValuenamespaceValue: nameValuenamespaceValueB nameValuenamespaceValueJ nameValuenamespaceValueR nameValuenamespaceValueaccessModesValue"g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue*"persistentVolumeReclaimPolicyValue2storageClassNameValue:mountOptionsValueBvolumeModeValueJT R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue nodeNameValueh0 attachmentMetadataKeyattachmentMetadataValue ͭ messageValue" ͭ messageValue"golang-k8s-api-0.29.0/testdata/v1.27.0/storage.k8s.io.v1beta1.VolumeAttachment.yaml000066400000000000000000000150711453636404600272510ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1beta1 kind: VolumeAttachment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: attacher: attacherValue nodeName: nodeNameValue source: inlineVolumeSpec: accessModes: - accessModesValue awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue secretNamespace: secretNamespaceValue shareName: shareNameValue capacity: capacityKey: "0" cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue namespace: namespaceValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue namespace: namespaceValue volumeID: volumeIDValue claimRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue csi: controllerExpandSecretRef: name: nameValue namespace: namespaceValue controllerPublishSecretRef: name: nameValue namespace: namespaceValue driver: driverValue fsType: fsTypeValue nodeExpandSecretRef: name: nameValue namespace: namespaceValue nodePublishSecretRef: name: nameValue namespace: namespaceValue nodeStageSecretRef: name: nameValue namespace: namespaceValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue volumeHandle: volumeHandleValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true glusterfs: endpoints: endpointsValue endpointsNamespace: endpointsNamespaceValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue targetPortal: targetPortalValue local: fsType: fsTypeValue path: pathValue mountOptions: - mountOptionsValue nfs: path: pathValue readOnly: true server: serverValue nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicyValue photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue namespace: namespaceValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue namespace: namespaceValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue storageClassName: storageClassNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue volumeMode: volumeModeValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue persistentVolumeName: persistentVolumeNameValue status: attachError: message: messageValue time: "2001-01-01T01:01:01Z" attached: true attachmentMetadata: attachmentMetadataKey: attachmentMetadataValue detachError: message: messageValue time: "2001-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/v1.28.0/000077500000000000000000000000001453636404600170635ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0/admission.k8s.io.v1.AdmissionReview.json000066400000000000000000000046571453636404600265260ustar00rootroot00000000000000{ "kind": "AdmissionReview", "apiVersion": "admission.k8s.io/v1", "request": { "uid": "uidValue", "kind": { "group": "groupValue", "version": "versionValue", "kind": "kindValue" }, "resource": { "group": "groupValue", "version": "versionValue", "resource": "resourceValue" }, "subResource": "subResourceValue", "requestKind": { "group": "groupValue", "version": "versionValue", "kind": "kindValue" }, "requestResource": { "group": "groupValue", "version": "versionValue", "resource": "resourceValue" }, "requestSubResource": "requestSubResourceValue", "name": "nameValue", "namespace": "namespaceValue", "operation": "operationValue", "userInfo": { "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } }, "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": { "apiVersion": "example.com/v1", "kind": "CustomType", "spec": { "replicas": 1 }, "status": { "available": 1 } } }, "response": { "uid": "uidValue", "allowed": true, "status": { "metadata": { "selfLink": "selfLinkValue", "resourceVersion": "resourceVersionValue", "continue": "continueValue", "remainingItemCount": 4 }, "status": "statusValue", "message": "messageValue", "reason": "reasonValue", "details": { "name": "nameValue", "group": "groupValue", "kind": "kindValue", "uid": "uidValue", "causes": [ { "reason": "reasonValue", "message": "messageValue", "field": "fieldValue" } ], "retryAfterSeconds": 5 }, "code": 6 }, "patch": "BA==", "patchType": "patchTypeValue", "auditAnnotations": { "auditAnnotationsKey": "auditAnnotationsValue" }, "warnings": [ "warningsValue" ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/admission.k8s.io.v1.AdmissionReview.pb000066400000000000000000000017151453636404600261460ustar00rootroot00000000000000k8s & admission.k8s.io/v1AdmissionReview  uidValue% groupValue versionValue kindValue) groupValue versionValue resourceValue"subResourceValue* nameValue2namespaceValue:operationValueB@ usernameValueuidValue groupsValue" extraKey extraValueJd b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}Rd b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}Xbd b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}j% groupValue versionValue kindValuer) groupValue versionValue resourceValuezrequestSubResourceValue uidValue 6 selfLinkValueresourceVersionValue continueValue  statusValue messageValue" reasonValue*W nameValue groupValue kindValue"' reasonValue messageValue fieldValue(2uidValue0"*patchTypeValue2, auditAnnotationsKeyauditAnnotationsValue: warningsValue"golang-k8s-api-0.29.0/testdata/v1.28.0/admission.k8s.io.v1.AdmissionReview.yaml000066400000000000000000000033121453636404600265020ustar00rootroot00000000000000apiVersion: admission.k8s.io/v1 kind: AdmissionReview request: dryRun: true kind: group: groupValue kind: kindValue version: versionValue name: nameValue namespace: namespaceValue 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: operationValue options: apiVersion: example.com/v1 kind: CustomType spec: replicas: 1 status: available: 1 requestKind: group: groupValue kind: kindValue version: versionValue requestResource: group: groupValue resource: resourceValue version: versionValue requestSubResource: requestSubResourceValue resource: group: groupValue resource: resourceValue version: versionValue subResource: subResourceValue uid: uidValue userInfo: extra: extraKey: - extraValue groups: - groupsValue uid: uidValue username: usernameValue response: allowed: true auditAnnotations: auditAnnotationsKey: auditAnnotationsValue patch: BA== patchType: patchTypeValue status: code: 6 details: causes: - field: fieldValue message: messageValue reason: reasonValue group: groupValue kind: kindValue name: nameValue retryAfterSeconds: 5 uid: uidValue message: messageValue metadata: continue: continueValue remainingItemCount: 4 resourceVersion: resourceVersionValue selfLink: selfLinkValue reason: reasonValue status: statusValue uid: uidValue warnings: - warningsValue golang-k8s-api-0.29.0/testdata/v1.28.0/admission.k8s.io.v1beta1.AdmissionReview.json000066400000000000000000000046641453636404600274410ustar00rootroot00000000000000{ "kind": "AdmissionReview", "apiVersion": "admission.k8s.io/v1beta1", "request": { "uid": "uidValue", "kind": { "group": "groupValue", "version": "versionValue", "kind": "kindValue" }, "resource": { "group": "groupValue", "version": "versionValue", "resource": "resourceValue" }, "subResource": "subResourceValue", "requestKind": { "group": "groupValue", "version": "versionValue", "kind": "kindValue" }, "requestResource": { "group": "groupValue", "version": "versionValue", "resource": "resourceValue" }, "requestSubResource": "requestSubResourceValue", "name": "nameValue", "namespace": "namespaceValue", "operation": "operationValue", "userInfo": { "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } }, "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": { "apiVersion": "example.com/v1", "kind": "CustomType", "spec": { "replicas": 1 }, "status": { "available": 1 } } }, "response": { "uid": "uidValue", "allowed": true, "status": { "metadata": { "selfLink": "selfLinkValue", "resourceVersion": "resourceVersionValue", "continue": "continueValue", "remainingItemCount": 4 }, "status": "statusValue", "message": "messageValue", "reason": "reasonValue", "details": { "name": "nameValue", "group": "groupValue", "kind": "kindValue", "uid": "uidValue", "causes": [ { "reason": "reasonValue", "message": "messageValue", "field": "fieldValue" } ], "retryAfterSeconds": 5 }, "code": 6 }, "patch": "BA==", "patchType": "patchTypeValue", "auditAnnotations": { "auditAnnotationsKey": "auditAnnotationsValue" }, "warnings": [ "warningsValue" ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/admission.k8s.io.v1beta1.AdmissionReview.pb000066400000000000000000000017221453636404600270610ustar00rootroot00000000000000k8s + admission.k8s.io/v1beta1AdmissionReview  uidValue% groupValue versionValue kindValue) groupValue versionValue resourceValue"subResourceValue* nameValue2namespaceValue:operationValueB@ usernameValueuidValue groupsValue" extraKey extraValueJd b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}Rd b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}Xbd b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}j% groupValue versionValue kindValuer) groupValue versionValue resourceValuezrequestSubResourceValue uidValue 6 selfLinkValueresourceVersionValue continueValue  statusValue messageValue" reasonValue*W nameValue groupValue kindValue"' reasonValue messageValue fieldValue(2uidValue0"*patchTypeValue2, auditAnnotationsKeyauditAnnotationsValue: warningsValue"golang-k8s-api-0.29.0/testdata/v1.28.0/admission.k8s.io.v1beta1.AdmissionReview.yaml000066400000000000000000000033171453636404600274240ustar00rootroot00000000000000apiVersion: admission.k8s.io/v1beta1 kind: AdmissionReview request: dryRun: true kind: group: groupValue kind: kindValue version: versionValue name: nameValue namespace: namespaceValue 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: operationValue options: apiVersion: example.com/v1 kind: CustomType spec: replicas: 1 status: available: 1 requestKind: group: groupValue kind: kindValue version: versionValue requestResource: group: groupValue resource: resourceValue version: versionValue requestSubResource: requestSubResourceValue resource: group: groupValue resource: resourceValue version: versionValue subResource: subResourceValue uid: uidValue userInfo: extra: extraKey: - extraValue groups: - groupsValue uid: uidValue username: usernameValue response: allowed: true auditAnnotations: auditAnnotationsKey: auditAnnotationsValue patch: BA== patchType: patchTypeValue status: code: 6 details: causes: - field: fieldValue message: messageValue reason: reasonValue group: groupValue kind: kindValue name: nameValue retryAfterSeconds: 5 uid: uidValue message: messageValue metadata: continue: continueValue remainingItemCount: 4 resourceVersion: resourceVersionValue selfLink: selfLinkValue reason: reasonValue status: statusValue uid: uidValue warnings: - warningsValue admissionregistration.k8s.io.v1.MutatingWebhookConfiguration.json000066400000000000000000000055441453636404600336250ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0{ "kind": "MutatingWebhookConfiguration", "apiVersion": "admissionregistration.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "webhooks": [ { "name": "nameValue", "clientConfig": { "url": "urlValue", "service": { "namespace": "namespaceValue", "name": "nameValue", "path": "pathValue", "port": 4 }, "caBundle": "Ag==" }, "rules": [ { "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "failurePolicy": "failurePolicyValue", "matchPolicy": "matchPolicyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "sideEffects": "sideEffectsValue", "timeoutSeconds": 7, "admissionReviewVersions": [ "admissionReviewVersionsValue" ], "reinvocationPolicy": "reinvocationPolicyValue", "matchConditions": [ { "name": "nameValue", "expression": "expressionValue" } ] } ] }admissionregistration.k8s.io.v1.MutatingWebhookConfiguration.pb000066400000000000000000000015641453636404600332530ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0k8s ? admissionregistration.k8s.io/v1MutatingWebhookConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue7 ( namespaceValue nameValue pathValue urlValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"failurePolicyValue*L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue2sideEffectsValue8BadmissionReviewVersionsValueJmatchPolicyValueRreinvocationPolicyValueZL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueb nameValueexpressionValue"admissionregistration.k8s.io.v1.MutatingWebhookConfiguration.yaml000066400000000000000000000035741453636404600336170ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue webhooks: - admissionReviewVersions: - admissionReviewVersionsValue clientConfig: caBundle: Ag== service: name: nameValue namespace: namespaceValue path: pathValue port: 4 url: urlValue failurePolicy: failurePolicyValue matchConditions: - expression: expressionValue name: nameValue matchPolicy: matchPolicyValue name: nameValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue reinvocationPolicy: reinvocationPolicyValue rules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resources: - resourcesValue scope: scopeValue sideEffects: sideEffectsValue timeoutSeconds: 7 admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.json000066400000000000000000000054571453636404600341220ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0{ "kind": "ValidatingWebhookConfiguration", "apiVersion": "admissionregistration.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "webhooks": [ { "name": "nameValue", "clientConfig": { "url": "urlValue", "service": { "namespace": "namespaceValue", "name": "nameValue", "path": "pathValue", "port": 4 }, "caBundle": "Ag==" }, "rules": [ { "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "failurePolicy": "failurePolicyValue", "matchPolicy": "matchPolicyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "sideEffects": "sideEffectsValue", "timeoutSeconds": 7, "admissionReviewVersions": [ "admissionReviewVersionsValue" ], "matchConditions": [ { "name": "nameValue", "expression": "expressionValue" } ] } ] }admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.pb000066400000000000000000000015351453636404600335430ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0k8s A admissionregistration.k8s.io/v1ValidatingWebhookConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue7 ( namespaceValue nameValue pathValue urlValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"failurePolicyValue*L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue2sideEffectsValue8BadmissionReviewVersionsValueJmatchPolicyValueRL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueZ nameValueexpressionValue"admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.yaml000066400000000000000000000035201453636404600341000ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue webhooks: - admissionReviewVersions: - admissionReviewVersionsValue clientConfig: caBundle: Ag== service: name: nameValue namespace: namespaceValue path: pathValue port: 4 url: urlValue failurePolicy: failurePolicyValue matchConditions: - expression: expressionValue name: nameValue matchPolicy: matchPolicyValue name: nameValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue rules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resources: - resourcesValue scope: scopeValue sideEffects: sideEffectsValue timeoutSeconds: 7 admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicy.json000066400000000000000000000076061453636404600341670ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0{ "kind": "ValidatingAdmissionPolicy", "apiVersion": "admissionregistration.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "paramKind": { "apiVersion": "apiVersionValue", "kind": "kindValue" }, "matchConstraints": { "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "excludeResourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "matchPolicy": "matchPolicyValue" }, "validations": [ { "expression": "expressionValue", "message": "messageValue", "reason": "reasonValue", "messageExpression": "messageExpressionValue" } ], "failurePolicy": "failurePolicyValue", "auditAnnotations": [ { "key": "keyValue", "valueExpression": "valueExpressionValue" } ], "matchConditions": [ { "name": "nameValue", "expression": "expressionValue" } ], "variables": [ { "name": "nameValue", "expression": "expressionValue" } ] }, "status": { "observedGeneration": 1, "typeChecking": { "expressionWarnings": [ { "fieldRef": "fieldRefValue", "warning": "warningValue" } ] }, "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicy.pb000066400000000000000000000021641453636404600336110ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0k8s B %admissionregistration.k8s.io/v1alpha1ValidatingAdmissionPolicy  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue  apiVersionValue kindValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueg resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"g resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue:matchPolicyValueD expressionValue messageValue reasonValue"messageExpressionValue"failurePolicyValue* keyValuevalueExpressionValue2 nameValueexpressionValue: nameValueexpressionValued  fieldRefValue warningValue? typeValue statusValue"* reasonValue2 messageValue"admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicy.yaml000066400000000000000000000051211453636404600341460ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0apiVersion: admissionregistration.k8s.io/v1alpha1 kind: ValidatingAdmissionPolicy metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: auditAnnotations: - key: keyValue valueExpression: valueExpressionValue failurePolicy: failurePolicyValue matchConditions: - expression: expressionValue name: nameValue matchConstraints: excludeResourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue matchPolicy: matchPolicyValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue resourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue paramKind: apiVersion: apiVersionValue kind: kindValue validations: - expression: expressionValue message: messageValue messageExpression: messageExpressionValue reason: reasonValue variables: - expression: expressionValue name: nameValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 typeChecking: expressionWarnings: - fieldRef: fieldRefValue warning: warningValue admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicyBinding.json000066400000000000000000000064711453636404600354610ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0{ "kind": "ValidatingAdmissionPolicyBinding", "apiVersion": "admissionregistration.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "policyName": "policyNameValue", "paramRef": { "name": "nameValue", "namespace": "namespaceValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "parameterNotFoundAction": "parameterNotFoundActionValue" }, "matchResources": { "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "excludeResourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "matchPolicy": "matchPolicyValue" }, "validationActions": [ "validationActionsValue" ] } }admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicyBinding.pb000066400000000000000000000017621453636404600351070ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0k8s I %admissionregistration.k8s.io/v1alpha1 ValidatingAdmissionPolicyBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue policyNameValue nameValuenamespaceValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue"parameterNotFoundActionValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueg resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"g resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue:matchPolicyValue"validationActionsValue"admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicyBinding.yaml000066400000000000000000000043271453636404600354500ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0apiVersion: admissionregistration.k8s.io/v1alpha1 kind: ValidatingAdmissionPolicyBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: matchResources: excludeResourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue matchPolicy: matchPolicyValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue resourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue paramRef: name: nameValue namespace: namespaceValue parameterNotFoundAction: parameterNotFoundActionValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue policyName: policyNameValue validationActions: - validationActionsValue admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.json000066400000000000000000000055511453636404600345400ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0{ "kind": "MutatingWebhookConfiguration", "apiVersion": "admissionregistration.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "webhooks": [ { "name": "nameValue", "clientConfig": { "url": "urlValue", "service": { "namespace": "namespaceValue", "name": "nameValue", "path": "pathValue", "port": 4 }, "caBundle": "Ag==" }, "rules": [ { "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "failurePolicy": "failurePolicyValue", "matchPolicy": "matchPolicyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "sideEffects": "sideEffectsValue", "timeoutSeconds": 7, "admissionReviewVersions": [ "admissionReviewVersionsValue" ], "reinvocationPolicy": "reinvocationPolicyValue", "matchConditions": [ { "name": "nameValue", "expression": "expressionValue" } ] } ] }admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.pb000066400000000000000000000015711453636404600341660ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0k8s D $admissionregistration.k8s.io/v1beta1MutatingWebhookConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue7 ( namespaceValue nameValue pathValue urlValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"failurePolicyValue*L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue2sideEffectsValue8BadmissionReviewVersionsValueJmatchPolicyValueRreinvocationPolicyValueZL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueb nameValueexpressionValue"admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.yaml000066400000000000000000000036011453636404600345230ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0apiVersion: admissionregistration.k8s.io/v1beta1 kind: MutatingWebhookConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue webhooks: - admissionReviewVersions: - admissionReviewVersionsValue clientConfig: caBundle: Ag== service: name: nameValue namespace: namespaceValue path: pathValue port: 4 url: urlValue failurePolicy: failurePolicyValue matchConditions: - expression: expressionValue name: nameValue matchPolicy: matchPolicyValue name: nameValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue reinvocationPolicy: reinvocationPolicyValue rules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resources: - resourcesValue scope: scopeValue sideEffects: sideEffectsValue timeoutSeconds: 7 admissionregistration.k8s.io.v1beta1.ValidatingAdmissionPolicy.json000066400000000000000000000076051453636404600340140ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0{ "kind": "ValidatingAdmissionPolicy", "apiVersion": "admissionregistration.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "paramKind": { "apiVersion": "apiVersionValue", "kind": "kindValue" }, "matchConstraints": { "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "excludeResourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "matchPolicy": "matchPolicyValue" }, "validations": [ { "expression": "expressionValue", "message": "messageValue", "reason": "reasonValue", "messageExpression": "messageExpressionValue" } ], "failurePolicy": "failurePolicyValue", "auditAnnotations": [ { "key": "keyValue", "valueExpression": "valueExpressionValue" } ], "matchConditions": [ { "name": "nameValue", "expression": "expressionValue" } ], "variables": [ { "name": "nameValue", "expression": "expressionValue" } ] }, "status": { "observedGeneration": 1, "typeChecking": { "expressionWarnings": [ { "fieldRef": "fieldRefValue", "warning": "warningValue" } ] }, "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }admissionregistration.k8s.io.v1beta1.ValidatingAdmissionPolicy.pb000066400000000000000000000021631453636404600334360ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0k8s A $admissionregistration.k8s.io/v1beta1ValidatingAdmissionPolicy  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue  apiVersionValue kindValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueg resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"g resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue:matchPolicyValueD expressionValue messageValue reasonValue"messageExpressionValue"failurePolicyValue* keyValuevalueExpressionValue2 nameValueexpressionValue: nameValueexpressionValued  fieldRefValue warningValue? typeValue statusValue"* reasonValue2 messageValue"admissionregistration.k8s.io.v1beta1.ValidatingAdmissionPolicy.yaml000066400000000000000000000051201453636404600337730ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0apiVersion: admissionregistration.k8s.io/v1beta1 kind: ValidatingAdmissionPolicy metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: auditAnnotations: - key: keyValue valueExpression: valueExpressionValue failurePolicy: failurePolicyValue matchConditions: - expression: expressionValue name: nameValue matchConstraints: excludeResourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue matchPolicy: matchPolicyValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue resourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue paramKind: apiVersion: apiVersionValue kind: kindValue validations: - expression: expressionValue message: messageValue messageExpression: messageExpressionValue reason: reasonValue variables: - expression: expressionValue name: nameValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 typeChecking: expressionWarnings: - fieldRef: fieldRefValue warning: warningValue admissionregistration.k8s.io.v1beta1.ValidatingAdmissionPolicyBinding.json000066400000000000000000000064701453636404600353060ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0{ "kind": "ValidatingAdmissionPolicyBinding", "apiVersion": "admissionregistration.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "policyName": "policyNameValue", "paramRef": { "name": "nameValue", "namespace": "namespaceValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "parameterNotFoundAction": "parameterNotFoundActionValue" }, "matchResources": { "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "excludeResourceRules": [ { "resourceNames": [ "resourceNamesValue" ], "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "matchPolicy": "matchPolicyValue" }, "validationActions": [ "validationActionsValue" ] } }admissionregistration.k8s.io.v1beta1.ValidatingAdmissionPolicyBinding.pb000066400000000000000000000017611453636404600347340ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0k8s H $admissionregistration.k8s.io/v1beta1 ValidatingAdmissionPolicyBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue policyNameValue nameValuenamespaceValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue"parameterNotFoundActionValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueg resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"g resourceNamesValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue:matchPolicyValue"validationActionsValue"admissionregistration.k8s.io.v1beta1.ValidatingAdmissionPolicyBinding.yaml000066400000000000000000000043261453636404600352750ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0apiVersion: admissionregistration.k8s.io/v1beta1 kind: ValidatingAdmissionPolicyBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: matchResources: excludeResourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue matchPolicy: matchPolicyValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue resourceRules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resourceNames: - resourceNamesValue resources: - resourcesValue scope: scopeValue paramRef: name: nameValue namespace: namespaceValue parameterNotFoundAction: parameterNotFoundActionValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue policyName: policyNameValue validationActions: - validationActionsValue admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.json000066400000000000000000000054641453636404600350350ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0{ "kind": "ValidatingWebhookConfiguration", "apiVersion": "admissionregistration.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "webhooks": [ { "name": "nameValue", "clientConfig": { "url": "urlValue", "service": { "namespace": "namespaceValue", "name": "nameValue", "path": "pathValue", "port": 4 }, "caBundle": "Ag==" }, "rules": [ { "operations": [ "operationsValue" ], "apiGroups": [ "apiGroupsValue" ], "apiVersions": [ "apiVersionsValue" ], "resources": [ "resourcesValue" ], "scope": "scopeValue" } ], "failurePolicy": "failurePolicyValue", "matchPolicy": "matchPolicyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "objectSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "sideEffects": "sideEffectsValue", "timeoutSeconds": 7, "admissionReviewVersions": [ "admissionReviewVersionsValue" ], "matchConditions": [ { "name": "nameValue", "expression": "expressionValue" } ] } ] }admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.pb000066400000000000000000000015421453636404600344560ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0k8s F $admissionregistration.k8s.io/v1beta1ValidatingWebhookConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue7 ( namespaceValue nameValue pathValue urlValueQ operationsValue> apiGroupsValueapiVersionsValueresourcesValue" scopeValue"failurePolicyValue*L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue2sideEffectsValue8BadmissionReviewVersionsValueJmatchPolicyValueRL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueZ nameValueexpressionValue"admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.yaml000066400000000000000000000035251453636404600350220ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0apiVersion: admissionregistration.k8s.io/v1beta1 kind: ValidatingWebhookConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue webhooks: - admissionReviewVersions: - admissionReviewVersionsValue clientConfig: caBundle: Ag== service: name: nameValue namespace: namespaceValue path: pathValue port: 4 url: urlValue failurePolicy: failurePolicyValue matchConditions: - expression: expressionValue name: nameValue matchPolicy: matchPolicyValue name: nameValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue objectSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue rules: - apiGroups: - apiGroupsValue apiVersions: - apiVersionsValue operations: - operationsValue resources: - resourcesValue scope: scopeValue sideEffects: sideEffectsValue timeoutSeconds: 7 golang-k8s-api-0.29.0/testdata/v1.28.0/apidiscovery.k8s.io.v2beta1.APIGroupDiscovery.json000066400000000000000000000045031453636404600303530ustar00rootroot00000000000000{ "kind": "APIGroupDiscovery", "apiVersion": "apidiscovery.k8s.io/v2beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "versions": [ { "version": "versionValue", "resources": [ { "resource": "resourceValue", "responseKind": { "group": "groupValue", "version": "versionValue", "kind": "kindValue" }, "scope": "scopeValue", "singularResource": "singularResourceValue", "verbs": [ "verbsValue" ], "shortNames": [ "shortNamesValue" ], "categories": [ "categoriesValue" ], "subresources": [ { "subresource": "subresourceValue", "responseKind": { "group": "groupValue", "version": "versionValue", "kind": "kindValue" }, "acceptedTypes": [ { "group": "groupValue", "version": "versionValue", "kind": "kindValue" } ], "verbs": [ "verbsValue" ] } ] } ], "freshness": "freshnessValue" } ] }golang-k8s-api-0.29.0/testdata/v1.28.0/apidiscovery.k8s.io.v2beta1.APIGroupDiscovery.pb000066400000000000000000000012711453636404600300020ustar00rootroot00000000000000k8s 0 apidiscovery.k8s.io/v2beta1APIGroupDiscovery  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue versionValue resourceValue% groupValue versionValue kindValue scopeValue"singularResourceValue* verbsValue2shortNamesValue:categoriesValueBl subresourceValue% groupValue versionValue kindValue% groupValue versionValue kindValue" verbsValuefreshnessValue"golang-k8s-api-0.29.0/testdata/v1.28.0/apidiscovery.k8s.io.v2beta1.APIGroupDiscovery.yaml000066400000000000000000000027701453636404600303500ustar00rootroot00000000000000apiVersion: apidiscovery.k8s.io/v2beta1 kind: APIGroupDiscovery metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue versions: - freshness: freshnessValue resources: - categories: - categoriesValue resource: resourceValue responseKind: group: groupValue kind: kindValue version: versionValue scope: scopeValue shortNames: - shortNamesValue singularResource: singularResourceValue subresources: - acceptedTypes: - group: groupValue kind: kindValue version: versionValue responseKind: group: groupValue kind: kindValue version: versionValue subresource: subresourceValue verbs: - verbsValue verbs: - verbsValue version: versionValue golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.ControllerRevision.json000066400000000000000000000025011453636404600251050ustar00rootroot00000000000000{ "kind": "ControllerRevision", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "data": { "apiVersion": "example.com/v1", "kind": "CustomType", "spec": { "replicas": 1 }, "status": { "available": 1 } }, "revision": 3 }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.ControllerRevision.pb000066400000000000000000000007651453636404600245470ustar00rootroot00000000000000k8s  apps/v1ControllerRevision  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValued b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.ControllerRevision.yaml000066400000000000000000000017161453636404600251050ustar00rootroot00000000000000apiVersion: apps/v1 data: apiVersion: example.com/v1 kind: CustomType spec: replicas: 1 status: available: 1 kind: ControllerRevision metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue revision: 3 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.DaemonSet.after_roundtrip.json000066400000000000000000001471001453636404600263350ustar00rootroot00000000000000{ "kind": "DaemonSet", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "updateStrategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 4, "revisionHistoryLimit": 6 }, "status": { "currentNumberScheduled": 1, "numberMisscheduled": 2, "desiredNumberScheduled": 3, "numberReady": 4, "observedGeneration": 5, "updatedNumberScheduled": 6, "numberAvailable": 7, "numberUnavailable": 8, "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.DaemonSet.after_roundtrip.pb000066400000000000000000000237621453636404600257740ustar00rootroot00000000000000k8s  apps/v1 DaemonSetO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue= typeValue0 maxUnavailableValue maxSurgeValue 0Q (08@H R= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.DaemonSet.after_roundtrip.yaml000066400000000000000000001022711453636404600263260ustar00rootroot00000000000000apiVersion: apps/v1 kind: DaemonSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue status: collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentNumberScheduled: 1 desiredNumberScheduled: 3 numberAvailable: 7 numberMisscheduled: 2 numberReady: 4 numberUnavailable: 8 observedGeneration: 5 updatedNumberScheduled: 6 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.DaemonSet.json000066400000000000000000001473231453636404600231360ustar00rootroot00000000000000{ "kind": "DaemonSet", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "updateStrategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 4, "revisionHistoryLimit": 6 }, "status": { "currentNumberScheduled": 1, "numberMisscheduled": 2, "desiredNumberScheduled": 3, "numberReady": 4, "observedGeneration": 5, "updatedNumberScheduled": 6, "numberAvailable": 7, "numberUnavailable": 8, "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.DaemonSet.pb000066400000000000000000000237771453636404600225740ustar00rootroot00000000000000k8s  apps/v1 DaemonSetO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue= typeValue0 maxUnavailableValue maxSurgeValue 0Q (08@H R= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.DaemonSet.yaml000066400000000000000000001023631453636404600231220ustar00rootroot00000000000000apiVersion: apps/v1 kind: DaemonSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue status: collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentNumberScheduled: 1 desiredNumberScheduled: 3 numberAvailable: 7 numberMisscheduled: 2 numberReady: 4 numberUnavailable: 8 observedGeneration: 5 updatedNumberScheduled: 6 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.Deployment.after_roundtrip.json000066400000000000000000001471511453636404600266040ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.Deployment.after_roundtrip.pb000066400000000000000000000237771453636404600262430ustar00rootroot00000000000000k8s  apps/v1 DeploymentO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueLL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08H W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.Deployment.after_roundtrip.yaml000066400000000000000000001023261453636404600265700ustar00rootroot00000000000000apiVersion: apps/v1 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.Deployment.json000066400000000000000000001473741453636404600234050ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.Deployment.pb000066400000000000000000000240141453636404600230160ustar00rootroot00000000000000k8s  apps/v1 DeploymentO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueLL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08H W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.Deployment.yaml000066400000000000000000001024201453636404600233550ustar00rootroot00000000000000apiVersion: apps/v1 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.ReplicaSet.after_roundtrip.json000066400000000000000000001464061453636404600265210ustar00rootroot00000000000000{ "kind": "ReplicaSet", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.ReplicaSet.after_roundtrip.pb000066400000000000000000000236541453636404600261500ustar00rootroot00000000000000k8s  apps/v1 ReplicaSetO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.ReplicaSet.after_roundtrip.yaml000066400000000000000000001017021453636404600265000ustar00rootroot00000000000000apiVersion: apps/v1 kind: ReplicaSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.ReplicaSet.json000066400000000000000000001466311453636404600233130ustar00rootroot00000000000000{ "kind": "ReplicaSet", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.ReplicaSet.pb000066400000000000000000000236711453636404600227410ustar00rootroot00000000000000k8s  apps/v1 ReplicaSetO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.ReplicaSet.yaml000066400000000000000000001017741453636404600233030ustar00rootroot00000000000000apiVersion: apps/v1 kind: ReplicaSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.StatefulSet.after_roundtrip.json000066400000000000000000001560731453636404600267320ustar00rootroot00000000000000{ "kind": "StatefulSet", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "volumeClaimTemplates": [ { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" }, "allocatedResourceStatuses": { "allocatedResourceStatusesKey": "allocatedResourceStatusesValue" } } } ], "serviceName": "serviceNameValue", "podManagementPolicy": "podManagementPolicyValue", "updateStrategy": { "type": "typeValue", "rollingUpdate": { "partition": 1, "maxUnavailable": "maxUnavailableValue" } }, "revisionHistoryLimit": 8, "minReadySeconds": 9, "persistentVolumeClaimRetentionPolicy": { "whenDeleted": "whenDeletedValue", "whenScaled": "whenScaledValue" }, "ordinals": { "start": 1 } }, "status": { "observedGeneration": 1, "replicas": 2, "readyReplicas": 3, "currentReplicas": 4, "updatedReplicas": 5, "currentRevision": "currentRevisionValue", "updateRevision": "updateRevisionValue", "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "availableReplicas": 11 } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.StatefulSet.after_roundtrip.pb000066400000000000000000000257031453636404600263550ustar00rootroot00000000000000k8s  apps/v1 StatefulSetW  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueSL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 0:> allocatedResourceStatusesKeyallocatedResourceStatusesValue*serviceNameValue2podManagementPolicyValue:* typeValuemaxUnavailableValue@H R# whenDeletedValuewhenScaledValueZx (2currentRevisionValue:updateRevisionValueH R= typeValue statusValue" reasonValue* messageValueX "golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.StatefulSet.after_roundtrip.yaml000066400000000000000000001070401453636404600267110ustar00rootroot00000000000000apiVersion: apps/v1 kind: StatefulSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 9 ordinals: start: 1 persistentVolumeClaimRetentionPolicy: whenDeleted: whenDeletedValue whenScaled: whenScaledValue podManagementPolicy: podManagementPolicyValue replicas: 1 revisionHistoryLimit: 8 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue serviceName: serviceNameValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxUnavailable: maxUnavailableValue partition: 1 type: typeValue volumeClaimTemplates: - metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResourceStatuses: allocatedResourceStatusesKey: allocatedResourceStatusesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue phase: phaseValue status: availableReplicas: 11 collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentReplicas: 4 currentRevision: currentRevisionValue observedGeneration: 1 readyReplicas: 3 replicas: 2 updateRevision: updateRevisionValue updatedReplicas: 5 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.StatefulSet.json000066400000000000000000001564711453636404600235260ustar00rootroot00000000000000{ "kind": "StatefulSet", "apiVersion": "apps/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "volumeClaimTemplates": [ { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" }, "allocatedResourceStatuses": { "allocatedResourceStatusesKey": "allocatedResourceStatusesValue" } } } ], "serviceName": "serviceNameValue", "podManagementPolicy": "podManagementPolicyValue", "updateStrategy": { "type": "typeValue", "rollingUpdate": { "partition": 1, "maxUnavailable": "maxUnavailableValue" } }, "revisionHistoryLimit": 8, "minReadySeconds": 9, "persistentVolumeClaimRetentionPolicy": { "whenDeleted": "whenDeletedValue", "whenScaled": "whenScaledValue" }, "ordinals": { "start": 1 } }, "status": { "observedGeneration": 1, "replicas": 2, "readyReplicas": 3, "currentReplicas": 4, "updatedReplicas": 5, "currentRevision": "currentRevisionValue", "updateRevision": "updateRevisionValue", "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "availableReplicas": 11 } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.StatefulSet.pb000066400000000000000000000257351453636404600231540ustar00rootroot00000000000000k8s  apps/v1 StatefulSetW  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueSL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 0:> allocatedResourceStatusesKeyallocatedResourceStatusesValue*serviceNameValue2podManagementPolicyValue:* typeValuemaxUnavailableValue@H R# whenDeletedValuewhenScaledValueZx (2currentRevisionValue:updateRevisionValueH R= typeValue statusValue" reasonValue* messageValueX "golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1.StatefulSet.yaml000066400000000000000000001072041453636404600235050ustar00rootroot00000000000000apiVersion: apps/v1 kind: StatefulSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 9 ordinals: start: 1 persistentVolumeClaimRetentionPolicy: whenDeleted: whenDeletedValue whenScaled: whenScaledValue podManagementPolicy: podManagementPolicyValue replicas: 1 revisionHistoryLimit: 8 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue serviceName: serviceNameValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxUnavailable: maxUnavailableValue partition: 1 type: typeValue volumeClaimTemplates: - metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResourceStatuses: allocatedResourceStatusesKey: allocatedResourceStatusesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue phase: phaseValue status: availableReplicas: 11 collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentReplicas: 4 currentRevision: currentRevisionValue observedGeneration: 1 readyReplicas: 3 replicas: 2 updateRevision: updateRevisionValue updatedReplicas: 5 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.ControllerRevision.json000066400000000000000000000025061453636404600260270ustar00rootroot00000000000000{ "kind": "ControllerRevision", "apiVersion": "apps/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "data": { "apiVersion": "example.com/v1", "kind": "CustomType", "spec": { "replicas": 1 }, "status": { "available": 1 } }, "revision": 3 }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.ControllerRevision.pb000066400000000000000000000007721453636404600254620ustar00rootroot00000000000000k8s " apps/v1beta1ControllerRevision  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValued b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.ControllerRevision.yaml000066400000000000000000000017231453636404600260200ustar00rootroot00000000000000apiVersion: apps/v1beta1 data: apiVersion: example.com/v1 kind: CustomType spec: replicas: 1 status: available: 1 kind: ControllerRevision metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue revision: 3 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.Deployment.after_roundtrip.json000066400000000000000000001472351453636404600275240ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "apps/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "rollbackTo": { "revision": 1 }, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.Deployment.after_roundtrip.pb000066400000000000000000000240101453636404600271350ustar00rootroot00000000000000k8s  apps/v1beta1 DeploymentO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueLL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08BH W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.Deployment.after_roundtrip.yaml000066400000000000000000001023711453636404600275050ustar00rootroot00000000000000apiVersion: apps/v1beta1 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 rollbackTo: revision: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.Deployment.json000066400000000000000000001474601453636404600243160ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "apps/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "rollbackTo": { "revision": 1 }, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.Deployment.pb000066400000000000000000000240251453636404600237350ustar00rootroot00000000000000k8s  apps/v1beta1 DeploymentO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueLL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08BH W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.Deployment.yaml000066400000000000000000001024631453636404600243010ustar00rootroot00000000000000apiVersion: apps/v1beta1 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 rollbackTo: revision: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.DeploymentRollback.json000066400000000000000000000003301453636404600257500ustar00rootroot00000000000000{ "kind": "DeploymentRollback", "apiVersion": "apps/v1beta1", "name": "nameValue", "updatedAnnotations": { "updatedAnnotationsKey": "updatedAnnotationsValue" }, "rollbackTo": { "revision": 1 } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.DeploymentRollback.pb000066400000000000000000000001571453636404600254070ustar00rootroot00000000000000k8s " apps/v1beta1DeploymentRollbackA nameValue0 updatedAnnotationsKeyupdatedAnnotationsValue"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.DeploymentRollback.yaml000066400000000000000000000002411453636404600257420ustar00rootroot00000000000000apiVersion: apps/v1beta1 kind: DeploymentRollback name: nameValue rollbackTo: revision: 1 updatedAnnotations: updatedAnnotationsKey: updatedAnnotationsValue golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.Scale.json000066400000000000000000000024701453636404600232140ustar00rootroot00000000000000{ "kind": "Scale", "apiVersion": "apps/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1 }, "status": { "replicas": 1, "selector": { "selectorKey": "selectorValue" }, "targetSelector": "targetSelectorValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.Scale.pb000066400000000000000000000007001453636404600226360ustar00rootroot00000000000000k8s  apps/v1beta1Scale  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 selectorKey selectorValuetargetSelectorValue"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.Scale.yaml000066400000000000000000000017141453636404600232050ustar00rootroot00000000000000apiVersion: apps/v1beta1 kind: Scale metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: replicas: 1 status: replicas: 1 selector: selectorKey: selectorValue targetSelector: targetSelectorValue golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.StatefulSet.after_roundtrip.json000066400000000000000000001561001453636404600276360ustar00rootroot00000000000000{ "kind": "StatefulSet", "apiVersion": "apps/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "volumeClaimTemplates": [ { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" }, "allocatedResourceStatuses": { "allocatedResourceStatusesKey": "allocatedResourceStatusesValue" } } } ], "serviceName": "serviceNameValue", "podManagementPolicy": "podManagementPolicyValue", "updateStrategy": { "type": "typeValue", "rollingUpdate": { "partition": 1, "maxUnavailable": "maxUnavailableValue" } }, "revisionHistoryLimit": 8, "minReadySeconds": 9, "persistentVolumeClaimRetentionPolicy": { "whenDeleted": "whenDeletedValue", "whenScaled": "whenScaledValue" }, "ordinals": { "start": 1 } }, "status": { "observedGeneration": 1, "replicas": 2, "readyReplicas": 3, "currentReplicas": 4, "updatedReplicas": 5, "currentRevision": "currentRevisionValue", "updateRevision": "updateRevisionValue", "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "availableReplicas": 11 } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.StatefulSet.after_roundtrip.pb000066400000000000000000000257101453636404600272700ustar00rootroot00000000000000k8s  apps/v1beta1 StatefulSetW  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueSL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 0:> allocatedResourceStatusesKeyallocatedResourceStatusesValue*serviceNameValue2podManagementPolicyValue:* typeValuemaxUnavailableValue@H R# whenDeletedValuewhenScaledValueZx (2currentRevisionValue:updateRevisionValueH R= typeValue statusValue" reasonValue* messageValueX "golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.StatefulSet.after_roundtrip.yaml000066400000000000000000001070451453636404600276330ustar00rootroot00000000000000apiVersion: apps/v1beta1 kind: StatefulSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 9 ordinals: start: 1 persistentVolumeClaimRetentionPolicy: whenDeleted: whenDeletedValue whenScaled: whenScaledValue podManagementPolicy: podManagementPolicyValue replicas: 1 revisionHistoryLimit: 8 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue serviceName: serviceNameValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxUnavailable: maxUnavailableValue partition: 1 type: typeValue volumeClaimTemplates: - metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResourceStatuses: allocatedResourceStatusesKey: allocatedResourceStatusesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue phase: phaseValue status: availableReplicas: 11 collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentReplicas: 4 currentRevision: currentRevisionValue observedGeneration: 1 readyReplicas: 3 replicas: 2 updateRevision: updateRevisionValue updatedReplicas: 5 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.StatefulSet.json000066400000000000000000001564761453636404600244500ustar00rootroot00000000000000{ "kind": "StatefulSet", "apiVersion": "apps/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "volumeClaimTemplates": [ { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" }, "allocatedResourceStatuses": { "allocatedResourceStatusesKey": "allocatedResourceStatusesValue" } } } ], "serviceName": "serviceNameValue", "podManagementPolicy": "podManagementPolicyValue", "updateStrategy": { "type": "typeValue", "rollingUpdate": { "partition": 1, "maxUnavailable": "maxUnavailableValue" } }, "revisionHistoryLimit": 8, "minReadySeconds": 9, "persistentVolumeClaimRetentionPolicy": { "whenDeleted": "whenDeletedValue", "whenScaled": "whenScaledValue" }, "ordinals": { "start": 1 } }, "status": { "observedGeneration": 1, "replicas": 2, "readyReplicas": 3, "currentReplicas": 4, "updatedReplicas": 5, "currentRevision": "currentRevisionValue", "updateRevision": "updateRevisionValue", "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "availableReplicas": 11 } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.StatefulSet.pb000066400000000000000000000257421453636404600240670ustar00rootroot00000000000000k8s  apps/v1beta1 StatefulSetW  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueSL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 0:> allocatedResourceStatusesKeyallocatedResourceStatusesValue*serviceNameValue2podManagementPolicyValue:* typeValuemaxUnavailableValue@H R# whenDeletedValuewhenScaledValueZx (2currentRevisionValue:updateRevisionValueH R= typeValue statusValue" reasonValue* messageValueX "golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta1.StatefulSet.yaml000066400000000000000000001072111453636404600244200ustar00rootroot00000000000000apiVersion: apps/v1beta1 kind: StatefulSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 9 ordinals: start: 1 persistentVolumeClaimRetentionPolicy: whenDeleted: whenDeletedValue whenScaled: whenScaledValue podManagementPolicy: podManagementPolicyValue replicas: 1 revisionHistoryLimit: 8 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue serviceName: serviceNameValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxUnavailable: maxUnavailableValue partition: 1 type: typeValue volumeClaimTemplates: - metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResourceStatuses: allocatedResourceStatusesKey: allocatedResourceStatusesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue phase: phaseValue status: availableReplicas: 11 collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentReplicas: 4 currentRevision: currentRevisionValue observedGeneration: 1 readyReplicas: 3 replicas: 2 updateRevision: updateRevisionValue updatedReplicas: 5 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.ControllerRevision.json000066400000000000000000000025061453636404600260300ustar00rootroot00000000000000{ "kind": "ControllerRevision", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "data": { "apiVersion": "example.com/v1", "kind": "CustomType", "spec": { "replicas": 1 }, "status": { "available": 1 } }, "revision": 3 }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.ControllerRevision.pb000066400000000000000000000007721453636404600254630ustar00rootroot00000000000000k8s " apps/v1beta2ControllerRevision  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValued b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.ControllerRevision.yaml000066400000000000000000000017231453636404600260210ustar00rootroot00000000000000apiVersion: apps/v1beta2 data: apiVersion: example.com/v1 kind: CustomType spec: replicas: 1 status: available: 1 kind: ControllerRevision metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue revision: 3 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.DaemonSet.after_roundtrip.json000066400000000000000000001471051453636404600272600ustar00rootroot00000000000000{ "kind": "DaemonSet", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "updateStrategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 4, "revisionHistoryLimit": 6 }, "status": { "currentNumberScheduled": 1, "numberMisscheduled": 2, "desiredNumberScheduled": 3, "numberReady": 4, "observedGeneration": 5, "updatedNumberScheduled": 6, "numberAvailable": 7, "numberUnavailable": 8, "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.DaemonSet.after_roundtrip.pb000066400000000000000000000237671453636404600267170ustar00rootroot00000000000000k8s  apps/v1beta2 DaemonSetO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue= typeValue0 maxUnavailableValue maxSurgeValue 0Q (08@H R= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.DaemonSet.after_roundtrip.yaml000066400000000000000000001022761453636404600272510ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: DaemonSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue status: collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentNumberScheduled: 1 desiredNumberScheduled: 3 numberAvailable: 7 numberMisscheduled: 2 numberReady: 4 numberUnavailable: 8 observedGeneration: 5 updatedNumberScheduled: 6 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.DaemonSet.json000066400000000000000000001473301453636404600240520ustar00rootroot00000000000000{ "kind": "DaemonSet", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "updateStrategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 4, "revisionHistoryLimit": 6 }, "status": { "currentNumberScheduled": 1, "numberMisscheduled": 2, "desiredNumberScheduled": 3, "numberReady": 4, "observedGeneration": 5, "updatedNumberScheduled": 6, "numberAvailable": 7, "numberUnavailable": 8, "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.DaemonSet.pb000066400000000000000000000240041453636404600234720ustar00rootroot00000000000000k8s  apps/v1beta2 DaemonSetO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue= typeValue0 maxUnavailableValue maxSurgeValue 0Q (08@H R= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.DaemonSet.yaml000066400000000000000000001023701453636404600240360ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: DaemonSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue status: collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentNumberScheduled: 1 desiredNumberScheduled: 3 numberAvailable: 7 numberMisscheduled: 2 numberReady: 4 numberUnavailable: 8 observedGeneration: 5 updatedNumberScheduled: 6 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.Deployment.after_roundtrip.json000066400000000000000000001471561453636404600275270ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.Deployment.after_roundtrip.pb000066400000000000000000000240041453636404600271410ustar00rootroot00000000000000k8s  apps/v1beta2 DeploymentO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueLL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08H W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.Deployment.after_roundtrip.yaml000066400000000000000000001023331453636404600275040ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.Deployment.json000066400000000000000000001474011453636404600243120ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.Deployment.pb000066400000000000000000000240211453636404600237320ustar00rootroot00000000000000k8s  apps/v1beta2 DeploymentO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueLL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08H W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.Deployment.yaml000066400000000000000000001024251453636404600243000ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.ReplicaSet.after_roundtrip.json000066400000000000000000001464131453636404600274350ustar00rootroot00000000000000{ "kind": "ReplicaSet", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.ReplicaSet.after_roundtrip.pb000066400000000000000000000236611453636404600270640ustar00rootroot00000000000000k8s  apps/v1beta2 ReplicaSetO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.ReplicaSet.after_roundtrip.yaml000066400000000000000000001017071453636404600274230ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: ReplicaSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.ReplicaSet.json000066400000000000000000001466361453636404600242360ustar00rootroot00000000000000{ "kind": "ReplicaSet", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.ReplicaSet.pb000066400000000000000000000236761453636404600236640ustar00rootroot00000000000000k8s  apps/v1beta2 ReplicaSetO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.ReplicaSet.yaml000066400000000000000000001020011453636404600242010ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: ReplicaSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.Scale.json000066400000000000000000000024701453636404600232150ustar00rootroot00000000000000{ "kind": "Scale", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1 }, "status": { "replicas": 1, "selector": { "selectorKey": "selectorValue" }, "targetSelector": "targetSelectorValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.Scale.pb000066400000000000000000000007001453636404600226370ustar00rootroot00000000000000k8s  apps/v1beta2Scale  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 selectorKey selectorValuetargetSelectorValue"golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.Scale.yaml000066400000000000000000000017141453636404600232060ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: Scale metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: replicas: 1 status: replicas: 1 selector: selectorKey: selectorValue targetSelector: targetSelectorValue golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.StatefulSet.after_roundtrip.json000066400000000000000000001561001453636404600276370ustar00rootroot00000000000000{ "kind": "StatefulSet", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "volumeClaimTemplates": [ { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" }, "allocatedResourceStatuses": { "allocatedResourceStatusesKey": "allocatedResourceStatusesValue" } } } ], "serviceName": "serviceNameValue", "podManagementPolicy": "podManagementPolicyValue", "updateStrategy": { "type": "typeValue", "rollingUpdate": { "partition": 1, "maxUnavailable": "maxUnavailableValue" } }, "revisionHistoryLimit": 8, "minReadySeconds": 9, "persistentVolumeClaimRetentionPolicy": { "whenDeleted": "whenDeletedValue", "whenScaled": "whenScaledValue" }, "ordinals": { "start": 1 } }, "status": { "observedGeneration": 1, "replicas": 2, "readyReplicas": 3, "currentReplicas": 4, "updatedReplicas": 5, "currentRevision": "currentRevisionValue", "updateRevision": "updateRevisionValue", "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "availableReplicas": 11 } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.StatefulSet.after_roundtrip.pb000066400000000000000000000257101453636404600272710ustar00rootroot00000000000000k8s  apps/v1beta2 StatefulSetW  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueSL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 0:> allocatedResourceStatusesKeyallocatedResourceStatusesValue*serviceNameValue2podManagementPolicyValue:* typeValuemaxUnavailableValue@H R# whenDeletedValuewhenScaledValueZx (2currentRevisionValue:updateRevisionValueH R= typeValue statusValue" reasonValue* messageValueX "golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.StatefulSet.after_roundtrip.yaml000066400000000000000000001070451453636404600276340ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: StatefulSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 9 ordinals: start: 1 persistentVolumeClaimRetentionPolicy: whenDeleted: whenDeletedValue whenScaled: whenScaledValue podManagementPolicy: podManagementPolicyValue replicas: 1 revisionHistoryLimit: 8 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue serviceName: serviceNameValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxUnavailable: maxUnavailableValue partition: 1 type: typeValue volumeClaimTemplates: - metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResourceStatuses: allocatedResourceStatusesKey: allocatedResourceStatusesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue phase: phaseValue status: availableReplicas: 11 collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentReplicas: 4 currentRevision: currentRevisionValue observedGeneration: 1 readyReplicas: 3 replicas: 2 updateRevision: updateRevisionValue updatedReplicas: 5 golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.StatefulSet.json000066400000000000000000001564761453636404600244510ustar00rootroot00000000000000{ "kind": "StatefulSet", "apiVersion": "apps/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "volumeClaimTemplates": [ { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" }, "allocatedResourceStatuses": { "allocatedResourceStatusesKey": "allocatedResourceStatusesValue" } } } ], "serviceName": "serviceNameValue", "podManagementPolicy": "podManagementPolicyValue", "updateStrategy": { "type": "typeValue", "rollingUpdate": { "partition": 1, "maxUnavailable": "maxUnavailableValue" } }, "revisionHistoryLimit": 8, "minReadySeconds": 9, "persistentVolumeClaimRetentionPolicy": { "whenDeleted": "whenDeletedValue", "whenScaled": "whenScaledValue" }, "ordinals": { "start": 1 } }, "status": { "observedGeneration": 1, "replicas": 2, "readyReplicas": 3, "currentReplicas": 4, "updatedReplicas": 5, "currentRevision": "currentRevisionValue", "updateRevision": "updateRevisionValue", "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "availableReplicas": 11 } }golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.StatefulSet.pb000066400000000000000000000257421453636404600240700ustar00rootroot00000000000000k8s  apps/v1beta2 StatefulSetW  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueSL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 0:> allocatedResourceStatusesKeyallocatedResourceStatusesValue*serviceNameValue2podManagementPolicyValue:* typeValuemaxUnavailableValue@H R# whenDeletedValuewhenScaledValueZx (2currentRevisionValue:updateRevisionValueH R= typeValue statusValue" reasonValue* messageValueX "golang-k8s-api-0.29.0/testdata/v1.28.0/apps.v1beta2.StatefulSet.yaml000066400000000000000000001072111453636404600244210ustar00rootroot00000000000000apiVersion: apps/v1beta2 kind: StatefulSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 9 ordinals: start: 1 persistentVolumeClaimRetentionPolicy: whenDeleted: whenDeletedValue whenScaled: whenScaledValue podManagementPolicy: podManagementPolicyValue replicas: 1 revisionHistoryLimit: 8 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue serviceName: serviceNameValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue updateStrategy: rollingUpdate: maxUnavailable: maxUnavailableValue partition: 1 type: typeValue volumeClaimTemplates: - metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResourceStatuses: allocatedResourceStatusesKey: allocatedResourceStatusesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue phase: phaseValue status: availableReplicas: 11 collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentReplicas: 4 currentRevision: currentRevisionValue observedGeneration: 1 readyReplicas: 3 replicas: 2 updateRevision: updateRevisionValue updatedReplicas: 5 golang-k8s-api-0.29.0/testdata/v1.28.0/authentication.k8s.io.v1.SelfSubjectReview.json000066400000000000000000000026051453636404600300310ustar00rootroot00000000000000{ "kind": "SelfSubjectReview", "apiVersion": "authentication.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "status": { "userInfo": { "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } } } }golang-k8s-api-0.29.0/testdata/v1.28.0/authentication.k8s.io.v1.SelfSubjectReview.pb000066400000000000000000000007411453636404600274600ustar00rootroot00000000000000k8s - authentication.k8s.io/v1SelfSubjectReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueB @ usernameValueuidValue groupsValue" extraKey extraValue"golang-k8s-api-0.29.0/testdata/v1.28.0/authentication.k8s.io.v1.SelfSubjectReview.yaml000066400000000000000000000017671453636404600300320ustar00rootroot00000000000000apiVersion: authentication.k8s.io/v1 kind: SelfSubjectReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue status: userInfo: extra: extraKey: - extraValue groups: - groupsValue uid: uidValue username: usernameValue golang-k8s-api-0.29.0/testdata/v1.28.0/authentication.k8s.io.v1.TokenRequest.json000066400000000000000000000027511453636404600270710ustar00rootroot00000000000000{ "kind": "TokenRequest", "apiVersion": "authentication.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "audiences": [ "audiencesValue" ], "expirationSeconds": 4, "boundObjectRef": { "kind": "kindValue", "apiVersion": "apiVersionValue", "name": "nameValue", "uid": "uidValue" } }, "status": { "token": "tokenValue", "expirationTimestamp": "2002-01-01T01:01:01Z" } }golang-k8s-api-0.29.0/testdata/v1.28.0/authentication.k8s.io.v1.TokenRequest.pb000066400000000000000000000007671453636404600265260ustar00rootroot00000000000000k8s ( authentication.k8s.io/v1 TokenRequest  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueE audiencesValue1 kindValueapiVersionValue nameValue"uidValue  tokenValue͔"golang-k8s-api-0.29.0/testdata/v1.28.0/authentication.k8s.io.v1.TokenRequest.yaml000066400000000000000000000021271453636404600270570ustar00rootroot00000000000000apiVersion: authentication.k8s.io/v1 kind: TokenRequest metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: audiences: - audiencesValue boundObjectRef: apiVersion: apiVersionValue kind: kindValue name: nameValue uid: uidValue expirationSeconds: 4 status: expirationTimestamp: "2002-01-01T01:01:01Z" token: tokenValue golang-k8s-api-0.29.0/testdata/v1.28.0/authentication.k8s.io.v1.TokenReview.json000066400000000000000000000030761453636404600267030ustar00rootroot00000000000000{ "kind": "TokenReview", "apiVersion": "authentication.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "token": "tokenValue", "audiences": [ "audiencesValue" ] }, "status": { "authenticated": true, "user": { "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } }, "audiences": [ "audiencesValue" ], "error": "errorValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/authentication.k8s.io.v1.TokenReview.pb000066400000000000000000000010271453636404600263250ustar00rootroot00000000000000k8s ' authentication.k8s.io/v1 TokenReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue tokenValueaudiencesValue`@ usernameValueuidValue groupsValue" extraKey extraValue errorValue"audiencesValue"golang-k8s-api-0.29.0/testdata/v1.28.0/authentication.k8s.io.v1.TokenReview.yaml000066400000000000000000000021611453636404600266660ustar00rootroot00000000000000apiVersion: authentication.k8s.io/v1 kind: TokenReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: audiences: - audiencesValue token: tokenValue status: audiences: - audiencesValue authenticated: true error: errorValue user: extra: extraKey: - extraValue groups: - groupsValue uid: uidValue username: usernameValue golang-k8s-api-0.29.0/testdata/v1.28.0/authentication.k8s.io.v1beta1.SelfSubjectReview.json000066400000000000000000000026121453636404600307440ustar00rootroot00000000000000{ "kind": "SelfSubjectReview", "apiVersion": "authentication.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "status": { "userInfo": { "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } } } }golang-k8s-api-0.29.0/testdata/v1.28.0/authentication.k8s.io.v1beta1.SelfSubjectReview.pb000066400000000000000000000007461453636404600304020ustar00rootroot00000000000000k8s 2 authentication.k8s.io/v1beta1SelfSubjectReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueB @ usernameValueuidValue groupsValue" extraKey extraValue"golang-k8s-api-0.29.0/testdata/v1.28.0/authentication.k8s.io.v1beta1.SelfSubjectReview.yaml000066400000000000000000000017741453636404600307450ustar00rootroot00000000000000apiVersion: authentication.k8s.io/v1beta1 kind: SelfSubjectReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue status: userInfo: extra: extraKey: - extraValue groups: - groupsValue uid: uidValue username: usernameValue golang-k8s-api-0.29.0/testdata/v1.28.0/authentication.k8s.io.v1beta1.TokenReview.json000066400000000000000000000031031453636404600276070ustar00rootroot00000000000000{ "kind": "TokenReview", "apiVersion": "authentication.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "token": "tokenValue", "audiences": [ "audiencesValue" ] }, "status": { "authenticated": true, "user": { "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } }, "audiences": [ "audiencesValue" ], "error": "errorValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/authentication.k8s.io.v1beta1.TokenReview.pb000066400000000000000000000010341453636404600272400ustar00rootroot00000000000000k8s , authentication.k8s.io/v1beta1 TokenReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue tokenValueaudiencesValue`@ usernameValueuidValue groupsValue" extraKey extraValue errorValue"audiencesValue"golang-k8s-api-0.29.0/testdata/v1.28.0/authentication.k8s.io.v1beta1.TokenReview.yaml000066400000000000000000000021661453636404600276100ustar00rootroot00000000000000apiVersion: authentication.k8s.io/v1beta1 kind: TokenReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: audiences: - audiencesValue token: tokenValue status: audiences: - audiencesValue authenticated: true error: errorValue user: extra: extraKey: - extraValue groups: - groupsValue uid: uidValue username: usernameValue golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1.LocalSubjectAccessReview.json000066400000000000000000000034761453636404600312040ustar00rootroot00000000000000{ "kind": "LocalSubjectAccessReview", "apiVersion": "authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceAttributes": { "namespace": "namespaceValue", "verb": "verbValue", "group": "groupValue", "version": "versionValue", "resource": "resourceValue", "subresource": "subresourceValue", "name": "nameValue" }, "nonResourceAttributes": { "path": "pathValue", "verb": "verbValue" }, "user": "userValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] }, "uid": "uidValue" }, "status": { "allowed": true, "denied": true, "reason": "reasonValue", "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1.LocalSubjectAccessReview.pb000066400000000000000000000012061453636404600306210ustar00rootroot00000000000000k8s 3 authorization.k8s.io/v1LocalSubjectAccessReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue a namespaceValue verbValue groupValue" versionValue* resourceValue2subresourceValue: nameValue pathValue verbValue userValue" groupsValue* extraKey extraValue2uidValue' reasonValueevaluationErrorValue "golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1.LocalSubjectAccessReview.yaml000066400000000000000000000025111453636404600311620ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1 kind: LocalSubjectAccessReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: extra: extraKey: - extraValue groups: - groupsValue nonResourceAttributes: path: pathValue verb: verbValue resourceAttributes: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue subresource: subresourceValue verb: verbValue version: versionValue uid: uidValue user: userValue status: allowed: true denied: true evaluationError: evaluationErrorValue reason: reasonValue golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1.SelfSubjectAccessReview.json000066400000000000000000000032331453636404600310320ustar00rootroot00000000000000{ "kind": "SelfSubjectAccessReview", "apiVersion": "authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceAttributes": { "namespace": "namespaceValue", "verb": "verbValue", "group": "groupValue", "version": "versionValue", "resource": "resourceValue", "subresource": "subresourceValue", "name": "nameValue" }, "nonResourceAttributes": { "path": "pathValue", "verb": "verbValue" } }, "status": { "allowed": true, "denied": true, "reason": "reasonValue", "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1.SelfSubjectAccessReview.pb000066400000000000000000000011101453636404600304520ustar00rootroot00000000000000k8s 2 authorization.k8s.io/v1SelfSubjectAccessReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue{ a namespaceValue verbValue groupValue" versionValue* resourceValue2subresourceValue: nameValue pathValue verbValue' reasonValueevaluationErrorValue "golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1.SelfSubjectAccessReview.yaml000066400000000000000000000023441453636404600310250ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1 kind: SelfSubjectAccessReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: nonResourceAttributes: path: pathValue verb: verbValue resourceAttributes: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue subresource: subresourceValue verb: verbValue version: versionValue status: allowed: true denied: true evaluationError: evaluationErrorValue reason: reasonValue golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1.SelfSubjectRulesReview.json000066400000000000000000000033741453636404600307310ustar00rootroot00000000000000{ "kind": "SelfSubjectRulesReview", "apiVersion": "authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "namespace": "namespaceValue" }, "status": { "resourceRules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ] } ], "nonResourceRules": [ { "verbs": [ "verbsValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ], "incomplete": true, "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1.SelfSubjectRulesReview.pb000066400000000000000000000010631453636404600303520ustar00rootroot00000000000000k8s 1 authorization.k8s.io/v1SelfSubjectRulesReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue namespaceValue~ @ verbsValueapiGroupsValueresourcesValue"resourceNamesValue" verbsValuenonResourceURLsValue"evaluationErrorValue"golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1.SelfSubjectRulesReview.yaml000066400000000000000000000023231453636404600307130ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1 kind: SelfSubjectRulesReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: namespace: namespaceValue status: evaluationError: evaluationErrorValue incomplete: true nonResourceRules: - nonResourceURLs: - nonResourceURLsValue verbs: - verbsValue resourceRules: - apiGroups: - apiGroupsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1.SubjectAccessReview.json000066400000000000000000000034711453636404600302240ustar00rootroot00000000000000{ "kind": "SubjectAccessReview", "apiVersion": "authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceAttributes": { "namespace": "namespaceValue", "verb": "verbValue", "group": "groupValue", "version": "versionValue", "resource": "resourceValue", "subresource": "subresourceValue", "name": "nameValue" }, "nonResourceAttributes": { "path": "pathValue", "verb": "verbValue" }, "user": "userValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] }, "uid": "uidValue" }, "status": { "allowed": true, "denied": true, "reason": "reasonValue", "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1.SubjectAccessReview.pb000066400000000000000000000012011453636404600276410ustar00rootroot00000000000000k8s . authorization.k8s.io/v1SubjectAccessReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue a namespaceValue verbValue groupValue" versionValue* resourceValue2subresourceValue: nameValue pathValue verbValue userValue" groupsValue* extraKey extraValue2uidValue' reasonValueevaluationErrorValue "golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1.SubjectAccessReview.yaml000066400000000000000000000025041453636404600302110ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1 kind: SubjectAccessReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: extra: extraKey: - extraValue groups: - groupsValue nonResourceAttributes: path: pathValue verb: verbValue resourceAttributes: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue subresource: subresourceValue verb: verbValue version: versionValue uid: uidValue user: userValue status: allowed: true denied: true evaluationError: evaluationErrorValue reason: reasonValue golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.json000066400000000000000000000035011453636404600321060ustar00rootroot00000000000000{ "kind": "LocalSubjectAccessReview", "apiVersion": "authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceAttributes": { "namespace": "namespaceValue", "verb": "verbValue", "group": "groupValue", "version": "versionValue", "resource": "resourceValue", "subresource": "subresourceValue", "name": "nameValue" }, "nonResourceAttributes": { "path": "pathValue", "verb": "verbValue" }, "user": "userValue", "group": [ "groupValue" ], "extra": { "extraKey": [ "extraValue" ] }, "uid": "uidValue" }, "status": { "allowed": true, "denied": true, "reason": "reasonValue", "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.pb000066400000000000000000000012121453636404600315330ustar00rootroot00000000000000k8s 8 authorization.k8s.io/v1beta1LocalSubjectAccessReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue a namespaceValue verbValue groupValue" versionValue* resourceValue2subresourceValue: nameValue pathValue verbValue userValue" groupValue* extraKey extraValue2uidValue' reasonValueevaluationErrorValue "golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.yaml000066400000000000000000000025141453636404600321020ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1beta1 kind: LocalSubjectAccessReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: extra: extraKey: - extraValue group: - groupValue nonResourceAttributes: path: pathValue verb: verbValue resourceAttributes: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue subresource: subresourceValue verb: verbValue version: versionValue uid: uidValue user: userValue status: allowed: true denied: true evaluationError: evaluationErrorValue reason: reasonValue golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.json000066400000000000000000000032401453636404600317450ustar00rootroot00000000000000{ "kind": "SelfSubjectAccessReview", "apiVersion": "authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceAttributes": { "namespace": "namespaceValue", "verb": "verbValue", "group": "groupValue", "version": "versionValue", "resource": "resourceValue", "subresource": "subresourceValue", "name": "nameValue" }, "nonResourceAttributes": { "path": "pathValue", "verb": "verbValue" } }, "status": { "allowed": true, "denied": true, "reason": "reasonValue", "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.pb000066400000000000000000000011151453636404600313740ustar00rootroot00000000000000k8s 7 authorization.k8s.io/v1beta1SelfSubjectAccessReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue{ a namespaceValue verbValue groupValue" versionValue* resourceValue2subresourceValue: nameValue pathValue verbValue' reasonValueevaluationErrorValue "golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.yaml000066400000000000000000000023511453636404600317400ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1beta1 kind: SelfSubjectAccessReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: nonResourceAttributes: path: pathValue verb: verbValue resourceAttributes: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue subresource: subresourceValue verb: verbValue version: versionValue status: allowed: true denied: true evaluationError: evaluationErrorValue reason: reasonValue golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.json000066400000000000000000000034011453636404600316350ustar00rootroot00000000000000{ "kind": "SelfSubjectRulesReview", "apiVersion": "authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "namespace": "namespaceValue" }, "status": { "resourceRules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ] } ], "nonResourceRules": [ { "verbs": [ "verbsValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ], "incomplete": true, "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.pb000066400000000000000000000010701453636404600312650ustar00rootroot00000000000000k8s 6 authorization.k8s.io/v1beta1SelfSubjectRulesReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue namespaceValue~ @ verbsValueapiGroupsValueresourcesValue"resourceNamesValue" verbsValuenonResourceURLsValue"evaluationErrorValue"golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.yaml000066400000000000000000000023301453636404600316260ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1beta1 kind: SelfSubjectRulesReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: namespace: namespaceValue status: evaluationError: evaluationErrorValue incomplete: true nonResourceRules: - nonResourceURLs: - nonResourceURLsValue verbs: - verbsValue resourceRules: - apiGroups: - apiGroupsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1beta1.SubjectAccessReview.json000066400000000000000000000034741453636404600311440ustar00rootroot00000000000000{ "kind": "SubjectAccessReview", "apiVersion": "authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceAttributes": { "namespace": "namespaceValue", "verb": "verbValue", "group": "groupValue", "version": "versionValue", "resource": "resourceValue", "subresource": "subresourceValue", "name": "nameValue" }, "nonResourceAttributes": { "path": "pathValue", "verb": "verbValue" }, "user": "userValue", "group": [ "groupValue" ], "extra": { "extraKey": [ "extraValue" ] }, "uid": "uidValue" }, "status": { "allowed": true, "denied": true, "reason": "reasonValue", "evaluationError": "evaluationErrorValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1beta1.SubjectAccessReview.pb000066400000000000000000000012051453636404600305620ustar00rootroot00000000000000k8s 3 authorization.k8s.io/v1beta1SubjectAccessReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue a namespaceValue verbValue groupValue" versionValue* resourceValue2subresourceValue: nameValue pathValue verbValue userValue" groupValue* extraKey extraValue2uidValue' reasonValueevaluationErrorValue "golang-k8s-api-0.29.0/testdata/v1.28.0/authorization.k8s.io.v1beta1.SubjectAccessReview.yaml000066400000000000000000000025071453636404600311310ustar00rootroot00000000000000apiVersion: authorization.k8s.io/v1beta1 kind: SubjectAccessReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: extra: extraKey: - extraValue group: - groupValue nonResourceAttributes: path: pathValue verb: verbValue resourceAttributes: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue subresource: subresourceValue verb: verbValue version: versionValue uid: uidValue user: userValue status: allowed: true denied: true evaluationError: evaluationErrorValue reason: reasonValue golang-k8s-api-0.29.0/testdata/v1.28.0/autoscaling.v1.HorizontalPodAutoscaler.json000066400000000000000000000030631453636404600274340ustar00rootroot00000000000000{ "kind": "HorizontalPodAutoscaler", "apiVersion": "autoscaling/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "scaleTargetRef": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "minReplicas": 2, "maxReplicas": 3, "targetCPUUtilizationPercentage": 4 }, "status": { "observedGeneration": 1, "lastScaleTime": "2002-01-01T01:01:01Z", "currentReplicas": 3, "desiredReplicas": 4, "currentCPUUtilizationPercentage": 5 } }golang-k8s-api-0.29.0/testdata/v1.28.0/autoscaling.v1.HorizontalPodAutoscaler.pb000066400000000000000000000007361453636404600270700ustar00rootroot00000000000000k8s ) autoscaling/v1HorizontalPodAutoscaler  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue/ ' kindValue nameValueapiVersionValue ͔ ("golang-k8s-api-0.29.0/testdata/v1.28.0/autoscaling.v1.HorizontalPodAutoscaler.yaml000066400000000000000000000022421453636404600274230ustar00rootroot00000000000000apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: maxReplicas: 3 minReplicas: 2 scaleTargetRef: apiVersion: apiVersionValue kind: kindValue name: nameValue targetCPUUtilizationPercentage: 4 status: currentCPUUtilizationPercentage: 5 currentReplicas: 3 desiredReplicas: 4 lastScaleTime: "2002-01-01T01:01:01Z" observedGeneration: 1 golang-k8s-api-0.29.0/testdata/v1.28.0/autoscaling.v1.Scale.json000066400000000000000000000023601453636404600236430ustar00rootroot00000000000000{ "kind": "Scale", "apiVersion": "autoscaling/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1 }, "status": { "replicas": 1, "selector": "selectorValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/autoscaling.v1.Scale.pb000066400000000000000000000006361453636404600232770ustar00rootroot00000000000000k8s  autoscaling/v1Scale  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue selectorValue"golang-k8s-api-0.29.0/testdata/v1.28.0/autoscaling.v1.Scale.yaml000066400000000000000000000016271453636404600236410ustar00rootroot00000000000000apiVersion: autoscaling/v1 kind: Scale metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: replicas: 1 status: replicas: 1 selector: selectorValue golang-k8s-api-0.29.0/testdata/v1.28.0/autoscaling.v2.HorizontalPodAutoscaler.json000066400000000000000000000165331453636404600274430ustar00rootroot00000000000000{ "kind": "HorizontalPodAutoscaler", "apiVersion": "autoscaling/v2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "scaleTargetRef": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "minReplicas": 2, "maxReplicas": 3, "metrics": [ { "type": "typeValue", "object": { "describedObject": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 }, "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } }, "pods": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 } }, "resource": { "name": "nameValue", "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 } }, "containerResource": { "name": "nameValue", "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 }, "container": "containerValue" }, "external": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 } } } ], "behavior": { "scaleUp": { "stabilizationWindowSeconds": 3, "selectPolicy": "selectPolicyValue", "policies": [ { "type": "typeValue", "value": 2, "periodSeconds": 3 } ] }, "scaleDown": { "stabilizationWindowSeconds": 3, "selectPolicy": "selectPolicyValue", "policies": [ { "type": "typeValue", "value": 2, "periodSeconds": 3 } ] } } }, "status": { "observedGeneration": 1, "lastScaleTime": "2002-01-01T01:01:01Z", "currentReplicas": 3, "desiredReplicas": 4, "currentMetrics": [ { "type": "typeValue", "object": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 }, "describedObject": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" } }, "pods": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 } }, "resource": { "name": "nameValue", "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 } }, "containerResource": { "name": "nameValue", "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 }, "container": "containerValue" }, "external": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 } } } ], "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/autoscaling.v2.HorizontalPodAutoscaler.pb000066400000000000000000000030421453636404600270620ustar00rootroot00000000000000k8s ) autoscaling/v2HorizontalPodAutoscaler  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue ' kindValue nameValueapiVersionValue" typeValue ' kindValue nameValueapiVersionValue typeValue 0 0 Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuet Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue typeValue 0 0 "$ nameValue typeValue 0 0 *t Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue typeValue 0 0 :4 nameValue typeValue 0 0 containerValue*P & selectPolicyValue typeValue& selectPolicyValue typeValue͔ * typeValue Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  0 0' kindValue nameValueapiVersionValuei Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  0 0" nameValue  0 0*i Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  0 0:) nameValue  0 0containerValue2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/autoscaling.v2.HorizontalPodAutoscaler.yaml000066400000000000000000000112501453636404600274230ustar00rootroot00000000000000apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: behavior: scaleDown: policies: - periodSeconds: 3 type: typeValue value: 2 selectPolicy: selectPolicyValue stabilizationWindowSeconds: 3 scaleUp: policies: - periodSeconds: 3 type: typeValue value: 2 selectPolicy: selectPolicyValue stabilizationWindowSeconds: 3 maxReplicas: 3 metrics: - containerResource: container: containerValue name: nameValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" external: metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" object: describedObject: apiVersion: apiVersionValue kind: kindValue name: nameValue metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" pods: metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" resource: name: nameValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" type: typeValue minReplicas: 2 scaleTargetRef: apiVersion: apiVersionValue kind: kindValue name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentMetrics: - containerResource: container: containerValue current: averageUtilization: 3 averageValue: "0" value: "0" name: nameValue external: current: averageUtilization: 3 averageValue: "0" value: "0" metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue object: current: averageUtilization: 3 averageValue: "0" value: "0" describedObject: apiVersion: apiVersionValue kind: kindValue name: nameValue metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue pods: current: averageUtilization: 3 averageValue: "0" value: "0" metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue resource: current: averageUtilization: 3 averageValue: "0" value: "0" name: nameValue type: typeValue currentReplicas: 3 desiredReplicas: 4 lastScaleTime: "2002-01-01T01:01:01Z" observedGeneration: 1 golang-k8s-api-0.29.0/testdata/v1.28.0/autoscaling.v2beta1.HorizontalPodAutoscaler.json000066400000000000000000000133201453636404600303470ustar00rootroot00000000000000{ "kind": "HorizontalPodAutoscaler", "apiVersion": "autoscaling/v2beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "scaleTargetRef": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "minReplicas": 2, "maxReplicas": 3, "metrics": [ { "type": "typeValue", "object": { "target": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "metricName": "metricNameValue", "targetValue": "0", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "averageValue": "0" }, "pods": { "metricName": "metricNameValue", "targetAverageValue": "0", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "resource": { "name": "nameValue", "targetAverageUtilization": 2, "targetAverageValue": "0" }, "containerResource": { "name": "nameValue", "targetAverageUtilization": 2, "targetAverageValue": "0", "container": "containerValue" }, "external": { "metricName": "metricNameValue", "metricSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "targetValue": "0", "targetAverageValue": "0" } } ] }, "status": { "observedGeneration": 1, "lastScaleTime": "2002-01-01T01:01:01Z", "currentReplicas": 3, "desiredReplicas": 4, "currentMetrics": [ { "type": "typeValue", "object": { "target": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "metricName": "metricNameValue", "currentValue": "0", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "averageValue": "0" }, "pods": { "metricName": "metricNameValue", "currentAverageValue": "0", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "resource": { "name": "nameValue", "currentAverageUtilization": 2, "currentAverageValue": "0" }, "containerResource": { "name": "nameValue", "currentAverageUtilization": 2, "currentAverageValue": "0", "container": "containerValue" }, "external": { "metricName": "metricNameValue", "metricSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "currentValue": "0", "currentAverageValue": "0" } } ], "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/autoscaling.v2beta1.HorizontalPodAutoscaler.pb000066400000000000000000000025701453636404600300040ustar00rootroot00000000000000k8s . autoscaling/v2beta1HorizontalPodAutoscaler  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue ' kindValue nameValueapiVersionValue" typeValue ' kindValue nameValueapiVersionValuemetricNameValue 0"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue* 0d metricNameValue 0L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" nameValue 0*i metricNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue 0" 0:" nameValue 0"containerValue͔ * typeValue ' kindValue nameValueapiVersionValuemetricNameValue 0"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue* 0d metricNameValue 0L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue" nameValue 0*i metricNameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue 0" 0:" nameValue 0"containerValue2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/autoscaling.v2beta1.HorizontalPodAutoscaler.yaml000066400000000000000000000073441453636404600303510ustar00rootroot00000000000000apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: maxReplicas: 3 metrics: - containerResource: container: containerValue name: nameValue targetAverageUtilization: 2 targetAverageValue: "0" external: metricName: metricNameValue metricSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue targetAverageValue: "0" targetValue: "0" object: averageValue: "0" metricName: metricNameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: apiVersion: apiVersionValue kind: kindValue name: nameValue targetValue: "0" pods: metricName: metricNameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue targetAverageValue: "0" resource: name: nameValue targetAverageUtilization: 2 targetAverageValue: "0" type: typeValue minReplicas: 2 scaleTargetRef: apiVersion: apiVersionValue kind: kindValue name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentMetrics: - containerResource: container: containerValue currentAverageUtilization: 2 currentAverageValue: "0" name: nameValue external: currentAverageValue: "0" currentValue: "0" metricName: metricNameValue metricSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue object: averageValue: "0" currentValue: "0" metricName: metricNameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: apiVersion: apiVersionValue kind: kindValue name: nameValue pods: currentAverageValue: "0" metricName: metricNameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue resource: currentAverageUtilization: 2 currentAverageValue: "0" name: nameValue type: typeValue currentReplicas: 3 desiredReplicas: 4 lastScaleTime: "2002-01-01T01:01:01Z" observedGeneration: 1 golang-k8s-api-0.29.0/testdata/v1.28.0/autoscaling.v2beta2.HorizontalPodAutoscaler.json000066400000000000000000000165401453636404600303570ustar00rootroot00000000000000{ "kind": "HorizontalPodAutoscaler", "apiVersion": "autoscaling/v2beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "scaleTargetRef": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "minReplicas": 2, "maxReplicas": 3, "metrics": [ { "type": "typeValue", "object": { "describedObject": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" }, "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 }, "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } }, "pods": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 } }, "resource": { "name": "nameValue", "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 } }, "containerResource": { "name": "nameValue", "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 }, "container": "containerValue" }, "external": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "target": { "type": "typeValue", "value": "0", "averageValue": "0", "averageUtilization": 4 } } } ], "behavior": { "scaleUp": { "stabilizationWindowSeconds": 3, "selectPolicy": "selectPolicyValue", "policies": [ { "type": "typeValue", "value": 2, "periodSeconds": 3 } ] }, "scaleDown": { "stabilizationWindowSeconds": 3, "selectPolicy": "selectPolicyValue", "policies": [ { "type": "typeValue", "value": 2, "periodSeconds": 3 } ] } } }, "status": { "observedGeneration": 1, "lastScaleTime": "2002-01-01T01:01:01Z", "currentReplicas": 3, "desiredReplicas": 4, "currentMetrics": [ { "type": "typeValue", "object": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 }, "describedObject": { "kind": "kindValue", "name": "nameValue", "apiVersion": "apiVersionValue" } }, "pods": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 } }, "resource": { "name": "nameValue", "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 } }, "containerResource": { "name": "nameValue", "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 }, "container": "containerValue" }, "external": { "metric": { "name": "nameValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "current": { "value": "0", "averageValue": "0", "averageUtilization": 3 } } } ], "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/autoscaling.v2beta2.HorizontalPodAutoscaler.pb000066400000000000000000000030471453636404600300050ustar00rootroot00000000000000k8s . autoscaling/v2beta2HorizontalPodAutoscaler  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue ' kindValue nameValueapiVersionValue" typeValue ' kindValue nameValueapiVersionValue typeValue 0 0 Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuet Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue typeValue 0 0 "$ nameValue typeValue 0 0 *t Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue typeValue 0 0 :4 nameValue typeValue 0 0 containerValue*P & selectPolicyValue typeValue& selectPolicyValue typeValue͔ * typeValue Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  0 0' kindValue nameValueapiVersionValuei Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  0 0" nameValue  0 0*i Y nameValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  0 0:) nameValue  0 0containerValue2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/autoscaling.v2beta2.HorizontalPodAutoscaler.yaml000066400000000000000000000112551453636404600303460ustar00rootroot00000000000000apiVersion: autoscaling/v2beta2 kind: HorizontalPodAutoscaler metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: behavior: scaleDown: policies: - periodSeconds: 3 type: typeValue value: 2 selectPolicy: selectPolicyValue stabilizationWindowSeconds: 3 scaleUp: policies: - periodSeconds: 3 type: typeValue value: 2 selectPolicy: selectPolicyValue stabilizationWindowSeconds: 3 maxReplicas: 3 metrics: - containerResource: container: containerValue name: nameValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" external: metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" object: describedObject: apiVersion: apiVersionValue kind: kindValue name: nameValue metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" pods: metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" resource: name: nameValue target: averageUtilization: 4 averageValue: "0" type: typeValue value: "0" type: typeValue minReplicas: 2 scaleTargetRef: apiVersion: apiVersionValue kind: kindValue name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentMetrics: - containerResource: container: containerValue current: averageUtilization: 3 averageValue: "0" value: "0" name: nameValue external: current: averageUtilization: 3 averageValue: "0" value: "0" metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue object: current: averageUtilization: 3 averageValue: "0" value: "0" describedObject: apiVersion: apiVersionValue kind: kindValue name: nameValue metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue pods: current: averageUtilization: 3 averageValue: "0" value: "0" metric: name: nameValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue resource: current: averageUtilization: 3 averageValue: "0" value: "0" name: nameValue type: typeValue currentReplicas: 3 desiredReplicas: 4 lastScaleTime: "2002-01-01T01:01:01Z" observedGeneration: 1 golang-k8s-api-0.29.0/testdata/v1.28.0/batch.v1.CronJob.after_roundtrip.json000066400000000000000000001700651453636404600261360ustar00rootroot00000000000000{ "kind": "CronJob", "apiVersion": "batch/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "schedule": "scheduleValue", "timeZone": "timeZoneValue", "startingDeadlineSeconds": 2, "concurrencyPolicy": "concurrencyPolicyValue", "suspend": true, "jobTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parallelism": 1, "completions": 2, "activeDeadlineSeconds": 3, "podFailurePolicy": { "rules": [ { "action": "actionValue", "onExitCodes": { "containerName": "containerNameValue", "operator": "operatorValue", "values": [ 3 ] }, "onPodConditions": [ { "type": "typeValue", "status": "statusValue" } ] } ] }, "backoffLimit": 7, "backoffLimitPerIndex": 12, "maxFailedIndexes": 13, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "manualSelector": true, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "ttlSecondsAfterFinished": 8, "completionMode": "completionModeValue", "suspend": true, "podReplacementPolicy": "podReplacementPolicyValue" } }, "successfulJobsHistoryLimit": 6, "failedJobsHistoryLimit": 7 }, "status": { "active": [ { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } ], "lastScheduleTime": "2004-01-01T01:01:01Z", "lastSuccessfulTime": "2005-01-01T01:01:01Z" } }golang-k8s-api-0.29.0/testdata/v1.28.0/batch.v1.CronJob.after_roundtrip.pb000066400000000000000000000250251453636404600255610ustar00rootroot00000000000000k8s  batch/v1CronJobS  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueP scheduleValueconcurrencyPolicyValue *O  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2K  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue8@JcompletionModeValuePZP N actionValue% containerNameValue operatorValue typeValue statusValue` h rpodReplacementPolicyValue08B timeZoneValue} g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue"*׎"golang-k8s-api-0.29.0/testdata/v1.28.0/batch.v1.CronJob.after_roundtrip.yaml000066400000000000000000001160521453636404600261230ustar00rootroot00000000000000apiVersion: batch/v1 kind: CronJob metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: concurrencyPolicy: concurrencyPolicyValue failedJobsHistoryLimit: 7 jobTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 3 backoffLimit: 7 backoffLimitPerIndex: 12 completionMode: completionModeValue completions: 2 manualSelector: true maxFailedIndexes: 13 parallelism: 1 podFailurePolicy: rules: - action: actionValue onExitCodes: containerName: containerNameValue operator: operatorValue values: - 3 onPodConditions: - status: statusValue type: typeValue podReplacementPolicy: podReplacementPolicyValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue suspend: true template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue ttlSecondsAfterFinished: 8 schedule: scheduleValue startingDeadlineSeconds: 2 successfulJobsHistoryLimit: 6 suspend: true timeZone: timeZoneValue status: active: - apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue lastScheduleTime: "2004-01-01T01:01:01Z" lastSuccessfulTime: "2005-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/v1.28.0/batch.v1.CronJob.json000066400000000000000000001703341453636404600227270ustar00rootroot00000000000000{ "kind": "CronJob", "apiVersion": "batch/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "schedule": "scheduleValue", "timeZone": "timeZoneValue", "startingDeadlineSeconds": 2, "concurrencyPolicy": "concurrencyPolicyValue", "suspend": true, "jobTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parallelism": 1, "completions": 2, "activeDeadlineSeconds": 3, "podFailurePolicy": { "rules": [ { "action": "actionValue", "onExitCodes": { "containerName": "containerNameValue", "operator": "operatorValue", "values": [ 3 ] }, "onPodConditions": [ { "type": "typeValue", "status": "statusValue" } ] } ] }, "backoffLimit": 7, "backoffLimitPerIndex": 12, "maxFailedIndexes": 13, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "manualSelector": true, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "ttlSecondsAfterFinished": 8, "completionMode": "completionModeValue", "suspend": true, "podReplacementPolicy": "podReplacementPolicyValue" } }, "successfulJobsHistoryLimit": 6, "failedJobsHistoryLimit": 7 }, "status": { "active": [ { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } ], "lastScheduleTime": "2004-01-01T01:01:01Z", "lastSuccessfulTime": "2005-01-01T01:01:01Z" } }golang-k8s-api-0.29.0/testdata/v1.28.0/batch.v1.CronJob.pb000066400000000000000000000250421453636404600223520ustar00rootroot00000000000000k8s  batch/v1CronJobT  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueP scheduleValueconcurrencyPolicyValue *O  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2K  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue8@JcompletionModeValuePZP N actionValue% containerNameValue operatorValue typeValue statusValue` h rpodReplacementPolicyValue08B timeZoneValue} g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue"*׎"golang-k8s-api-0.29.0/testdata/v1.28.0/batch.v1.CronJob.yaml000066400000000000000000001161541453636404600227200ustar00rootroot00000000000000apiVersion: batch/v1 kind: CronJob metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: concurrencyPolicy: concurrencyPolicyValue failedJobsHistoryLimit: 7 jobTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 3 backoffLimit: 7 backoffLimitPerIndex: 12 completionMode: completionModeValue completions: 2 manualSelector: true maxFailedIndexes: 13 parallelism: 1 podFailurePolicy: rules: - action: actionValue onExitCodes: containerName: containerNameValue operator: operatorValue values: - 3 onPodConditions: - status: statusValue type: typeValue podReplacementPolicy: podReplacementPolicyValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue suspend: true template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue ttlSecondsAfterFinished: 8 schedule: scheduleValue startingDeadlineSeconds: 2 successfulJobsHistoryLimit: 6 suspend: true timeZone: timeZoneValue status: active: - apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue lastScheduleTime: "2004-01-01T01:01:01Z" lastSuccessfulTime: "2005-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/v1.28.0/batch.v1.Job.after_roundtrip.json000066400000000000000000001504631453636404600253140ustar00rootroot00000000000000{ "kind": "Job", "apiVersion": "batch/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parallelism": 1, "completions": 2, "activeDeadlineSeconds": 3, "podFailurePolicy": { "rules": [ { "action": "actionValue", "onExitCodes": { "containerName": "containerNameValue", "operator": "operatorValue", "values": [ 3 ] }, "onPodConditions": [ { "type": "typeValue", "status": "statusValue" } ] } ] }, "backoffLimit": 7, "backoffLimitPerIndex": 12, "maxFailedIndexes": 13, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "manualSelector": true, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "ttlSecondsAfterFinished": 8, "completionMode": "completionModeValue", "suspend": true, "podReplacementPolicy": "podReplacementPolicyValue" }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "startTime": "2002-01-01T01:01:01Z", "completionTime": "2003-01-01T01:01:01Z", "active": 4, "succeeded": 5, "failed": 6, "terminating": 11, "completedIndexes": "completedIndexesValue", "failedIndexes": "failedIndexesValue", "uncountedTerminatedPods": { "succeeded": [ "succeededValue" ], "failed": [ "failedValue" ] }, "ready": 9 } }golang-k8s-api-0.29.0/testdata/v1.28.0/batch.v1.Job.after_roundtrip.pb000066400000000000000000000242371453636404600247430ustar00rootroot00000000000000k8s  batch/v1JobQ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2K  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue8@JcompletionModeValuePZP N actionValue% containerNameValue operatorValue typeValue statusValue` h rpodReplacementPolicyValue G typeValue statusValue"* reasonValue2 messageValue͔ (0:completedIndexesValueB succeededValue failedValueH RfailedIndexesValueX "golang-k8s-api-0.29.0/testdata/v1.28.0/batch.v1.Job.after_roundtrip.yaml000066400000000000000000001032571453636404600253040ustar00rootroot00000000000000apiVersion: batch/v1 kind: Job metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 3 backoffLimit: 7 backoffLimitPerIndex: 12 completionMode: completionModeValue completions: 2 manualSelector: true maxFailedIndexes: 13 parallelism: 1 podFailurePolicy: rules: - action: actionValue onExitCodes: containerName: containerNameValue operator: operatorValue values: - 3 onPodConditions: - status: statusValue type: typeValue podReplacementPolicy: podReplacementPolicyValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue suspend: true template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue ttlSecondsAfterFinished: 8 status: active: 4 completedIndexes: completedIndexesValue completionTime: "2003-01-01T01:01:01Z" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue failed: 6 failedIndexes: failedIndexesValue ready: 9 startTime: "2002-01-01T01:01:01Z" succeeded: 5 terminating: 11 uncountedTerminatedPods: failed: - failedValue succeeded: - succeededValue golang-k8s-api-0.29.0/testdata/v1.28.0/batch.v1.Job.json000066400000000000000000001507061453636404600221060ustar00rootroot00000000000000{ "kind": "Job", "apiVersion": "batch/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parallelism": 1, "completions": 2, "activeDeadlineSeconds": 3, "podFailurePolicy": { "rules": [ { "action": "actionValue", "onExitCodes": { "containerName": "containerNameValue", "operator": "operatorValue", "values": [ 3 ] }, "onPodConditions": [ { "type": "typeValue", "status": "statusValue" } ] } ] }, "backoffLimit": 7, "backoffLimitPerIndex": 12, "maxFailedIndexes": 13, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "manualSelector": true, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "ttlSecondsAfterFinished": 8, "completionMode": "completionModeValue", "suspend": true, "podReplacementPolicy": "podReplacementPolicyValue" }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "startTime": "2002-01-01T01:01:01Z", "completionTime": "2003-01-01T01:01:01Z", "active": 4, "succeeded": 5, "failed": 6, "terminating": 11, "completedIndexes": "completedIndexesValue", "failedIndexes": "failedIndexesValue", "uncountedTerminatedPods": { "succeeded": [ "succeededValue" ], "failed": [ "failedValue" ] }, "ready": 9 } }golang-k8s-api-0.29.0/testdata/v1.28.0/batch.v1.Job.pb000066400000000000000000000242541453636404600215340ustar00rootroot00000000000000k8s  batch/v1JobQ  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2K  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue8@JcompletionModeValuePZP N actionValue% containerNameValue operatorValue typeValue statusValue` h rpodReplacementPolicyValue G typeValue statusValue"* reasonValue2 messageValue͔ (0:completedIndexesValueB succeededValue failedValueH RfailedIndexesValueX "golang-k8s-api-0.29.0/testdata/v1.28.0/batch.v1.Job.yaml000066400000000000000000001033511453636404600220710ustar00rootroot00000000000000apiVersion: batch/v1 kind: Job metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 3 backoffLimit: 7 backoffLimitPerIndex: 12 completionMode: completionModeValue completions: 2 manualSelector: true maxFailedIndexes: 13 parallelism: 1 podFailurePolicy: rules: - action: actionValue onExitCodes: containerName: containerNameValue operator: operatorValue values: - 3 onPodConditions: - status: statusValue type: typeValue podReplacementPolicy: podReplacementPolicyValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue suspend: true template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue ttlSecondsAfterFinished: 8 status: active: 4 completedIndexes: completedIndexesValue completionTime: "2003-01-01T01:01:01Z" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue failed: 6 failedIndexes: failedIndexesValue ready: 9 startTime: "2002-01-01T01:01:01Z" succeeded: 5 terminating: 11 uncountedTerminatedPods: failed: - failedValue succeeded: - succeededValue golang-k8s-api-0.29.0/testdata/v1.28.0/batch.v1beta1.CronJob.after_roundtrip.json000066400000000000000000001700721453636404600270510ustar00rootroot00000000000000{ "kind": "CronJob", "apiVersion": "batch/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "schedule": "scheduleValue", "timeZone": "timeZoneValue", "startingDeadlineSeconds": 2, "concurrencyPolicy": "concurrencyPolicyValue", "suspend": true, "jobTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parallelism": 1, "completions": 2, "activeDeadlineSeconds": 3, "podFailurePolicy": { "rules": [ { "action": "actionValue", "onExitCodes": { "containerName": "containerNameValue", "operator": "operatorValue", "values": [ 3 ] }, "onPodConditions": [ { "type": "typeValue", "status": "statusValue" } ] } ] }, "backoffLimit": 7, "backoffLimitPerIndex": 12, "maxFailedIndexes": 13, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "manualSelector": true, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "ttlSecondsAfterFinished": 8, "completionMode": "completionModeValue", "suspend": true, "podReplacementPolicy": "podReplacementPolicyValue" } }, "successfulJobsHistoryLimit": 6, "failedJobsHistoryLimit": 7 }, "status": { "active": [ { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } ], "lastScheduleTime": "2004-01-01T01:01:01Z", "lastSuccessfulTime": "2005-01-01T01:01:01Z" } }golang-k8s-api-0.29.0/testdata/v1.28.0/batch.v1beta1.CronJob.after_roundtrip.pb000066400000000000000000000250321453636404600264740ustar00rootroot00000000000000k8s  batch/v1beta1CronJobS  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueP scheduleValueconcurrencyPolicyValue *O  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2K  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue8@JcompletionModeValuePZP N actionValue% containerNameValue operatorValue typeValue statusValue` h rpodReplacementPolicyValue08B timeZoneValue} g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue"*׎"golang-k8s-api-0.29.0/testdata/v1.28.0/batch.v1beta1.CronJob.after_roundtrip.yaml000066400000000000000000001160571453636404600270450ustar00rootroot00000000000000apiVersion: batch/v1beta1 kind: CronJob metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: concurrencyPolicy: concurrencyPolicyValue failedJobsHistoryLimit: 7 jobTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 3 backoffLimit: 7 backoffLimitPerIndex: 12 completionMode: completionModeValue completions: 2 manualSelector: true maxFailedIndexes: 13 parallelism: 1 podFailurePolicy: rules: - action: actionValue onExitCodes: containerName: containerNameValue operator: operatorValue values: - 3 onPodConditions: - status: statusValue type: typeValue podReplacementPolicy: podReplacementPolicyValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue suspend: true template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue ttlSecondsAfterFinished: 8 schedule: scheduleValue startingDeadlineSeconds: 2 successfulJobsHistoryLimit: 6 suspend: true timeZone: timeZoneValue status: active: - apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue lastScheduleTime: "2004-01-01T01:01:01Z" lastSuccessfulTime: "2005-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/v1.28.0/batch.v1beta1.CronJob.json000066400000000000000000001703411453636404600236420ustar00rootroot00000000000000{ "kind": "CronJob", "apiVersion": "batch/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "schedule": "scheduleValue", "timeZone": "timeZoneValue", "startingDeadlineSeconds": 2, "concurrencyPolicy": "concurrencyPolicyValue", "suspend": true, "jobTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parallelism": 1, "completions": 2, "activeDeadlineSeconds": 3, "podFailurePolicy": { "rules": [ { "action": "actionValue", "onExitCodes": { "containerName": "containerNameValue", "operator": "operatorValue", "values": [ 3 ] }, "onPodConditions": [ { "type": "typeValue", "status": "statusValue" } ] } ] }, "backoffLimit": 7, "backoffLimitPerIndex": 12, "maxFailedIndexes": 13, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "manualSelector": true, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "ttlSecondsAfterFinished": 8, "completionMode": "completionModeValue", "suspend": true, "podReplacementPolicy": "podReplacementPolicyValue" } }, "successfulJobsHistoryLimit": 6, "failedJobsHistoryLimit": 7 }, "status": { "active": [ { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } ], "lastScheduleTime": "2004-01-01T01:01:01Z", "lastSuccessfulTime": "2005-01-01T01:01:01Z" } }golang-k8s-api-0.29.0/testdata/v1.28.0/batch.v1beta1.CronJob.pb000066400000000000000000000250471453636404600232740ustar00rootroot00000000000000k8s  batch/v1beta1CronJobT  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueP scheduleValueconcurrencyPolicyValue *O  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2K  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue8@JcompletionModeValuePZP N actionValue% containerNameValue operatorValue typeValue statusValue` h rpodReplacementPolicyValue08B timeZoneValue} g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue"*׎"golang-k8s-api-0.29.0/testdata/v1.28.0/batch.v1beta1.CronJob.yaml000066400000000000000000001161611453636404600236330ustar00rootroot00000000000000apiVersion: batch/v1beta1 kind: CronJob metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: concurrencyPolicy: concurrencyPolicyValue failedJobsHistoryLimit: 7 jobTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 3 backoffLimit: 7 backoffLimitPerIndex: 12 completionMode: completionModeValue completions: 2 manualSelector: true maxFailedIndexes: 13 parallelism: 1 podFailurePolicy: rules: - action: actionValue onExitCodes: containerName: containerNameValue operator: operatorValue values: - 3 onPodConditions: - status: statusValue type: typeValue podReplacementPolicy: podReplacementPolicyValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue suspend: true template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue ttlSecondsAfterFinished: 8 schedule: scheduleValue startingDeadlineSeconds: 2 successfulJobsHistoryLimit: 6 suspend: true timeZone: timeZoneValue status: active: - apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue lastScheduleTime: "2004-01-01T01:01:01Z" lastSuccessfulTime: "2005-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/v1.28.0/certificates.k8s.io.v1.CertificateSigningRequest.json000066400000000000000000000034411453636404600311750ustar00rootroot00000000000000{ "kind": "CertificateSigningRequest", "apiVersion": "certificates.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "request": "AQ==", "signerName": "signerNameValue", "expirationSeconds": 8, "usages": [ "usagesValue" ], "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "reason": "reasonValue", "message": "messageValue", "lastUpdateTime": "2004-01-01T01:01:01Z", "lastTransitionTime": "2005-01-01T01:01:01Z" } ], "certificate": "Ag==" } }golang-k8s-api-0.29.0/testdata/v1.28.0/certificates.k8s.io.v1.CertificateSigningRequest.pb000066400000000000000000000011261453636404600306230ustar00rootroot00000000000000k8s 3 certificates.k8s.io/v1CertificateSigningRequest  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValuec  usernameValueuidValue" groupsValue* usagesValue2 extraKey extraValue:signerNameValue@L G typeValue reasonValue messageValue"*׎2 statusValue"golang-k8s-api-0.29.0/testdata/v1.28.0/certificates.k8s.io.v1.CertificateSigningRequest.yaml000066400000000000000000000024421453636404600311660ustar00rootroot00000000000000apiVersion: certificates.k8s.io/v1 kind: CertificateSigningRequest metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: expirationSeconds: 8 extra: extraKey: - extraValue groups: - groupsValue request: AQ== signerName: signerNameValue uid: uidValue usages: - usagesValue username: usernameValue status: certificate: Ag== conditions: - lastTransitionTime: "2005-01-01T01:01:01Z" lastUpdateTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/v1.28.0/certificates.k8s.io.v1alpha1.ClusterTrustBundle.json000066400000000000000000000023761453636404600307750ustar00rootroot00000000000000{ "kind": "ClusterTrustBundle", "apiVersion": "certificates.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "signerName": "signerNameValue", "trustBundle": "trustBundleValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/certificates.k8s.io.v1alpha1.ClusterTrustBundle.pb000066400000000000000000000007071453636404600304210ustar00rootroot00000000000000k8s 2 certificates.k8s.io/v1alpha1ClusterTrustBundle  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue# signerNameValuetrustBundleValue"golang-k8s-api-0.29.0/testdata/v1.28.0/certificates.k8s.io.v1alpha1.ClusterTrustBundle.yaml000066400000000000000000000016621453636404600307630ustar00rootroot00000000000000apiVersion: certificates.k8s.io/v1alpha1 kind: ClusterTrustBundle metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: signerName: signerNameValue trustBundle: trustBundleValue golang-k8s-api-0.29.0/testdata/v1.28.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.json000066400000000000000000000034461453636404600321170ustar00rootroot00000000000000{ "kind": "CertificateSigningRequest", "apiVersion": "certificates.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "request": "AQ==", "signerName": "signerNameValue", "expirationSeconds": 8, "usages": [ "usagesValue" ], "username": "usernameValue", "uid": "uidValue", "groups": [ "groupsValue" ], "extra": { "extraKey": [ "extraValue" ] } }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "reason": "reasonValue", "message": "messageValue", "lastUpdateTime": "2004-01-01T01:01:01Z", "lastTransitionTime": "2005-01-01T01:01:01Z" } ], "certificate": "Ag==" } }golang-k8s-api-0.29.0/testdata/v1.28.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.pb000066400000000000000000000011331453636404600315360ustar00rootroot00000000000000k8s 8 certificates.k8s.io/v1beta1CertificateSigningRequest  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValuec  usernameValueuidValue" groupsValue* usagesValue2 extraKey extraValue:signerNameValue@L G typeValue reasonValue messageValue"*׎2 statusValue"golang-k8s-api-0.29.0/testdata/v1.28.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.yaml000066400000000000000000000024471453636404600321100ustar00rootroot00000000000000apiVersion: certificates.k8s.io/v1beta1 kind: CertificateSigningRequest metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: expirationSeconds: 8 extra: extraKey: - extraValue groups: - groupsValue request: AQ== signerName: signerNameValue uid: uidValue usages: - usagesValue username: usernameValue status: certificate: Ag== conditions: - lastTransitionTime: "2005-01-01T01:01:01Z" lastUpdateTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/v1.28.0/coordination.k8s.io.v1.Lease.json000066400000000000000000000025501453636404600251370ustar00rootroot00000000000000{ "kind": "Lease", "apiVersion": "coordination.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "holderIdentity": "holderIdentityValue", "leaseDurationSeconds": 2, "acquireTime": "2003-01-01T01:01:01.000003Z", "renewTime": "2004-01-01T01:01:01.000004Z", "leaseTransitions": 5 } }golang-k8s-api-0.29.0/testdata/v1.28.0/coordination.k8s.io.v1.Lease.pb000066400000000000000000000007001453636404600245620ustar00rootroot00000000000000k8s  coordination.k8s.io/v1Lease  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue/ holderIdentityValue " ("golang-k8s-api-0.29.0/testdata/v1.28.0/coordination.k8s.io.v1.Lease.yaml000066400000000000000000000020171453636404600251260ustar00rootroot00000000000000apiVersion: coordination.k8s.io/v1 kind: Lease metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: acquireTime: "2003-01-01T01:01:01.000003Z" holderIdentity: holderIdentityValue leaseDurationSeconds: 2 leaseTransitions: 5 renewTime: "2004-01-01T01:01:01.000004Z" golang-k8s-api-0.29.0/testdata/v1.28.0/coordination.k8s.io.v1beta1.Lease.json000066400000000000000000000025551453636404600260610ustar00rootroot00000000000000{ "kind": "Lease", "apiVersion": "coordination.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "holderIdentity": "holderIdentityValue", "leaseDurationSeconds": 2, "acquireTime": "2003-01-01T01:01:01.000003Z", "renewTime": "2004-01-01T01:01:01.000004Z", "leaseTransitions": 5 } }golang-k8s-api-0.29.0/testdata/v1.28.0/coordination.k8s.io.v1beta1.Lease.pb000066400000000000000000000007051453636404600255040ustar00rootroot00000000000000k8s $ coordination.k8s.io/v1beta1Lease  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue/ holderIdentityValue " ("golang-k8s-api-0.29.0/testdata/v1.28.0/coordination.k8s.io.v1beta1.Lease.yaml000066400000000000000000000020241453636404600260410ustar00rootroot00000000000000apiVersion: coordination.k8s.io/v1beta1 kind: Lease metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: acquireTime: "2003-01-01T01:01:01.000003Z" holderIdentity: holderIdentityValue leaseDurationSeconds: 2 leaseTransitions: 5 renewTime: "2004-01-01T01:01:01.000004Z" golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.APIGroup.json000066400000000000000000000006331453636404600226620ustar00rootroot00000000000000{ "kind": "APIGroup", "apiVersion": "v1", "name": "nameValue", "versions": [ { "groupVersion": "groupVersionValue", "version": "versionValue" } ], "preferredVersion": { "groupVersion": "groupVersionValue", "version": "versionValue" }, "serverAddressByClientCIDRs": [ { "clientCIDR": "clientCIDRValue", "serverAddress": "serverAddressValue" } ] }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.APIGroup.pb000066400000000000000000000002221453636404600223040ustar00rootroot00000000000000k8s  v1APIGroupx nameValue! groupVersionValue versionValue! groupVersionValue versionValue"% clientCIDRValueserverAddressValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.APIGroup.yaml000066400000000000000000000004341453636404600226520ustar00rootroot00000000000000apiVersion: v1 kind: APIGroup name: nameValue preferredVersion: groupVersion: groupVersionValue version: versionValue serverAddressByClientCIDRs: - clientCIDR: clientCIDRValue serverAddress: serverAddressValue versions: - groupVersion: groupVersionValue version: versionValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.APIVersions.json000066400000000000000000000003401453636404600233710ustar00rootroot00000000000000{ "kind": "APIVersions", "apiVersion": "v1", "versions": [ "versionsValue" ], "serverAddressByClientCIDRs": [ { "clientCIDR": "clientCIDRValue", "serverAddress": "serverAddressValue" } ] }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.APIVersions.pb000066400000000000000000000001231453636404600230200ustar00rootroot00000000000000k8s  v1 APIVersions6 versionsValue% clientCIDRValueserverAddressValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.APIVersions.yaml000066400000000000000000000002311453636404600233610ustar00rootroot00000000000000apiVersion: v1 kind: APIVersions serverAddressByClientCIDRs: - clientCIDR: clientCIDRValue serverAddress: serverAddressValue versions: - versionsValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Binding.json000066400000000000000000000025621453636404600226110ustar00rootroot00000000000000{ "kind": "Binding", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "target": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Binding.pb000066400000000000000000000007461453636404600222430ustar00rootroot00000000000000k8s v1Binding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Binding.yaml000066400000000000000000000020031453636404600225700ustar00rootroot00000000000000apiVersion: v1 kind: Binding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue target: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ComponentStatus.json000066400000000000000000000024371453636404600244060ustar00rootroot00000000000000{ "kind": "ComponentStatus", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "conditions": [ { "type": "typeValue", "status": "statusValue", "message": "messageValue", "error": "errorValue" } ] }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ComponentStatus.pb000066400000000000000000000006711453636404600240340ustar00rootroot00000000000000k8s  v1ComponentStatus  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue2 typeValue statusValue messageValue" errorValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ComponentStatus.yaml000066400000000000000000000016611453636404600243750ustar00rootroot00000000000000apiVersion: v1 conditions: - error: errorValue message: messageValue status: statusValue type: typeValue kind: ComponentStatus metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ConfigMap.json000066400000000000000000000023631453636404600231010ustar00rootroot00000000000000{ "kind": "ConfigMap", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "immutable": true, "data": { "dataKey": "dataValue" }, "binaryData": { "binaryDataKey": "Aw==" } }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ConfigMap.pb000066400000000000000000000006531453636404600225310ustar00rootroot00000000000000k8s  v1 ConfigMap  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue dataKey dataValue binaryDataKey "golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ConfigMap.yaml000066400000000000000000000016301453636404600230660ustar00rootroot00000000000000apiVersion: v1 binaryData: binaryDataKey: Aw== data: dataKey: dataValue immutable: true kind: ConfigMap metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.CreateOptions.json000066400000000000000000000002541453636404600240120ustar00rootroot00000000000000{ "kind": "CreateOptions", "apiVersion": "v1", "dryRun": [ "dryRunValue" ], "fieldManager": "fieldManagerValue", "fieldValidation": "fieldValidationValue" }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.CreateOptions.pb000066400000000000000000000001251453636404600234370ustar00rootroot00000000000000k8s  v1 CreateOptions6 dryRunValuefieldManagerValue"fieldValidationValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.CreateOptions.yaml000066400000000000000000000001771453636404600240070ustar00rootroot00000000000000apiVersion: v1 dryRun: - dryRunValue fieldManager: fieldManagerValue fieldValidation: fieldValidationValue kind: CreateOptions golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.DeleteOptions.json000066400000000000000000000004371453636404600240140ustar00rootroot00000000000000{ "kind": "DeleteOptions", "apiVersion": "v1", "gracePeriodSeconds": 1, "preconditions": { "uid": "uidValue", "resourceVersion": "resourceVersionValue" }, "orphanDependents": true, "propagationPolicy": "propagationPolicyValue", "dryRun": [ "dryRunValue" ] }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.DeleteOptions.pb000066400000000000000000000001521453636404600234360ustar00rootroot00000000000000k8s  v1 DeleteOptionsK uidValueresourceVersionValue"propagationPolicyValue* dryRunValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.DeleteOptions.yaml000066400000000000000000000003271453636404600240030ustar00rootroot00000000000000apiVersion: v1 dryRun: - dryRunValue gracePeriodSeconds: 1 kind: DeleteOptions orphanDependents: true preconditions: resourceVersion: resourceVersionValue uid: uidValue propagationPolicy: propagationPolicyValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Endpoints.json000066400000000000000000000044171453636404600232030ustar00rootroot00000000000000{ "kind": "Endpoints", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subsets": [ { "addresses": [ { "ip": "ipValue", "hostname": "hostnameValue", "nodeName": "nodeNameValue", "targetRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } } ], "notReadyAddresses": [ { "ip": "ipValue", "hostname": "hostnameValue", "nodeName": "nodeNameValue", "targetRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } } ], "ports": [ { "name": "nameValue", "port": 2, "protocol": "protocolValue", "appProtocol": "appProtocolValue" } ] } ] }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Endpoints.pb000066400000000000000000000013301453636404600226220ustar00rootroot00000000000000k8s  v1 Endpoints  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue  ipValueg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue hostnameValue" nodeNameValue ipValueg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue hostnameValue" nodeNameValue. nameValue protocolValue"appProtocolValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Endpoints.yaml000066400000000000000000000030471453636404600231720ustar00rootroot00000000000000apiVersion: v1 kind: Endpoints metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue subsets: - addresses: - hostname: hostnameValue ip: ipValue nodeName: nodeNameValue targetRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue notReadyAddresses: - hostname: hostnameValue ip: ipValue nodeName: nodeNameValue targetRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue ports: - appProtocol: appProtocolValue name: nameValue port: 2 protocol: protocolValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Event.json000066400000000000000000000041661453636404600223220ustar00rootroot00000000000000{ "kind": "Event", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "involvedObject": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "reason": "reasonValue", "message": "messageValue", "source": { "component": "componentValue", "host": "hostValue" }, "firstTimestamp": "2006-01-01T01:01:01Z", "lastTimestamp": "2007-01-01T01:01:01Z", "count": 8, "type": "typeValue", "eventTime": "2010-01-01T01:01:01.000010Z", "series": { "count": 1, "lastObservedTime": "2002-01-01T01:01:01.000002Z" }, "action": "actionValue", "related": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "reportingComponent": "reportingComponentValue", "reportingInstance": "reportingInstanceValue" }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Event.pb000066400000000000000000000013761453636404600217520ustar00rootroot00000000000000k8s v1Event  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue reasonValue" messageValue* componentValue hostValue2ܝ:ͺ@J typeValueR ͒NZ  ͔b actionValuejg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValuerreportingComponentValuezreportingInstanceValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Event.yaml000066400000000000000000000031421453636404600223040ustar00rootroot00000000000000action: actionValue apiVersion: v1 count: 8 eventTime: "2010-01-01T01:01:01.000010Z" firstTimestamp: "2006-01-01T01:01:01Z" involvedObject: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue kind: Event lastTimestamp: "2007-01-01T01:01:01Z" message: messageValue metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue reason: reasonValue related: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue reportingComponent: reportingComponentValue reportingInstance: reportingInstanceValue series: count: 1 lastObservedTime: "2002-01-01T01:01:01.000002Z" source: component: componentValue host: hostValue type: typeValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.GetOptions.json000066400000000000000000000001351453636404600233240ustar00rootroot00000000000000{ "kind": "GetOptions", "apiVersion": "v1", "resourceVersion": "resourceVersionValue" }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.GetOptions.pb000066400000000000000000000000621453636404600227530ustar00rootroot00000000000000k8s  v1 GetOptions resourceVersionValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.GetOptions.yaml000066400000000000000000000001061453636404600233130ustar00rootroot00000000000000apiVersion: v1 kind: GetOptions resourceVersion: resourceVersionValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.LimitRange.json000066400000000000000000000030271453636404600232670ustar00rootroot00000000000000{ "kind": "LimitRange", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "limits": [ { "type": "typeValue", "max": { "maxKey": "0" }, "min": { "minKey": "0" }, "default": { "defaultKey": "0" }, "defaultRequest": { "defaultRequestKey": "0" }, "maxLimitRequestRatio": { "maxLimitRequestRatioKey": "0" } } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.LimitRange.pb000066400000000000000000000007721453636404600227230ustar00rootroot00000000000000k8s  v1 LimitRange  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValuex v typeValue maxKey 0 minKey 0" defaultKey 0* defaultRequestKey 02 maxLimitRequestRatioKey 0"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.LimitRange.yaml000066400000000000000000000020671453636404600232630ustar00rootroot00000000000000apiVersion: v1 kind: LimitRange metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: limits: - default: defaultKey: "0" defaultRequest: defaultRequestKey: "0" max: maxKey: "0" maxLimitRequestRatio: maxLimitRequestRatioKey: "0" min: minKey: "0" type: typeValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ListOptions.json000066400000000000000000000005701453636404600235230ustar00rootroot00000000000000{ "kind": "ListOptions", "apiVersion": "v1", "labelSelector": "labelSelectorValue", "fieldSelector": "fieldSelectorValue", "watch": true, "allowWatchBookmarks": true, "resourceVersion": "resourceVersionValue", "resourceVersionMatch": "resourceVersionMatchValue", "timeoutSeconds": 5, "limit": 7, "continue": "continueValue", "sendInitialEvents": true }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ListOptions.pb000066400000000000000000000002171453636404600231510ustar00rootroot00000000000000k8s  v1 ListOptionsr labelSelectorValuefieldSelectorValue"resourceVersionValue(8B continueValueHRresourceVersionMatchValueX"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ListOptions.yaml000066400000000000000000000004541453636404600235150ustar00rootroot00000000000000allowWatchBookmarks: true apiVersion: v1 continue: continueValue fieldSelector: fieldSelectorValue kind: ListOptions labelSelector: labelSelectorValue limit: 7 resourceVersion: resourceVersionValue resourceVersionMatch: resourceVersionMatchValue sendInitialEvents: true timeoutSeconds: 5 watch: true golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Namespace.json000066400000000000000000000027211453636404600231300ustar00rootroot00000000000000{ "kind": "Namespace", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "finalizers": [ "finalizersValue" ] }, "status": { "phase": "phaseValue", "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Namespace.pb000066400000000000000000000007371453636404600225650ustar00rootroot00000000000000k8s  v1 Namespace  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue finalizersValueK phaseValue= typeValue statusValue"* reasonValue2 messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Namespace.yaml000066400000000000000000000020521453636404600231160ustar00rootroot00000000000000apiVersion: v1 kind: Namespace metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: finalizers: - finalizersValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue phase: phaseValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Node.json000066400000000000000000000076461453636404600221340ustar00rootroot00000000000000{ "kind": "Node", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "podCIDR": "podCIDRValue", "podCIDRs": [ "podCIDRsValue" ], "providerID": "providerIDValue", "unschedulable": true, "taints": [ { "key": "keyValue", "value": "valueValue", "effect": "effectValue", "timeAdded": "2004-01-01T01:01:01Z" } ], "configSource": { "configMap": { "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "kubeletConfigKey": "kubeletConfigKeyValue" } }, "externalID": "externalIDValue" }, "status": { "capacity": { "capacityKey": "0" }, "allocatable": { "allocatableKey": "0" }, "phase": "phaseValue", "conditions": [ { "type": "typeValue", "status": "statusValue", "lastHeartbeatTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "addresses": [ { "type": "typeValue", "address": "addressValue" } ], "daemonEndpoints": { "kubeletEndpoint": { "Port": 1 } }, "nodeInfo": { "machineID": "machineIDValue", "systemUUID": "systemUUIDValue", "bootID": "bootIDValue", "kernelVersion": "kernelVersionValue", "osImage": "osImageValue", "containerRuntimeVersion": "containerRuntimeVersionValue", "kubeletVersion": "kubeletVersionValue", "kubeProxyVersion": "kubeProxyVersionValue", "operatingSystem": "operatingSystemValue", "architecture": "architectureValue" }, "images": [ { "names": [ "namesValue" ], "sizeBytes": 2 } ], "volumesInUse": [ "volumesInUseValue" ], "volumesAttached": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "config": { "assigned": { "configMap": { "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "kubeletConfigKey": "kubeletConfigKeyValue" } }, "active": { "configMap": { "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "kubeletConfigKey": "kubeletConfigKeyValue" } }, "lastKnownGood": { "configMap": { "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "kubeletConfigKey": "kubeletConfigKeyValue" } }, "error": "errorValue" } } }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Node.pb000066400000000000000000000023771453636404600215600ustar00rootroot00000000000000k8s v1Node  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue podCIDRValueexternalIDValueproviderIDValue *- keyValue valueValue effectValue"2TR namespaceValue nameValueuidValue"resourceVersionValue*kubeletConfigKeyValue: podCIDRsValue  capacityKey 0 allocatableKey 0 phaseValue"G typeValue statusValue"* reasonValue2 messageValue* typeValue addressValue2 : machineIDValuesystemUUIDValue bootIDValue"kernelVersionValue* osImageValue2containerRuntimeVersionValue:kubeletVersionValueBkubeProxyVersionValueJoperatingSystemValueRarchitectureValueB namesValueJvolumesInUseValueR nameValuedevicePathValueZ TR namespaceValue nameValueuidValue"resourceVersionValue*kubeletConfigKeyValueTR namespaceValue nameValueuidValue"resourceVersionValue*kubeletConfigKeyValueTR namespaceValue nameValueuidValue"resourceVersionValue*kubeletConfigKeyValue" errorValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Node.yaml000066400000000000000000000055211453636404600221130ustar00rootroot00000000000000apiVersion: v1 kind: Node metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: configSource: configMap: kubeletConfigKey: kubeletConfigKeyValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue externalID: externalIDValue podCIDR: podCIDRValue podCIDRs: - podCIDRsValue providerID: providerIDValue taints: - effect: effectValue key: keyValue timeAdded: "2004-01-01T01:01:01Z" value: valueValue unschedulable: true status: addresses: - address: addressValue type: typeValue allocatable: allocatableKey: "0" capacity: capacityKey: "0" conditions: - lastHeartbeatTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue config: active: configMap: kubeletConfigKey: kubeletConfigKeyValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue assigned: configMap: kubeletConfigKey: kubeletConfigKeyValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue error: errorValue lastKnownGood: configMap: kubeletConfigKey: kubeletConfigKeyValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue daemonEndpoints: kubeletEndpoint: Port: 1 images: - names: - namesValue sizeBytes: 2 nodeInfo: architecture: architectureValue bootID: bootIDValue containerRuntimeVersion: containerRuntimeVersionValue kernelVersion: kernelVersionValue kubeProxyVersion: kubeProxyVersionValue kubeletVersion: kubeletVersionValue machineID: machineIDValue operatingSystem: operatingSystemValue osImage: osImageValue systemUUID: systemUUIDValue phase: phaseValue volumesAttached: - devicePath: devicePathValue name: nameValue volumesInUse: - volumesInUseValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.NodeProxyOptions.json000066400000000000000000000001151453636404600245320ustar00rootroot00000000000000{ "kind": "NodeProxyOptions", "apiVersion": "v1", "path": "pathValue" }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.NodeProxyOptions.pb000066400000000000000000000000551453636404600241650ustar00rootroot00000000000000k8s  v1NodeProxyOptions pathValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.NodeProxyOptions.yaml000066400000000000000000000000661453636404600245300ustar00rootroot00000000000000apiVersion: v1 kind: NodeProxyOptions path: pathValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PatchOptions.json000066400000000000000000000002741453636404600236500ustar00rootroot00000000000000{ "kind": "PatchOptions", "apiVersion": "v1", "dryRun": [ "dryRunValue" ], "force": true, "fieldManager": "fieldManagerValue", "fieldValidation": "fieldValidationValue" }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PatchOptions.pb000066400000000000000000000001261453636404600232740ustar00rootroot00000000000000k8s  v1 PatchOptions8 dryRunValuefieldManagerValue"fieldValidationValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PatchOptions.yaml000066400000000000000000000002121453636404600236310ustar00rootroot00000000000000apiVersion: v1 dryRun: - dryRunValue fieldManager: fieldManagerValue fieldValidation: fieldValidationValue force: true kind: PatchOptions golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PersistentVolume.json000066400000000000000000000171471453636404600245740ustar00rootroot00000000000000{ "kind": "PersistentVolume", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "capacity": { "capacityKey": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "hostPath": { "path": "pathValue", "type": "typeValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true, "endpointsNamespace": "endpointsNamespaceValue" }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "initiatorName": "initiatorNameValue" }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true, "secretNamespace": "secretNamespaceValue" }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "local": { "path": "pathValue", "fsType": "fsTypeValue" }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } }, "csi": { "driver": "driverValue", "volumeHandle": "volumeHandleValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "controllerPublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeStageSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodePublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "controllerExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "accessModes": [ "accessModesValue" ], "claimRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "persistentVolumeReclaimPolicy": "persistentVolumeReclaimPolicyValue", "storageClassName": "storageClassNameValue", "mountOptions": [ "mountOptionsValue" ], "volumeMode": "volumeModeValue", "nodeAffinity": { "required": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } } }, "status": { "phase": "phaseValue", "message": "messageValue", "reason": "reasonValue", "lastPhaseTransitionTime": "2004-01-01T01:01:01Z" } }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PersistentVolume.pb000066400000000000000000000046061453636404600242200ustar00rootroot00000000000000k8s  v1PersistentVolume  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue  capacityKey 0  pdNameValue fsTypeValue  volumeIDValue fsTypeValue  pathValue typeValue"6 endpointsValue pathValue"endpointsNamespaceValue* serverValue pathValue2k monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValuenamespaceValue@: targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValuenamespaceValueXbinitiatorNameValueB; volumeIDValue fsTypeValue" nameValuenamespaceValueJU monitorsValue pathValue userValue"secretFileValue* nameValuenamespaceValue0R. targetWWNsValue fsTypeValue * wwidsValueZ$ datasetNameValuedatasetUUIDValuebU driverValue fsTypeValue nameValuenamespaceValue * optionsKey optionsValuej9 secretNameValueshareNameValue"secretNamespaceValuerL volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValuezB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValuenamespaceValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP pathValue fsTypeValue volumeNameValuevolumeNamespaceValue fsTypeValue *g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue driverValuevolumeHandleValue" fsTypeValue*, volumeAttributesKeyvolumeAttributesValue2 nameValuenamespaceValue: nameValuenamespaceValueB nameValuenamespaceValueJ nameValuenamespaceValueR nameValuenamespaceValueaccessModesValue"g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue*"persistentVolumeReclaimPolicyValue2storageClassNameValue:mountOptionsValueBvolumeModeValueJT R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue1 phaseValue messageValue reasonValue""golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PersistentVolume.yaml000066400000000000000000000130131453636404600245510ustar00rootroot00000000000000apiVersion: v1 kind: PersistentVolume metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue secretNamespace: secretNamespaceValue shareName: shareNameValue capacity: capacityKey: "0" cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue namespace: namespaceValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue namespace: namespaceValue volumeID: volumeIDValue claimRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue csi: controllerExpandSecretRef: name: nameValue namespace: namespaceValue controllerPublishSecretRef: name: nameValue namespace: namespaceValue driver: driverValue fsType: fsTypeValue nodeExpandSecretRef: name: nameValue namespace: namespaceValue nodePublishSecretRef: name: nameValue namespace: namespaceValue nodeStageSecretRef: name: nameValue namespace: namespaceValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue volumeHandle: volumeHandleValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true glusterfs: endpoints: endpointsValue endpointsNamespace: endpointsNamespaceValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue targetPortal: targetPortalValue local: fsType: fsTypeValue path: pathValue mountOptions: - mountOptionsValue nfs: path: pathValue readOnly: true server: serverValue nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicyValue photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue namespace: namespaceValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue namespace: namespaceValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue storageClassName: storageClassNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue volumeMode: volumeModeValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: lastPhaseTransitionTime: "2004-01-01T01:01:01Z" message: messageValue phase: phaseValue reason: reasonValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PersistentVolumeClaim.after_roundtrip.json000066400000000000000000000051321453636404600307370ustar00rootroot00000000000000{ "kind": "PersistentVolumeClaim", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" }, "allocatedResourceStatuses": { "allocatedResourceStatusesKey": "allocatedResourceStatusesValue" } } }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PersistentVolumeClaim.after_roundtrip.pb000066400000000000000000000016111453636404600303650ustar00rootroot00000000000000k8s  v1PersistentVolumeClaim  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 0:> allocatedResourceStatusesKeyallocatedResourceStatusesValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PersistentVolumeClaim.after_roundtrip.yaml000066400000000000000000000035461453636404600307370ustar00rootroot00000000000000apiVersion: v1 kind: PersistentVolumeClaim metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResourceStatuses: allocatedResourceStatusesKey: allocatedResourceStatusesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue phase: phaseValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PersistentVolumeClaim.json000066400000000000000000000052471453636404600255400ustar00rootroot00000000000000{ "kind": "PersistentVolumeClaim", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } }, "status": { "phase": "phaseValue", "accessModes": [ "accessModesValue" ], "capacity": { "capacityKey": "0" }, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "allocatedResources": { "allocatedResourcesKey": "0" }, "allocatedResourceStatuses": { "allocatedResourceStatusesKey": "allocatedResourceStatusesValue" } } }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PersistentVolumeClaim.pb000066400000000000000000000016261453636404600251650ustar00rootroot00000000000000k8s  v1PersistentVolumeClaim  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue phaseValueaccessModesValue capacityKey 0"G typeValue statusValue"* reasonValue2 messageValue* allocatedResourcesKey 0:> allocatedResourceStatusesKeyallocatedResourceStatusesValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PersistentVolumeClaim.yaml000066400000000000000000000036101453636404600255210ustar00rootroot00000000000000apiVersion: v1 kind: PersistentVolumeClaim metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue status: accessModes: - accessModesValue allocatedResourceStatuses: allocatedResourceStatusesKey: allocatedResourceStatusesValue allocatedResources: allocatedResourcesKey: "0" capacity: capacityKey: "0" conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue phase: phaseValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Pod.after_roundtrip.json000066400000000000000000001416111453636404600251660ustar00rootroot00000000000000{ "kind": "Pod", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] }, "status": { "phase": "phaseValue", "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "message": "messageValue", "reason": "reasonValue", "nominatedNodeName": "nominatedNodeNameValue", "hostIP": "hostIPValue", "hostIPs": [ { "ip": "ipValue" } ], "podIP": "podIPValue", "podIPs": [ { "ip": "ipValue" } ], "startTime": "2007-01-01T01:01:01Z", "initContainerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "containerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "qosClass": "qosClassValue", "ephemeralContainerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "resize": "resizeValue", "resourceClaimStatuses": [ { "name": "nameValue", "resourceClaimName": "resourceClaimNameValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Pod.after_roundtrip.pb000066400000000000000000000254051453636404600246200ustar00rootroot00000000000000k8s v1PodU  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue phaseValueG typeValue statusValue"* reasonValue2 messageValue messageValue" reasonValue* hostIPValue2 podIPValue:ͺB nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValueJ qosClassValueR nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValueZnominatedNodeNameValueb ipValuej nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValuer resizeValuez# nameValueresourceClaimNameValue ipValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Pod.after_roundtrip.yaml000066400000000000000000000763231453636404600251660ustar00rootroot00000000000000apiVersion: v1 kind: Pod metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue containerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue ephemeralContainerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue hostIP: hostIPValue hostIPs: - ip: ipValue initContainerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue message: messageValue nominatedNodeName: nominatedNodeNameValue phase: phaseValue podIP: podIPValue podIPs: - ip: ipValue qosClass: qosClassValue reason: reasonValue resize: resizeValue resourceClaimStatuses: - name: nameValue resourceClaimName: resourceClaimNameValue startTime: "2007-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Pod.json000066400000000000000000001420101453636404600217520ustar00rootroot00000000000000{ "kind": "Pod", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] }, "status": { "phase": "phaseValue", "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "message": "messageValue", "reason": "reasonValue", "nominatedNodeName": "nominatedNodeNameValue", "hostIP": "hostIPValue", "hostIPs": [ { "ip": "ipValue" } ], "podIP": "podIPValue", "podIPs": [ { "ip": "ipValue" } ], "startTime": "2007-01-01T01:01:01Z", "initContainerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "containerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "qosClass": "qosClassValue", "ephemeralContainerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "resize": "resizeValue", "resourceClaimStatuses": [ { "name": "nameValue", "resourceClaimName": "resourceClaimNameValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Pod.pb000066400000000000000000000254221453636404600214110ustar00rootroot00000000000000k8s v1PodU  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue phaseValueG typeValue statusValue"* reasonValue2 messageValue messageValue" reasonValue* hostIPValue2 podIPValue:ͺB nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValueJ qosClassValueR nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValueZnominatedNodeNameValueb ipValuej nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValuer resizeValuez# nameValueresourceClaimNameValue ipValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Pod.yaml000066400000000000000000000764051453636404600217610ustar00rootroot00000000000000apiVersion: v1 kind: Pod metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue containerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue ephemeralContainerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue hostIP: hostIPValue hostIPs: - ip: ipValue initContainerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue message: messageValue nominatedNodeName: nominatedNodeNameValue phase: phaseValue podIP: podIPValue podIPs: - ip: ipValue qosClass: qosClassValue reason: reasonValue resize: resizeValue resourceClaimStatuses: - name: nameValue resourceClaimName: resourceClaimNameValue startTime: "2007-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodAttachOptions.json000066400000000000000000000002331453636404600244530ustar00rootroot00000000000000{ "kind": "PodAttachOptions", "apiVersion": "v1", "stdin": true, "stdout": true, "stderr": true, "tty": true, "container": "containerValue" }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodAttachOptions.pb000066400000000000000000000000721453636404600241040ustar00rootroot00000000000000k8s  v1PodAttachOptions *containerValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodAttachOptions.yaml000066400000000000000000000001601453636404600244430ustar00rootroot00000000000000apiVersion: v1 container: containerValue kind: PodAttachOptions stderr: true stdin: true stdout: true tty: true golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodExecOptions.json000066400000000000000000000003001453636404600241260ustar00rootroot00000000000000{ "kind": "PodExecOptions", "apiVersion": "v1", "stdin": true, "stdout": true, "stderr": true, "tty": true, "container": "containerValue", "command": [ "commandValue" ] }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodExecOptions.pb000066400000000000000000000001061453636404600235620ustar00rootroot00000000000000k8s  v1PodExecOptions& *containerValue2 commandValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodExecOptions.yaml000066400000000000000000000002061453636404600241240ustar00rootroot00000000000000apiVersion: v1 command: - commandValue container: containerValue kind: PodExecOptions stderr: true stdin: true stdout: true tty: true golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodLogOptions.json000066400000000000000000000004311453636404600237700ustar00rootroot00000000000000{ "kind": "PodLogOptions", "apiVersion": "v1", "container": "containerValue", "follow": true, "previous": true, "sinceSeconds": 4, "sinceTime": "2005-01-01T01:01:01Z", "timestamps": true, "tailLines": 7, "limitBytes": 8, "insecureSkipTLSVerifyBackend": true }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodLogOptions.pb000066400000000000000000000001071453636404600234200ustar00rootroot00000000000000k8s  v1 PodLogOptions( containerValue *׎08@H"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodLogOptions.yaml000066400000000000000000000003321453636404600237610ustar00rootroot00000000000000apiVersion: v1 container: containerValue follow: true insecureSkipTLSVerifyBackend: true kind: PodLogOptions limitBytes: 8 previous: true sinceSeconds: 4 sinceTime: "2005-01-01T01:01:01Z" tailLines: 7 timestamps: true golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodPortForwardOptions.json000066400000000000000000000001231453636404600255160ustar00rootroot00000000000000{ "kind": "PodPortForwardOptions", "apiVersion": "v1", "ports": [ 1 ] }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodPortForwardOptions.pb000066400000000000000000000000511453636404600251460ustar00rootroot00000000000000k8s  v1PodPortForwardOptions"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodPortForwardOptions.yaml000066400000000000000000000000661453636404600255150ustar00rootroot00000000000000apiVersion: v1 kind: PodPortForwardOptions ports: - 1 golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodProxyOptions.json000066400000000000000000000001141453636404600243660ustar00rootroot00000000000000{ "kind": "PodProxyOptions", "apiVersion": "v1", "path": "pathValue" }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodProxyOptions.pb000066400000000000000000000000541453636404600240210ustar00rootroot00000000000000k8s  v1PodProxyOptions pathValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodProxyOptions.yaml000066400000000000000000000000651453636404600243640ustar00rootroot00000000000000apiVersion: v1 kind: PodProxyOptions path: pathValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodStatusResult.json000066400000000000000000000156361453636404600243720ustar00rootroot00000000000000{ "kind": "PodStatusResult", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "status": { "phase": "phaseValue", "conditions": [ { "type": "typeValue", "status": "statusValue", "lastProbeTime": "2003-01-01T01:01:01Z", "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "message": "messageValue", "reason": "reasonValue", "nominatedNodeName": "nominatedNodeNameValue", "hostIP": "hostIPValue", "hostIPs": [ { "ip": "ipValue" } ], "podIP": "podIPValue", "podIPs": [ { "ip": "ipValue" } ], "startTime": "2007-01-01T01:01:01Z", "initContainerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "containerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "qosClass": "qosClassValue", "ephemeralContainerStatuses": [ { "name": "nameValue", "state": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "lastState": { "waiting": { "reason": "reasonValue", "message": "messageValue" }, "running": { "startedAt": "2001-01-01T01:01:01Z" }, "terminated": { "exitCode": 1, "signal": 2, "reason": "reasonValue", "message": "messageValue", "startedAt": "2005-01-01T01:01:01Z", "finishedAt": "2006-01-01T01:01:01Z", "containerID": "containerIDValue" } }, "ready": true, "restartCount": 5, "image": "imageValue", "imageID": "imageIDValue", "containerID": "containerIDValue", "started": true, "allocatedResources": { "allocatedResourcesKey": "0" }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] } } ], "resize": "resizeValue", "resourceClaimStatuses": [ { "name": "nameValue", "resourceClaimName": "resourceClaimNameValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodStatusResult.pb000066400000000000000000000033601453636404600240110ustar00rootroot00000000000000k8s  v1PodStatusResult  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue phaseValueG typeValue statusValue"* reasonValue2 messageValue messageValue" reasonValue* hostIPValue2 podIPValue:ͺB nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValueJ qosClassValueR nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValueZnominatedNodeNameValueb ipValuej nameValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValuep  reasonValue messageValue ͭE reasonValue" messageValue*׎2ܝ:containerIDValue (2 imageValue: imageIDValueBcontainerIDValueHR allocatedResourcesKey 0Z3  limitsKey 0 requestsKey 0 nameValuer resizeValuez# nameValueresourceClaimNameValue ipValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodStatusResult.yaml000066400000000000000000000113261453636404600243530ustar00rootroot00000000000000apiVersion: v1 kind: PodStatusResult metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue status: conditions: - lastProbeTime: "2003-01-01T01:01:01Z" lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue containerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue ephemeralContainerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue hostIP: hostIPValue hostIPs: - ip: ipValue initContainerStatuses: - allocatedResources: allocatedResourcesKey: "0" containerID: containerIDValue image: imageValue imageID: imageIDValue lastState: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue name: nameValue ready: true resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartCount: 5 started: true state: running: startedAt: "2001-01-01T01:01:01Z" terminated: containerID: containerIDValue exitCode: 1 finishedAt: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue signal: 2 startedAt: "2005-01-01T01:01:01Z" waiting: message: messageValue reason: reasonValue message: messageValue nominatedNodeName: nominatedNodeNameValue phase: phaseValue podIP: podIPValue podIPs: - ip: ipValue qosClass: qosClassValue reason: reasonValue resize: resizeValue resourceClaimStatuses: - name: nameValue resourceClaimName: resourceClaimNameValue startTime: "2007-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodTemplate.after_roundtrip.json000066400000000000000000001366041453636404600266700ustar00rootroot00000000000000{ "kind": "PodTemplate", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodTemplate.after_roundtrip.pb000066400000000000000000000234101453636404600263060ustar00rootroot00000000000000k8s  v1 PodTemplateM  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodTemplate.after_roundtrip.yaml000066400000000000000000000744621453636404600266640ustar00rootroot00000000000000apiVersion: v1 kind: PodTemplate metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodTemplate.json000066400000000000000000001370151453636404600234570ustar00rootroot00000000000000{ "kind": "PodTemplate", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodTemplate.pb000066400000000000000000000234251453636404600231060ustar00rootroot00000000000000k8s  v1 PodTemplateM  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.PodTemplate.yaml000066400000000000000000000745501453636404600234540ustar00rootroot00000000000000apiVersion: v1 kind: PodTemplate metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.RangeAllocation.json000066400000000000000000000022601453636404600242740ustar00rootroot00000000000000{ "kind": "RangeAllocation", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "range": "rangeValue", "data": "Aw==" }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.RangeAllocation.pb000066400000000000000000000006241453636404600237260ustar00rootroot00000000000000k8s  v1RangeAllocation  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue rangeValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.RangeAllocation.yaml000066400000000000000000000015561453636404600242740ustar00rootroot00000000000000apiVersion: v1 data: Aw== kind: RangeAllocation metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue range: rangeValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ReplicationController.after_roundtrip.json000066400000000000000000001460541453636404600307670ustar00rootroot00000000000000{ "kind": "ReplicationController", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "selectorKey": "selectorValue" }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ReplicationController.after_roundtrip.pb000066400000000000000000000236021453636404600304100ustar00rootroot00000000000000k8s  v1ReplicationControllerN  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK selectorKey selectorValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ReplicationController.after_roundtrip.yaml000066400000000000000000001015051453636404600307500ustar00rootroot00000000000000apiVersion: v1 kind: ReplicationController metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: selectorKey: selectorValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ReplicationController.json000066400000000000000000001462771453636404600255700ustar00rootroot00000000000000{ "kind": "ReplicationController", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "selectorKey": "selectorValue" }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ReplicationController.pb000066400000000000000000000236171453636404600252100ustar00rootroot00000000000000k8s  v1ReplicationControllerN  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK selectorKey selectorValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ReplicationController.yaml000066400000000000000000001015771453636404600255530ustar00rootroot00000000000000apiVersion: v1 kind: ReplicationController metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: selectorKey: selectorValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ResourceQuota.json000066400000000000000000000030601453636404600240320ustar00rootroot00000000000000{ "kind": "ResourceQuota", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "hard": { "hardKey": "0" }, "scopes": [ "scopesValue" ], "scopeSelector": { "matchExpressions": [ { "scopeName": "scopeNameValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } }, "status": { "hard": { "hardKey": "0" }, "used": { "usedKey": "0" } } }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ResourceQuota.pb000066400000000000000000000007641453636404600234720ustar00rootroot00000000000000k8s  v1 ResourceQuota  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueM  hardKey 0 scopesValue. , scopeNameValue operatorValue valuesValue  hardKey 0 usedKey 0"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ResourceQuota.yaml000066400000000000000000000021111453636404600240170ustar00rootroot00000000000000apiVersion: v1 kind: ResourceQuota metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: hard: hardKey: "0" scopeSelector: matchExpressions: - operator: operatorValue scopeName: scopeNameValue values: - valuesValue scopes: - scopesValue status: hard: hardKey: "0" used: usedKey: "0" golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Secret.json000066400000000000000000000024151453636404600224610ustar00rootroot00000000000000{ "kind": "Secret", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "immutable": true, "data": { "dataKey": "Ag==" }, "stringData": { "stringDataKey": "stringDataValue" }, "type": "typeValue" }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Secret.pb000066400000000000000000000006711453636404600221130ustar00rootroot00000000000000k8s v1Secret  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue dataKey typeValue" stringDataKeystringDataValue("golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Secret.yaml000066400000000000000000000016531453636404600224550ustar00rootroot00000000000000apiVersion: v1 data: dataKey: Ag== immutable: true kind: Secret metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue stringData: stringDataKey: stringDataValue type: typeValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.SerializedReference.json000066400000000000000000000004611453636404600251450ustar00rootroot00000000000000{ "kind": "SerializedReference", "apiVersion": "v1", "reference": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.SerializedReference.pb000066400000000000000000000002161453636404600245730ustar00rootroot00000000000000k8s  v1SerializedReferencei g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.SerializedReference.yaml000066400000000000000000000003461453636404600251400ustar00rootroot00000000000000apiVersion: v1 kind: SerializedReference reference: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Service.json000066400000000000000000000055071453636404600226410ustar00rootroot00000000000000{ "kind": "Service", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "ports": [ { "name": "nameValue", "protocol": "protocolValue", "appProtocol": "appProtocolValue", "port": 3, "targetPort": "targetPortValue", "nodePort": 5 } ], "selector": { "selectorKey": "selectorValue" }, "clusterIP": "clusterIPValue", "clusterIPs": [ "clusterIPsValue" ], "type": "typeValue", "externalIPs": [ "externalIPsValue" ], "sessionAffinity": "sessionAffinityValue", "loadBalancerIP": "loadBalancerIPValue", "loadBalancerSourceRanges": [ "loadBalancerSourceRangesValue" ], "externalName": "externalNameValue", "externalTrafficPolicy": "externalTrafficPolicyValue", "healthCheckNodePort": 12, "publishNotReadyAddresses": true, "sessionAffinityConfig": { "clientIP": { "timeoutSeconds": 1 } }, "ipFamilies": [ "ipFamiliesValue" ], "ipFamilyPolicy": "ipFamilyPolicyValue", "allocateLoadBalancerNodePorts": true, "loadBalancerClass": "loadBalancerClassValue", "internalTrafficPolicy": "internalTrafficPolicyValue" }, "status": { "loadBalancer": { "ingress": [ { "ip": "ipValue", "hostname": "hostnameValue", "ports": [ { "port": 1, "protocol": "protocolValue", "error": "errorValue" } ] } ] }, "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Service.pb000066400000000000000000000016101453636404600222600ustar00rootroot00000000000000k8s v1Service  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue G nameValue protocolValue"targetPortValue(2appProtocolValue selectorKey selectorValueclusterIPValue" typeValue*externalIPsValue:sessionAffinityValueBloadBalancerIPValueJloadBalancerSourceRangesValueRexternalNameValueZexternalTrafficPolicyValue` hr ipFamilyPolicyValueclusterIPsValueipFamiliesValueloadBalancerClassValueinternalTrafficPolicyValue| 9 7 ipValue hostnameValue" protocolValue errorValue? typeValue statusValue"* reasonValue2 messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Service.yaml000066400000000000000000000040201453636404600226170ustar00rootroot00000000000000apiVersion: v1 kind: Service metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: allocateLoadBalancerNodePorts: true clusterIP: clusterIPValue clusterIPs: - clusterIPsValue externalIPs: - externalIPsValue externalName: externalNameValue externalTrafficPolicy: externalTrafficPolicyValue healthCheckNodePort: 12 internalTrafficPolicy: internalTrafficPolicyValue ipFamilies: - ipFamiliesValue ipFamilyPolicy: ipFamilyPolicyValue loadBalancerClass: loadBalancerClassValue loadBalancerIP: loadBalancerIPValue loadBalancerSourceRanges: - loadBalancerSourceRangesValue ports: - appProtocol: appProtocolValue name: nameValue nodePort: 5 port: 3 protocol: protocolValue targetPort: targetPortValue publishNotReadyAddresses: true selector: selectorKey: selectorValue sessionAffinity: sessionAffinityValue sessionAffinityConfig: clientIP: timeoutSeconds: 1 type: typeValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue loadBalancer: ingress: - hostname: hostnameValue ip: ipValue ports: - error: errorValue port: 1 protocol: protocolValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ServiceAccount.json000066400000000000000000000027771453636404600241640ustar00rootroot00000000000000{ "kind": "ServiceAccount", "apiVersion": "v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "secrets": [ { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } ], "imagePullSecrets": [ { "name": "nameValue" } ], "automountServiceAccountToken": true }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ServiceAccount.pb000066400000000000000000000007741453636404600236070ustar00rootroot00000000000000k8s  v1ServiceAccount  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue nameValue "golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ServiceAccount.yaml000066400000000000000000000021221453636404600241350ustar00rootroot00000000000000apiVersion: v1 automountServiceAccountToken: true imagePullSecrets: - name: nameValue kind: ServiceAccount metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue secrets: - apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ServiceProxyOptions.json000066400000000000000000000001201453636404600252410ustar00rootroot00000000000000{ "kind": "ServiceProxyOptions", "apiVersion": "v1", "path": "pathValue" }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ServiceProxyOptions.pb000066400000000000000000000000601453636404600246740ustar00rootroot00000000000000k8s  v1ServiceProxyOptions pathValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.ServiceProxyOptions.yaml000066400000000000000000000000711453636404600252370ustar00rootroot00000000000000apiVersion: v1 kind: ServiceProxyOptions path: pathValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Status.json000066400000000000000000000011121453636404600225100ustar00rootroot00000000000000{ "kind": "Status", "apiVersion": "v1", "metadata": { "selfLink": "selfLinkValue", "resourceVersion": "resourceVersionValue", "continue": "continueValue", "remainingItemCount": 4 }, "status": "statusValue", "message": "messageValue", "reason": "reasonValue", "details": { "name": "nameValue", "group": "groupValue", "kind": "kindValue", "uid": "uidValue", "causes": [ { "reason": "reasonValue", "message": "messageValue", "field": "fieldValue" } ], "retryAfterSeconds": 5 }, "code": 6 }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Status.pb000066400000000000000000000003241453636404600221440ustar00rootroot00000000000000k8s v1Status 6 selfLinkValueresourceVersionValue continueValue  statusValue messageValue" reasonValue*W nameValue groupValue kindValue"' reasonValue messageValue fieldValue(2uidValue0"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.Status.yaml000066400000000000000000000006321453636404600225070ustar00rootroot00000000000000apiVersion: v1 code: 6 details: causes: - field: fieldValue message: messageValue reason: reasonValue group: groupValue kind: kindValue name: nameValue retryAfterSeconds: 5 uid: uidValue kind: Status message: messageValue metadata: continue: continueValue remainingItemCount: 4 resourceVersion: resourceVersionValue selfLink: selfLinkValue reason: reasonValue status: statusValue golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.UpdateOptions.json000066400000000000000000000002541453636404600240310ustar00rootroot00000000000000{ "kind": "UpdateOptions", "apiVersion": "v1", "dryRun": [ "dryRunValue" ], "fieldManager": "fieldManagerValue", "fieldValidation": "fieldValidationValue" }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.UpdateOptions.pb000066400000000000000000000001251453636404600234560ustar00rootroot00000000000000k8s  v1 UpdateOptions6 dryRunValuefieldManagerValuefieldValidationValue"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.UpdateOptions.yaml000066400000000000000000000001771453636404600240260ustar00rootroot00000000000000apiVersion: v1 dryRun: - dryRunValue fieldManager: fieldManagerValue fieldValidation: fieldValidationValue kind: UpdateOptions golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.WatchEvent.json000066400000000000000000000002761453636404600233070ustar00rootroot00000000000000{ "type": "typeValue", "object": { "apiVersion": "example.com/v1", "kind": "CustomType", "spec": { "replicas": 1 }, "status": { "available": 1 } } }golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.WatchEvent.pb000066400000000000000000000002011453636404600227230ustar00rootroot00000000000000k8s  q typeValued b{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}"golang-k8s-api-0.29.0/testdata/v1.28.0/core.v1.WatchEvent.yaml000066400000000000000000000001731453636404600232740ustar00rootroot00000000000000object: apiVersion: example.com/v1 kind: CustomType spec: replicas: 1 status: available: 1 type: typeValue golang-k8s-api-0.29.0/testdata/v1.28.0/discovery.k8s.io.v1.EndpointSlice.json000066400000000000000000000041421453636404600261640ustar00rootroot00000000000000{ "kind": "EndpointSlice", "apiVersion": "discovery.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "addressType": "addressTypeValue", "endpoints": [ { "addresses": [ "addressesValue" ], "conditions": { "ready": true, "serving": true, "terminating": true }, "hostname": "hostnameValue", "targetRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "deprecatedTopology": { "deprecatedTopologyKey": "deprecatedTopologyValue" }, "nodeName": "nodeNameValue", "zone": "zoneValue", "hints": { "forZones": [ { "name": "nameValue" } ] } } ], "ports": [ { "name": "nameValue", "protocol": "protocolValue", "port": 3, "appProtocol": "appProtocolValue" } ] }golang-k8s-api-0.29.0/testdata/v1.28.0/discovery.k8s.io.v1.EndpointSlice.pb000066400000000000000000000013041453636404600256110ustar00rootroot00000000000000k8s $ discovery.k8s.io/v1 EndpointSlice  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue addressesValue hostnameValue"g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue*0 deprecatedTopologyKeydeprecatedTopologyValue2 nodeNameValue: zoneValueB nameValue. nameValue protocolValue"appProtocolValue"addressTypeValue"golang-k8s-api-0.29.0/testdata/v1.28.0/discovery.k8s.io.v1.EndpointSlice.yaml000066400000000000000000000027251453636404600261620ustar00rootroot00000000000000addressType: addressTypeValue apiVersion: discovery.k8s.io/v1 endpoints: - addresses: - addressesValue conditions: ready: true serving: true terminating: true deprecatedTopology: deprecatedTopologyKey: deprecatedTopologyValue hints: forZones: - name: nameValue hostname: hostnameValue nodeName: nodeNameValue targetRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue zone: zoneValue kind: EndpointSlice metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue ports: - appProtocol: appProtocolValue name: nameValue port: 3 protocol: protocolValue golang-k8s-api-0.29.0/testdata/v1.28.0/discovery.k8s.io.v1beta1.EndpointSlice.json000066400000000000000000000040561453636404600271050ustar00rootroot00000000000000{ "kind": "EndpointSlice", "apiVersion": "discovery.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "addressType": "addressTypeValue", "endpoints": [ { "addresses": [ "addressesValue" ], "conditions": { "ready": true, "serving": true, "terminating": true }, "hostname": "hostnameValue", "targetRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "topology": { "topologyKey": "topologyValue" }, "nodeName": "nodeNameValue", "hints": { "forZones": [ { "name": "nameValue" } ] } } ], "ports": [ { "name": "nameValue", "protocol": "protocolValue", "port": 3, "appProtocol": "appProtocolValue" } ] }golang-k8s-api-0.29.0/testdata/v1.28.0/discovery.k8s.io.v1beta1.EndpointSlice.pb000066400000000000000000000012521453636404600265300ustar00rootroot00000000000000k8s ) discovery.k8s.io/v1beta1 EndpointSlice  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue addressesValue hostnameValue"g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue* topologyKey topologyValue2 nodeNameValue: nameValue. nameValue protocolValue"appProtocolValue"addressTypeValue"golang-k8s-api-0.29.0/testdata/v1.28.0/discovery.k8s.io.v1beta1.EndpointSlice.yaml000066400000000000000000000026521453636404600270760ustar00rootroot00000000000000addressType: addressTypeValue apiVersion: discovery.k8s.io/v1beta1 endpoints: - addresses: - addressesValue conditions: ready: true serving: true terminating: true hints: forZones: - name: nameValue hostname: hostnameValue nodeName: nodeNameValue targetRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue topology: topologyKey: topologyValue kind: EndpointSlice metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue ports: - appProtocol: appProtocolValue name: nameValue port: 3 protocol: protocolValue golang-k8s-api-0.29.0/testdata/v1.28.0/events.k8s.io.v1.Event.json000066400000000000000000000042441453636404600240050ustar00rootroot00000000000000{ "kind": "Event", "apiVersion": "events.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "eventTime": "2002-01-01T01:01:01.000002Z", "series": { "count": 1, "lastObservedTime": "2002-01-01T01:01:01.000002Z" }, "reportingController": "reportingControllerValue", "reportingInstance": "reportingInstanceValue", "action": "actionValue", "reason": "reasonValue", "regarding": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "related": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "note": "noteValue", "type": "typeValue", "deprecatedSource": { "component": "componentValue", "host": "hostValue" }, "deprecatedFirstTimestamp": "2013-01-01T01:01:01Z", "deprecatedLastTimestamp": "2014-01-01T01:01:01Z", "deprecatedCount": 15 }golang-k8s-api-0.29.0/testdata/v1.28.0/events.k8s.io.v1.Event.pb000066400000000000000000000014121453636404600234270ustar00rootroot00000000000000k8s  events.k8s.io/v1Event  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue ͔  ͔"reportingControllerValue*reportingInstanceValue2 actionValue: reasonValueBg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValueJg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValueR noteValueZ typeValueb componentValue hostValuejꈇrэx"golang-k8s-api-0.29.0/testdata/v1.28.0/events.k8s.io.v1.Event.yaml000066400000000000000000000032201453636404600237670ustar00rootroot00000000000000action: actionValue apiVersion: events.k8s.io/v1 deprecatedCount: 15 deprecatedFirstTimestamp: "2013-01-01T01:01:01Z" deprecatedLastTimestamp: "2014-01-01T01:01:01Z" deprecatedSource: component: componentValue host: hostValue eventTime: "2002-01-01T01:01:01.000002Z" kind: Event metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue note: noteValue reason: reasonValue regarding: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue related: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue reportingController: reportingControllerValue reportingInstance: reportingInstanceValue series: count: 1 lastObservedTime: "2002-01-01T01:01:01.000002Z" type: typeValue golang-k8s-api-0.29.0/testdata/v1.28.0/events.k8s.io.v1beta1.Event.json000066400000000000000000000042511453636404600247200ustar00rootroot00000000000000{ "kind": "Event", "apiVersion": "events.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "eventTime": "2002-01-01T01:01:01.000002Z", "series": { "count": 1, "lastObservedTime": "2002-01-01T01:01:01.000002Z" }, "reportingController": "reportingControllerValue", "reportingInstance": "reportingInstanceValue", "action": "actionValue", "reason": "reasonValue", "regarding": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "related": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "note": "noteValue", "type": "typeValue", "deprecatedSource": { "component": "componentValue", "host": "hostValue" }, "deprecatedFirstTimestamp": "2013-01-01T01:01:01Z", "deprecatedLastTimestamp": "2014-01-01T01:01:01Z", "deprecatedCount": 15 }golang-k8s-api-0.29.0/testdata/v1.28.0/events.k8s.io.v1beta1.Event.pb000066400000000000000000000014171453636404600243510ustar00rootroot00000000000000k8s  events.k8s.io/v1beta1Event  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue ͔  ͔"reportingControllerValue*reportingInstanceValue2 actionValue: reasonValueBg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValueJg kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValueR noteValueZ typeValueb componentValue hostValuejꈇrэx"golang-k8s-api-0.29.0/testdata/v1.28.0/events.k8s.io.v1beta1.Event.yaml000066400000000000000000000032251453636404600247110ustar00rootroot00000000000000action: actionValue apiVersion: events.k8s.io/v1beta1 deprecatedCount: 15 deprecatedFirstTimestamp: "2013-01-01T01:01:01Z" deprecatedLastTimestamp: "2014-01-01T01:01:01Z" deprecatedSource: component: componentValue host: hostValue eventTime: "2002-01-01T01:01:01.000002Z" kind: Event metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue note: noteValue reason: reasonValue regarding: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue related: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue reportingController: reportingControllerValue reportingInstance: reportingInstanceValue series: count: 1 lastObservedTime: "2002-01-01T01:01:01.000002Z" type: typeValue golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.DaemonSet.after_roundtrip.json000066400000000000000000001471501453636404600305130ustar00rootroot00000000000000{ "kind": "DaemonSet", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "updateStrategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 4, "templateGeneration": 5, "revisionHistoryLimit": 6 }, "status": { "currentNumberScheduled": 1, "numberMisscheduled": 2, "desiredNumberScheduled": 3, "numberReady": 4, "observedGeneration": 5, "updatedNumberScheduled": 6, "numberAvailable": 7, "numberUnavailable": 8, "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.DaemonSet.after_roundtrip.pb000066400000000000000000000237771453636404600301530ustar00rootroot00000000000000k8s  extensions/v1beta1 DaemonSetO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue= typeValue0 maxUnavailableValue maxSurgeValue (0Q (08@H R= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.DaemonSet.after_roundtrip.yaml000066400000000000000000001023341453636404600304770ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: DaemonSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue templateGeneration: 5 updateStrategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue status: collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentNumberScheduled: 1 desiredNumberScheduled: 3 numberAvailable: 7 numberMisscheduled: 2 numberReady: 4 numberUnavailable: 8 observedGeneration: 5 updatedNumberScheduled: 6 golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.DaemonSet.json000066400000000000000000001473731453636404600253140ustar00rootroot00000000000000{ "kind": "DaemonSet", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "updateStrategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 4, "templateGeneration": 5, "revisionHistoryLimit": 6 }, "status": { "currentNumberScheduled": 1, "numberMisscheduled": 2, "desiredNumberScheduled": 3, "numberReady": 4, "observedGeneration": 5, "updatedNumberScheduled": 6, "numberAvailable": 7, "numberUnavailable": 8, "collisionCount": 9, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.DaemonSet.pb000066400000000000000000000240141453636404600247260ustar00rootroot00000000000000k8s  extensions/v1beta1 DaemonSetO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue= typeValue0 maxUnavailableValue maxSurgeValue (0Q (08@H R= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.DaemonSet.yaml000066400000000000000000001024261453636404600252730ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: DaemonSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 revisionHistoryLimit: 6 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue templateGeneration: 5 updateStrategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue status: collisionCount: 9 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue currentNumberScheduled: 1 desiredNumberScheduled: 3 numberAvailable: 7 numberMisscheduled: 2 numberReady: 4 numberUnavailable: 8 observedGeneration: 5 updatedNumberScheduled: 6 golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.Deployment.after_roundtrip.json000066400000000000000000001472431453636404600307570ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "rollbackTo": { "revision": 1 }, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.Deployment.after_roundtrip.pb000066400000000000000000000240161453636404600303770ustar00rootroot00000000000000k8s extensions/v1beta1 DeploymentO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueLL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08BH W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.Deployment.after_roundtrip.yaml000066400000000000000000001023771453636404600307470ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 rollbackTo: revision: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.Deployment.json000066400000000000000000001474661453636404600255600ustar00rootroot00000000000000{ "kind": "Deployment", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } }, "strategy": { "type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 5, "revisionHistoryLimit": 6, "paused": true, "rollbackTo": { "revision": 1 }, "progressDeadlineSeconds": 9 }, "status": { "observedGeneration": 1, "replicas": 2, "updatedReplicas": 3, "readyReplicas": 7, "availableReplicas": 4, "unavailableReplicas": 5, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastUpdateTime": "2006-01-01T01:01:01Z", "lastTransitionTime": "2007-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ], "collisionCount": 8 } }golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.Deployment.pb000066400000000000000000000240331453636404600251700ustar00rootroot00000000000000k8s extensions/v1beta1 DeploymentO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueLL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue"= typeValue0 maxUnavailableValue maxSurgeValue(08BH W (2G typeValue statusValue" reasonValue* messageValue2ܝ:ͺ8@"golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.Deployment.yaml000066400000000000000000001024711453636404600255340ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: Deployment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 5 paused: true progressDeadlineSeconds: 9 replicas: 1 revisionHistoryLimit: 6 rollbackTo: revision: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue strategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 4 collisionCount: 8 conditions: - lastTransitionTime: "2007-01-01T01:01:01Z" lastUpdateTime: "2006-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue observedGeneration: 1 readyReplicas: 7 replicas: 2 unavailableReplicas: 5 updatedReplicas: 3 golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.DeploymentRollback.json000066400000000000000000000003361453636404600272120ustar00rootroot00000000000000{ "kind": "DeploymentRollback", "apiVersion": "extensions/v1beta1", "name": "nameValue", "updatedAnnotations": { "updatedAnnotationsKey": "updatedAnnotationsValue" }, "rollbackTo": { "revision": 1 } }golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.DeploymentRollback.pb000066400000000000000000000001651453636404600266420ustar00rootroot00000000000000k8s ( extensions/v1beta1DeploymentRollbackA nameValue0 updatedAnnotationsKeyupdatedAnnotationsValue"golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.DeploymentRollback.yaml000066400000000000000000000002471453636404600272040ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: DeploymentRollback name: nameValue rollbackTo: revision: 1 updatedAnnotations: updatedAnnotationsKey: updatedAnnotationsValue golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.Ingress.json000066400000000000000000000046371453636404600250420ustar00rootroot00000000000000{ "kind": "Ingress", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "ingressClassName": "ingressClassNameValue", "backend": { "serviceName": "serviceNameValue", "servicePort": "servicePortValue", "resource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }, "tls": [ { "hosts": [ "hostsValue" ], "secretName": "secretNameValue" } ], "rules": [ { "host": "hostValue", "http": { "paths": [ { "path": "pathValue", "pathType": "pathTypeValue", "backend": { "serviceName": "serviceNameValue", "servicePort": "servicePortValue", "resource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } } } ] } } ] }, "status": { "loadBalancer": { "ingress": [ { "ip": "ipValue", "hostname": "hostnameValue", "ports": [ { "port": 1, "protocol": "protocolValue", "error": "errorValue" } ] } ] } } }golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.Ingress.pb000066400000000000000000000013261453636404600244620ustar00rootroot00000000000000k8s  extensions/v1beta1Ingress  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue Q serviceNameValueservicePortValue% apiGroupValue kindValue nameValue hostsValuesecretNameValue~ hostValueq o m pathValueQ serviceNameValueservicePortValue% apiGroupValue kindValue nameValue pathTypeValue"ingressClassNameValue; 9 7 ipValue hostnameValue" protocolValue errorValue"golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.Ingress.yaml000066400000000000000000000031341453636404600250220ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: backend: resource: apiGroup: apiGroupValue kind: kindValue name: nameValue serviceName: serviceNameValue servicePort: servicePortValue ingressClassName: ingressClassNameValue rules: - host: hostValue http: paths: - backend: resource: apiGroup: apiGroupValue kind: kindValue name: nameValue serviceName: serviceNameValue servicePort: servicePortValue path: pathValue pathType: pathTypeValue tls: - hosts: - hostsValue secretName: secretNameValue status: loadBalancer: ingress: - hostname: hostnameValue ip: ipValue ports: - error: errorValue port: 1 protocol: protocolValue golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.NetworkPolicy.json000066400000000000000000000075241453636404600262370ustar00rootroot00000000000000{ "kind": "NetworkPolicy", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ingress": [ { "ports": [ { "protocol": "protocolValue", "port": "portValue", "endPort": 3 } ], "from": [ { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ipBlock": { "cidr": "cidrValue", "except": [ "exceptValue" ] } } ] } ], "egress": [ { "ports": [ { "protocol": "protocolValue", "port": "portValue", "endPort": 3 } ], "to": [ { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ipBlock": { "cidr": "cidrValue", "except": [ "exceptValue" ] } } ] } ], "policyTypes": [ "policyTypesValue" ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.NetworkPolicy.pb000066400000000000000000000016661453636404600256700ustar00rootroot00000000000000k8s # extensions/v1beta1 NetworkPolicy  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue " protocolValue portValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue cidrValue exceptValue " protocolValue portValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue cidrValue exceptValue"policyTypesValue"golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.NetworkPolicy.yaml000066400000000000000000000043531453636404600262250ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: NetworkPolicy metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: egress: - ports: - endPort: 3 port: portValue protocol: protocolValue to: - ipBlock: cidr: cidrValue except: - exceptValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue ingress: - from: - ipBlock: cidr: cidrValue except: - exceptValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue ports: - endPort: 3 port: portValue protocol: protocolValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue policyTypes: - policyTypesValue golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.ReplicaSet.after_roundtrip.json000066400000000000000000001464211453636404600306670ustar00rootroot00000000000000{ "kind": "ReplicaSet", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" } }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.ReplicaSet.after_roundtrip.pb000066400000000000000000000236671453636404600303250ustar00rootroot00000000000000k8s extensions/v1beta1 ReplicaSetO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue&  limitsKey 0 requestsKey 0volumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.ReplicaSet.after_roundtrip.yaml000066400000000000000000001017151453636404600306550ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: ReplicaSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.ReplicaSet.json000066400000000000000000001466441453636404600254700ustar00rootroot00000000000000{ "kind": "ReplicaSet", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1, "minReadySeconds": 4, "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "template": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "volumes": [ { "name": "nameValue", "hostPath": { "path": "pathValue", "type": "typeValue" }, "emptyDir": { "medium": "mediumValue", "sizeLimit": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "gitRepo": { "repository": "repositoryValue", "revision": "revisionValue", "directory": "directoryValue" }, "secret": { "secretName": "secretNameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue" }, "initiatorName": "initiatorNameValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true }, "persistentVolumeClaim": { "claimName": "claimNameValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue" }, "readOnly": true }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ], "defaultMode": 2 }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "defaultMode": 3, "optional": true }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "projected": { "sources": [ { "secret": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "downwardAPI": { "items": [ { "path": "pathValue", "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "mode": 4 } ] }, "configMap": { "name": "nameValue", "items": [ { "key": "keyValue", "path": "pathValue", "mode": 3 } ], "optional": true }, "serviceAccountToken": { "audience": "audienceValue", "expirationSeconds": 2, "path": "pathValue" } } ], "defaultMode": 2 }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue" } }, "csi": { "driver": "driverValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "nodePublishSecretRef": { "name": "nameValue" } }, "ephemeral": { "volumeClaimTemplate": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "accessModes": [ "accessModesValue" ], "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "volumeName": "volumeNameValue", "storageClassName": "storageClassNameValue", "volumeMode": "volumeModeValue", "dataSource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "dataSourceRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" } } } } } ], "initContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "containers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true } ], "ephemeralContainers": [ { "name": "nameValue", "image": "imageValue", "command": [ "commandValue" ], "args": [ "argsValue" ], "workingDir": "workingDirValue", "ports": [ { "name": "nameValue", "hostPort": 2, "containerPort": 3, "protocol": "protocolValue", "hostIP": "hostIPValue" } ], "envFrom": [ { "prefix": "prefixValue", "configMapRef": { "name": "nameValue", "optional": true }, "secretRef": { "name": "nameValue", "optional": true } } ], "env": [ { "name": "nameValue", "value": "valueValue", "valueFrom": { "fieldRef": { "apiVersion": "apiVersionValue", "fieldPath": "fieldPathValue" }, "resourceFieldRef": { "containerName": "containerNameValue", "resource": "resourceValue", "divisor": "0" }, "configMapKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true }, "secretKeyRef": { "name": "nameValue", "key": "keyValue", "optional": true } } } ], "resources": { "limits": { "limitsKey": "0" }, "requests": { "requestsKey": "0" }, "claims": [ { "name": "nameValue" } ] }, "resizePolicy": [ { "resourceName": "resourceNameValue", "restartPolicy": "restartPolicyValue" } ], "restartPolicy": "restartPolicyValue", "volumeMounts": [ { "name": "nameValue", "readOnly": true, "mountPath": "mountPathValue", "subPath": "subPathValue", "mountPropagation": "mountPropagationValue", "subPathExpr": "subPathExprValue" } ], "volumeDevices": [ { "name": "nameValue", "devicePath": "devicePathValue" } ], "livenessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "readinessProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "startupProbe": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" }, "grpc": { "port": 1, "service": "serviceValue" }, "initialDelaySeconds": 2, "timeoutSeconds": 3, "periodSeconds": 4, "successThreshold": 5, "failureThreshold": 6, "terminationGracePeriodSeconds": 7 }, "lifecycle": { "postStart": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } }, "preStop": { "exec": { "command": [ "commandValue" ] }, "httpGet": { "path": "pathValue", "port": "portValue", "host": "hostValue", "scheme": "schemeValue", "httpHeaders": [ { "name": "nameValue", "value": "valueValue" } ] }, "tcpSocket": { "port": "portValue", "host": "hostValue" } } }, "terminationMessagePath": "terminationMessagePathValue", "terminationMessagePolicy": "terminationMessagePolicyValue", "imagePullPolicy": "imagePullPolicyValue", "securityContext": { "capabilities": { "add": [ "addValue" ], "drop": [ "dropValue" ] }, "privileged": true, "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 4, "runAsGroup": 8, "runAsNonRoot": true, "readOnlyRootFilesystem": true, "allowPrivilegeEscalation": true, "procMount": "procMountValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "stdin": true, "stdinOnce": true, "tty": true, "targetContainerName": "targetContainerNameValue" } ], "restartPolicy": "restartPolicyValue", "terminationGracePeriodSeconds": 4, "activeDeadlineSeconds": 5, "dnsPolicy": "dnsPolicyValue", "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "serviceAccountName": "serviceAccountNameValue", "serviceAccount": "serviceAccountValue", "automountServiceAccountToken": true, "nodeName": "nodeNameValue", "hostNetwork": true, "hostPID": true, "hostIPC": true, "shareProcessNamespace": true, "securityContext": { "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" }, "windowsOptions": { "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", "gmsaCredentialSpec": "gmsaCredentialSpecValue", "runAsUserName": "runAsUserNameValue", "hostProcess": true }, "runAsUser": 2, "runAsGroup": 6, "runAsNonRoot": true, "supplementalGroups": [ 4 ], "fsGroup": 5, "sysctls": [ { "name": "nameValue", "value": "valueValue" } ], "fsGroupChangePolicy": "fsGroupChangePolicyValue", "seccompProfile": { "type": "typeValue", "localhostProfile": "localhostProfileValue" } }, "imagePullSecrets": [ { "name": "nameValue" } ], "hostname": "hostnameValue", "subdomain": "subdomainValue", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "preference": { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ] }, "podAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] }, "podAntiAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": [ { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } ], "preferredDuringSchedulingIgnoredDuringExecution": [ { "weight": 1, "podAffinityTerm": { "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaces": [ "namespacesValue" ], "topologyKey": "topologyKeyValue", "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } } } ] } }, "schedulerName": "schedulerNameValue", "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ], "hostAliases": [ { "ip": "ipValue", "hostnames": [ "hostnamesValue" ] } ], "priorityClassName": "priorityClassNameValue", "priority": 25, "dnsConfig": { "nameservers": [ "nameserversValue" ], "searches": [ "searchesValue" ], "options": [ { "name": "nameValue", "value": "valueValue" } ] }, "readinessGates": [ { "conditionType": "conditionTypeValue" } ], "runtimeClassName": "runtimeClassNameValue", "enableServiceLinks": true, "preemptionPolicy": "preemptionPolicyValue", "overhead": { "overheadKey": "0" }, "topologySpreadConstraints": [ { "maxSkew": 1, "topologyKey": "topologyKeyValue", "whenUnsatisfiable": "whenUnsatisfiableValue", "labelSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "minDomains": 5, "nodeAffinityPolicy": "nodeAffinityPolicyValue", "nodeTaintsPolicy": "nodeTaintsPolicyValue", "matchLabelKeys": [ "matchLabelKeysValue" ] } ], "setHostnameAsFQDN": true, "os": { "name": "nameValue" }, "hostUsers": true, "schedulingGates": [ { "name": "nameValue" } ], "resourceClaims": [ { "name": "nameValue", "source": { "resourceClaimName": "resourceClaimNameValue", "resourceClaimTemplateName": "resourceClaimTemplateNameValue" } } ] } } }, "status": { "replicas": 1, "fullyLabeledReplicas": 2, "readyReplicas": 4, "availableReplicas": 5, "observedGeneration": 3, "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.ReplicaSet.pb000066400000000000000000000237041453636404600251070ustar00rootroot00000000000000k8s extensions/v1beta1 ReplicaSetO  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueKL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueK  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueH  nameValue  pathValue typeValue mediumValue 0 pdNameValue fsTypeValue " volumeIDValue fsTypeValue *0 repositoryValue revisionValuedirectoryValue2. secretNameValue keyValue pathValue : serverValue pathValueBv targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValueXbinitiatorNameValueJ endpointsValue pathValueR claimNameValueZ[ monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValue@bE driverValue fsTypeValue nameValue * optionsKey optionsValuej+ volumeIDValue fsTypeValue" nameValuerE monitorsValue pathValue userValue"secretFileValue* nameValue0z$ datasetNameValuedatasetUUIDValue^ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 . targetWWNsValue fsTypeValue * wwidsValue# secretNameValueshareNameValue* nameValue keyValue pathValue L volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValueB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP  ( nameValue keyValue pathValue \ Z pathValue! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 ( nameValue keyValue pathValue " audienceValue pathValueC volumeNameValuevolumeNamespaceValue fsTypeValue * nameValueW driverValue fsTypeValue", volumeAttributesKeyvolumeAttributesValue* nameValue   nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue accessModesValue3  limitsKey 0 requestsKey 0 nameValuevolumeNameValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue*storageClassNameValue2volumeModeValue:% apiGroupValue kindValue nameValueB5 apiGroupValue kindValue nameValue"namespaceValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuerestartPolicyValue (2dnsPolicyValue:$ nodeSelectorKeynodeSelectorValueBserviceAccountNameValueJserviceAccountValueR nodeNameValueX`hr - userValue roleValue typeValue" levelValue (0: nameValue valueValueBL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue JfsGroupChangePolicyValueR" typeValuelocalhostProfileValuez nameValue hostnameValuesubdomainValue  R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValueTP & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue  L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuenamespacesValuetopologyKeyValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueschedulerNameValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValue4 keyValue operatorValue valueValue" effectValue( ipValuehostnamesValuepriorityClassNameValue: nameserversValue searchesValue nameValue valueValue conditionTypeValueruntimeClassNameValuepreemptionPolicyValue overheadKey 0topologyKeyValuewhenUnsatisfiableValue"L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue(2nodeAffinityPolicyValue:nodeTaintsPolicyValueBmatchLabelKeysValue nameValue imageValue commandValue" argsValue*workingDirValue2+ nameValue" protocolValue* hostIPValue: nameValue valueValue ! apiVersionValuefieldPathValue( containerNameValue resourceValue 0 nameValuekeyValue" nameValuekeyValueB3  limitsKey 0 requestsKey 0 nameValueJT nameValuemountPathValue" subPathValue*mountPropagationValue2subPathExprValueR   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08Z   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08b }  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue}  commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValuejterminationMessagePathValuerimagePullPolicyValuez  addValue dropValue- userValue roleValue typeValue" levelValue (08@JprocMountValueRL gmsaCredentialSpecNameValuegmsaCredentialSpecValuerunAsUserNameValue Z" typeValuelocalhostProfileValue/ prefixValue nameValue nameValueterminationMessagePolicyValue nameValuedevicePathValue   commandValueM pathValue portValue hostValue" schemeValue* nameValue valueValue  portValue hostValue" serviceValue (08' resourceNameValuerestartPolicyValuerestartPolicyValuetargetContainerNameValue nameValue nameValueE nameValue8 resourceClaimNameValueresourceClaimTemplateNameValue I (2= typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.ReplicaSet.yaml000066400000000000000000001020071453636404600254420ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: ReplicaSet metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: minReadySeconds: 4 replicas: 1 selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue template: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: activeDeadlineSeconds: 5 affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue weight: 1 requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue namespaces: - namespacesValue topologyKey: topologyKeyValue automountServiceAccountToken: true containers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue dnsConfig: nameservers: - nameserversValue options: - name: nameValue value: valueValue searches: - searchesValue dnsPolicy: dnsPolicyValue enableServiceLinks: true ephemeralContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true targetContainerName: targetContainerNameValue terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue hostAliases: - hostnames: - hostnamesValue ip: ipValue hostIPC: true hostNetwork: true hostPID: true hostUsers: true hostname: hostnameValue imagePullSecrets: - name: nameValue initContainers: - args: - argsValue command: - commandValue env: - name: nameValue value: valueValue valueFrom: configMapKeyRef: key: keyValue name: nameValue optional: true fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secretKeyRef: key: keyValue name: nameValue optional: true envFrom: - configMapRef: name: nameValue optional: true prefix: prefixValue secretRef: name: nameValue optional: true image: imageValue imagePullPolicy: imagePullPolicyValue lifecycle: postStart: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue preStop: exec: command: - commandValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue tcpSocket: host: hostValue port: portValue livenessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 name: nameValue ports: - containerPort: 3 hostIP: hostIPValue hostPort: 2 name: nameValue protocol: protocolValue readinessProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 resizePolicy: - resourceName: resourceNameValue restartPolicy: restartPolicyValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" restartPolicy: restartPolicyValue securityContext: allowPrivilegeEscalation: true capabilities: add: - addValue drop: - dropValue privileged: true procMount: procMountValue readOnlyRootFilesystem: true runAsGroup: 8 runAsNonRoot: true runAsUser: 4 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue startupProbe: exec: command: - commandValue failureThreshold: 6 grpc: port: 1 service: serviceValue httpGet: host: hostValue httpHeaders: - name: nameValue value: valueValue path: pathValue port: portValue scheme: schemeValue initialDelaySeconds: 2 periodSeconds: 4 successThreshold: 5 tcpSocket: host: hostValue port: portValue terminationGracePeriodSeconds: 7 timeoutSeconds: 3 stdin: true stdinOnce: true terminationMessagePath: terminationMessagePathValue terminationMessagePolicy: terminationMessagePolicyValue tty: true volumeDevices: - devicePath: devicePathValue name: nameValue volumeMounts: - mountPath: mountPathValue mountPropagation: mountPropagationValue name: nameValue readOnly: true subPath: subPathValue subPathExpr: subPathExprValue workingDir: workingDirValue nodeName: nodeNameValue nodeSelector: nodeSelectorKey: nodeSelectorValue os: name: nameValue overhead: overheadKey: "0" preemptionPolicy: preemptionPolicyValue priority: 25 priorityClassName: priorityClassNameValue readinessGates: - conditionType: conditionTypeValue resourceClaims: - name: nameValue source: resourceClaimName: resourceClaimNameValue resourceClaimTemplateName: resourceClaimTemplateNameValue restartPolicy: restartPolicyValue runtimeClassName: runtimeClassNameValue schedulerName: schedulerNameValue schedulingGates: - name: nameValue securityContext: fsGroup: 5 fsGroupChangePolicy: fsGroupChangePolicyValue runAsGroup: 6 runAsNonRoot: true runAsUser: 2 seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue seccompProfile: localhostProfile: localhostProfileValue type: typeValue supplementalGroups: - 4 sysctls: - name: nameValue value: valueValue windowsOptions: gmsaCredentialSpec: gmsaCredentialSpecValue gmsaCredentialSpecName: gmsaCredentialSpecNameValue hostProcess: true runAsUserName: runAsUserNameValue serviceAccount: serviceAccountValue serviceAccountName: serviceAccountNameValue setHostnameAsFQDN: true shareProcessNamespace: true subdomain: subdomainValue terminationGracePeriodSeconds: 4 tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue topologySpreadConstraints: - labelSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue matchLabelKeys: - matchLabelKeysValue maxSkew: 1 minDomains: 5 nodeAffinityPolicy: nodeAffinityPolicyValue nodeTaintsPolicy: nodeTaintsPolicyValue topologyKey: topologyKeyValue whenUnsatisfiable: whenUnsatisfiableValue volumes: - awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue shareName: shareNameValue cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeID: volumeIDValue configMap: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true csi: driver: driverValue fsType: fsTypeValue nodePublishSecretRef: name: nameValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue downwardAPI: defaultMode: 2 items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue emptyDir: medium: mediumValue sizeLimit: "0" ephemeral: volumeClaimTemplate: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: accessModes: - accessModesValue dataSource: apiGroup: apiGroupValue kind: kindValue name: nameValue dataSourceRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue resources: claims: - name: nameValue limits: limitsKey: "0" requests: requestsKey: "0" selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue volumeMode: volumeModeValue volumeName: volumeNameValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true gitRepo: directory: directoryValue repository: repositoryValue revision: revisionValue glusterfs: endpoints: endpointsValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue targetPortal: targetPortalValue name: nameValue nfs: path: pathValue readOnly: true server: serverValue persistentVolumeClaim: claimName: claimNameValue readOnly: true photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue projected: defaultMode: 2 sources: - configMap: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true downwardAPI: items: - fieldRef: apiVersion: apiVersionValue fieldPath: fieldPathValue mode: 4 path: pathValue resourceFieldRef: containerName: containerNameValue divisor: "0" resource: resourceValue secret: items: - key: keyValue mode: 3 path: pathValue name: nameValue optional: true serviceAccountToken: audience: audienceValue expirationSeconds: 2 path: pathValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue secret: defaultMode: 3 items: - key: keyValue mode: 3 path: pathValue optional: true secretName: secretNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: name: nameValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue status: availableReplicas: 5 conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue fullyLabeledReplicas: 2 observedGeneration: 3 readyReplicas: 4 replicas: 1 golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.Scale.json000066400000000000000000000024761453636404600244560ustar00rootroot00000000000000{ "kind": "Scale", "apiVersion": "extensions/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "replicas": 1 }, "status": { "replicas": 1, "selector": { "selectorKey": "selectorValue" }, "targetSelector": "targetSelectorValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.Scale.pb000066400000000000000000000007061453636404600241000ustar00rootroot00000000000000k8s  extensions/v1beta1Scale  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 selectorKey selectorValuetargetSelectorValue"golang-k8s-api-0.29.0/testdata/v1.28.0/extensions.v1beta1.Scale.yaml000066400000000000000000000017221453636404600244400ustar00rootroot00000000000000apiVersion: extensions/v1beta1 kind: Scale metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: replicas: 1 status: replicas: 1 selector: selectorKey: selectorValue targetSelector: targetSelectorValue golang-k8s-api-0.29.0/testdata/v1.28.0/flowcontrol.apiserver.k8s.io.v1alpha1.FlowSchema.json000066400000000000000000000050451453636404600311060ustar00rootroot00000000000000{ "kind": "FlowSchema", "apiVersion": "flowcontrol.apiserver.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "priorityLevelConfiguration": { "name": "nameValue" }, "matchingPrecedence": 2, "distinguisherMethod": { "type": "typeValue" }, "rules": [ { "subjects": [ { "kind": "kindValue", "user": { "name": "nameValue" }, "group": { "name": "nameValue" }, "serviceAccount": { "namespace": "namespaceValue", "name": "nameValue" } } ], "resourceRules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "clusterScope": true, "namespaces": [ "namespacesValue" ] } ], "nonResourceRules": [ { "verbs": [ "verbsValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] } ] }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/flowcontrol.apiserver.k8s.io.v1alpha1.FlowSchema.pb000066400000000000000000000012571453636404600305370ustar00rootroot00000000000000k8s 3 %flowcontrol.apiserver.k8s.io/v1alpha1 FlowSchema  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue typeValue" B kindValue nameValue nameValue" namespaceValue nameValue? verbsValueapiGroupsValueresourcesValue *namespacesValue" verbsValue2nonResourceURLsValue? = typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/flowcontrol.apiserver.k8s.io.v1alpha1.FlowSchema.yaml000066400000000000000000000032031453636404600310710ustar00rootroot00000000000000apiVersion: flowcontrol.apiserver.k8s.io/v1alpha1 kind: FlowSchema metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: distinguisherMethod: type: typeValue matchingPrecedence: 2 priorityLevelConfiguration: name: nameValue rules: - nonResourceRules: - nonResourceURLs: - nonResourceURLsValue verbs: - verbsValue resourceRules: - apiGroups: - apiGroupsValue clusterScope: true namespaces: - namespacesValue resources: - resourcesValue verbs: - verbsValue subjects: - group: name: nameValue kind: kindValue serviceAccount: name: nameValue namespace: namespaceValue user: name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue flowcontrol.apiserver.k8s.io.v1alpha1.PriorityLevelConfiguration.json000066400000000000000000000035171453636404600343420ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0{ "kind": "PriorityLevelConfiguration", "apiVersion": "flowcontrol.apiserver.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "type": "typeValue", "limited": { "assuredConcurrencyShares": 1, "limitResponse": { "type": "typeValue", "queuing": { "queues": 1, "handSize": 2, "queueLengthLimit": 3 } }, "lendablePercent": 3, "borrowingLimitPercent": 4 }, "exempt": { "nominalConcurrencyShares": 1, "lendablePercent": 2 } }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }flowcontrol.apiserver.k8s.io.v1alpha1.PriorityLevelConfiguration.pb000066400000000000000000000010441453636404600337630ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0k8s C %flowcontrol.apiserver.k8s.io/v1alpha1PriorityLevelConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue. typeValue typeValue ? = typeValue statusValue" reasonValue* messageValue"flowcontrol.apiserver.k8s.io.v1alpha1.PriorityLevelConfiguration.yaml000066400000000000000000000025241453636404600343300ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0apiVersion: flowcontrol.apiserver.k8s.io/v1alpha1 kind: PriorityLevelConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: exempt: lendablePercent: 2 nominalConcurrencyShares: 1 limited: assuredConcurrencyShares: 1 borrowingLimitPercent: 4 lendablePercent: 3 limitResponse: queuing: handSize: 2 queueLengthLimit: 3 queues: 1 type: typeValue type: typeValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/v1.28.0/flowcontrol.apiserver.k8s.io.v1beta1.FlowSchema.json000066400000000000000000000050441453636404600307330ustar00rootroot00000000000000{ "kind": "FlowSchema", "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "priorityLevelConfiguration": { "name": "nameValue" }, "matchingPrecedence": 2, "distinguisherMethod": { "type": "typeValue" }, "rules": [ { "subjects": [ { "kind": "kindValue", "user": { "name": "nameValue" }, "group": { "name": "nameValue" }, "serviceAccount": { "namespace": "namespaceValue", "name": "nameValue" } } ], "resourceRules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "clusterScope": true, "namespaces": [ "namespacesValue" ] } ], "nonResourceRules": [ { "verbs": [ "verbsValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] } ] }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/flowcontrol.apiserver.k8s.io.v1beta1.FlowSchema.pb000066400000000000000000000012561453636404600303640ustar00rootroot00000000000000k8s 2 $flowcontrol.apiserver.k8s.io/v1beta1 FlowSchema  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue typeValue" B kindValue nameValue nameValue" namespaceValue nameValue? verbsValueapiGroupsValueresourcesValue *namespacesValue" verbsValue2nonResourceURLsValue? = typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/flowcontrol.apiserver.k8s.io.v1beta1.FlowSchema.yaml000066400000000000000000000032021453636404600307160ustar00rootroot00000000000000apiVersion: flowcontrol.apiserver.k8s.io/v1beta1 kind: FlowSchema metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: distinguisherMethod: type: typeValue matchingPrecedence: 2 priorityLevelConfiguration: name: nameValue rules: - nonResourceRules: - nonResourceURLs: - nonResourceURLsValue verbs: - verbsValue resourceRules: - apiGroups: - apiGroupsValue clusterScope: true namespaces: - namespacesValue resources: - resourcesValue verbs: - verbsValue subjects: - group: name: nameValue kind: kindValue serviceAccount: name: nameValue namespace: namespaceValue user: name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue flowcontrol.apiserver.k8s.io.v1beta1.PriorityLevelConfiguration.json000066400000000000000000000035161453636404600341670ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0{ "kind": "PriorityLevelConfiguration", "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "type": "typeValue", "limited": { "assuredConcurrencyShares": 1, "limitResponse": { "type": "typeValue", "queuing": { "queues": 1, "handSize": 2, "queueLengthLimit": 3 } }, "lendablePercent": 3, "borrowingLimitPercent": 4 }, "exempt": { "nominalConcurrencyShares": 1, "lendablePercent": 2 } }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }flowcontrol.apiserver.k8s.io.v1beta1.PriorityLevelConfiguration.pb000066400000000000000000000010431453636404600336100ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0k8s B $flowcontrol.apiserver.k8s.io/v1beta1PriorityLevelConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue. typeValue typeValue ? = typeValue statusValue" reasonValue* messageValue"flowcontrol.apiserver.k8s.io.v1beta1.PriorityLevelConfiguration.yaml000066400000000000000000000025231453636404600341550ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0apiVersion: flowcontrol.apiserver.k8s.io/v1beta1 kind: PriorityLevelConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: exempt: lendablePercent: 2 nominalConcurrencyShares: 1 limited: assuredConcurrencyShares: 1 borrowingLimitPercent: 4 lendablePercent: 3 limitResponse: queuing: handSize: 2 queueLengthLimit: 3 queues: 1 type: typeValue type: typeValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/v1.28.0/flowcontrol.apiserver.k8s.io.v1beta2.FlowSchema.json000066400000000000000000000050441453636404600307340ustar00rootroot00000000000000{ "kind": "FlowSchema", "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "priorityLevelConfiguration": { "name": "nameValue" }, "matchingPrecedence": 2, "distinguisherMethod": { "type": "typeValue" }, "rules": [ { "subjects": [ { "kind": "kindValue", "user": { "name": "nameValue" }, "group": { "name": "nameValue" }, "serviceAccount": { "namespace": "namespaceValue", "name": "nameValue" } } ], "resourceRules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "clusterScope": true, "namespaces": [ "namespacesValue" ] } ], "nonResourceRules": [ { "verbs": [ "verbsValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] } ] }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/flowcontrol.apiserver.k8s.io.v1beta2.FlowSchema.pb000066400000000000000000000012561453636404600303650ustar00rootroot00000000000000k8s 2 $flowcontrol.apiserver.k8s.io/v1beta2 FlowSchema  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue typeValue" B kindValue nameValue nameValue" namespaceValue nameValue? verbsValueapiGroupsValueresourcesValue *namespacesValue" verbsValue2nonResourceURLsValue? = typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/flowcontrol.apiserver.k8s.io.v1beta2.FlowSchema.yaml000066400000000000000000000032021453636404600307170ustar00rootroot00000000000000apiVersion: flowcontrol.apiserver.k8s.io/v1beta2 kind: FlowSchema metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: distinguisherMethod: type: typeValue matchingPrecedence: 2 priorityLevelConfiguration: name: nameValue rules: - nonResourceRules: - nonResourceURLs: - nonResourceURLsValue verbs: - verbsValue resourceRules: - apiGroups: - apiGroupsValue clusterScope: true namespaces: - namespacesValue resources: - resourcesValue verbs: - verbsValue subjects: - group: name: nameValue kind: kindValue serviceAccount: name: nameValue namespace: namespaceValue user: name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue flowcontrol.apiserver.k8s.io.v1beta2.PriorityLevelConfiguration.json000066400000000000000000000035161453636404600341700ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0{ "kind": "PriorityLevelConfiguration", "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "type": "typeValue", "limited": { "assuredConcurrencyShares": 1, "limitResponse": { "type": "typeValue", "queuing": { "queues": 1, "handSize": 2, "queueLengthLimit": 3 } }, "lendablePercent": 3, "borrowingLimitPercent": 4 }, "exempt": { "nominalConcurrencyShares": 1, "lendablePercent": 2 } }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }flowcontrol.apiserver.k8s.io.v1beta2.PriorityLevelConfiguration.pb000066400000000000000000000010431453636404600336110ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0k8s B $flowcontrol.apiserver.k8s.io/v1beta2PriorityLevelConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue. typeValue typeValue ? = typeValue statusValue" reasonValue* messageValue"flowcontrol.apiserver.k8s.io.v1beta2.PriorityLevelConfiguration.yaml000066400000000000000000000025231453636404600341560ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0apiVersion: flowcontrol.apiserver.k8s.io/v1beta2 kind: PriorityLevelConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: exempt: lendablePercent: 2 nominalConcurrencyShares: 1 limited: assuredConcurrencyShares: 1 borrowingLimitPercent: 4 lendablePercent: 3 limitResponse: queuing: handSize: 2 queueLengthLimit: 3 queues: 1 type: typeValue type: typeValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/v1.28.0/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.json000066400000000000000000000050441453636404600307350ustar00rootroot00000000000000{ "kind": "FlowSchema", "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta3", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "priorityLevelConfiguration": { "name": "nameValue" }, "matchingPrecedence": 2, "distinguisherMethod": { "type": "typeValue" }, "rules": [ { "subjects": [ { "kind": "kindValue", "user": { "name": "nameValue" }, "group": { "name": "nameValue" }, "serviceAccount": { "namespace": "namespaceValue", "name": "nameValue" } } ], "resourceRules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "clusterScope": true, "namespaces": [ "namespacesValue" ] } ], "nonResourceRules": [ { "verbs": [ "verbsValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] } ] }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.pb000066400000000000000000000012561453636404600303660ustar00rootroot00000000000000k8s 2 $flowcontrol.apiserver.k8s.io/v1beta3 FlowSchema  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue nameValue typeValue" B kindValue nameValue nameValue" namespaceValue nameValue? verbsValueapiGroupsValueresourcesValue *namespacesValue" verbsValue2nonResourceURLsValue? = typeValue statusValue" reasonValue* messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.yaml000066400000000000000000000032021453636404600307200ustar00rootroot00000000000000apiVersion: flowcontrol.apiserver.k8s.io/v1beta3 kind: FlowSchema metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: distinguisherMethod: type: typeValue matchingPrecedence: 2 priorityLevelConfiguration: name: nameValue rules: - nonResourceRules: - nonResourceURLs: - nonResourceURLsValue verbs: - verbsValue resourceRules: - apiGroups: - apiGroupsValue clusterScope: true namespaces: - namespacesValue resources: - resourcesValue verbs: - verbsValue subjects: - group: name: nameValue kind: kindValue serviceAccount: name: nameValue namespace: namespaceValue user: name: nameValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue flowcontrol.apiserver.k8s.io.v1beta3.PriorityLevelConfiguration.json000066400000000000000000000035161453636404600341710ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0{ "kind": "PriorityLevelConfiguration", "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta3", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "type": "typeValue", "limited": { "nominalConcurrencyShares": 1, "limitResponse": { "type": "typeValue", "queuing": { "queues": 1, "handSize": 2, "queueLengthLimit": 3 } }, "lendablePercent": 3, "borrowingLimitPercent": 4 }, "exempt": { "nominalConcurrencyShares": 1, "lendablePercent": 2 } }, "status": { "conditions": [ { "type": "typeValue", "status": "statusValue", "lastTransitionTime": "2003-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }flowcontrol.apiserver.k8s.io.v1beta3.PriorityLevelConfiguration.pb000066400000000000000000000010431453636404600336120ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0k8s B $flowcontrol.apiserver.k8s.io/v1beta3PriorityLevelConfiguration  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue. typeValue typeValue ? = typeValue statusValue" reasonValue* messageValue"flowcontrol.apiserver.k8s.io.v1beta3.PriorityLevelConfiguration.yaml000066400000000000000000000025231453636404600341570ustar00rootroot00000000000000golang-k8s-api-0.29.0/testdata/v1.28.0apiVersion: flowcontrol.apiserver.k8s.io/v1beta3 kind: PriorityLevelConfiguration metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: exempt: lendablePercent: 2 nominalConcurrencyShares: 1 limited: borrowingLimitPercent: 4 lendablePercent: 3 limitResponse: queuing: handSize: 2 queueLengthLimit: 3 queues: 1 type: typeValue nominalConcurrencyShares: 1 type: typeValue status: conditions: - lastTransitionTime: "2003-01-01T01:01:01Z" message: messageValue reason: reasonValue status: statusValue type: typeValue golang-k8s-api-0.29.0/testdata/v1.28.0/imagepolicy.k8s.io.v1alpha1.ImageReview.json000066400000000000000000000027671453636404600272250ustar00rootroot00000000000000{ "kind": "ImageReview", "apiVersion": "imagepolicy.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "containers": [ { "image": "imageValue" } ], "annotations": { "annotationsKey": "annotationsValue" }, "namespace": "namespaceValue" }, "status": { "allowed": true, "reason": "reasonValue", "auditAnnotations": { "auditAnnotationsKey": "auditAnnotationsValue" } } }golang-k8s-api-0.29.0/testdata/v1.28.0/imagepolicy.k8s.io.v1alpha1.ImageReview.pb000066400000000000000000000010351453636404600266400ustar00rootroot00000000000000k8s * imagepolicy.k8s.io/v1alpha1 ImageReview  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueB imageValue" annotationsKeyannotationsValuenamespaceValue= reasonValue, auditAnnotationsKeyauditAnnotationsValue"golang-k8s-api-0.29.0/testdata/v1.28.0/imagepolicy.k8s.io.v1alpha1.ImageReview.yaml000066400000000000000000000021211453636404600271760ustar00rootroot00000000000000apiVersion: imagepolicy.k8s.io/v1alpha1 kind: ImageReview metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: annotations: annotationsKey: annotationsValue containers: - image: imageValue namespace: namespaceValue status: allowed: true auditAnnotations: auditAnnotationsKey: auditAnnotationsValue reason: reasonValue golang-k8s-api-0.29.0/testdata/v1.28.0/internal.apiserver.k8s.io.v1alpha1.StorageVersion.json000066400000000000000000000034431453636404600312740ustar00rootroot00000000000000{ "kind": "StorageVersion", "apiVersion": "internal.apiserver.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": {}, "status": { "storageVersions": [ { "apiServerID": "apiServerIDValue", "encodingVersion": "encodingVersionValue", "decodableVersions": [ "decodableVersionsValue" ], "servedVersions": [ "servedVersionsValue" ] } ], "commonEncodingVersion": "commonEncodingVersionValue", "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/internal.apiserver.k8s.io.v1alpha1.StorageVersion.pb000066400000000000000000000011351453636404600307200ustar00rootroot00000000000000k8s 4 "internal.apiserver.k8s.io/v1alpha1StorageVersion  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue U apiServerIDValueencodingVersionValuedecodableVersionsValue"servedVersionsValuecommonEncodingVersionValue? typeValue statusValue"* reasonValue2 messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/internal.apiserver.k8s.io.v1alpha1.StorageVersion.yaml000066400000000000000000000024531453636404600312650ustar00rootroot00000000000000apiVersion: internal.apiserver.k8s.io/v1alpha1 kind: StorageVersion metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: {} status: commonEncodingVersion: commonEncodingVersionValue conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue storageVersions: - apiServerID: apiServerIDValue decodableVersions: - decodableVersionsValue encodingVersion: encodingVersionValue servedVersions: - servedVersionsValue golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1.Ingress.json000066400000000000000000000051121453636404600252140ustar00rootroot00000000000000{ "kind": "Ingress", "apiVersion": "networking.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "ingressClassName": "ingressClassNameValue", "defaultBackend": { "service": { "name": "nameValue", "port": { "name": "nameValue", "number": 2 } }, "resource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }, "tls": [ { "hosts": [ "hostsValue" ], "secretName": "secretNameValue" } ], "rules": [ { "host": "hostValue", "http": { "paths": [ { "path": "pathValue", "pathType": "pathTypeValue", "backend": { "service": { "name": "nameValue", "port": { "name": "nameValue", "number": 2 } }, "resource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } } } ] } } ] }, "status": { "loadBalancer": { "ingress": [ { "ip": "ipValue", "hostname": "hostnameValue", "ports": [ { "port": 1, "protocol": "protocolValue", "error": "errorValue" } ] } ] } } }golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1.Ingress.pb000066400000000000000000000012741453636404600246510ustar00rootroot00000000000000k8s  networking.k8s.io/v1Ingress  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue C% apiGroupValue kindValue nameValue" nameValue nameValue hostsValuesecretNameValuep hostValuec a _ pathValueC% apiGroupValue kindValue nameValue" nameValue nameValue pathTypeValue"ingressClassNameValue; 9 7 ipValue hostnameValue" protocolValue errorValue"golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1.Ingress.yaml000066400000000000000000000032411453636404600252060ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: defaultBackend: resource: apiGroup: apiGroupValue kind: kindValue name: nameValue service: name: nameValue port: name: nameValue number: 2 ingressClassName: ingressClassNameValue rules: - host: hostValue http: paths: - backend: resource: apiGroup: apiGroupValue kind: kindValue name: nameValue service: name: nameValue port: name: nameValue number: 2 path: pathValue pathType: pathTypeValue tls: - hosts: - hostsValue secretName: secretNameValue status: loadBalancer: ingress: - hostname: hostnameValue ip: ipValue ports: - error: errorValue port: 1 protocol: protocolValue golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1.IngressClass.json000066400000000000000000000025761453636404600262150ustar00rootroot00000000000000{ "kind": "IngressClass", "apiVersion": "networking.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "controller": "controllerValue", "parameters": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "scope": "scopeValue", "namespace": "namespaceValue" } } }golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1.IngressClass.pb000066400000000000000000000007521453636404600256370ustar00rootroot00000000000000k8s $ networking.k8s.io/v1 IngressClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueT controllerValueA apiGroupValue kindValue nameValue" scopeValue*namespaceValue"golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1.IngressClass.yaml000066400000000000000000000020121453636404600261670ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1 kind: IngressClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: controller: controllerValue parameters: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue scope: scopeValue golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1.NetworkPolicy.json000066400000000000000000000075261453636404600264260ustar00rootroot00000000000000{ "kind": "NetworkPolicy", "apiVersion": "networking.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ingress": [ { "ports": [ { "protocol": "protocolValue", "port": "portValue", "endPort": 3 } ], "from": [ { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ipBlock": { "cidr": "cidrValue", "except": [ "exceptValue" ] } } ] } ], "egress": [ { "ports": [ { "protocol": "protocolValue", "port": "portValue", "endPort": 3 } ], "to": [ { "podSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "namespaceSelector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "ipBlock": { "cidr": "cidrValue", "except": [ "exceptValue" ] } } ] } ], "policyTypes": [ "policyTypesValue" ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1.NetworkPolicy.pb000066400000000000000000000016701453636404600260500ustar00rootroot00000000000000k8s % networking.k8s.io/v1 NetworkPolicy  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue " protocolValue portValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue cidrValue exceptValue " protocolValue portValue L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue cidrValue exceptValue"policyTypesValue"golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1.NetworkPolicy.yaml000066400000000000000000000043551453636404600264140ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: egress: - ports: - endPort: 3 port: portValue protocol: protocolValue to: - ipBlock: cidr: cidrValue except: - exceptValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue ingress: - from: - ipBlock: cidr: cidrValue except: - exceptValue namespaceSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue ports: - endPort: 3 port: portValue protocol: protocolValue podSelector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue policyTypes: - policyTypesValue golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1alpha1.IPAddress.after_roundtrip.json000066400000000000000000000025001453636404600317130ustar00rootroot00000000000000{ "kind": "IPAddress", "apiVersion": "networking.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parentRef": { "group": "groupValue", "resource": "resourceValue", "namespace": "namespaceValue", "name": "nameValue" } } }golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1alpha1.IPAddress.after_roundtrip.pb000066400000000000000000000007211453636404600313460ustar00rootroot00000000000000k8s ' networking.k8s.io/v1alpha1 IPAddress  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue8 6 groupValue resourceValuenamespaceValue" nameValue"golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1alpha1.IPAddress.after_roundtrip.yaml000066400000000000000000000017321453636404600317120ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1alpha1 kind: IPAddress metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: parentRef: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1alpha1.IPAddress.json000066400000000000000000000025311453636404600265110ustar00rootroot00000000000000{ "kind": "IPAddress", "apiVersion": "networking.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "parentRef": { "group": "groupValue", "resource": "resourceValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue" } } }golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1alpha1.IPAddress.pb000066400000000000000000000007331453636404600261430ustar00rootroot00000000000000k8s ' networking.k8s.io/v1alpha1 IPAddress  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueB @ groupValue resourceValuenamespaceValue" nameValue*uidValue"golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1alpha1.IPAddress.yaml000066400000000000000000000017541453636404600265100ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1alpha1 kind: IPAddress metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: parentRef: group: groupValue name: nameValue namespace: namespaceValue resource: resourceValue uid: uidValue golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1beta1.Ingress.json000066400000000000000000000046461453636404600261440ustar00rootroot00000000000000{ "kind": "Ingress", "apiVersion": "networking.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "ingressClassName": "ingressClassNameValue", "backend": { "serviceName": "serviceNameValue", "servicePort": "servicePortValue", "resource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }, "tls": [ { "hosts": [ "hostsValue" ], "secretName": "secretNameValue" } ], "rules": [ { "host": "hostValue", "http": { "paths": [ { "path": "pathValue", "pathType": "pathTypeValue", "backend": { "serviceName": "serviceNameValue", "servicePort": "servicePortValue", "resource": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } } } ] } } ] }, "status": { "loadBalancer": { "ingress": [ { "ip": "ipValue", "hostname": "hostnameValue", "ports": [ { "port": 1, "protocol": "protocolValue", "error": "errorValue" } ] } ] } } }golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1beta1.Ingress.pb000066400000000000000000000013351453636404600255640ustar00rootroot00000000000000k8s $ networking.k8s.io/v1beta1Ingress  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue Q serviceNameValueservicePortValue% apiGroupValue kindValue nameValue hostsValuesecretNameValue~ hostValueq o m pathValueQ serviceNameValueservicePortValue% apiGroupValue kindValue nameValue pathTypeValue"ingressClassNameValue; 9 7 ipValue hostnameValue" protocolValue errorValue"golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1beta1.Ingress.yaml000066400000000000000000000031431453636404600261240ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: backend: resource: apiGroup: apiGroupValue kind: kindValue name: nameValue serviceName: serviceNameValue servicePort: servicePortValue ingressClassName: ingressClassNameValue rules: - host: hostValue http: paths: - backend: resource: apiGroup: apiGroupValue kind: kindValue name: nameValue serviceName: serviceNameValue servicePort: servicePortValue path: pathValue pathType: pathTypeValue tls: - hosts: - hostsValue secretName: secretNameValue status: loadBalancer: ingress: - hostname: hostnameValue ip: ipValue ports: - error: errorValue port: 1 protocol: protocolValue golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1beta1.IngressClass.json000066400000000000000000000026031453636404600271210ustar00rootroot00000000000000{ "kind": "IngressClass", "apiVersion": "networking.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "controller": "controllerValue", "parameters": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "scope": "scopeValue", "namespace": "namespaceValue" } } }golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1beta1.IngressClass.pb000066400000000000000000000007571453636404600265610ustar00rootroot00000000000000k8s ) networking.k8s.io/v1beta1 IngressClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueT controllerValueA apiGroupValue kindValue nameValue" scopeValue*namespaceValue"golang-k8s-api-0.29.0/testdata/v1.28.0/networking.k8s.io.v1beta1.IngressClass.yaml000066400000000000000000000020171453636404600271110ustar00rootroot00000000000000apiVersion: networking.k8s.io/v1beta1 kind: IngressClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: controller: controllerValue parameters: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue scope: scopeValue golang-k8s-api-0.29.0/testdata/v1.28.0/node.k8s.io.v1.RuntimeClass.json000066400000000000000000000030341453636404600247520ustar00rootroot00000000000000{ "kind": "RuntimeClass", "apiVersion": "node.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "handler": "handlerValue", "overhead": { "podFixed": { "podFixedKey": "0" } }, "scheduling": { "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/node.k8s.io.v1.RuntimeClass.pb000066400000000000000000000010201453636404600243730ustar00rootroot00000000000000k8s  node.k8s.io/v1 RuntimeClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue handlerValue  podFixedKey 0"\ $ nodeSelectorKeynodeSelectorValue4 keyValue operatorValue valueValue" effectValue("golang-k8s-api-0.29.0/testdata/v1.28.0/node.k8s.io.v1.RuntimeClass.yaml000066400000000000000000000021421453636404600247420ustar00rootroot00000000000000apiVersion: node.k8s.io/v1 handler: handlerValue kind: RuntimeClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue overhead: podFixed: podFixedKey: "0" scheduling: nodeSelector: nodeSelectorKey: nodeSelectorValue tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue golang-k8s-api-0.29.0/testdata/v1.28.0/node.k8s.io.v1alpha1.RuntimeClass.json000066400000000000000000000031501453636404600260400ustar00rootroot00000000000000{ "kind": "RuntimeClass", "apiVersion": "node.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "runtimeHandler": "runtimeHandlerValue", "overhead": { "podFixed": { "podFixedKey": "0" } }, "scheduling": { "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ] } } }golang-k8s-api-0.29.0/testdata/v1.28.0/node.k8s.io.v1alpha1.RuntimeClass.pb000066400000000000000000000010401453636404600254640ustar00rootroot00000000000000k8s $ node.k8s.io/v1alpha1 RuntimeClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue runtimeHandlerValue  podFixedKey 0\ $ nodeSelectorKeynodeSelectorValue4 keyValue operatorValue valueValue" effectValue("golang-k8s-api-0.29.0/testdata/v1.28.0/node.k8s.io.v1alpha1.RuntimeClass.yaml000066400000000000000000000022261453636404600260340ustar00rootroot00000000000000apiVersion: node.k8s.io/v1alpha1 kind: RuntimeClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: overhead: podFixed: podFixedKey: "0" runtimeHandler: runtimeHandlerValue scheduling: nodeSelector: nodeSelectorKey: nodeSelectorValue tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue golang-k8s-api-0.29.0/testdata/v1.28.0/node.k8s.io.v1beta1.RuntimeClass.json000066400000000000000000000030411453636404600256650ustar00rootroot00000000000000{ "kind": "RuntimeClass", "apiVersion": "node.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "handler": "handlerValue", "overhead": { "podFixed": { "podFixedKey": "0" } }, "scheduling": { "nodeSelector": { "nodeSelectorKey": "nodeSelectorValue" }, "tolerations": [ { "key": "keyValue", "operator": "operatorValue", "value": "valueValue", "effect": "effectValue", "tolerationSeconds": 5 } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/node.k8s.io.v1beta1.RuntimeClass.pb000066400000000000000000000010251453636404600253150ustar00rootroot00000000000000k8s # node.k8s.io/v1beta1 RuntimeClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue handlerValue  podFixedKey 0"\ $ nodeSelectorKeynodeSelectorValue4 keyValue operatorValue valueValue" effectValue("golang-k8s-api-0.29.0/testdata/v1.28.0/node.k8s.io.v1beta1.RuntimeClass.yaml000066400000000000000000000021471453636404600256640ustar00rootroot00000000000000apiVersion: node.k8s.io/v1beta1 handler: handlerValue kind: RuntimeClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue overhead: podFixed: podFixedKey: "0" scheduling: nodeSelector: nodeSelectorKey: nodeSelectorValue tolerations: - effect: effectValue key: keyValue operator: operatorValue tolerationSeconds: 5 value: valueValue golang-k8s-api-0.29.0/testdata/v1.28.0/policy.v1.Eviction.json000066400000000000000000000026361453636404600233700ustar00rootroot00000000000000{ "kind": "Eviction", "apiVersion": "policy/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "deleteOptions": { "gracePeriodSeconds": 1, "preconditions": { "uid": "uidValue", "resourceVersion": "resourceVersionValue" }, "orphanDependents": true, "propagationPolicy": "propagationPolicyValue", "dryRun": [ "dryRunValue" ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/policy.v1.Eviction.pb000066400000000000000000000007221453636404600230120ustar00rootroot00000000000000k8s  policy/v1Eviction  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK uidValueresourceVersionValue"propagationPolicyValue* dryRunValue"golang-k8s-api-0.29.0/testdata/v1.28.0/policy.v1.Eviction.yaml000066400000000000000000000020441453636404600233520ustar00rootroot00000000000000apiVersion: policy/v1 deleteOptions: dryRun: - dryRunValue gracePeriodSeconds: 1 orphanDependents: true preconditions: resourceVersion: resourceVersionValue uid: uidValue propagationPolicy: propagationPolicyValue kind: Eviction metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue golang-k8s-api-0.29.0/testdata/v1.28.0/policy.v1.PodDisruptionBudget.json000066400000000000000000000040561453636404600255440ustar00rootroot00000000000000{ "kind": "PodDisruptionBudget", "apiVersion": "policy/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "minAvailable": "minAvailableValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "maxUnavailable": "maxUnavailableValue", "unhealthyPodEvictionPolicy": "unhealthyPodEvictionPolicyValue" }, "status": { "observedGeneration": 1, "disruptedPods": { "disruptedPodsKey": null }, "disruptionsAllowed": 3, "currentHealthy": 4, "desiredHealthy": 5, "expectedPods": 6, "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/policy.v1.PodDisruptionBudget.pb000066400000000000000000000012311453636404600251640ustar00rootroot00000000000000k8s policy/v1PodDisruptionBudget  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue minAvailableValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuemaxUnavailableValue"unhealthyPodEvictionPolicyValuea disruptedPodsKey (0:? typeValue statusValue"* reasonValue2 messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/policy.v1.PodDisruptionBudget.yaml000066400000000000000000000027511453636404600255350ustar00rootroot00000000000000apiVersion: policy/v1 kind: PodDisruptionBudget metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: maxUnavailable: maxUnavailableValue minAvailable: minAvailableValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicyValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue currentHealthy: 4 desiredHealthy: 5 disruptedPods: disruptedPodsKey: null disruptionsAllowed: 3 expectedPods: 6 observedGeneration: 1 golang-k8s-api-0.29.0/testdata/v1.28.0/policy.v1beta1.Eviction.json000066400000000000000000000026431453636404600243030ustar00rootroot00000000000000{ "kind": "Eviction", "apiVersion": "policy/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "deleteOptions": { "gracePeriodSeconds": 1, "preconditions": { "uid": "uidValue", "resourceVersion": "resourceVersionValue" }, "orphanDependents": true, "propagationPolicy": "propagationPolicyValue", "dryRun": [ "dryRunValue" ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/policy.v1beta1.Eviction.pb000066400000000000000000000007271453636404600237340ustar00rootroot00000000000000k8s  policy/v1beta1Eviction  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueK uidValueresourceVersionValue"propagationPolicyValue* dryRunValue"golang-k8s-api-0.29.0/testdata/v1.28.0/policy.v1beta1.Eviction.yaml000066400000000000000000000020511453636404600242650ustar00rootroot00000000000000apiVersion: policy/v1beta1 deleteOptions: dryRun: - dryRunValue gracePeriodSeconds: 1 orphanDependents: true preconditions: resourceVersion: resourceVersionValue uid: uidValue propagationPolicy: propagationPolicyValue kind: Eviction metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue golang-k8s-api-0.29.0/testdata/v1.28.0/policy.v1beta1.PodDisruptionBudget.json000066400000000000000000000040631453636404600264570ustar00rootroot00000000000000{ "kind": "PodDisruptionBudget", "apiVersion": "policy/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "minAvailable": "minAvailableValue", "selector": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "maxUnavailable": "maxUnavailableValue", "unhealthyPodEvictionPolicy": "unhealthyPodEvictionPolicyValue" }, "status": { "observedGeneration": 1, "disruptedPods": { "disruptedPodsKey": null }, "disruptionsAllowed": 3, "currentHealthy": 4, "desiredHealthy": 5, "expectedPods": 6, "conditions": [ { "type": "typeValue", "status": "statusValue", "observedGeneration": 3, "lastTransitionTime": "2004-01-01T01:01:01Z", "reason": "reasonValue", "message": "messageValue" } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/policy.v1beta1.PodDisruptionBudget.pb000066400000000000000000000012361453636404600261060ustar00rootroot00000000000000k8s % policy/v1beta1PodDisruptionBudget  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue minAvailableValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuemaxUnavailableValue"unhealthyPodEvictionPolicyValuea disruptedPodsKey (0:? typeValue statusValue"* reasonValue2 messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/policy.v1beta1.PodDisruptionBudget.yaml000066400000000000000000000027561453636404600264570ustar00rootroot00000000000000apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: maxUnavailable: maxUnavailableValue minAvailable: minAvailableValue selector: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicyValue status: conditions: - lastTransitionTime: "2004-01-01T01:01:01Z" message: messageValue observedGeneration: 3 reason: reasonValue status: statusValue type: typeValue currentHealthy: 4 desiredHealthy: 5 disruptedPods: disruptedPodsKey: null disruptionsAllowed: 3 expectedPods: 6 observedGeneration: 1 golang-k8s-api-0.29.0/testdata/v1.28.0/policy.v1beta1.PodSecurityPolicy.json000066400000000000000000000061351453636404600261550ustar00rootroot00000000000000{ "kind": "PodSecurityPolicy", "apiVersion": "policy/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "privileged": true, "defaultAddCapabilities": [ "defaultAddCapabilitiesValue" ], "requiredDropCapabilities": [ "requiredDropCapabilitiesValue" ], "allowedCapabilities": [ "allowedCapabilitiesValue" ], "volumes": [ "volumesValue" ], "hostNetwork": true, "hostPorts": [ { "min": 1, "max": 2 } ], "hostPID": true, "hostIPC": true, "seLinux": { "rule": "ruleValue", "seLinuxOptions": { "user": "userValue", "role": "roleValue", "type": "typeValue", "level": "levelValue" } }, "runAsUser": { "rule": "ruleValue", "ranges": [ { "min": 1, "max": 2 } ] }, "runAsGroup": { "rule": "ruleValue", "ranges": [ { "min": 1, "max": 2 } ] }, "supplementalGroups": { "rule": "ruleValue", "ranges": [ { "min": 1, "max": 2 } ] }, "fsGroup": { "rule": "ruleValue", "ranges": [ { "min": 1, "max": 2 } ] }, "readOnlyRootFilesystem": true, "defaultAllowPrivilegeEscalation": true, "allowPrivilegeEscalation": true, "allowedHostPaths": [ { "pathPrefix": "pathPrefixValue", "readOnly": true } ], "allowedFlexVolumes": [ { "driver": "driverValue" } ], "allowedCSIDrivers": [ { "name": "nameValue" } ], "allowedUnsafeSysctls": [ "allowedUnsafeSysctlsValue" ], "forbiddenSysctls": [ "forbiddenSysctlsValue" ], "allowedProcMountTypes": [ "allowedProcMountTypesValue" ], "runtimeClass": { "allowedRuntimeClassNames": [ "allowedRuntimeClassNamesValue" ], "defaultRuntimeClassName": "defaultRuntimeClassNameValue" } } }golang-k8s-api-0.29.0/testdata/v1.28.0/policy.v1beta1.PodSecurityPolicy.pb000066400000000000000000000015351453636404600256040ustar00rootroot00000000000000k8s # policy/v1beta1PodSecurityPolicy  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValuedefaultAddCapabilitiesValuerequiredDropCapabilitiesValue"allowedCapabilitiesValue* volumesValue0:@HR: ruleValue- userValue roleValue typeValue" levelValueZ ruleValueb ruleValuej ruleValuepx pathPrefixValue driverValueallowedUnsafeSysctlsValueforbiddenSysctlsValueallowedProcMountTypesValue ruleValue nameValue= allowedRuntimeClassNamesValuedefaultRuntimeClassNameValue"golang-k8s-api-0.29.0/testdata/v1.28.0/policy.v1beta1.PodSecurityPolicy.yaml000066400000000000000000000041661453636404600261500ustar00rootroot00000000000000apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: allowPrivilegeEscalation: true allowedCSIDrivers: - name: nameValue allowedCapabilities: - allowedCapabilitiesValue allowedFlexVolumes: - driver: driverValue allowedHostPaths: - pathPrefix: pathPrefixValue readOnly: true allowedProcMountTypes: - allowedProcMountTypesValue allowedUnsafeSysctls: - allowedUnsafeSysctlsValue defaultAddCapabilities: - defaultAddCapabilitiesValue defaultAllowPrivilegeEscalation: true forbiddenSysctls: - forbiddenSysctlsValue fsGroup: ranges: - max: 2 min: 1 rule: ruleValue hostIPC: true hostNetwork: true hostPID: true hostPorts: - max: 2 min: 1 privileged: true readOnlyRootFilesystem: true requiredDropCapabilities: - requiredDropCapabilitiesValue runAsGroup: ranges: - max: 2 min: 1 rule: ruleValue runAsUser: ranges: - max: 2 min: 1 rule: ruleValue runtimeClass: allowedRuntimeClassNames: - allowedRuntimeClassNamesValue defaultRuntimeClassName: defaultRuntimeClassNameValue seLinux: rule: ruleValue seLinuxOptions: level: levelValue role: roleValue type: typeValue user: userValue supplementalGroups: ranges: - max: 2 min: 1 rule: ruleValue volumes: - volumesValue golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1.ClusterRole.json000066400000000000000000000035041453636404600274670ustar00rootroot00000000000000{ "kind": "ClusterRole", "apiVersion": "rbac.authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "rules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ], "aggregationRule": { "clusterRoleSelectors": [ { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1.ClusterRole.pb000066400000000000000000000011031453636404600271100ustar00rootroot00000000000000k8s + rbac.authorization.k8s.io/v1 ClusterRole  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueV verbsValueapiGroupsValueresourcesValue"resourceNamesValue*nonResourceURLsValueN L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue"golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1.ClusterRole.yaml000066400000000000000000000023451453636404600274620ustar00rootroot00000000000000aggregationRule: clusterRoleSelectors: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue rules: - apiGroups: - apiGroupsValue nonResourceURLs: - nonResourceURLsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1.ClusterRoleBinding.json000066400000000000000000000026461453636404600307700ustar00rootroot00000000000000{ "kind": "ClusterRoleBinding", "apiVersion": "rbac.authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subjects": [ { "kind": "kindValue", "apiGroup": "apiGroupValue", "name": "nameValue", "namespace": "namespaceValue" } ], "roleRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1.ClusterRoleBinding.pb000066400000000000000000000010001453636404600303770ustar00rootroot00000000000000k8s 2 rbac.authorization.k8s.io/v1ClusterRoleBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 kindValue apiGroupValue nameValue"namespaceValue% apiGroupValue kindValue nameValue"golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1.ClusterRoleBinding.yaml000066400000000000000000000020311453636404600307450ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue roleRef: apiGroup: apiGroupValue kind: kindValue name: nameValue subjects: - apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1.Role.json000066400000000000000000000027201453636404600261240ustar00rootroot00000000000000{ "kind": "Role", "apiVersion": "rbac.authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "rules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] }golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1.Role.pb000066400000000000000000000007541453636404600255610ustar00rootroot00000000000000k8s $ rbac.authorization.k8s.io/v1Role  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueV verbsValueapiGroupsValueresourcesValue"resourceNamesValue*nonResourceURLsValue"golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1.Role.yaml000066400000000000000000000020231453636404600261110ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue rules: - apiGroups: - apiGroupsValue nonResourceURLs: - nonResourceURLsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1.RoleBinding.json000066400000000000000000000026371453636404600274260ustar00rootroot00000000000000{ "kind": "RoleBinding", "apiVersion": "rbac.authorization.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subjects": [ { "kind": "kindValue", "apiGroup": "apiGroupValue", "name": "nameValue", "namespace": "namespaceValue" } ], "roleRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1.RoleBinding.pb000066400000000000000000000007711453636404600270530ustar00rootroot00000000000000k8s + rbac.authorization.k8s.io/v1 RoleBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 kindValue apiGroupValue nameValue"namespaceValue% apiGroupValue kindValue nameValue"golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1.RoleBinding.yaml000066400000000000000000000020221453636404600274030ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue roleRef: apiGroup: apiGroupValue kind: kindValue name: nameValue subjects: - apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.json000066400000000000000000000035121453636404600305550ustar00rootroot00000000000000{ "kind": "ClusterRole", "apiVersion": "rbac.authorization.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "rules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ], "aggregationRule": { "clusterRoleSelectors": [ { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.pb000066400000000000000000000011111453636404600301760ustar00rootroot00000000000000k8s 1 "rbac.authorization.k8s.io/v1alpha1 ClusterRole  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueV verbsValueapiGroupsValue"resourcesValue*resourceNamesValue2nonResourceURLsValueN L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue"golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.yaml000066400000000000000000000023531453636404600305500ustar00rootroot00000000000000aggregationRule: clusterRoleSelectors: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue apiVersion: rbac.authorization.k8s.io/v1alpha1 kind: ClusterRole metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue rules: - apiGroups: - apiGroupsValue nonResourceURLs: - nonResourceURLsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.json000066400000000000000000000026601453636404600320530ustar00rootroot00000000000000{ "kind": "ClusterRoleBinding", "apiVersion": "rbac.authorization.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subjects": [ { "kind": "kindValue", "apiVersion": "apiVersionValue", "name": "nameValue", "namespace": "namespaceValue" } ], "roleRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.pb000066400000000000000000000010101453636404600314670ustar00rootroot00000000000000k8s 8 "rbac.authorization.k8s.io/v1alpha1ClusterRoleBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue7 kindValueapiVersionValue nameValue"namespaceValue% apiGroupValue kindValue nameValue"golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.yaml000066400000000000000000000020431453636404600320370ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1alpha1 kind: ClusterRoleBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue roleRef: apiGroup: apiGroupValue kind: kindValue name: nameValue subjects: - apiVersion: apiVersionValue kind: kindValue name: nameValue namespace: namespaceValue golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1alpha1.Role.json000066400000000000000000000027261453636404600272210ustar00rootroot00000000000000{ "kind": "Role", "apiVersion": "rbac.authorization.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "rules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] }golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1alpha1.Role.pb000066400000000000000000000007621453636404600266470ustar00rootroot00000000000000k8s * "rbac.authorization.k8s.io/v1alpha1Role  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueV verbsValueapiGroupsValue"resourcesValue*resourceNamesValue2nonResourceURLsValue"golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1alpha1.Role.yaml000066400000000000000000000020311453636404600271770ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1alpha1 kind: Role metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue rules: - apiGroups: - apiGroupsValue nonResourceURLs: - nonResourceURLsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.json000066400000000000000000000026511453636404600305110ustar00rootroot00000000000000{ "kind": "RoleBinding", "apiVersion": "rbac.authorization.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subjects": [ { "kind": "kindValue", "apiVersion": "apiVersionValue", "name": "nameValue", "namespace": "namespaceValue" } ], "roleRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.pb000066400000000000000000000010011453636404600301250ustar00rootroot00000000000000k8s 1 "rbac.authorization.k8s.io/v1alpha1 RoleBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue7 kindValueapiVersionValue nameValue"namespaceValue% apiGroupValue kindValue nameValue"golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.yaml000066400000000000000000000020341453636404600304750ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1alpha1 kind: RoleBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue roleRef: apiGroup: apiGroupValue kind: kindValue name: nameValue subjects: - apiVersion: apiVersionValue kind: kindValue name: nameValue namespace: namespaceValue golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.json000066400000000000000000000035111453636404600304020ustar00rootroot00000000000000{ "kind": "ClusterRole", "apiVersion": "rbac.authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "rules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ], "aggregationRule": { "clusterRoleSelectors": [ { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.pb000066400000000000000000000011101453636404600300230ustar00rootroot00000000000000k8s 0 !rbac.authorization.k8s.io/v1beta1 ClusterRole  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueV verbsValueapiGroupsValueresourcesValue"resourceNamesValue*nonResourceURLsValueN L " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValue"golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.yaml000066400000000000000000000023521453636404600303750ustar00rootroot00000000000000aggregationRule: clusterRoleSelectors: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRole metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue rules: - apiGroups: - apiGroupsValue nonResourceURLs: - nonResourceURLsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.json000066400000000000000000000026531453636404600317030ustar00rootroot00000000000000{ "kind": "ClusterRoleBinding", "apiVersion": "rbac.authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subjects": [ { "kind": "kindValue", "apiGroup": "apiGroupValue", "name": "nameValue", "namespace": "namespaceValue" } ], "roleRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.pb000066400000000000000000000010051453636404600313210ustar00rootroot00000000000000k8s 7 !rbac.authorization.k8s.io/v1beta1ClusterRoleBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 kindValue apiGroupValue nameValue"namespaceValue% apiGroupValue kindValue nameValue"golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.yaml000066400000000000000000000020361453636404600316670ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRoleBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue roleRef: apiGroup: apiGroupValue kind: kindValue name: nameValue subjects: - apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1beta1.Role.json000066400000000000000000000027251453636404600270460ustar00rootroot00000000000000{ "kind": "Role", "apiVersion": "rbac.authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "rules": [ { "verbs": [ "verbsValue" ], "apiGroups": [ "apiGroupsValue" ], "resources": [ "resourcesValue" ], "resourceNames": [ "resourceNamesValue" ], "nonResourceURLs": [ "nonResourceURLsValue" ] } ] }golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1beta1.Role.pb000066400000000000000000000007611453636404600264740ustar00rootroot00000000000000k8s ) !rbac.authorization.k8s.io/v1beta1Role  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueV verbsValueapiGroupsValueresourcesValue"resourceNamesValue*nonResourceURLsValue"golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1beta1.Role.yaml000066400000000000000000000020301453636404600270240ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1beta1 kind: Role metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue rules: - apiGroups: - apiGroupsValue nonResourceURLs: - nonResourceURLsValue resourceNames: - resourceNamesValue resources: - resourcesValue verbs: - verbsValue golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1beta1.RoleBinding.json000066400000000000000000000026441453636404600303410ustar00rootroot00000000000000{ "kind": "RoleBinding", "apiVersion": "rbac.authorization.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "subjects": [ { "kind": "kindValue", "apiGroup": "apiGroupValue", "name": "nameValue", "namespace": "namespaceValue" } ], "roleRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" } }golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1beta1.RoleBinding.pb000066400000000000000000000007761453636404600277750ustar00rootroot00000000000000k8s 0 !rbac.authorization.k8s.io/v1beta1 RoleBinding  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue5 kindValue apiGroupValue nameValue"namespaceValue% apiGroupValue kindValue nameValue"golang-k8s-api-0.29.0/testdata/v1.28.0/rbac.authorization.k8s.io.v1beta1.RoleBinding.yaml000066400000000000000000000020271453636404600303250ustar00rootroot00000000000000apiVersion: rbac.authorization.k8s.io/v1beta1 kind: RoleBinding metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue roleRef: apiGroup: apiGroupValue kind: kindValue name: nameValue subjects: - apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue golang-k8s-api-0.29.0/testdata/v1.28.0/resource.k8s.io.v1alpha2.PodSchedulingContext.json000066400000000000000000000026721453636404600304370ustar00rootroot00000000000000{ "kind": "PodSchedulingContext", "apiVersion": "resource.k8s.io/v1alpha2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "selectedNode": "selectedNodeValue", "potentialNodes": [ "potentialNodesValue" ] }, "status": { "resourceClaims": [ { "name": "nameValue", "unsuitableNodes": [ "unsuitableNodesValue" ] } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/resource.k8s.io.v1alpha2.PodSchedulingContext.pb000066400000000000000000000007571453636404600300710ustar00rootroot00000000000000k8s 0 resource.k8s.io/v1alpha2PodSchedulingContext  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue( selectedNodeValuepotentialNodesValue# ! nameValueunsuitableNodesValue"golang-k8s-api-0.29.0/testdata/v1.28.0/resource.k8s.io.v1alpha2.PodSchedulingContext.yaml000066400000000000000000000020341453636404600304200ustar00rootroot00000000000000apiVersion: resource.k8s.io/v1alpha2 kind: PodSchedulingContext metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: potentialNodes: - potentialNodesValue selectedNode: selectedNodeValue status: resourceClaims: - name: nameValue unsuitableNodes: - unsuitableNodesValue golang-k8s-api-0.29.0/testdata/v1.28.0/resource.k8s.io.v1alpha2.ResourceClaim.json000066400000000000000000000045701453636404600270760ustar00rootroot00000000000000{ "kind": "ResourceClaim", "apiVersion": "resource.k8s.io/v1alpha2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceClassName": "resourceClassNameValue", "parametersRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "allocationMode": "allocationModeValue" }, "status": { "driverName": "driverNameValue", "allocation": { "resourceHandles": [ { "driverName": "driverNameValue", "data": "dataValue" } ], "availableOnNodes": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] }, "shareable": true }, "reservedFor": [ { "apiGroup": "apiGroupValue", "resource": "resourceValue", "name": "nameValue", "uid": "uidValue" } ], "deallocationRequested": true } }golang-k8s-api-0.29.0/testdata/v1.28.0/resource.k8s.io.v1alpha2.ResourceClaim.pb000066400000000000000000000012601453636404600265170ustar00rootroot00000000000000k8s ) resource.k8s.io/v1alpha2 ResourceClaim  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueT resourceClassNameValue% apiGroupValue kindValue nameValueallocationModeValue driverNameValuet  driverNameValue dataValueR P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue3 apiGroupValue resourceValue" nameValue*uidValue "golang-k8s-api-0.29.0/testdata/v1.28.0/resource.k8s.io.v1alpha2.ResourceClaim.yaml000066400000000000000000000031301453636404600270560ustar00rootroot00000000000000apiVersion: resource.k8s.io/v1alpha2 kind: ResourceClaim metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: allocationMode: allocationModeValue parametersRef: apiGroup: apiGroupValue kind: kindValue name: nameValue resourceClassName: resourceClassNameValue status: allocation: availableOnNodes: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue resourceHandles: - data: dataValue driverName: driverNameValue shareable: true deallocationRequested: true driverName: driverNameValue reservedFor: - apiGroup: apiGroupValue name: nameValue resource: resourceValue uid: uidValue golang-k8s-api-0.29.0/testdata/v1.28.0/resource.k8s.io.v1alpha2.ResourceClaimTemplate.json000066400000000000000000000051151453636404600305660ustar00rootroot00000000000000{ "kind": "ResourceClaimTemplate", "apiVersion": "resource.k8s.io/v1alpha2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "resourceClassName": "resourceClassNameValue", "parametersRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue" }, "allocationMode": "allocationModeValue" } } }golang-k8s-api-0.29.0/testdata/v1.28.0/resource.k8s.io.v1alpha2.ResourceClaimTemplate.pb000066400000000000000000000015351453636404600302200ustar00rootroot00000000000000k8s 1 resource.k8s.io/v1alpha2ResourceClaimTemplate  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueT resourceClassNameValue% apiGroupValue kindValue nameValueallocationModeValue"golang-k8s-api-0.29.0/testdata/v1.28.0/resource.k8s.io.v1alpha2.ResourceClaimTemplate.yaml000066400000000000000000000036321453636404600305610ustar00rootroot00000000000000apiVersion: resource.k8s.io/v1alpha2 kind: ResourceClaimTemplate metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: allocationMode: allocationModeValue parametersRef: apiGroup: apiGroupValue kind: kindValue name: nameValue resourceClassName: resourceClassNameValue golang-k8s-api-0.29.0/testdata/v1.28.0/resource.k8s.io.v1alpha2.ResourceClass.json000066400000000000000000000034461453636404600271170ustar00rootroot00000000000000{ "kind": "ResourceClass", "apiVersion": "resource.k8s.io/v1alpha2", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "driverName": "driverNameValue", "parametersRef": { "apiGroup": "apiGroupValue", "kind": "kindValue", "name": "nameValue", "namespace": "namespaceValue" }, "suitableNodes": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/resource.k8s.io.v1alpha2.ResourceClass.pb000066400000000000000000000010651453636404600265420ustar00rootroot00000000000000k8s ) resource.k8s.io/v1alpha2 ResourceClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValuedriverNameValue5 apiGroupValue kindValue nameValue"namespaceValue"R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue"golang-k8s-api-0.29.0/testdata/v1.28.0/resource.k8s.io.v1alpha2.ResourceClass.yaml000066400000000000000000000023351453636404600271040ustar00rootroot00000000000000apiVersion: resource.k8s.io/v1alpha2 driverName: driverNameValue kind: ResourceClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue parametersRef: apiGroup: apiGroupValue kind: kindValue name: nameValue namespace: namespaceValue suitableNodes: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue golang-k8s-api-0.29.0/testdata/v1.28.0/resource.k8s.io.v1alpha2.Status.json000066400000000000000000000011401453636404600256120ustar00rootroot00000000000000{ "kind": "Status", "apiVersion": "resource.k8s.io/v1alpha2", "metadata": { "selfLink": "selfLinkValue", "resourceVersion": "resourceVersionValue", "continue": "continueValue", "remainingItemCount": 4 }, "status": "statusValue", "message": "messageValue", "reason": "reasonValue", "details": { "name": "nameValue", "group": "groupValue", "kind": "kindValue", "uid": "uidValue", "causes": [ { "reason": "reasonValue", "message": "messageValue", "field": "fieldValue" } ], "retryAfterSeconds": 5 }, "code": 6 }golang-k8s-api-0.29.0/testdata/v1.28.0/resource.k8s.io.v1alpha2.Status.pb000066400000000000000000000003521453636404600252460ustar00rootroot00000000000000k8s " resource.k8s.io/v1alpha2Status 6 selfLinkValueresourceVersionValue continueValue  statusValue messageValue" reasonValue*W nameValue groupValue kindValue"' reasonValue messageValue fieldValue(2uidValue0"golang-k8s-api-0.29.0/testdata/v1.28.0/resource.k8s.io.v1alpha2.Status.yaml000066400000000000000000000006601453636404600256110ustar00rootroot00000000000000apiVersion: resource.k8s.io/v1alpha2 code: 6 details: causes: - field: fieldValue message: messageValue reason: reasonValue group: groupValue kind: kindValue name: nameValue retryAfterSeconds: 5 uid: uidValue kind: Status message: messageValue metadata: continue: continueValue remainingItemCount: 4 resourceVersion: resourceVersionValue selfLink: selfLinkValue reason: reasonValue status: statusValue golang-k8s-api-0.29.0/testdata/v1.28.0/scheduling.k8s.io.v1.PriorityClass.json000066400000000000000000000024201453636404600263460ustar00rootroot00000000000000{ "kind": "PriorityClass", "apiVersion": "scheduling.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "value": 2, "globalDefault": true, "description": "descriptionValue", "preemptionPolicy": "preemptionPolicyValue" }golang-k8s-api-0.29.0/testdata/v1.28.0/scheduling.k8s.io.v1.PriorityClass.pb000066400000000000000000000007021453636404600257770ustar00rootroot00000000000000k8s % scheduling.k8s.io/v1 PriorityClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue"descriptionValue*preemptionPolicyValue"golang-k8s-api-0.29.0/testdata/v1.28.0/scheduling.k8s.io.v1.PriorityClass.yaml000066400000000000000000000017041453636404600263430ustar00rootroot00000000000000apiVersion: scheduling.k8s.io/v1 description: descriptionValue globalDefault: true kind: PriorityClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue preemptionPolicy: preemptionPolicyValue value: 2 golang-k8s-api-0.29.0/testdata/v1.28.0/scheduling.k8s.io.v1alpha1.PriorityClass.json000066400000000000000000000024261453636404600274430ustar00rootroot00000000000000{ "kind": "PriorityClass", "apiVersion": "scheduling.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "value": 2, "globalDefault": true, "description": "descriptionValue", "preemptionPolicy": "preemptionPolicyValue" }golang-k8s-api-0.29.0/testdata/v1.28.0/scheduling.k8s.io.v1alpha1.PriorityClass.pb000066400000000000000000000007101453636404600270650ustar00rootroot00000000000000k8s + scheduling.k8s.io/v1alpha1 PriorityClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue"descriptionValue*preemptionPolicyValue"golang-k8s-api-0.29.0/testdata/v1.28.0/scheduling.k8s.io.v1alpha1.PriorityClass.yaml000066400000000000000000000017121453636404600274310ustar00rootroot00000000000000apiVersion: scheduling.k8s.io/v1alpha1 description: descriptionValue globalDefault: true kind: PriorityClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue preemptionPolicy: preemptionPolicyValue value: 2 golang-k8s-api-0.29.0/testdata/v1.28.0/scheduling.k8s.io.v1beta1.PriorityClass.json000066400000000000000000000024251453636404600272700ustar00rootroot00000000000000{ "kind": "PriorityClass", "apiVersion": "scheduling.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "value": 2, "globalDefault": true, "description": "descriptionValue", "preemptionPolicy": "preemptionPolicyValue" }golang-k8s-api-0.29.0/testdata/v1.28.0/scheduling.k8s.io.v1beta1.PriorityClass.pb000066400000000000000000000007071453636404600267210ustar00rootroot00000000000000k8s * scheduling.k8s.io/v1beta1 PriorityClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue"descriptionValue*preemptionPolicyValue"golang-k8s-api-0.29.0/testdata/v1.28.0/scheduling.k8s.io.v1beta1.PriorityClass.yaml000066400000000000000000000017111453636404600272560ustar00rootroot00000000000000apiVersion: scheduling.k8s.io/v1beta1 description: descriptionValue globalDefault: true kind: PriorityClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue preemptionPolicy: preemptionPolicyValue value: 2 golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1.CSIDriver.json000066400000000000000000000030201453636404600246450ustar00rootroot00000000000000{ "kind": "CSIDriver", "apiVersion": "storage.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "attachRequired": true, "podInfoOnMount": true, "volumeLifecycleModes": [ "volumeLifecycleModesValue" ], "storageCapacity": true, "fsGroupPolicy": "fsGroupPolicyValue", "tokenRequests": [ { "audience": "audienceValue", "expirationSeconds": 2 } ], "requiresRepublish": true, "seLinuxMount": true } }golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1.CSIDriver.pb000066400000000000000000000007341453636404600243060ustar00rootroot00000000000000k8s  storage.k8s.io/v1 CSIDriver  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueLvolumeLifecycleModesValue *fsGroupPolicyValue2 audienceValue8@"golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1.CSIDriver.yaml000066400000000000000000000021651453636404600246470ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1 kind: CSIDriver metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: attachRequired: true fsGroupPolicy: fsGroupPolicyValue podInfoOnMount: true requiresRepublish: true seLinuxMount: true storageCapacity: true tokenRequests: - audience: audienceValue expirationSeconds: 2 volumeLifecycleModes: - volumeLifecycleModesValue golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1.CSINode.json000066400000000000000000000025751453636404600243150ustar00rootroot00000000000000{ "kind": "CSINode", "apiVersion": "storage.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "drivers": [ { "name": "nameValue", "nodeID": "nodeIDValue", "topologyKeys": [ "topologyKeysValue" ], "allocatable": { "count": 1 } } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1.CSINode.pb000066400000000000000000000006771453636404600237460ustar00rootroot00000000000000k8s  storage.k8s.io/v1CSINode  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue1 / nameValue nodeIDValuetopologyKeysValue""golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1.CSINode.yaml000066400000000000000000000017371453636404600243050ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1 kind: CSINode metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: drivers: - allocatable: count: 1 name: nameValue nodeID: nodeIDValue topologyKeys: - topologyKeysValue golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1.CSIStorageCapacity.json000066400000000000000000000027731453636404600265120ustar00rootroot00000000000000{ "kind": "CSIStorageCapacity", "apiVersion": "storage.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "nodeTopology": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "storageClassName": "storageClassNameValue", "capacity": "0", "maximumVolumeSize": "0" }golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1.CSIStorageCapacity.pb000066400000000000000000000010061453636404600261260ustar00rootroot00000000000000k8s ' storage.k8s.io/v1CSIStorageCapacity  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuestorageClassNameValue" 0* 0"golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1.CSIStorageCapacity.yaml000066400000000000000000000021221453636404600264670ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1 capacity: "0" kind: CSIStorageCapacity maximumVolumeSize: "0" metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue nodeTopology: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1.StorageClass.json000066400000000000000000000031371453636404600254560ustar00rootroot00000000000000{ "kind": "StorageClass", "apiVersion": "storage.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "provisioner": "provisionerValue", "parameters": { "parametersKey": "parametersValue" }, "reclaimPolicy": "reclaimPolicyValue", "mountOptions": [ "mountOptionsValue" ], "allowVolumeExpansion": true, "volumeBindingMode": "volumeBindingModeValue", "allowedTopologies": [ { "matchLabelExpressions": [ { "key": "keyValue", "values": [ "valuesValue" ] } ] } ] }golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1.StorageClass.pb000066400000000000000000000010411453636404600250760ustar00rootroot00000000000000k8s ! storage.k8s.io/v1 StorageClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueprovisionerValue parametersKeyparametersValue"reclaimPolicyValue*mountOptionsValue0:volumeBindingModeValueB  keyValue valuesValue"golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1.StorageClass.yaml000066400000000000000000000022151453636404600254430ustar00rootroot00000000000000allowVolumeExpansion: true allowedTopologies: - matchLabelExpressions: - key: keyValue values: - valuesValue apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue mountOptions: - mountOptionsValue parameters: parametersKey: parametersValue provisioner: provisionerValue reclaimPolicy: reclaimPolicyValue volumeBindingMode: volumeBindingModeValue golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1.VolumeAttachment.json000066400000000000000000000217251453636404600263470ustar00rootroot00000000000000{ "kind": "VolumeAttachment", "apiVersion": "storage.k8s.io/v1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "attacher": "attacherValue", "source": { "persistentVolumeName": "persistentVolumeNameValue", "inlineVolumeSpec": { "capacity": { "capacityKey": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "hostPath": { "path": "pathValue", "type": "typeValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true, "endpointsNamespace": "endpointsNamespaceValue" }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "initiatorName": "initiatorNameValue" }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true, "secretNamespace": "secretNamespaceValue" }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "local": { "path": "pathValue", "fsType": "fsTypeValue" }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } }, "csi": { "driver": "driverValue", "volumeHandle": "volumeHandleValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "controllerPublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeStageSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodePublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "controllerExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "accessModes": [ "accessModesValue" ], "claimRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "persistentVolumeReclaimPolicy": "persistentVolumeReclaimPolicyValue", "storageClassName": "storageClassNameValue", "mountOptions": [ "mountOptionsValue" ], "volumeMode": "volumeModeValue", "nodeAffinity": { "required": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } } } }, "nodeName": "nodeNameValue" }, "status": { "attached": true, "attachmentMetadata": { "attachmentMetadataKey": "attachmentMetadataValue" }, "attachError": { "time": "2001-01-01T01:01:01Z", "message": "messageValue" }, "detachError": { "time": "2001-01-01T01:01:01Z", "message": "messageValue" } } }golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1.VolumeAttachment.pb000066400000000000000000000050131453636404600257670ustar00rootroot00000000000000k8s % storage.k8s.io/v1VolumeAttachment  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue attacherValue persistentVolumeNameValue  capacityKey 0  pdNameValue fsTypeValue  volumeIDValue fsTypeValue  pathValue typeValue"6 endpointsValue pathValue"endpointsNamespaceValue* serverValue pathValue2k monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValuenamespaceValue@: targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValuenamespaceValueXbinitiatorNameValueB; volumeIDValue fsTypeValue" nameValuenamespaceValueJU monitorsValue pathValue userValue"secretFileValue* nameValuenamespaceValue0R. targetWWNsValue fsTypeValue * wwidsValueZ$ datasetNameValuedatasetUUIDValuebU driverValue fsTypeValue nameValuenamespaceValue * optionsKey optionsValuej9 secretNameValueshareNameValue"secretNamespaceValuerL volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValuezB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValuenamespaceValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP pathValue fsTypeValue volumeNameValuevolumeNamespaceValue fsTypeValue *g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue driverValuevolumeHandleValue" fsTypeValue*, volumeAttributesKeyvolumeAttributesValue2 nameValuenamespaceValue: nameValuenamespaceValueB nameValuenamespaceValueJ nameValuenamespaceValueR nameValuenamespaceValueaccessModesValue"g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue*"persistentVolumeReclaimPolicyValue2storageClassNameValue:mountOptionsValueBvolumeModeValueJT R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue nodeNameValueh0 attachmentMetadataKeyattachmentMetadataValue ͭ messageValue" ͭ messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1.VolumeAttachment.yaml000066400000000000000000000150641453636404600263370ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1 kind: VolumeAttachment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: attacher: attacherValue nodeName: nodeNameValue source: inlineVolumeSpec: accessModes: - accessModesValue awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue secretNamespace: secretNamespaceValue shareName: shareNameValue capacity: capacityKey: "0" cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue namespace: namespaceValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue namespace: namespaceValue volumeID: volumeIDValue claimRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue csi: controllerExpandSecretRef: name: nameValue namespace: namespaceValue controllerPublishSecretRef: name: nameValue namespace: namespaceValue driver: driverValue fsType: fsTypeValue nodeExpandSecretRef: name: nameValue namespace: namespaceValue nodePublishSecretRef: name: nameValue namespace: namespaceValue nodeStageSecretRef: name: nameValue namespace: namespaceValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue volumeHandle: volumeHandleValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true glusterfs: endpoints: endpointsValue endpointsNamespace: endpointsNamespaceValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue targetPortal: targetPortalValue local: fsType: fsTypeValue path: pathValue mountOptions: - mountOptionsValue nfs: path: pathValue readOnly: true server: serverValue nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicyValue photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue namespace: namespaceValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue namespace: namespaceValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue storageClassName: storageClassNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue volumeMode: volumeModeValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue persistentVolumeName: persistentVolumeNameValue status: attachError: message: messageValue time: "2001-01-01T01:01:01Z" attached: true attachmentMetadata: attachmentMetadataKey: attachmentMetadataValue detachError: message: messageValue time: "2001-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1alpha1.CSIStorageCapacity.json000066400000000000000000000030011453636404600275620ustar00rootroot00000000000000{ "kind": "CSIStorageCapacity", "apiVersion": "storage.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "nodeTopology": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "storageClassName": "storageClassNameValue", "capacity": "0", "maximumVolumeSize": "0" }golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1alpha1.CSIStorageCapacity.pb000066400000000000000000000010141453636404600272140ustar00rootroot00000000000000k8s - storage.k8s.io/v1alpha1CSIStorageCapacity  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuestorageClassNameValue" 0* 0"golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1alpha1.CSIStorageCapacity.yaml000066400000000000000000000021301453636404600275550ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1alpha1 capacity: "0" kind: CSIStorageCapacity maximumVolumeSize: "0" metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue nodeTopology: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1alpha1.VolumeAttachment.json000066400000000000000000000217331453636404600274350ustar00rootroot00000000000000{ "kind": "VolumeAttachment", "apiVersion": "storage.k8s.io/v1alpha1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "attacher": "attacherValue", "source": { "persistentVolumeName": "persistentVolumeNameValue", "inlineVolumeSpec": { "capacity": { "capacityKey": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "hostPath": { "path": "pathValue", "type": "typeValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true, "endpointsNamespace": "endpointsNamespaceValue" }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "initiatorName": "initiatorNameValue" }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true, "secretNamespace": "secretNamespaceValue" }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "local": { "path": "pathValue", "fsType": "fsTypeValue" }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } }, "csi": { "driver": "driverValue", "volumeHandle": "volumeHandleValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "controllerPublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeStageSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodePublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "controllerExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "accessModes": [ "accessModesValue" ], "claimRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "persistentVolumeReclaimPolicy": "persistentVolumeReclaimPolicyValue", "storageClassName": "storageClassNameValue", "mountOptions": [ "mountOptionsValue" ], "volumeMode": "volumeModeValue", "nodeAffinity": { "required": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } } } }, "nodeName": "nodeNameValue" }, "status": { "attached": true, "attachmentMetadata": { "attachmentMetadataKey": "attachmentMetadataValue" }, "attachError": { "time": "2001-01-01T01:01:01Z", "message": "messageValue" }, "detachError": { "time": "2001-01-01T01:01:01Z", "message": "messageValue" } } }golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1alpha1.VolumeAttachment.pb000066400000000000000000000050211453636404600270550ustar00rootroot00000000000000k8s + storage.k8s.io/v1alpha1VolumeAttachment  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue attacherValue persistentVolumeNameValue  capacityKey 0  pdNameValue fsTypeValue  volumeIDValue fsTypeValue  pathValue typeValue"6 endpointsValue pathValue"endpointsNamespaceValue* serverValue pathValue2k monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValuenamespaceValue@: targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValuenamespaceValueXbinitiatorNameValueB; volumeIDValue fsTypeValue" nameValuenamespaceValueJU monitorsValue pathValue userValue"secretFileValue* nameValuenamespaceValue0R. targetWWNsValue fsTypeValue * wwidsValueZ$ datasetNameValuedatasetUUIDValuebU driverValue fsTypeValue nameValuenamespaceValue * optionsKey optionsValuej9 secretNameValueshareNameValue"secretNamespaceValuerL volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValuezB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValuenamespaceValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP pathValue fsTypeValue volumeNameValuevolumeNamespaceValue fsTypeValue *g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue driverValuevolumeHandleValue" fsTypeValue*, volumeAttributesKeyvolumeAttributesValue2 nameValuenamespaceValue: nameValuenamespaceValueB nameValuenamespaceValueJ nameValuenamespaceValueR nameValuenamespaceValueaccessModesValue"g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue*"persistentVolumeReclaimPolicyValue2storageClassNameValue:mountOptionsValueBvolumeModeValueJT R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue nodeNameValueh0 attachmentMetadataKeyattachmentMetadataValue ͭ messageValue" ͭ messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1alpha1.VolumeAttachment.yaml000066400000000000000000000150721453636404600274250ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1alpha1 kind: VolumeAttachment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: attacher: attacherValue nodeName: nodeNameValue source: inlineVolumeSpec: accessModes: - accessModesValue awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue secretNamespace: secretNamespaceValue shareName: shareNameValue capacity: capacityKey: "0" cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue namespace: namespaceValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue namespace: namespaceValue volumeID: volumeIDValue claimRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue csi: controllerExpandSecretRef: name: nameValue namespace: namespaceValue controllerPublishSecretRef: name: nameValue namespace: namespaceValue driver: driverValue fsType: fsTypeValue nodeExpandSecretRef: name: nameValue namespace: namespaceValue nodePublishSecretRef: name: nameValue namespace: namespaceValue nodeStageSecretRef: name: nameValue namespace: namespaceValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue volumeHandle: volumeHandleValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true glusterfs: endpoints: endpointsValue endpointsNamespace: endpointsNamespaceValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue targetPortal: targetPortalValue local: fsType: fsTypeValue path: pathValue mountOptions: - mountOptionsValue nfs: path: pathValue readOnly: true server: serverValue nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicyValue photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue namespace: namespaceValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue namespace: namespaceValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue storageClassName: storageClassNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue volumeMode: volumeModeValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue persistentVolumeName: persistentVolumeNameValue status: attachError: message: messageValue time: "2001-01-01T01:01:01Z" attached: true attachmentMetadata: attachmentMetadataKey: attachmentMetadataValue detachError: message: messageValue time: "2001-01-01T01:01:01Z" golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1beta1.CSIDriver.json000066400000000000000000000030251453636404600255670ustar00rootroot00000000000000{ "kind": "CSIDriver", "apiVersion": "storage.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "attachRequired": true, "podInfoOnMount": true, "volumeLifecycleModes": [ "volumeLifecycleModesValue" ], "storageCapacity": true, "fsGroupPolicy": "fsGroupPolicyValue", "tokenRequests": [ { "audience": "audienceValue", "expirationSeconds": 2 } ], "requiresRepublish": true, "seLinuxMount": true } }golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1beta1.CSIDriver.pb000066400000000000000000000007411453636404600252210ustar00rootroot00000000000000k8s # storage.k8s.io/v1beta1 CSIDriver  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueLvolumeLifecycleModesValue *fsGroupPolicyValue2 audienceValue8@"golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1beta1.CSIDriver.yaml000066400000000000000000000021721453636404600255620ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1beta1 kind: CSIDriver metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: attachRequired: true fsGroupPolicy: fsGroupPolicyValue podInfoOnMount: true requiresRepublish: true seLinuxMount: true storageCapacity: true tokenRequests: - audience: audienceValue expirationSeconds: 2 volumeLifecycleModes: - volumeLifecycleModesValue golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1beta1.CSINode.json000066400000000000000000000026021453636404600252210ustar00rootroot00000000000000{ "kind": "CSINode", "apiVersion": "storage.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "drivers": [ { "name": "nameValue", "nodeID": "nodeIDValue", "topologyKeys": [ "topologyKeysValue" ], "allocatable": { "count": 1 } } ] } }golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1beta1.CSINode.pb000066400000000000000000000007041453636404600246520ustar00rootroot00000000000000k8s ! storage.k8s.io/v1beta1CSINode  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue1 / nameValue nodeIDValuetopologyKeysValue""golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1beta1.CSINode.yaml000066400000000000000000000017441453636404600252200ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1beta1 kind: CSINode metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: drivers: - allocatable: count: 1 name: nameValue nodeID: nodeIDValue topologyKeys: - topologyKeysValue golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1beta1.CSIStorageCapacity.json000066400000000000000000000030001453636404600274070ustar00rootroot00000000000000{ "kind": "CSIStorageCapacity", "apiVersion": "storage.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "nodeTopology": { "matchLabels": { "matchLabelsKey": "matchLabelsValue" }, "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] }, "storageClassName": "storageClassNameValue", "capacity": "0", "maximumVolumeSize": "0" }golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1beta1.CSIStorageCapacity.pb000066400000000000000000000010131453636404600270410ustar00rootroot00000000000000k8s , storage.k8s.io/v1beta1CSIStorageCapacity  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueL " matchLabelsKeymatchLabelsValue& keyValue operatorValue valuesValuestorageClassNameValue" 0* 0"golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1beta1.CSIStorageCapacity.yaml000066400000000000000000000021271453636404600274110ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1beta1 capacity: "0" kind: CSIStorageCapacity maximumVolumeSize: "0" metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue nodeTopology: matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchLabels: matchLabelsKey: matchLabelsValue storageClassName: storageClassNameValue golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1beta1.StorageClass.json000066400000000000000000000031441453636404600263710ustar00rootroot00000000000000{ "kind": "StorageClass", "apiVersion": "storage.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "provisioner": "provisionerValue", "parameters": { "parametersKey": "parametersValue" }, "reclaimPolicy": "reclaimPolicyValue", "mountOptions": [ "mountOptionsValue" ], "allowVolumeExpansion": true, "volumeBindingMode": "volumeBindingModeValue", "allowedTopologies": [ { "matchLabelExpressions": [ { "key": "keyValue", "values": [ "valuesValue" ] } ] } ] }golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1beta1.StorageClass.pb000066400000000000000000000010461453636404600260200ustar00rootroot00000000000000k8s & storage.k8s.io/v1beta1 StorageClass  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValueprovisionerValue parametersKeyparametersValue"reclaimPolicyValue*mountOptionsValue0:volumeBindingModeValueB  keyValue valuesValue"golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1beta1.StorageClass.yaml000066400000000000000000000022221453636404600263560ustar00rootroot00000000000000allowVolumeExpansion: true allowedTopologies: - matchLabelExpressions: - key: keyValue values: - valuesValue apiVersion: storage.k8s.io/v1beta1 kind: StorageClass metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue mountOptions: - mountOptionsValue parameters: parametersKey: parametersValue provisioner: provisionerValue reclaimPolicy: reclaimPolicyValue volumeBindingMode: volumeBindingModeValue golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1beta1.VolumeAttachment.json000066400000000000000000000217321453636404600272620ustar00rootroot00000000000000{ "kind": "VolumeAttachment", "apiVersion": "storage.k8s.io/v1beta1", "metadata": { "name": "nameValue", "generateName": "generateNameValue", "namespace": "namespaceValue", "selfLink": "selfLinkValue", "uid": "uidValue", "resourceVersion": "resourceVersionValue", "generation": 7, "creationTimestamp": "2008-01-01T01:01:01Z", "deletionTimestamp": "2009-01-01T01:01:01Z", "deletionGracePeriodSeconds": 10, "labels": { "labelsKey": "labelsValue" }, "annotations": { "annotationsKey": "annotationsValue" }, "ownerReferences": [ { "apiVersion": "apiVersionValue", "kind": "kindValue", "name": "nameValue", "uid": "uidValue", "controller": true, "blockOwnerDeletion": true } ], "finalizers": [ "finalizersValue" ], "managedFields": [ { "manager": "managerValue", "operation": "operationValue", "apiVersion": "apiVersionValue", "time": "2004-01-01T01:01:01Z", "fieldsType": "fieldsTypeValue", "fieldsV1": {}, "subresource": "subresourceValue" } ] }, "spec": { "attacher": "attacherValue", "source": { "persistentVolumeName": "persistentVolumeNameValue", "inlineVolumeSpec": { "capacity": { "capacityKey": "0" }, "gcePersistentDisk": { "pdName": "pdNameValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "awsElasticBlockStore": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "partition": 3, "readOnly": true }, "hostPath": { "path": "pathValue", "type": "typeValue" }, "glusterfs": { "endpoints": "endpointsValue", "path": "pathValue", "readOnly": true, "endpointsNamespace": "endpointsNamespaceValue" }, "nfs": { "server": "serverValue", "path": "pathValue", "readOnly": true }, "rbd": { "monitors": [ "monitorsValue" ], "image": "imageValue", "fsType": "fsTypeValue", "pool": "poolValue", "user": "userValue", "keyring": "keyringValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "iscsi": { "targetPortal": "targetPortalValue", "iqn": "iqnValue", "lun": 3, "iscsiInterface": "iscsiInterfaceValue", "fsType": "fsTypeValue", "readOnly": true, "portals": [ "portalsValue" ], "chapAuthDiscovery": true, "chapAuthSession": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "initiatorName": "initiatorNameValue" }, "cinder": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "cephfs": { "monitors": [ "monitorsValue" ], "path": "pathValue", "user": "userValue", "secretFile": "secretFileValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true }, "fc": { "targetWWNs": [ "targetWWNsValue" ], "lun": 2, "fsType": "fsTypeValue", "readOnly": true, "wwids": [ "wwidsValue" ] }, "flocker": { "datasetName": "datasetNameValue", "datasetUUID": "datasetUUIDValue" }, "flexVolume": { "driver": "driverValue", "fsType": "fsTypeValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "readOnly": true, "options": { "optionsKey": "optionsValue" } }, "azureFile": { "secretName": "secretNameValue", "shareName": "shareNameValue", "readOnly": true, "secretNamespace": "secretNamespaceValue" }, "vsphereVolume": { "volumePath": "volumePathValue", "fsType": "fsTypeValue", "storagePolicyName": "storagePolicyNameValue", "storagePolicyID": "storagePolicyIDValue" }, "quobyte": { "registry": "registryValue", "volume": "volumeValue", "readOnly": true, "user": "userValue", "group": "groupValue", "tenant": "tenantValue" }, "azureDisk": { "diskName": "diskNameValue", "diskURI": "diskURIValue", "cachingMode": "cachingModeValue", "fsType": "fsTypeValue", "readOnly": true, "kind": "kindValue" }, "photonPersistentDisk": { "pdID": "pdIDValue", "fsType": "fsTypeValue" }, "portworxVolume": { "volumeID": "volumeIDValue", "fsType": "fsTypeValue", "readOnly": true }, "scaleIO": { "gateway": "gatewayValue", "system": "systemValue", "secretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "sslEnabled": true, "protectionDomain": "protectionDomainValue", "storagePool": "storagePoolValue", "storageMode": "storageModeValue", "volumeName": "volumeNameValue", "fsType": "fsTypeValue", "readOnly": true }, "local": { "path": "pathValue", "fsType": "fsTypeValue" }, "storageos": { "volumeName": "volumeNameValue", "volumeNamespace": "volumeNamespaceValue", "fsType": "fsTypeValue", "readOnly": true, "secretRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" } }, "csi": { "driver": "driverValue", "volumeHandle": "volumeHandleValue", "readOnly": true, "fsType": "fsTypeValue", "volumeAttributes": { "volumeAttributesKey": "volumeAttributesValue" }, "controllerPublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeStageSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodePublishSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "controllerExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" }, "nodeExpandSecretRef": { "name": "nameValue", "namespace": "namespaceValue" } }, "accessModes": [ "accessModesValue" ], "claimRef": { "kind": "kindValue", "namespace": "namespaceValue", "name": "nameValue", "uid": "uidValue", "apiVersion": "apiVersionValue", "resourceVersion": "resourceVersionValue", "fieldPath": "fieldPathValue" }, "persistentVolumeReclaimPolicy": "persistentVolumeReclaimPolicyValue", "storageClassName": "storageClassNameValue", "mountOptions": [ "mountOptionsValue" ], "volumeMode": "volumeModeValue", "nodeAffinity": { "required": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ], "matchFields": [ { "key": "keyValue", "operator": "operatorValue", "values": [ "valuesValue" ] } ] } ] } } } }, "nodeName": "nodeNameValue" }, "status": { "attached": true, "attachmentMetadata": { "attachmentMetadataKey": "attachmentMetadataValue" }, "attachError": { "time": "2001-01-01T01:01:01Z", "message": "messageValue" }, "detachError": { "time": "2001-01-01T01:01:01Z", "message": "messageValue" } } }golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1beta1.VolumeAttachment.pb000066400000000000000000000050201453636404600267020ustar00rootroot00000000000000k8s * storage.k8s.io/v1beta1VolumeAttachment  nameValuegenerateNameValuenamespaceValue" selfLinkValue*uidValue2resourceVersionValue8B͡JͫP Z labelsKey labelsValueb" annotationsKeyannotationsValuej5 kindValue nameValue"uidValue*apiVersionValue08rfinalizersValueb managerValueoperationValueapiVersionValue"2fieldsTypeValue: {}BsubresourceValue attacherValue persistentVolumeNameValue  capacityKey 0  pdNameValue fsTypeValue  volumeIDValue fsTypeValue  pathValue typeValue"6 endpointsValue pathValue"endpointsNamespaceValue* serverValue pathValue2k monitorsValue imageValue fsTypeValue" poolValue* userValue2 keyringValue: nameValuenamespaceValue@: targetPortalValueiqnValue"iscsiInterfaceValue* fsTypeValue0: portalsValue@R nameValuenamespaceValueXbinitiatorNameValueB; volumeIDValue fsTypeValue" nameValuenamespaceValueJU monitorsValue pathValue userValue"secretFileValue* nameValuenamespaceValue0R. targetWWNsValue fsTypeValue * wwidsValueZ$ datasetNameValuedatasetUUIDValuebU driverValue fsTypeValue nameValuenamespaceValue * optionsKey optionsValuej9 secretNameValueshareNameValue"secretNamespaceValuerL volumePathValue fsTypeValuestoragePolicyNameValue"storagePolicyIDValuezB registryValue volumeValue" userValue* groupValue2 tenantValueI diskNameValue diskURIValuecachingModeValue" fsTypeValue(2 kindValue pdIDValue fsTypeValue volumeIDValue fsTypeValue gatewayValue systemValue nameValuenamespaceValue *protectionDomainValue2storagePoolValue:storageModeValueBvolumeNameValueJ fsTypeValueP pathValue fsTypeValue volumeNameValuevolumeNamespaceValue fsTypeValue *g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue driverValuevolumeHandleValue" fsTypeValue*, volumeAttributesKeyvolumeAttributesValue2 nameValuenamespaceValue: nameValuenamespaceValueB nameValuenamespaceValueJ nameValuenamespaceValueR nameValuenamespaceValueaccessModesValue"g kindValuenamespaceValue nameValue"uidValue*apiVersionValue2resourceVersionValue:fieldPathValue*"persistentVolumeReclaimPolicyValue2storageClassNameValue:mountOptionsValueBvolumeModeValueJT R P & keyValue operatorValue valuesValue& keyValue operatorValue valuesValue nodeNameValueh0 attachmentMetadataKeyattachmentMetadataValue ͭ messageValue" ͭ messageValue"golang-k8s-api-0.29.0/testdata/v1.28.0/storage.k8s.io.v1beta1.VolumeAttachment.yaml000066400000000000000000000150711453636404600272520ustar00rootroot00000000000000apiVersion: storage.k8s.io/v1beta1 kind: VolumeAttachment metadata: annotations: annotationsKey: annotationsValue creationTimestamp: "2008-01-01T01:01:01Z" deletionGracePeriodSeconds: 10 deletionTimestamp: "2009-01-01T01:01:01Z" finalizers: - finalizersValue generateName: generateNameValue generation: 7 labels: labelsKey: labelsValue managedFields: - apiVersion: apiVersionValue fieldsType: fieldsTypeValue fieldsV1: {} manager: managerValue operation: operationValue subresource: subresourceValue time: "2004-01-01T01:01:01Z" name: nameValue namespace: namespaceValue ownerReferences: - apiVersion: apiVersionValue blockOwnerDeletion: true controller: true kind: kindValue name: nameValue uid: uidValue resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: attacher: attacherValue nodeName: nodeNameValue source: inlineVolumeSpec: accessModes: - accessModesValue awsElasticBlockStore: fsType: fsTypeValue partition: 3 readOnly: true volumeID: volumeIDValue azureDisk: cachingMode: cachingModeValue diskName: diskNameValue diskURI: diskURIValue fsType: fsTypeValue kind: kindValue readOnly: true azureFile: readOnly: true secretName: secretNameValue secretNamespace: secretNamespaceValue shareName: shareNameValue capacity: capacityKey: "0" cephfs: monitors: - monitorsValue path: pathValue readOnly: true secretFile: secretFileValue secretRef: name: nameValue namespace: namespaceValue user: userValue cinder: fsType: fsTypeValue readOnly: true secretRef: name: nameValue namespace: namespaceValue volumeID: volumeIDValue claimRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue csi: controllerExpandSecretRef: name: nameValue namespace: namespaceValue controllerPublishSecretRef: name: nameValue namespace: namespaceValue driver: driverValue fsType: fsTypeValue nodeExpandSecretRef: name: nameValue namespace: namespaceValue nodePublishSecretRef: name: nameValue namespace: namespaceValue nodeStageSecretRef: name: nameValue namespace: namespaceValue readOnly: true volumeAttributes: volumeAttributesKey: volumeAttributesValue volumeHandle: volumeHandleValue fc: fsType: fsTypeValue lun: 2 readOnly: true targetWWNs: - targetWWNsValue wwids: - wwidsValue flexVolume: driver: driverValue fsType: fsTypeValue options: optionsKey: optionsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue flocker: datasetName: datasetNameValue datasetUUID: datasetUUIDValue gcePersistentDisk: fsType: fsTypeValue partition: 3 pdName: pdNameValue readOnly: true glusterfs: endpoints: endpointsValue endpointsNamespace: endpointsNamespaceValue path: pathValue readOnly: true hostPath: path: pathValue type: typeValue iscsi: chapAuthDiscovery: true chapAuthSession: true fsType: fsTypeValue initiatorName: initiatorNameValue iqn: iqnValue iscsiInterface: iscsiInterfaceValue lun: 3 portals: - portalsValue readOnly: true secretRef: name: nameValue namespace: namespaceValue targetPortal: targetPortalValue local: fsType: fsTypeValue path: pathValue mountOptions: - mountOptionsValue nfs: path: pathValue readOnly: true server: serverValue nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: keyValue operator: operatorValue values: - valuesValue matchFields: - key: keyValue operator: operatorValue values: - valuesValue persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicyValue photonPersistentDisk: fsType: fsTypeValue pdID: pdIDValue portworxVolume: fsType: fsTypeValue readOnly: true volumeID: volumeIDValue quobyte: group: groupValue readOnly: true registry: registryValue tenant: tenantValue user: userValue volume: volumeValue rbd: fsType: fsTypeValue image: imageValue keyring: keyringValue monitors: - monitorsValue pool: poolValue readOnly: true secretRef: name: nameValue namespace: namespaceValue user: userValue scaleIO: fsType: fsTypeValue gateway: gatewayValue protectionDomain: protectionDomainValue readOnly: true secretRef: name: nameValue namespace: namespaceValue sslEnabled: true storageMode: storageModeValue storagePool: storagePoolValue system: systemValue volumeName: volumeNameValue storageClassName: storageClassNameValue storageos: fsType: fsTypeValue readOnly: true secretRef: apiVersion: apiVersionValue fieldPath: fieldPathValue kind: kindValue name: nameValue namespace: namespaceValue resourceVersion: resourceVersionValue uid: uidValue volumeName: volumeNameValue volumeNamespace: volumeNamespaceValue volumeMode: volumeModeValue vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue persistentVolumeName: persistentVolumeNameValue status: attachError: message: messageValue time: "2001-01-01T01:01:01Z" attached: true attachmentMetadata: attachmentMetadataKey: attachmentMetadataValue detachError: message: messageValue time: "2001-01-01T01:01:01Z"